agentleFS
CynrathCynrath/agent-context-kit/.github/copilot-instructions.md

agent-context-kit

Copilot instructions14 starsChanged 3 months agoMITView on GitHub

Prefer minimal, tested, secure changes that follow the project docs and task files.

  • Commits and pushes

The file

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

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer minimal, tested, secure changes that follow the project docs and task files.

    line 3
  2. Distinctive:

    Before any push, run git status and confirm the working tree is clean.

    line 17
  3. Very specific:

    Never leave a newly created .md task file, plan, queue row, or test file uncommitted.

    line 18
  4. Very specific:

    All validation uses the repository-built CLI: node dist/cli/index.js <command>.

    line 30
  5. Very specific:

    Never commit generated .ackit/, SARIF, HTML, prompt pack, context export, dist/, node_modules/, coverage, or temp artifacts.

    line 48

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

Copilot Instructions

Prefer minimal, tested, secure changes that follow the project docs and task files.

Maintenance Note

This file is hand-maintained. ackit generate does not regenerate it. Update it through a regular docs/tasks/ task and a normal commit, never through the generator.

Governance

  • Authoritative agent policy: AGENTS.md — controlled-release governance.
  • Release actions (master push/merge, npm publish, tags, GitHub Releases) are user-authorized only; they require explicit authorization inside the active task. Always prohibited: force-push, history rewrite, tag movement/deletion, workflow dispatch, deployments.
  • Canonical development branch is master (changes land via pull request with exact-head required CI green; direct pushes are rejected by branch protection); rebuild/ackit-vnext is retired (historical evidence only, do not push).

Workflow

  • Task-first workflow is mandatory. Every implementation change starts from a task record under docs/tasks/active/, created with node dist/cli/index.js task "<title>".

Commit Completeness Hard Rule

  • Before any push, run git status and confirm the working tree is clean.
  • Never leave a newly created .md task file, plan, queue row, or test file uncommitted. New files must be added and committed in the same logical commit that creates them, or in an immediately following commit, before any push.

Repository Health

  • README: yes
  • LICENSE: yes
  • SECURITY: yes
  • Tests: yes
  • CI: yes
  • Agent instructions: yes

Stack & Validation

  • Main stack: TypeScript (strict ESM) + Node.js >= 22, pnpm, Vitest, Biome.
  • All validation uses the repository-built CLI: node dist/cli/index.js <command>. The old global .NET ackit tool and dotnet run invocations are not valid validation tools on this branch.

Release Status

  • Source-checkout version: package.json is the single source of truth (see Version truth in AGENTS.md — this file stays version-agnostic and never names a current release number). Published stable: the latest immutable npm/GitHub Release. 0.1.1/0.1.0 remain as historical releases; docs/v0.2.0/** is historical, not current governance.
  • npm publish, tag creation, GitHub Releases, and other master mutations require explicit user authorization. Automated publishing runs only through the tag-triggered .github/workflows/release.yml after that authorization; master pushes never publish.
  • Legacy .NET line is frozen and immutable: NuGet AgentContextKit 1.0.0-rc.1 (exact tag/release/assets/attestations at repository commit 258918b33c3d1359aac967604ee524e8b66ddf02) and earlier prereleases remain untouchable; do not republish, reuse, move, replace, or delete them. Historical failed recovery evidence remains preserved.

Recommended Checks

  • pnpm lint && pnpm format:check && pnpm typecheck
  • pnpm build && pnpm test && pnpm smoke:cli
  • pnpm run smoke:package
  • node dist/cli/index.js doctor
  • node dist/cli/index.js scan --ci

Commit Hygiene

  • Conventional Commits scoped to the real diff; no model name, generator, or AI authorship in commit messages.
  • PR/release bodies: write a UTF-8 body file, pass node scripts/check-text-hygiene.mjs <file>, then gh pr create/edit --body-file <file> (releases: --notes-file); never compose multiline --body inline.
  • Never commit generated .ackit/, SARIF, HTML, prompt pack, context export, dist/, node_modules/, coverage, or temp artifacts.

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.