doc-diagnostic
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when deciding whether a doc should exist, where it belongs, whether something is really an ADR, or whether an architectural decision…
от JosiahSiegel★ 67 звёзд на GitHubОб этом скилле
doc-diagnostic
The diagnostic and canon skill. Owns three things:
- The alternatives catalog -- what to write when a user impulse should not be an ADR. Full catalog:
references/alternatives-catalog.md. - The ADR canon -- templates, status lifecycle, numbering, required fields, immutability rules. (In this file.)
- The audit procedure -- folder-level KEEP / MERGE / REWRITE / DELETE / MOVE / BACKFILL-ADR classification used by
/doc-audit. Full procedure:references/audit-procedure.md.
Use this skill when routing a doc request, picking a template, naming a status, or auditing an existing doc set. The drafting / discovery / critique skills consume the canon defined here; they do not redefine it.
The four-question diagnostic (run before recommending any doc)
The canonical four-question check. The doc-expert agent and every other skill in this plugin reference this section rather than restate it. Before agreeing to produce any document, run all four. If any answer is "no" or "unclear," the doc should not be written yet.
- Purpose -- one sentence stating what question this doc answers for a reader who already knows the system exists.
- Audience -- a specific reader in a specific situation. ("Future maintainers" is not an audience; "an on-call engineer at 03:00 with a P1" is.)
- Owner -- a named human accountable for keeping it true. No owner → drift within months.
- Update trigger -- a concrete event that causes the doc to be revisited or superseded. No trigger → fossil-in-waiting.
If all four are answerable, proceed to the "is this an ADR?" diagnostic in the doc-expert agent body.
Architecturally Significant Requirement (ASR) -- canonical definition
An ADR captures a single architectural decision and its rationale. An architectural decision addresses a requirement that is architecturally significant -- an ASR with "a measurable effect on the architecture and quality of a software and/or hardware system." If the change is not architecturally significant, an ADR is the wrong tool -- route via the alternatives catalog.
Beyond architecture -- "decision records" more broadly
The same form generalizes to product, business, policy, security-program, and process decisions -- anywhere a justified, hard-to-reverse choice deserves a rationale that outlives its authors. Convention: rename docs/adr/ to docs/decisions/ and relax the ASR test to "is this decision worth recording at all?" Templates, lifecycle, numbering, immutability, and Relationships-mirror rules hold unchanged. Umbrella: github.com/joelparkerhenderson/architecture-decision-record; see also references/adr-template-catalog.md.
The alternatives catalog (when NOT to write an ADR)
When the diagnostic says "not an ADR," route via references/alternatives-catalog.md -- it maps every common impulse to the correct doc form, explains why an ADR would be wrong, and names the Diátaxis four (tutorial / how-to / reference / explanation). ADRs are not Diátaxis explanations. Load it whenever the user debates "ADR vs RFC vs design doc vs runbook vs how-to" or asks "where should I document X?"
ADR canon
Template selection
Pick the smallest template that captures the decision honestly:
| Template | Use when... | Don't use when... |
|---|---|---|
| Nygard / MADR light | Decision is simple, alternatives obvious, three to five fields suffice (Context, Decision, Consequences). | You need to compare 3+ alternatives on multiple criteria. |
| MADR (full) | Multiple options need side-by-side analysis; decision drivers matter; Confirmation/Validation field needed; traceability matters. | The decision is trivial -- full MADR pads it. |
| Y-statement | One sentence: "In the context of X, facing Y, we decided Z, to achieve W, accepting that V." Good for compact log entries or executive summaries. | The decision needs structured fields. |
| arc42 / Tyree-Akerman / Business case | The project already uses one. | Starting fresh -- heavier than most teams need. |
Pick once per project; do not mix templates within a single log unless explicitly migrating.
Canonical status lifecycle
proposed ----accepted----> accepted ----changed----> superseded
|
+--no-longer-applies--> deprecated
Explorer-compatible status values are lowercase proposed, accepted, deprecated, superseded. Do not overload status with rfc, rejected, backfilled, or explanatory strings.
- proposed -- under discussion, including ADRs serving as RFCs
Установить doc-diagnostic в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл doc-diagnostic?
This skill should be used when deciding whether a doc should exist, where it belongs, whether something is really an ADR, or whether an architectural decision is missing from the record. PROACTIVELY activate on "should this be an ADR?", "where should I document X?", "is this architecturally significant?", "ADR vs RFC vs design doc vs runbook", "Diátaxis", "audit docs folder", "clean up the decision log", "doc drift", "doc governance", "ADR template selection", "Nygard vs MADR vs Y-statement", "missing ADR", "missing decision record", "undocumented architecture", "implicit decision", "historical documentation clutter", "inherited repo", "large legacy repo", "architecture archaeology", "code archaeology", "scan for decision records", "find decisions not captured in ADRs." Provides: doc placement diagnostic, alternatives catalog, ADR canon, folder audit procedure, and BACKFILL-ADR candidate detection.
Как установить скилл doc-diagnostic?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doc-diagnostic запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic