/agent-team:derive-briefsfrom agent-team
Surveys an existing codebase to draft docs/ briefs (PRD, system design, ADRs, ubiquitous language) marking each statement as derived, confirmed, or not recoverable. For brownfield projects with empty onboarding stubs.
Ships in agent-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Onboarding scaffolds the roster in two kinds: four structure-only stubs (prd.md, system-design.md, ubiquitous-language.md, adr/), and three principles briefs that arrive filled with the harness's default policy. On a greenfield project the owner writes the stubs as the work proceeds. On a brownfield project — a codebase adopted before the harness — that content already exists, encoded in the source rather than in prose. This skill reads it out.
It sits between two neighbors and duplicates neither. doctor checks the briefs are structurally present; audit-docs judges whether written briefs hold up. Both presuppose content. This skill produces the first draft that gives them something to check.
The output is a draft for the owner to correct, never a ratified brief. What it derives is what the code does. What the code means — whether a behavior is a deliberate requirement, an accident, or a shipped bug — the source cannot say, and this skill never guesses.
Observed behavior is not an intended requirement. A codebase records decisions without recording their reasons. Prose that presents a derived observation as a settled intention manufactures institutional memory, and a later reader cannot tell the invention from the record.
Every statement therefore carries one of three marks, stated in the document rather than implied:
| Mark | Means | Written as |
|---|---|---|
| Derived | Read off the code; true of the implementation, silent on intent | > Provenance: derived — <what was surveyed>. at the top of the section or document |
| Confirmed | A human answered a question about it | (confirmed <YYYY-MM-DD>) inline, after the statement |
| Not recoverable | The reasoning predates the repository or was never written | > Provenance: not recoverable. in place of a reconstruction |
The three forms are fixed tokens, never paraphrased: an editor, a reviewer, or a future gate recognizes a mark by searching for it. A section that records its reasoning as unrecoverable is a finished section. Filling it with a plausible reconstruction is the failure this skill exists to prevent. These marks describe how a statement is known; they are unrelated to the <!-- harness: <date> --> line every scaffolded brief already carries, which holds the harness release date.
Two required sections have no answer in the source, and absence is not an answer either. A capability the code lacks may be unbuilt, unfinished, or deliberately excluded, and no amount of reading separates those.
prd.md). Derive a Goal only where the boundary surface states one — a published API, a documented promise. Otherwise both sections record that the intent is not recoverable, and the question goes to the owner.Work outside in. The boundary surface carries intent; the internals carry mechanism.
docs/adr/README.md index.prd.md — narrative requirements derived from the boundary surface only, in prd-authoring's format. Mechanism stays out; it belongs in the design brief. Behavior that contradicts another requirement, or serves none, is recorded as a defect under a ## Known Defects section rather than written up as intent. A whole-codebase survey can approach the doctor's PRD word budget (the prd_max_words override): requirements earn their space, restated mechanism does not.system-design.md — the architecture as it stands: structure, contracts and the requirements they serve, persistence, the security posture wherever the project declares it. A contract serving no requirement is recorded as serving none, never linked to a requirement invented to justify it. Absences are recorded as observations, never as approval.ubiquitous-language.md — the domain terms the code already uses, including collisions, recorded as found.adr/ — one record per structural decision the code evidences. The Decision section is evidenced; Context and Options Considered follow the rule above.Authored content is not the survey's to rewrite — that is the channel rule. It holds for the three filled principles briefs, and for any stub an owner has started. A prior survey draft counts as authored content on a re-run, and a confirmed statement is never re-derived. Derive against what is written, record each divergence as a gap or an open question, and propose every edit as a consented diff.
A survey finds three things the briefs must keep apart:
## Known Defects section, name what it breaches, and leave it in the code. This skill documents; it does not fix.Each is cheap to record now and expensive to reconstruct later, once the survey's context is gone.
python3 scripts/doctor.py check. It validates structure, not emptiness. Materializing a missing roster file is the doctor skill's remedy, or a re-run of /materialize — never this skill's.scripts/layout.toml names the production roots once the project has filled them; verify them against the tree. A survey that finds no production code stops here and says so.document-writing standards. prd-authoring owns the PRD's format; adr-template owns each ADR's.## Open Questions section rather than scattering them./audit-docs. The doctor gates structure; the judgment pass reviews what was drafted. A survey draft is a first draft, and it is reviewed as one.This skill writes docs/ and nothing else. It does not change source, schemas, or configuration — including defects it finds. A defect it records becomes a slice the pipeline runs later, against the requirement the survey wrote. The survey seeds the briefs before the pipeline owns them; from the first slice on, every edit to a roster file routes through its owning agent as a consented diff.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub woditschka/agentic-coding-reference --plugin agent-team-generic-copilot26 skills in this plugin
/adr-templateArchitecture Decision Record format, naming conventions, and when to create ADRs. Load when making or documenting architectural decisions./audit-agentsAudit the agentic configuration for consistency, coherence, and conciseness. Load when modifying agent definitions, skills, or pipeline structure, or to verify cross-tool parity./audit-docsAudit the project's docs/ briefs against the high bar — each document on its own (principle form, enforceability) and in combination (cross-document coherence, contradictions, brief-vs-data agreement). Runs the doctor (deterministic structural gate) first, then the advisory judgment review, and reports both. Load when you want to check the docs hold up — at onboarding, after a harness upgrade, or on request. The judgment half is advisory: it judges form, never philosophical direction./change-gradingGrade a passing change for how much human attention it deserves before merge. Load when running the change-grader after the reviewer roster approves. Holds the full grading protocol: the five facets, worst-facet aggregation, the facets-rationale-verdict order, persistence, and scope/non-goals./code-quality-gateBuild, test, format, and lint requirements that must pass before code review. Load when checking implementation completeness or running the quality gate./code-quality-reviewCode-quality checklist — language-agnostic principles, design placement and workload fit against the project's recorded briefs, and the per-section slots a stack fills in. Load when conducting code quality reviews.6 plugins in one repository ship this exact skill · first indexed Aug 4, 2026
Other plugins' skills for the same job