align
ALWAYS invoke this skill when reviewing, auditing, or checking spec file conformance. NEVER check spec conformance without this skill.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- align
- description
- ALWAYS invoke this skill when reviewing, auditing, or checking spec file conformance. NEVER check spec conformance without this skill.
- allowed-tools
- Read, Glob, Grep, {{! tool('use_skill') !}}
- argument-hint
- [file, directory, or changed-file list]
03 SKILL.md 正文
<objective>
A factual report of Product Tree files' non-conformances to templates, atemporal voice, and content-placement rules.
</objective>
<principles>
- FACTS AND REQUIRED REWRITES ONLY — Report what violates which rule. Include the atemporal rewrite required for each temporal-language finding; suggest no other fix. Never rate severity. Never say "should", "consider", or "recommend."
- RULES FROM UNDERSTANDING — All conformance rules live in the understanding skill's inline foundation and templates. This skill owns zero rules. Read them at check time.
- STRICT CLASSIFICATION — Only the node kinds and file forms live
/understand<identity_and_kinds>and<files_in_a_node>recognize, with the prior forms a tree authored under a 3.x methodology version still carries, are recognized. Anything else is "unrecognized." - COMPLETE SCAN — Check every
.mdfile in scope. Do not skip files. Do not sample. - FOUNDATION REQUIRED — The
<PRODUCT_TREE_FOUNDATION>marker must be present. - CHANGESET SCOPE FROM THE SHARED PRIMITIVE — When checking downstream alignment for a branch changeset, consume the supplied changed-file set derived through
/scope-changeset. Do not hand-roll base-ref or git-diff derivation in this skill.
</principles>
<required_references>
Use skill product-tree:understand and use its live inline foundation. Read the conditional templates in full before checking conformance:
- Live
/understand<atemporal_voice>and<decision_to_spec_alignment> - Live
/understand<assertion_types>— the assertion types and their canonical headings - The
artifact-placement.mdreference the live/understand<artifact_placement>section names,<common_misplacements>— a conditional reference, read in full - Live
/understand<files_in_a_node>— the canonical node shape, including the skip targets it declares - Live
/understand<identity_and_kinds>and<product_scope>— the node kinds, their openings, and containment - The canonical templates beneath the
Template rootthe live<PRODUCT_TREE_FOUNDATION>marker records:decisions/decision-name.adr.md,decisions/decision-name.pdr.md,product/product-name.spec.md,nodes/substrate-name.spec.md,nodes/capability-name.spec.md,nodes/domain-name.spec.md,nodes/interface-name.spec.md,nodes/surface-name.spec.md,nodes/variant-name.spec.md, andrecords/node-name.outcome.md; a marker that lacksTemplate rootrequires/understandto run again before any template is read
</required_references>
<file_classification>
Classify each .md file in scope by its filename extension or parent directory suffix:
| Pattern | Classification | Template |
|---|---|---|
*.adr.md |
ADR | decision-name.adr.md |
*.pdr.md |
PDR | decision-name.pdr.md |
*.spec.md at the tree root or inside *.product/ |
Product | product-name.spec.md |
Spec file inside *.substrate/ directory |
Substrate | substrate-name.spec.md |
Spec file inside *.capability/ directory |
Capability | capability-name.spec.md |
Spec file inside *.domain/ directory |
Domain | domain-name.spec.md |
Spec file inside *.interface/ directory |
Interface | interface-name.spec.md |
Spec file inside *.surface/ directory |
Surface | surface-name.spec.md |
Spec file inside *.variant/ directory |
Variant | variant-name.spec.md |
*.outcome.md inside a node directory |
Outcome record | node-name.outcome.md |
*.product.md (prior form) |
Product | product-name.spec.md |
Spec file inside *.enabler/ directory (prior form) |
Enabler | capability-name.spec.md — the same opening |
Spec file inside *.outcome/ directory (prior form) |
Outcome | none — report the hypothesis as belonging in an outcome record |
Any other .md file |
Unrecognized | None |
Spec file means the file whose name matches the directory slug: auth.spec.md inside 10-auth.capability/, or auth.md inside 10-auth.enabler/ in the prior form. Other .md files in the directory are not spec files.
Unrecognized includes directories with suffixes like .feature or .story. These are not Product Tree node kinds. Report the classification failure as a finding.
Files to skip entirely:
{{! file('root_guide', 'claude') !}}and{{! file('root_guide', 'codex') !}}files (agent guides, not specs)- Files inside
tests/directories (test code, not specs) ISSUES.mdfiles, and anyPLAN.mda tree authored under a 3.x version still carries (stale-prone notes, not spec artifacts)- Files inside
spx/local/directory (skill overlays, not spec artifacts) - Files inside an
evals/directory sitting directly under a node directory (the co-located[eval]evidence lane the canonical node shape in live/understand<files_in_a_node>declares, not spec artifacts); anevals/directory anywhere else stays in scope - Files inside a
knowledge/directory sitting directly under a node directory or the product root (knowledge bundles the canonical node shape in live/understand<files_in_a_node>declares, not spec artifacts); aknowledge/directory anywhere else stays in scope
</file_classification>
<conformance_dimensions>
<structural_conformance>
Compare each classified file's ## headings against its template's ## headings.
Report as findings:
- Missing section: Template has
## Purposebut file does not - Name mismatch: File has
## Problemwhere template expects## Purpose - Unrecognized assertion type: Assertion heading not among the types live
/understand<assertion_types>defines
Do NOT report:
- Extra sections beyond the template (specs may have product-specific additions)
- Missing optional sections (templates mark optional sections with "Only include if...")
</structural_conformance>
<ancestor_decision_conformance>
For each classified output-kind spec, including the prior forms, use skill product-tree:contextualize on the spec's canonical full node path and compare the spec against every applicable ADR and PDR in the resulting context. A governing decision wins over the spec.
Report as findings:
- The spec path and incompatible declaration
- The conflicting ADR or PDR's full path and governing rule
- Reference: the full
spx/.../*.adr.mdorspx/.../*.pdr.mdpath
Do NOT report:
- A decision cited only by
ISSUES.mdor another note - A lower-layer test or implementation mismatch as a decision contradiction
</ancestor_decision_conformance>
<language_conformance>
Use the live /understand <atemporal_voice> section. It provides two checking mechanisms:
A. Temporal markers table — The left column lists specific phrases to find. Scan every line for matches.
B. Read-aloud test — "Read any sentence aloud. If it would sound wrong after the work is done, it's temporal." Apply to each non-template sentence.
Report as findings:
- Line number, the temporal text, which rule it violates (specific marker or read-aloud test)
- Reference:
(ref: atemporal_voice)
Do NOT report:
- Template placeholder text (e.g.,
{1-3 sentences: what concern...}) - Content inside code fences
- Content inside HTML comments
</language_conformance>
<placement_conformance>
Read the <common_misplacements> section of /understand references/artifact-placement.md. For each row, check whether the file contains content that belongs elsewhere.
Key signals:
| Signal in file | Wrong location | Correct location |
|---|---|---|
| Architecture choice or technical approach | Spec | ADR |
| Product decision or user guarantee | Spec | PDR |
| A condition only real use settles | Spec, ADR, or PDR | The output node's outcome record |
| Implementation detail (code patterns, APIs) | Spec | Code |
| "How to build it" | Spec | ADR or code |
| Cross-cutting invariant | Child spec | Ancestor spec |
Report as findings:
- File, approximate location, what content was found, where it belongs per the table
- Reference:
(ref: common_misplacements)
</placement_conformance>
<downstream_alignment_conformance>
Use the live /understand <decision_to_spec_alignment> section. For changeset checks, use the exact changed-file set derived through /scope-changeset.
For each changed higher-level declaration — product document, ADR, PDR, or ancestor spec — report a finding when the changed-file set contains neither:
- the first affected lower spec or specs that receive the new truth, nor
- a Change, referenced from the changeset or its commit message, carrying the remaining downstream evidence or implementation work.
Report only the factual gap: the changed higher-level declaration, the constraining scope, and the absent lower-spec or Change grounding. Do not choose the downstream structure here; structural ownership questions route to /decompose.
</downstream_alignment_conformance>
</conformance_dimensions>
<failure_modes>
Evidence specialization reported as duplication. Claude reported child [test] rules over concrete workflow-observability helpers as duplicates of marketplace-wide ancestor semantic-evidence rules. The finding collapsed deterministic falsification at a narrow code surface into semantic judgment at a broad scope, so removing the child rules would have weakened the evidence chain. Compare both content and evidence mechanism before reporting duplication: same-content and same-evidence repetition is misplaced, while child [test] concretizing ancestor [audit] is valid specialization.
</failure_modes>
<workflow>
- Gate: Check the conversation for a live
<PRODUCT_TREE_FOUNDATION>marker. If absent, use skillproduct-tree:understandand resume only after it emits the marker. - Load rules: Read every inline leaf and every template beneath the live marker's
Template rootnamed in<required_references>. When the marker lacksTemplate root, use skillproduct-tree:understandagain and read no template until it emits a marker that records one. - Scope: Read
$ARGUMENTSas the complete scope input. When it names one Markdown file, use that file directly; when it names a directory, use that directory; when it is empty, default tospx/in the product root. For a branch changeset, consume the exact changed-file set supplied in$ARGUMENTSafter derivation through/scope-changeset; stop with that requirement when the set is absent. - Discover: For a file scope, use that file directly. For a directory scope, glob
{scope}/**/*.md. For a changeset scope, use every Markdown path in the supplied changed-file set directly. In every mode, exclude the files<file_classification>lists under "Files to skip entirely". - Classify: Map each file to its artifact type per
<file_classification>. - Check each file:
- If classified: run structural, language, and placement checks; for an output-kind spec, also run ancestor-decision conformance per
<ancestor_decision_conformance> - If unrecognized: report classification failure, then run language check only (language rules apply to all text)
- If classified: run structural, language, and placement checks; for an output-kind spec, also run ancestor-decision conformance per
- Check downstream alignment for changesets: For changed product documents, ADRs, PDRs, and ancestor specs, report missing first affected lower specs or Change grounding.
- Report: Emit findings grouped by file path per
<report_format>. - Summary: End with counts.
</workflow>
<report_format>
## Alignment Report: {scope}
### {file path}
Classification: {type}
Structural:
- {finding}
Decision alignment:
- {finding} (ref: {full decision path})
Language:
- Line {N}: "{text}" — {rule violated} (ref: atemporal_voice) → Atemporal: "{rewrite}"
Placement:
- {finding} (ref: common_misplacements)
Downstream alignment:
- {finding} (ref: /understand decision_to_spec_alignment)
---
{N} files checked. {M} findings across {K} files.
Formatting rules:
- Omit dimension headings (Structural / Decision alignment / Language / Placement / Downstream alignment) when a file has no findings for that dimension
- Omit files with zero findings entirely
- If all files pass all checks:
"{N} files checked. 0 findings across 0 files." - For unrecognized files, replace the Classification line with:
Classification: Unrecognized — {reason}
</report_format>
<success_criteria>
- [ ] Every in-scope Markdown artifact is either represented by a finding or included in the report's checked-file count; declared skip targets are absent
- [ ] Every finding names the full file path, artifact classification or failure, violated authoritative rule, and applicable conformance dimension
- [ ] Every classified node spec is checked against all applicable governing ADRs/PDRs, and every contradiction finding names the full decision path
- [ ] Every temporal-language finding includes the source line, temporal text, governing atemporal-voice rule, and a concrete atemporal rewrite
- [ ] Placement findings preserve valid evidence-mechanism specialization and report only content misplaced under
/understandreferences/artifact-placement.md<common_misplacements> - [ ] A changeset report identifies every changed higher-level declaration lacking both first-affected lower-spec alignment and Change grounding
- [ ] Finding and file counts in the summary equal the report body
- [ ] The report contains no severity, prioritization, or repair guidance beyond required atemporal rewrites
</success_criteria>
04 同仓库更多 Skills
plugin
暂无简介
sanitize-powerpoint
ALWAYS invoke this skill when sanitizing, cleaning up, auditing, or aligning a PowerPoint (.pptx) deck — slide-master and layout structure, layout type attributes, stray fonts, non-theme colors, or layout naming. NEVER hand-edit pptx XML without this skill.
draw-excalidraw
ALWAYS invoke this skill when creating Excalidraw diagrams, visualizing workflows, architectures, or concepts. NEVER generate Excalidraw JSON without this skill.
typescript-test-standards
TypeScript test standards enforced across all skills. Loaded by other skills, not invoked directly.
typescript-code-standards
TypeScript code standards enforced across all skills. Loaded by other skills, not invoked directly.
typescript-architecture-standards
TypeScript ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.