copilot-habits
Skill1 starsChanged 2 months agoMITView on GitHub
use this when starting a Copilot CLI session, after a bad run you want to rewind, or before changing permissions — /context, /compact, /undo, /permissions
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- claude-code-habitsSkill
- codex-habitsSkill
- compactSkill
- cursor-habitsSkill
- gemini-cli-habitsSkill
- grill-execute-clearSkill
- handoffSkill
- kill-context-bloatSkill
- learn-codebaseSkill
- quality-loopSkill
- ralph-loopSkill
- ralph-planSkill
- ralph-swarmSkill
- reviewSkill
- session-hygieneSkill
- steering-push-vs-pointSkill
- to-specSkill
- unix-compoundSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
After a bad run — /undo or /clear.
- Very specific: line 22
Before changing what the agent may run — /permissions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
copilot-habits
Copilot instance of session-hygiene — read that skill first for the portable doctrine. This skill is only Copilot CLI mechanics.
Sources: docs.github.com Copilot CLI command reference, docs.github.com Copilot CLI skills.
When
- Starting a Copilot CLI session — check
/contextearly. - After a bad run —
/undoor/clear. - Before changing what the agent may run —
/permissions.
Session checks
/context— context-window usage (system prompt, tools, messages, free space)./usage— session stats and token totals.
Rewind options (escalating)
- Cancel mid-run — stop the current turn.
/undo(/rewindalias) — rewind picker; conversation only, or conversation + files./compact— summarize history to free context./clear(/new) — start a new conversation.gitrecovery — last resort.
Slash commands worth knowing
/model— pick the model./skills list— available skills./skills info— one skill's path./skills— enable or disable a skill./skills add— extra skills directory./skills reload— pick up skills added this session./settings(/configalias) — user settings dialog./permissions— mode (default,assisted,allow-all,show)./allow-alland/yoloalias/permissions allow-all./sandbox— local sandbox./resume— previous session.
Settings backup
Back up ~/.copilot/settings.json (override dir with COPILOT_HOME)
and the repo .github/copilot/settings.json before labs that reset
harness config. ~/.copilot/config.json is the legacy settings location
(migrated to settings.json on startup) — do not edit settings there.
Related
session-hygiene
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

