agentleFS
saifeldeen911saifeldeen911/actionfence/.github/copilot-instructions.md

actionfence

Copilot instructions9 starsChanged 7 months agoMITView on GitHub

The file

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

12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use TypeScript with the existing strict compiler and ESLint setup.

    line 5
  2. Very specific:

    Prefer import type for type-only imports and add explicit return types to exported functions.

    line 6
  3. Very specific:

    Follow the local patterns in src/ and tests/.

    line 7
  4. Very specific:

    Use readonly for values and fields that are not meant to change.

    line 8
  5. Very specific:

    Keep core policy, identity, rate-limit, spend, and receipt logic in src/core/.

    line 12
  6. Very specific:

    Keep transport adapters thin in src/middleware/.

    line 13
  7. Very specific:

    Keep CLI behavior in src/cli/ and public exports centralized in src/index.ts.

    line 14
  8. Very specific:

    Treat schemas/guard-policy.schema.json as the source of truth for policy shape.

    line 15
  9. Very specific:

    Use Node.js 20+ and npm 10+.

    line 20
  10. Very specific:

    Keep example policy filenames and docs consistent with guard-policy.json and the current example layouts.

    line 28
  11. Distinctive:

    Use isolated temp directories in tests that touch SQLite-backed receipt storage or other shared state.

    line 29
  12. Distinctive:

    Keep policy validation eager and fail fast when schema loading or rule validation is invalid.

    line 30

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

ActionFence Project Guidelines

Code Style

  • Use TypeScript with the existing strict compiler and ESLint setup.
  • Prefer import type for type-only imports and add explicit return types to exported functions.
  • Follow the local patterns in src/ and tests/; keep formatting aligned with Prettier.
  • Use readonly for values and fields that are not meant to change.

Architecture

  • Keep core policy, identity, rate-limit, spend, and receipt logic in src/core/.
  • Keep transport adapters thin in src/middleware/; shared orchestration belongs in src/middleware/engine.ts.
  • Keep CLI behavior in src/cli/ and public exports centralized in src/index.ts.
  • Treat schemas/guard-policy.schema.json as the source of truth for policy shape.
  • The MCP SDK is an optional peer dependency; core package code should not require it.

Build and Test

  • Use Node.js 20+ and npm 10+.
  • Common commands: npm install, npm run build, npm test, npm run typecheck, npm run lint, npm run format.
  • Tests live under tests/ and mirror the structure of src/.
  • For behavior changes, prefer targeted tests near the touched module before widening scope.

Conventions

  • Link to existing docs instead of copying them: see README.md and CONTRIBUTING.md.
  • Keep example policy filenames and docs consistent with guard-policy.json and the current example layouts.
  • Use isolated temp directories in tests that touch SQLite-backed receipt storage or other shared state.
  • Keep policy validation eager and fail fast when schema loading or rule validation is invalid.

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.