dev-standards
Skill88 starsChanged 9 months agoMITView on GitHub
Enforces development workflows, quality gates, coding standards, and release processes for the deterministic-agent-control-protocol project. Use when implementing features, fixing bugs, refactoring architecture, adding integrations, updating policies, writing tests, updating documentation, or preparing releases.
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- ai-enhanced-engineer/aiee-skillstheir own version, first seen Nov 1, 2026
- icefrag/nbltheir own version, first seen Sep 18, 2026
- icefrag/nbl-superpowerstheir own version, first seen Sep 18, 2026
- petekofod/claude-skillstheir own version, first seen Jun 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- icefrag/nbl★ 17same name
- icefrag/nbl-superpowers★ 17same name
- ai-enhanced-engineer/aiee-skills★ 4same name
- petekofod/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 18 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
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
- Distinctive: line 12
Before starting work, classify the change:
- Distinctive: line 113
After ANY source code change, run this check:
- Very specific: line 115
Search examples/ and integrations/ for references to changed types, tools, config keys, or API methods
- Distinctive: line 116
Update any affected policy files or config templates
- Distinctive: line 117
Update any affected integration READMEs if API/CLI usage changed
- Distinctive: line 118
Verify all example policies still conform to the current schema
- Very specific: line 155
If RELEASE_NOTES.md does not exist, create it using this structure:
- Very specific: line 174
Structure: test files mirror src/ under tests/ with .test.ts suffix
- Distinctive: line 175
Coverage: every public function/class must have corresponding tests
- Distinctive: line 176
Determinism: no reliance on external services, network calls, or timing
- Distinctive: line 179
All tests must pass before any commit
- Distinctive: line 198
New components: must fit into the existing layer model.
- Very specific: line 200
Policy evaluation: always goes through PolicyEvaluator -- never bypass it for governance decisions
- Distinctive: line 206
All file operations must respect policy scopes (path glob patterns)
- Very specific: line 210
Dependency hygiene: prefer well-maintained packages with minimal transitive dependencies.
- Distinctive: line 211
Input validation: all public API surfaces validate input using Zod schemas before processing
- Distinctive: line 212
No credential leakage: never log, return, or store credentials, tokens, or secrets in evidence records
- Distinctive: line 213
Path traversal prevention: all file paths must be resolved and validated against allowed scopes before access
- Distinctive: line 217
When implementing any change, follow this iterative approach.
- Very specific: line 254
Use collapsible <details> sections for longer demos
- Distinctive: line 273
All architecture diagrams use Mermaid (renders natively on GitHub)
- Very specific: line 276
Keep diagrams current -- any structural change to src/ must be reflected
- Distinctive: line 277
Use clear, descriptive node labels (not abbreviations)
- Distinctive: line 278
Do NOT use inline styles or colors -- let GitHub theme handle rendering
- Distinctive: line 293
Every policy must have ALL sections: version, name, description, capabilities, limits, gates, evidence, forbidden, session, remediation
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Development Standards
This skill defines the mandatory workflows, quality gates, and coding standards for all changes to the deterministic-agent-control-protocol project.
Change Type Classification
Before starting work, classify the change:
| Type | Unit Tests | README Update | Architecture Diagrams | Release Notes | PR Required |
| New Feature | Required (must pass) | Yes | If related | Yes | No |
| Bug Fix | Required (cover the bug) | No | No | Yes | No |
| Re-architecture | Required (all affected) | Yes (full update) | Yes (mandatory) | Yes (full detail) | Yes (mandatory) |
| New Integration | Follow integration pattern | Yes (root + dedicated) | If related | Yes | No |
| New Policy | N/A | Yes (built-in policies section) | No | Yes | No |
Workflow Checklists
New Feature
Task Progress:
- [ ] 1. Create/update source files in src/
- [ ] 2. Add unit tests in tests/ mirroring src/ structure
(e.g., src/engine/foo.ts -> tests/engine/foo.test.ts)
- [ ] 3. Run `npm test` -- ALL tests must pass
- [ ] 4. Run `npm run lint` -- no type errors
- [ ] 5. Update README.md (feature description, usage, new CLI commands/API methods)
- [ ] 6. Update Mermaid diagrams in README.md if architecture or data flow changed
- [ ] 7. Add entry to RELEASE_NOTES.md under current unreleased version
- [ ] 8. Run impact check on examples/ and integrations/
- [ ] 9. Generate commit messageBug Fix
Task Progress:
- [ ] 1. Write a FAILING unit test that reproduces the bug
- [ ] 2. Fix the bug in source code
- [ ] 3. Run `npm test` -- confirm the new test passes with all existing tests
- [ ] 4. Run `npm run lint` -- no type errors
- [ ] 5. Add entry to RELEASE_NOTES.md (Fixed section)
- [ ] 6. NO README update needed (unless bug was in documented behavior)
- [ ] 7. Run impact check on examples/ and integrations/
- [ ] 8. Generate commit messageRe-architecture
Task Progress:
- [ ] 1. Document current design (reference existing Mermaid diagrams in README.md)
- [ ] 2. Propose new design with updated Mermaid diagrams
- [ ] 3. Implement changes incrementally
- [ ] 4. Update all affected unit tests; add new ones for new components
- [ ] 5. Run `npm test` -- ALL tests must pass
- [ ] 6. Run `npm run lint` -- no type errors
- [ ] 7. Update README.md architecture section, component diagram, and data flow diagram
- [ ] 8. Write detailed RELEASE_NOTES.md entry (what changed, why, before/after, benefits)
- [ ] 9. Run impact check on examples/ and integrations/
- [ ] 10. Create PR with body covering:
- Previous design summary
- New design summary
- Rationale for the change
- Migration notes (if any)
- Benefits
- How it differs from the previous designNew Integration / Agent Support
Task Progress:
- [ ] 1. Create integrations/<agent-name>/ directory with:
- README.md (follow integrations/cursor/README.md structure)
- policy.yaml
- Config templates (MCP config, governance rules, etc.)
- test-sandbox/hello.txt
- [ ] 2. Integration README must include:
- Architecture diagram (ASCII or Mermaid)
- Governance model (Soft / Semi-Hard / Hard)
- Quick setup (npx det-acp init <name>) + manual setup in <details>
- Quick test section with expected results table
- Files table listing every file in the folder
- [ ] 3. Update root README.md agent integrations table
- [ ] 4. Add example policy in examples/ if new use case
- [ ] 5. Add release notes entry
- [ ] 6. Generate commit messageNew Built-in Policy
Task Progress:
- [ ] 1. Identify use case and target persona
- [ ] 2. Research industry standards for the domain
- [ ] 3. Draft policy with ALL required sections (see policy-library-reference.md)
- [ ] 4. Review against quality checklist in policy-library-reference.md
- [ ] 5. Add policy to examples/
- [ ] 6. Update README.md built-in policies section
- [ ] 7. Add release notes entry
- [ ] 8. Generate commit messageSource Code Impact Check
After ANY source code change, run this check:
- Search
examples/andintegrations/for references to changed types, tools, config keys, or API methods - Update any affected policy files or config templates
- Update any affected integration READMEs if API/CLI usage changed
- Verify all example policies still conform to the current schema
Commit Message Convention
Follow Conventional Commits:
<type>(<scope>): <short summary>
<optional body with details>Types: feat, fix, refactor, test, docs, chore, perf, ci
Scopes: engine, policy, ledger, proxy, tools, cli, server, rollback, integration/<name>, examples
Examples:
feat(engine): add rate limiting per tool type
Add per-tool rate limits to PolicyEvaluator, enabling fine-grained
throttling beyond the session-level max_per_minute.fix(ledger): correct hash chain validation on empty sessions
The integrity check threw on sessions with zero actions. Now returns
valid for empty ledgers with only start/terminate entries.Version Control and Release Notes
- Semver: MAJOR (breaking/re-architecture), MINOR (new features/integrations), PATCH (bug fixes)
- RELEASE_NOTES.md at project root with sections: Added, Changed, Fixed, Breaking Changes
- Version in
package.jsonmust match the latest release notes version - If
RELEASE_NOTES.mddoes not exist, create it using this structure:
# Release Notes
## [Unreleased]
### Added
### Changed
### Fixed
### Breaking Changes
## [0.2.0] - YYYY-MM-DD
(initial tracked release)Testing Standards
- Framework: Vitest (configured in
vitest.config.ts) - Structure: test files mirror
src/undertests/with.test.tssuffix - Coverage: every public function/class must have corresponding tests
- Determinism: no reliance on external services, network calls, or timing
- Commands:
npm test(run all),npm run test:watch(watch mode) - Type safety:
npm run lint(TypeScript strict type check) - All tests must pass before any commit
Coding Standards
- TypeScript strict mode --
"strict": truein tsconfig.json; noanytypes unless explicitly justified with a comment - ESM modules -- project is
"type": "module"; useimport/export, neverrequire() - Zod for validation -- all external input schemas use Zod (pattern in
src/policy/schema.ts) - Error handling -- use typed errors; never swallow exceptions silently; always log or propagate
- Naming conventions:
- PascalCase: classes, types, interfaces (e.g.,
AgentGateway,PolicyEvaluator) - camelCase: functions, variables, methods (e.g.,
evaluateAction,sessionId) - kebab-case: file names (e.g.,
action-registry.ts,mcp-proxy.ts)
- PascalCase: classes, types, interfaces (e.g.,
- Single responsibility -- each file exports one primary class/function; keep files focused
- No secrets in code -- never hardcode API keys, tokens, or credentials; use environment variables
- Imports -- group imports: external packages first, then internal modules, separated by blank line
Architecture Standards
- Layer separation: Integration Layer -> Core Engine -> Infrastructure (see README Mermaid diagram)
- New components must fit into the existing layer model; if they don't, propose a re-architecture
- Tool adapters extend
ToolAdapterbase class insrc/tools/base.ts - Policy evaluation always goes through
PolicyEvaluator-- never bypass it for governance decisions - Session management goes through
SessionManager-- never manipulate session state directly - Ledger writes go through
EvidenceLedger-- never write audit records directly to disk
Security Standards
- All file operations must respect policy scopes (path glob patterns)
- Forbidden patterns in policies must be checked before any action execution
- Evidence ledger integrity (SHA-256 hash chain) must never be compromised
- No dynamic code execution: no
eval(),Function(), or dynamicimport()from user input - Dependency hygiene: prefer well-maintained packages with minimal transitive dependencies; audit with
npm audit - Input validation: all public API surfaces validate input using Zod schemas before processing
- No credential leakage: never log, return, or store credentials, tokens, or secrets in evidence records
- Path traversal prevention: all file paths must be resolved and validated against allowed scopes before access
Iterative Solution Design
When implementing any change, follow this iterative approach. Do NOT jump straight to coding.
- Understand -- read existing code, tests, and related documentation before making changes
- Propose -- outline the approach; consider at least 2 alternatives for non-trivial changes
- Evaluate -- compare alternatives on: simplicity, security, performance, consistency with existing patterns
- Implement -- make focused, minimal changes; prefer small incremental steps over large rewrites
- Validate -- run tests (
npm test) and type check (npm run lint) after each meaningful change - Review -- check for edge cases, security implications, and consistency with existing patterns
- Refine -- if issues found, iterate from step 1 rather than patching over problems
For complex changes, prefer multiple small PRs over one large PR.
Root README Standards
The root README.md must follow this open-source-ready structure:
Header (top of file)
- H1 project title
- Shield badges (shields.io): Stars, Forks, Contributors, License, npm version, language badges
- GitHub repo path for badges:
elliot35/deterministic-agent-control-protocol - One-line highlight summary
- Short project tagline
Badge template
[](https://github.com/elliot35/deterministic-agent-control-protocol/stargazers)
[](https://github.com/elliot35/deterministic-agent-control-protocol/network/members)
[](https://github.com/elliot35/deterministic-agent-control-protocol/graphs/contributors)
[](LICENSE)
[](https://www.npmjs.com/package/@det-acp/core)

Visual demos
- Hero screenshot or GIF demonstrating governance flow (evaluate, deny, gate)
- Use collapsible
<details>sections for longer demos
Required sections (in order)
- Badges + tagline
- How It Works (brief, with Mermaid diagram)
- Core Principles
- Quick Start (install, init, basic usage)
- Agent Integrations (table with links)
- Built-in Policies (table linking to examples/)
- Other Integration Modes (MCP Proxy, Shell Proxy, HTTP API, CLI)
- Architecture (Mermaid component diagram + sequence diagram)
- Policy DSL reference
- Built-in Tool Adapters (table)
- Custom Tool Adapters (code example)
- Development (build, test, lint)
- Contributing
- License
Mermaid diagram standards
- All architecture diagrams use Mermaid (renders natively on GitHub)
- Component architecture: show all layers (Integration, Core Engine, Infrastructure, Tool Adapters)
- Action evaluation flow: sequence diagram showing full request lifecycle
- Keep diagrams current -- any structural change to
src/must be reflected - Use clear, descriptive node labels (not abbreviations)
- Do NOT use inline styles or colors -- let GitHub theme handle rendering
Integration README standards
Each integrations/<name>/README.md must include:
- Architecture diagram (ASCII or Mermaid)
- Governance model explanation (Soft / Semi-Hard / Hard)
- Quick setup (
npx det-acp init <name>) + manual setup in<details> - Quick test section with expected results table
- Files table listing every file in the folder
Built-in Policy Library
The examples/ folder is the built-in policy library -- production-ready policies users can adopt out of the box. For detailed standards, target policy list, quality checklist, and YAML template, see policy-library-reference.md.
Key rules:
- Every policy must have ALL sections: version, name, description, capabilities, limits, gates, evidence, forbidden, session, remediation
- Security-first: always include forbidden patterns for .env, credentials, secrets, and domain-specific dangerous commands
- Human gates on all destructive actions (delete, deploy, production modify)
- Escalation rules and rate limiting are mandatory
- Continuously expand coverage for new industry use cases
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.

