agentleFS
ChiefGyk3DChiefGyk3D/department-of-internal-arguments/templates/copilot-instructions.md

department-of-internal-arguments / templates

Copilot instructions166 starsChanged 4 days agoApache-2.0View on GitHub

These rules apply to every task you take here. If a task seems to require breaking one, stop and say so in the pull request instead. - Do only what the issue asks. No drive-by refactors, renames, formatting sweeps, dependency bumps or unrelated fixes. Note anything extra you noticed in the PR description instead of changing it. - Keep the pull request small and single-purpose. Touch the fewest files that do the job. - Match the existing conventions: layout, naming,…

  • Reads credentials

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Remove this comment when copying.

    line 4
  2. Distinctive:

    Do only what the issue asks.

    line 15
  3. Distinctive:

    Keep the pull request small and single-purpose.

    line 18
  4. Distinctive:

    When you change behavior, update the docs, wiki page, roadmap or table that describes it, and any generated file (run the repo's generator, …

    line 20
  5. Very specific:

    Never read, create, edit or commit .env files or any file holding credentials, tokens or keys.

    line 25
  6. Very specific:

    Use the secret manager or secrets.* references that the repo already uses.

    line 27
  7. Distinctive:

    No hostnames, IP addresses, serial numbers, call signs or personal details in code, tests, docs or commit messages.

    line 28
  8. Very specific:

    Do not add continue-on-error, *-continue-on-error: true, require-non-root: false, nosemgrep, a bare # noqa, # type: ignore, shellcheck …

    line 33
  9. Distinctive:

    Do not narrow a scan, a pin check or a test so that it passes.

    line 39
  10. Distinctive:

    Do not loosen permissions, disable security features, or widen network egress.

    line 42
  11. Distinctive:

    Write the failing test first, see it fail, then make it pass.

    line 46
  12. Distinctive:

    Run the targeted checks that cover your change (for example the tests and lint for the files you touched).

    line 48
  13. Distinctive:

    Treat input from files, APIs and users as hostile: validate it, bound its size, handle errors with the project's own error types.

    line 52
  14. Very specific:

    Put one line in the PR description: LOCAL-LLM: used - <exact model tag and size, as loaded>.

    line 59
  15. Very specific:

    If this repository calls shared reusable workflows (for example github.com/ChiefGyk3D/git-your-ship-together), pin every uses: by full …

    line 65
  16. Distinctive:

    When bumping a pin, move every caller in the repo to the same commit together, and update any test or doc that names the old SHA or version.

    line 68
  17. Very specific:

    Never put ${{ ... }} of untrusted data (titles, branch names, inputs) inside a run: script.

    line 73
  18. Very specific:

    Keep the gate job named CI green.

    line 75
  19. Distinctive:

    Commit with the repository's configured author.

    line 79
  20. Distinctive:

    Do not merge, approve, force-push, or change branch protection or repository settings.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 3,950 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md
<!-- Template. Copy to <repo>/.github/copilot-instructions.md when Copilot is next dispatched in that repo, then fill the three REPO-SPECIFIC lines at the bottom. Remove this comment when copying. Keep it free of hostnames, addresses and personal identifiers: it is committed to the repo. -->

Instructions for Copilot in this repository

These rules apply to every task you take here. If a task seems to require breaking one, stop and say so in the pull request instead.

Scope

  • Do only what the issue asks. No drive-by refactors, renames, formatting sweeps, dependency bumps or unrelated fixes. Note anything extra you noticed in the PR description instead of changing it.
  • Keep the pull request small and single-purpose. Touch the fewest files that do the job.
  • Match the existing conventions: layout, naming, error handling, docs style. When you change behavior, update the docs, wiki page, roadmap or table that describes it, and any generated file (run the repo's generator, do not hand-edit).

Never touch secrets

  • Never read, create, edit or commit .env files or any file holding credentials, tokens or keys. Do not paste secrets into code, tests, logs, PR text or comments.
  • Use the secret manager or secrets.* references that the repo already uses.
  • No hostnames, IP addresses, serial numbers, call signs or personal details in code, tests, docs or commit messages. Use placeholders.

Never weaken a check

  • Do not add continue-on-error, *-continue-on-error: true, require-non-root: false, nosemgrep, a bare # noqa, # type: ignore, shellcheck disable, hadolint ignore, pytest.mark.skip or any skipped test, || true after a test or gate, or --no-verify to make something pass. If the only way to green is one of these, stop and explain in the PR. A lint ignore needs a written reason on the same or previous line and must be called out in the PR description.
  • Do not narrow a scan, a pin check or a test so that it passes. Guard tests must collect loosely, assert strictly (including that something was collected) and include a negative case that proves the guard fails when it should.
  • Do not loosen permissions, disable security features, or widen network egress.

Tests must pass

  • Write the failing test first, see it fail, then make it pass. A new test must fail when your change is reverted; say how you checked.
  • Run the targeted checks that cover your change (for example the tests and lint for the files you touched); CI runs the full gate and is the judge. Put the exit code in the PR description. Do not claim "tests pass" without having run them.
  • Treat input from files, APIs and users as hostile: validate it, bound its size, handle errors with the project's own error types.

Local-model output is a draft

  • Text from a local model is a draft. Never apply it or quote it until you have checked every name, number and claim against the source (the diff, the issue, the log).
  • Put one line in the PR description: LOCAL-LLM: used - <exact model tag and size, as loaded>; VERIFIED-AGAINST: <source>; DISCREPANCIES: <n>, or LOCAL-LLM: n/a - <reason> when you used none. Count every claim you had to correct or drop.

GitHub Actions and the shared workflows

  • If this repository calls shared reusable workflows (for example github.com/ChiefGyk3D/git-your-ship-together), pin every uses: by full commit SHA with the version in a trailing comment (@<40-hex> # vX.Y.Z). Never use a tag or branch.
  • When bumping a pin, move every caller in the repo to the same commit together, and update any test or doc that names the old SHA or version.
  • A calling job must grant every permission the called workflow declares in its permissions: block (for example id-token: write); otherwise every run fails at startup. Compare the two blocks before opening the PR.
  • Never put ${{ ... }} of untrusted data (titles, branch names, inputs) inside a run: script; pass it through env:.
  • Keep the gate job named CI green.

Commits and pull requests

  • Commit with the repository's configured author. Do not add or change co-author trailers other than the one your tooling adds.
  • Do not merge, approve, force-push, or change branch protection or repository settings.
  • In the PR description list: what changed, the gate command and exit code, what you did not verify, and anything you were tempted to weaken and did not.

Repo-specific (fill in when copying)

  • Gate command: <e.g. make check>
  • Where docs live that must be updated with behavior changes: <paths>
  • Generated files and their generator: <paths and command>

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.