agentleFS
ThingscorpThingscorp/skills/skills/copilot-habits/SKILL.md

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

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
  1. Very specific:

    After a bad run — /undo or /clear.

    line 21
  2. Very specific:

    Before changing what the agent may run — /permissions.

    line 22

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 /context early.
  • After a bad run — /undo or /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)

  1. Cancel mid-run — stop the current turn.
  2. /undo (/rewind alias) — rewind picker; conversation only, or conversation + files.
  3. /compact — summarize history to free context.
  4. /clear (/new) — start a new conversation.
  5. git recovery — 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 (/config alias) — user settings dialog.
  • /permissions — mode (default, assisted, allow-all, show). /allow-all and /yolo alias /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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.