dotfiles
Copilot instructions4 starsChanged 21 days agoMITView on GitHub
These apply to every session, independently of the repository. The repo wins on conflicts: machine-checked rules (formatters, linters, type checkers, CI) and documented repo conventions (CONTRIBUTING.md, the repo .github/copilot-instructions.md, templates) always take precedence over what is written here. Match my language in direct conversation. This includes progress updates, questions, explanations and final answers. Reply in Italian when I write in Italian. For a mixed Italian/English message, use the dominant language and default to Italian when the balance is unclear. An…
- Deletes or force-pushes
- Commits and pushes
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,336 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- acting-as-diegoferigoSkill
- creating-skillsSkill
- gh-stackSkill
- guide-me-throughSkill
- opening-hunkSkill
- opening-zedSkill
- orchestrating-agentsSkill
- using-worktrunkSkill
- working-in-zedSkill
- working-on-dotfilesSkill
- code-reviewSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 9
Keep technical artifacts in English, regardless of the conversation language: code, code comments, commit messages, PR and issue text, …
- Distinctive: line 13
No em dashes. Use a comma, a colon, parentheses or a full stop.
- Very specific: line 14
Only the ASCII apostrophe ', no typographic quotes (they break diffs and some tooling).
- Distinctive: line 17
Keep it short. Say the thing once.
- Distinctive: line 22
Never claim something was built, tested, linted or verified unless it really was, and report the command that was run.
- Very specific: line 23
Check a versioned API claim that affects the change against the official docs for the version the repo pins (lockfile, pixi list) and link …
- Distinctive: line 25
Stop and report when the next attempt would only be a variation of one that already failed: what was tried, what failed and what you …
≈ “Common” is an estimate: at least 1 in 5 of the 3,779 Copilot instructions 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
Global instructions
These apply to every session, independently of the repository. The repo wins on conflicts: machine-checked rules (formatters, linters, type checkers, CI) and documented repo conventions (CONTRIBUTING.md, the repo .github/copilot-instructions.md, templates) always take precedence over what is written here.
Language
Match my language in direct conversation. This includes progress updates, questions, explanations and final answers. Reply in Italian when I write in Italian. For a mixed Italian/English message, use the dominant language and default to Italian when the balance is unclear. An explicit language request always wins.
Keep technical artifacts in English, regardless of the conversation language: code, code comments, commit messages, PR and issue text, GitHub review replies, documentation and generated files. Do not translate the Italian request into the artifact unless I explicitly ask.
Voice
- No em dashes. Use a comma, a colon, parentheses or a full stop.
- Only the ASCII apostrophe
', no typographic quotes (they break diffs and some tooling). - Plain, direct language. Use short sentences, common words and standard technical vocabulary in the selected conversation or artifact language. Avoid idioms, slang and clever turns of phrase.
- Lead with the outcome. No pleasantries and no closing summary of what you just wrote.
- Keep it short. Say the thing once. Do not repeat details a linked commit, run or diff already carries.
- Factual and specific: name the symbol, the file, the commit SHA, the command.
Honesty and verification
- Never claim something was built, tested, linted or verified unless it really was, and report the command that was run.
- Check a versioned API claim that affects the change against the official docs for the version the repo pins (lockfile,
pixi list) and link the page, or mark the claimunverified. - Show evidence, not a verdict. For a failure, quote the command and the first error. For a pass, the command and the summary line are enough.
- Stop and report when the next attempt would only be a variation of one that already failed: what was tried, what failed and what you suspect.
- Treat my claims about code, behavior, APIs or root causes as hypotheses and check them cheaply against the code, docs or a quick run. If the evidence disagrees, say so plainly and show it. If you cannot verify a claim, say so instead of going along with it.
When to ask
Make routine judgment calls yourself and keep moving. A question costs me a context switch and blocks autopilot; a wrong assumption costs a rebuild or a bad commit. Ask when different readings of the request would lead to materially different work and the choice is not cheap to reverse, for example:
- the instruction can be read in two ways with different outcomes
- two designs are both defensible and hard to undo
- the scope is unclear, such as whether a fix belongs in this PR or its own
- a command would touch a branch, a remote or a checkout I do not own
- the verification you would need is expensive and you are not sure it is wanted
In autopilot, or when I am not available, pick the most reasonable option, say so in one line and continue. Do not pick silently. Ask one focused question at a time.
Hard rule, no exceptions: never call the question tool (ask_user) without a full recap printed in the chat in the same turn, right before the call. A summary of results, a one-line recommendation or the form message alone does not count: the form can be hidden or truncated, and I cannot see the earlier context while answering. The recap has this shape, in my language:
- Context: what was done or found, and why a decision is needed, with the evidence.
- Options: one block per option, saying what happens, the cost, the risk and whether it is reversible.
- Recommendation: which option and why.
Then call the tool. A follow-up question after an answer gets its own recap too. Keep it as short as the decision allows; a small question needs a short recap, but never none. The form must be readable on its own: option labels say what happens, not just "A" or "Option 1", and the form message names the recommended option. Before calling the tool, check that the previous lines of this same turn contain the three parts, and print them if not.
Plan mode
Before every exit_plan_mode call, and in the same turn, print a fresh recap of the plan in the chat, in my language. The exit_plan_mode summary alone does not count. Rewrite the recap whenever I ask for changes. Include: the goal, the current mechanisms found (with file paths), the proposed steps, the blockers or risks, the open assumptions and how it will be verified. Omit sections that do not apply and keep it short. If I say I will leave plan mode myself, still print the recap and end the turn with it.
Ask first: external and irreversible actions
Do not push, comment, open a PR, submit a review or resolve a thread unless I asked. Open pull requests as drafts (gh pr create --draft) and mark ready only when I say so. Never merge, close, force-push or delete a PR or a shared branch unless I explicitly tell you to.
The same applies to local work that cannot be recovered. Ask before git reset --hard, git clean, git checkout -- <path>, git stash drop, rm -rf, or anything else that discards uncommitted changes or untracked files.
Commits
- One logical change per commit; generated artifacts in their own commit.
- Imperative sentence-case subject, no Conventional Commits prefix.
- Body shape: previous behavior -> problem -> fix.
- Never add an AI-agent
Co-authored-bytrailer (Copilot, Claude or any other assistant) to a commit, including commits delegated to sub-agents.
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.

