From alfred-agent
Apply baseline-vs-delta discipline + ADR conventions when creating, updating, or auditing project documentation. Use when about to write/update files in `docs/` (especially baseline, decisions/, or adr/), when about to merge a PR that changes behavior, when capturing an architectural decision, or when auditing a doc for drift. Operationalizes the cross-project strategy at alfred-platform/docs/baseline/platform/documentation-strategy.md.
How this skill is triggered — by the user, by Claude, or both
Slash command
/alfred-agent:documentationThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Authoritative reference: `alfred-platform/docs/baseline/platform/documentation-strategy.md`. Read it once if you haven't recently. This skill operationalizes that strategy at the moment of writing or auditing a doc.
Authoritative reference: alfred-platform/docs/baseline/platform/documentation-strategy.md. Read it once if you haven't recently. This skill operationalizes that strategy at the moment of writing or auditing a doc.
/alfred-agent:documentation-audit instead of this skillIf two apply (e.g. a PR ships a feature + needs an ADR), do them in order: ADR first (Step 2), then baseline updates (Step 1), then quality-gate check (Step 4).
Before writing a single line, ask: does this content describe what's on main right now, or what we plan/want?
If "plan/want" — STOP. This is delta. It belongs in:
Speculative-content patterns to refuse:
## Future Improvements, ## Roadmap, ## Implementation Phases, ## Phase N (planned), ## TODO, ## Coming soon, ## Resolved Questions (process residue), ## ECR Decisions Log (decisions belong in ADRs)If the content describes shipped behavior, place it correctly:
requirements.md or docs/baseline/functional/design.md or docs/baseline/technical/The three dimensions are non-overlapping. A new feature usually touches all three; if you only update one, you've left the others in drift.
Template: alfred-platform/docs/templates/adr.md. Canonical examples: alfred-platform/docs/decisions/.
Mandatory checks before writing:
templatePatch over inline structural directives" — NOT "AppSet template improvements" or "Project Lifecycle v2".Proposed, promote to Accepted when the code lands. Once Accepted, the body is immutable.Amending an existing ADR: never edit an Accepted ADR in place. Write a new ADR that supersedes it. Cross-link both directions:
Status: Accepted (supersedes ADR-NNNN)Status: Superseded by ADR-NNNN (header only — body stays unchanged as historical record)Where the file lives:
alfred-platform/docs/decisions/<service>/docs/adr/ or <service>/docs/decisions/Length sanity check: well-scoped ADRs are 30-60 lines. If yours is past 100, you probably packed multiple decisions or your "Context" is bleeding into specification (which belongs in technical baseline, not in an ADR).
Open the doc. Run grep / read through and flag each occurrence of the patterns below. For each flag, propose the fix.
| Pattern | Fix |
|---|---|
## Future, ## Roadmap, ## Phase, ## TODO, ## Coming, "we will", "we plan", "in v" | Move to GH issue / epic. Delete from baseline. |
Sections named ## Decisions, ## Decision Log, ## ECR Decisions inside functional/technical baseline files | Promote each entry to its own ADR in decisions/ or adr/. Delete the section. |
Amended <date> line in an Accepted ADR header | Split: revert ADR to its original Accepted body, write a new ADR superseding it with the amendment. |
Multiple ### 1., ### 2., ### 3. under a single ## Decisions heading in one ADR | Split into N single-decision ADRs. The original becomes a Superseded index. |
ADR titled after a feature/version (Project X v2, Auth Module) | Rename around the actual decision. If multiple decisions share the title, split first. |
## Resolved Questions sections | Either delete (resolved → the design itself reflects the answer, no Q&A frame needed) or promote the resolution to an ADR if non-obvious to a future reader. |
If the doc is large, use grep to surface candidates fast:
grep -nE '^## (Future|Roadmap|Phase|TODO|Coming|Resolved Questions|Decisions Log|ECR Decisions|Implementation Phases)' <file>
grep -nE 'we (will|plan)|in v[0-9]|coming soon|TODO|FIXME' <file>
When about to merge a PR that changes behavior, verify in the same PR:
If any of the three is missing — block the merge. The strategy doc explicitly says no exceptions to the PR quality gate. Drift starts here.
Exception: pure refactor with zero behavior change. State that explicitly in the PR description so reviewers know the absence of doc updates is intentional.
alfred-platform/docs/baseline/platform/documentation-strategy.mdalfred-platform/docs/templates/adr.mdalfred-platform/docs/decisions/documentation-audit (project-wide, retrospective audit against the production release — use this after a release or quarterly), design (for TOBE design docs on a feature branch — that's delta), git-commit (don't commit doc-less PRs)npx claudepluginhub screenfields/alfred-cc-tools --plugin alfred-agentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.