ruleworkflowtrueorfalse
agent-directives
Gives every agent the same baseline rules on scope, reuse, reading order and verification.
looks for
- a new agent or session starting in the repo
- blind repo-wide scans
- new dependencies added without a check
- "done" claimed without running checks
outputs
- → consistent agent behavior across sessions and tools
drawing flowchart…
SKILL.md
Agent directives
Boundaries
Respect the architecture's seams. Examples:
- Desktop shells: main/renderer talk over IPC only.
- Servers: routes → controllers → services → data. No skipping layers.
- UI frameworks: no side effects outside effects/lifecycle hooks.
1. Reuse before adding
- Search for an existing utility before writing one.
- Priority: standard library > existing dependency > new dependency
(see
package-choice).
2. Read before grep
- Read
{{DOCS_DIR}}and the folder'sAGENTS.md/CLAUDE.mdfirst. - Then targeted searches with file globs.
- Never blind-scan the whole tree.
3. Plan, then build
- Plan → approve → implement → verify → commit.
- Tests first where it pays: failing test → implement → green.
4. Verify before done
- Run the module's check after every change.
- Typecheck / static analysis must be clean.
- A check you could not run is reported as not run, never as passing.
5. Never
- Put secrets, tokens or customer data in code, docs or logs.
- Edit generated files by hand; regenerate them.
- Leave the work order's scope without saying so.
Customize for your project
| Module | Stack | Verify command |
|---|---|---|
{{MODULE}} | {{STACK}} | {{VERIFY_COMMAND}} |
Add your hard out-of-scope list (things the product deliberately never does).
pairs with
- ruletrueorfalse
agent-team
Routes each ask to one owning role, then enforces work order → specialist → verify → handoff.
- a new task with no clear owner
- work that touches more than one module or repo
- who should do this?
Claude · Codex · ChatGPT - personatrueorfalse
engineer-mindset
Applies a clarify → smallest change → verify → explain loop so changes are small, correct and honest.
- a vague or underspecified request
- urge to refactor, generalize or add a dependency
- a fix that touches many files
Claude · Codex · ChatGPT - skilltrueorfalse
package-choice
Runs a dependency decision tree and recommends stdlib, an existing dep, a default pick or a small local function.
- a new entry in package.json / requirements / Cargo.toml
- two libraries that overlap (two date libs, two HTTP clients)
- a heavy package used for one function
Claude · Codex · ChatGPT