Attach at agent launch
Use for persistent role doctrine: the architect, engineer, and most reviewers explicitly list rails-principles in frontmatter.
Primitive 02 / Skill
A skill is a named package of operating knowledge. It gives the right agents the same rules, vocabulary, procedure, and output contract without copying that context into every role.
reusable policy attached to a role or loaded when a trigger matches
Inspect the real scope-capture skill to see how a rule becomes a reusable system asset.
01 / The boundary
It does not own a pipeline stage, maintain workflow state, or decide when the team advances. It equips a role to handle one recurring situation consistently.
If the content answers “who owns this work?”, it belongs in an agent. If it answers “how should any qualified owner handle this recurring situation?”, it belongs in a skill.
02 / Progressive disclosure
Some skills are declared dependencies because a role needs them on every run. Situational skills can remain discoverable by metadata and load only after a trigger matches.
Use for persistent role doctrine: the architect, engineer, and most reviewers explicitly list rails-principles in frontmatter.
Use for situational behavior. Keep its description discoverable; load the procedure only when the described condition appears.
skill catalog → name + description
The system can scan compact descriptions to match a situation without placing every policy, schema, and example into the model’s working context.
scope-capture — When to name adjacent work, choose its GitHub label, and hand it off without expanding scope.“Load every skill at startup” converts a reusable knowledge system back into one enormous prompt. Retrieval has disappeared; token cost and instruction conflict return.
03 / Three useful forms
The reference implementation separates shared engineering policy, artifact schemas, and workflow safeguards. Each can evolve without rewriting the agents that consume it.
rails-principlesA shared engineering rulebook used by the architect, engineer, and reviewers.
architect-spec-formatFourteen required sections give the architect a writing contract and the orchestrator a validation contract.
scope-captureA cross-role response to adjacent work: preserve the idea without expanding the feature.
The reference implementation ships eight skills in total. These three are one example each of why a form exists — the full set:
rails-principlesDomain policyRails-first design, naming, concerns, dependency discipline — shared by architect, engineer, and reviewers.
design-systemDomain policyThis project's CSS framework, visual grammar, and component classes — read before designing or reviewing views.
architect-spec-formatArtifact schemaThe architect's 14-section spec format — the shared definition of “complete” for engineer and orchestrator alike.
discovery-brief-formatArtifact schemaThe handoff contract between discovery and architect: what a complete brief must contain.
product-brief-formatArtifact schemaThe fixed-section contract for a whole-product brief, read cold by other teams' discovery agents.
scope-captureWorkflow safeguardName adjacent work without building it or losing it — needs-discovery, tech-debt, or bug.
agent-logTooling referenceCLI reference for bin/agent-log: run lifecycle, decision and event logging, backed by db/agent_log.sqlite3.
github-cliTooling referencegh CLI reference: routes features to the project board, bugs to labeled issues, isolates work in a worktree.
04 / Reuse graph
Copying rules into agents feels simpler once. A shared skill becomes more valuable on every revision because one policy change reaches every consumer.
05 / Enforcement
Deterministic
Probabilistic
A checklist can guide the agent. A validator should enforce every checklist item that can be tested without interpretation.
06 / Failure modes
Rails architecture guidance.Use when designing, implementing, or reviewing Rails application code.The catalog needs a recognition rule, not a filing label.
Architect rulebook v3
Engineer rulebook v2skills: [rails-principles]Duplication turns policy evolution into drift.
Every reviewer files its own GitHub issue.Reviewers tag reports; orchestrator sweeps once.A skill may coordinate behavior without granting ownership.
07 / Portable template
Keep the main file navigational. Move long references, scripts, or assets behind explicit routes only when they reduce repetition or enable deterministic work.
Inspect the source skills---
name: <skill-name>
description: Use when <observable trigger>;
provides <one reusable capability>.
---
# <Skill name>
## Single responsibility
This skill defines <one policy or procedure>.
It does not own <neighbor responsibility>.
## Trigger
Use this when <recognizable situation>.
Do not use it when <near miss>.
## Procedure
1. Inspect <evidence>.
2. Apply <decision rule>.
3. Produce <bounded result>.
## Deterministic contract
- Required path: <address>
- Allowed values: <enum>
- Validate with: <script or check>
## Handoff
Record <evidence and uncertainty> for
<next owner>. Do not mutate <shared state>.
## Examples
- Positive: <clear match>
- Negative: <clear non-match>
- Edge: <ambiguous case and resolution>