actionfence
Copilot instructions9 starsChanged 7 months agoMITView on GitHub
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
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
- Distinctive: line 5
Use TypeScript with the existing strict compiler and ESLint setup.
- Very specific: line 6
Prefer import type for type-only imports and add explicit return types to exported functions.
- Very specific: line 7
Follow the local patterns in src/ and tests/.
- Very specific: line 8
Use readonly for values and fields that are not meant to change.
- Very specific: line 12
Keep core policy, identity, rate-limit, spend, and receipt logic in src/core/.
- Very specific: line 13
Keep transport adapters thin in src/middleware/.
- Very specific: line 14
Keep CLI behavior in src/cli/ and public exports centralized in src/index.ts.
- Very specific: line 15
Treat schemas/guard-policy.schema.json as the source of truth for policy shape.
- Very specific: line 20
Use Node.js 20+ and npm 10+.
- Very specific: line 28
Keep example policy filenames and docs consistent with guard-policy.json and the current example layouts.
- Distinctive: line 29
Use isolated temp directories in tests that touch SQLite-backed receipt storage or other shared state.
- Distinctive: line 30
Keep policy validation eager and fail fast when schema loading or rule validation is invalid.
≈ “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.
Files
ActionFence Project Guidelines
Code Style
- Use TypeScript with the existing strict compiler and ESLint setup.
- Prefer
import typefor type-only imports and add explicit return types to exported functions. - Follow the local patterns in
src/andtests/; keep formatting aligned with Prettier. - Use
readonlyfor 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 insrc/middleware/engine.ts. - Keep CLI behavior in
src/cli/and public exports centralized insrc/index.ts. - Treat
schemas/guard-policy.schema.jsonas 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 ofsrc/. - 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.jsonand 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.
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.

