Repository navigation
Releases
v5.3.4
Changed
- Release archive location - Release zips are now attached to the GitHub Release of the marketplace repository
comcreate/ai-sdd-workflow, and the catalog points there. The install and update commands are unchanged - Review agents - The six review agents now load their review criteria and procedures from dedicated skills instead of embedding them. Their names and how you invoke them are unchanged
sdd-initCLAUDE.md section update check - The AI-SDD Instructions section in CLAUDE.md is now considered outdated only when the plugin's major.minor version differs, so patch releases no longer rewrite it- Declared file writes and environment access - The skills that run helper scripts now state which files they write and which environment variables they read. Documentation only; behavior is unchanged
Fixed
task-cleanupdelete safety - The target path is now validated before anyrm/git rm: it must be a single ticket directory strictly under the task root, and the resolved path is shown in the confirmation before deleting
v5.3.3
Changed
- Repository ownership - Both repositories moved from the
ToshikiImagawaaccount to thecomcreateorganization: the marketplace repository is nowcomcreate/ai-sdd-workflowand the development repository iscomcreate/ai-sdd-workflow-dev. GitHub redirects the old names, so existing/plugin marketplace add ToshikiImagawa/ai-sdd-workflowcommands keep working, but new installs should use/plugin marketplace add comcreate/ai-sdd-workflow. Release assets of earlier versions are still reachable through the redirect
v5.3.1
Fixed
--cimode intask-cleanupandcheck-spec- Both skills still stopped at their scope confirmation in a non-interactive session (5.3.0 added--cito five other skills but left these two out)check-spec --ci: skips the no-argument scope confirmation and checks every spec. The skill is read-only, so nothing else changestask-cleanup --ci: requiresticket-number(aborts with an error instead of sweeping the whole oftask/non-interactively), records any spec-update proposal as "deferred" instead of asking, and skips integration for an unclear target while keepingtask/in place. It does not pre-approve the delete /gh issue commentshell commands: a CI run must grant those through its own permission configuration, otherwise--cistill fails safely at the first delete
v5.3.0
Added
-
evals/: aclaude plugin evalsuite for the specs whose implementation is prose and therefore not lawified (prd-generation, front-matter-validation, impl-spec-check, doc-consistency-check, vibe-detection, clarify). One case per decision-table row or invariant (32 cases), eachcase.yamlnaming the spec section it checks, graded by regex only. Run withclaude plugin eval ./plugins/sdd-workflow --trust-plugin --scaffold --allow-tools Bash Write Edit -
draft-laws: point assertions (a law with noforquantifier, i.e. one decision-table row, unless itskindisempty/singleton/identity) are no longer written toLAWS.bend.rankreturns them in a newto_testslist anddraftwrites them as differential pytest cases against the implementation (<laws.tests_dir>/test_<feature>.py, defaulttests/laws/; new templateslaws_tests.mden/ja), each preceded by the same# source:line as a law. Newcheck --tests <file> --spec <spec>verifies those lines (errorstest_source_missing/test_source_drift)..sdd-config.jsongainslaws.tests_dir -
draft-laws: a spec declares where its implementation lives with plainimpl-of: <path>lines (same shape asmodel-api:).statusreturns it asimpl(fallback: the# model-of:of an existingmain.bend; warningimpl_undeclaredwhen neither exists) and themodelstage copies it into# model-of:instead of choosing a path. A spec whose implementation is prose only (every path a.md) is not lawified (impl.lawifiable: false,reason: prose_implementation): no laws, no tests, the report says why -
draft-laws migrate <feature>: read-only classification of an existingLAWS.bendinto keep / to_tests / prose_delete with a migration table (new templateslaws_migration_report.mden/ja). Deleting laws, re-approving and updating the spec front matter stay human steps -
shared/references/nfr_checklist.md: NFR reference (7 categories, definition of "quantified" and a 4-level scale: not stated / mention only / target value / target + condition + measurement, good/bad examples, guidance ranges). Linked fromambiguity_patterns.md. Reference only; no skill or agent behavior changes (Refs #8) -
shared/references/ambiguity_criteria.md: single home for ambiguity-judgment criteria: per-requirement ○/△/× marks with ratio guidance (not fixed thresholds), High/Medium/Low viewpoint checks forvibe-detector(works without a PRD/spec), and NFR handling that reuses thenfr_checklist.mdlevels with an aggregation rule for the 7 categories (lowest in-scope mark). Referenced fromvibe-detectorandambiguity_patterns.md; thevibe-detectorandgenerate-specrisk tables gain a "no specs + clear request → Medium" row, an extension of the earlier 3-row table; the High / Low rows keep their wording (Refs #9)
Changed
user-prompt-submithook: the context injected on a Vibe Coding signal now tells the model to invoke thesdd-workflow:vibe-detectorskill with the Skill tool and to output its risk report before implementing. The previous wording ("follow the vibe-detector skill flow") was not enough for the skill to be loaded, so no risk level was reportedvibe-detectortemplates: the risk level line is now a placeholder ({High | Medium | Low}) instead of the literalHigh / Medium / Low, which the model could echo verbatim instead of choosing one level- Bend proof gate:
bendremains an optional dependency and user projects still need nobendin CI (the result isSKIPPED/TOOL_NOT_FOUNDwithout it). The wording in the README and in the laws-drafting / proof-gate specs no longer says the gate is never run in CI: this plugin's own repository now runs it in an optional, non-required CI job - Bend laws are now reserved for universal properties (
for x: T); fixed-input propositions are checked by pytest against the implementation instead of being proved against a reference model that restates the same table. The proof gate (run-verification.py,CHK-205, the verdict table and the meaning of PASS) is unchanged; the differential tests are independent of it.# model-of:inmain.bendmust point at source code, never at a SKILL.md or agent definition draft-lawsreport template (en/ja) gains a "Candidates routed to differential tests" section and lists the implementation location- Constitution version-bump definitions in the
constitutionskill (SKILL.md,references/best_practices.md) and theconstitution_template.mdtemplates (en/ja) now follow the repositoryCONSTITUTIONv2.3.0 split: major = breaking change that makes existing implementations violations; minor = feature addition/update (including relaxations that leave existing implementations compliant); patch = fixes that do not change meaning. Amendment PRs state the impact on existing implementations and its rationale for reviewer confirmation (Closes #200) Existing projects' CONSTITUTION files are not updated automatically; update the version-bump definition by hand if needed. - The
### Index Fast Pathtext duplicated in 6 agents anddoc-consistency-checkernow lives inshared/references/index_fast_path.md(readindex.mdonce; fall back to a specific file only when full text is needed; Glob/Grep/Read flow whenSDD_INDEXis unset/off). Each caller keeps only its table list and fall-back condition. Behavior withSDD_INDEX=onis unchanged (Refs #190) - Aligned ambiguity-evaluation wording (Refs #9): the
/clarifyclarity-score tiers inskills/clarify/SKILL.mdnow match the 4 tiers ofclarification-assistant(the agent is unchanged); the sample score table in the clarify output templates (en/ja, skill and shared) is corrected (overall 50% = Clear 16 / 32, was 61%; per-category scores recomputed as Clear / total);spec-reviewerlabels its PRD→spec figure the "Coverage Rate" (Covered + Partially Covered) and states it differs from the clarity score (Clear only);generate-specuses the same High/Medium/Low risk wording asvibe-detector, the canonical definition - Skills and agents no longer instruct a full read of
AI-SDD-PRINCIPLES.md(~43KB).prerequisites_principles.mdnow tells the
reader to look up headings withgrep -nand read only the sections each skill / agent names (§ <heading>); every
consumer (18 skills, 5 agents) lists its own sections.AI-SDD-PRINCIPLES.source.mditself is unchanged (Refs #7) spec-reviewerCovered / Partially Covered / Not Covered now have concrete criteria that reuseambiguity_criteria.md(Section 1; NFR: Section 3) instead of restating them; the 80% coverage warning is unchanged. The NFR check also reports quantification (nfr_checklist.mdLevel 0–3).spec_review_output.md(en/ja) andcheck-specfollow. NFR categories are unified to the seven innfr_checklist.mdacrossclarification-assistant,clarify,analyze-requirements,generate-prdandgenerate-spec(PRD §4.2 and spec §3.2 templates gain category guidance). PRD template §4.2 /requirement-analyzer/ sample outputs useNFR_xxxinstead ofPR_xxx(SysML element typeperformanceRequirementis unchanged) (Refs #9, Refs #8)- Criteria calibration from the #9 real-document check (Refs #9):
nfr_checklist.mdgains checkable binary conditions at Level 2 (with examples), OS-name-only Compatibility as Level 2 (versions/support window count toward Level 3 only with a stated verification), a requirement-to-seven-category mapping table (wording that fits no category is outside V6), and unified Level 3 example wording.ambiguity_criteria.md: V1–V5 are N/A when the spec says they do not apply, △/× lines for V3/V4, V6 from the parent PRD's NFRs when the PRD has none.spec-reviewerand its output templates (en/ja): coverage rate (Covered + Partially) kept as defined but shown as reference together with the Partially Covered count and the Covered-only rate, the warning also fires on Not/Partially items, spec weakening a PRD verification method is Partially, link delegation to an existing canonical document is Covered, denominator is all requirement IDs (UR/FR/NFR/IR/DC).clarify: clarity score = Clear items ÷ (all items − N/A items), counted per item, Partial not in the numerator, defined once innine_category_analysis.md(SKILL.md, agent, templates link to it); the spec-reviewer warning fires on coverage < 80% or Not Covered ≥ 1 only; OS name plus CI verification (no version) is Level 3
Fixed
--cimode in 5 skills -checklist,implement,run-checklistandrecommend-front-matterstopped at interactive confirmations even with--ci; they now follow the same rule asgenerate-spec/plan-refactor(missing arguments abort with an error, confirmations are skipped).task-breakdownalready implemented--cibut omitted it from itsargument-hint
v5.2.0
Added
/draft-lawsextraction rule: when the fixed API has an aggregate function (e.g.Model.aggregate) over a binary operation (e.g.Model.worse), write commutativity / identity / empty-input / single-element laws on the aggregate first; binary-operation versions are added only when the cap has room. Candidates may carrylevel: "binary", whichrankorders last inside one priority/draft-lawsskill -draft <feature>extracts law candidates from a spec (decision tables, aggregation rules, invariants, numeric targets) intoLAWS.bend(orLAWS.draft.bendwhen aLAWS.bendalready exists) with# source:section hashes,# model-api:lines, a static check and an extraction report (--ticket <n>writeslaws-draft-report.md);model <feature>writesmain.bend/PROOF.bendonly when the approval line is valid. It never writes# approved:orlaws-status/laws:(proposals only), never touches aLAWS.bendwith an approval line, never callsbend..sdd-config.jsonlaws.max_laws(integer >= 1, default 10) caps adopted laws; candidates are ordered and cut off deterministically bydraft_laws.py- Proof gate source-drift warnings and spec-edit reminder:
run-verification.py proofadds an optionalwarningsarray ({"code": "source_drift" | "source_invalid", "law", "source"}) to approved laws directories whose# source:section hash no longer matches the spec (additive; statuses, aggregation and existing keys unchanged; omitted whenbendis absent).post-tool-usesuggests re-running/draft-lawsafter editing a spec withlaws:, naming drifted laws. Reported onCHK-205 - Shared
laws_drafting.pymodule for the upcoming/draft-lawsskill and proof-gate warnings: spec section hash behind# source:comments, bend-free static checks of drafted laws (source existence/absence, duplicates, trivial laws, import allowlist,# model-api:consistency), source-drift detection and approval validity (reuseslaws_header.py). No behavior change to existing laws or the proof gate - Bend proof gate (opt-in) -
/run-checklistgains aproofverification category that checks a spec's
constraints as Bend laws (${SDD_LAWS_PATH}/{feature}/withLAWS.bend/PROOF.bend/main.bend). It is
optional: withoutbend, a law file or an approved law it readsTOOL_NOT_FOUND/SKIPPEDand never fails the
run. A law counts only with a human-written# approved:line bound to a content hash of the law text, so editing
an approved law expires the approval.bendalways runs withBEND_NO_TELEMETRY=1, and onlyimport Baseand
relative imports inside the laws directory are allowed. Law directories not bound to a spec in both directions
(orphan laws) fail. PASS means the reference model satisfies the approved laws, not that the implementation is correct.
run-verification.py prooftakes--laws-dir(repeatable),--verdict,--timeoutand--print-laws-hash - Spec front matter
laws:/laws-status:(front-matter-reviewervalidates them, and with--cross-refthe
directory,# spec:match, status vs. files and orphan laws);CHK-205 [P2]generated only for specs withlaws: post-tool-usereminders: re-run the proof gate after a.bendedit, and review the model after editing a file
named in amain.bend# model-of:line.sdd-config.json:directories.laws,proof.timeout_seconds,proof.verdict;SDD_LAWS_DIR/SDD_LAWS_PATHexported at session start
Fixed
- Hooks broke silently when
.sdd-config.jsonrootwas an absolute path (#151) -
With arootpointing outside the project,pre-tool-use.pyskipped external documents without
a word (no naming validation / CONSTITUTION injection),post-tool-use.pycrashed with a
ValueErrorfromPath.relative_to(rc=1) whenever a source edit matched a spec outside the
project, andsession-start.pynever warned. Absolute / project-escaping roots are not supported
yet; this change makes that explicit instead of silent:session-start.pyprints a warning
(suggesting a relative path or a git submodule) and continues,post-tool-use.pyignores
out-of-project documents without failing,pre-tool-use.pytreats out-of-project paths as out of
scope via the newhook_common.is_within_project()/is_external_sdd_root()helpers (the single
place to change if external roots are supported later), andinit-structure.pyskips the
meaningless{root}/.cache/.gitignoreentry with a warning. session-start.py/sdd_index.pywrote into the external directory for an absoluteroot(#155) -
After warning,session-start.pystill created.cache/,AI-SDD-PRINCIPLES.md,UPDATE_REQUIRED.md
andMIGRATION_PENDING.mdoutside the project, andsdd_index.pycould hitValueErrorin
relative_to. Consistent with #151 (absolute roots unsupported), both now skip:session-start.py
warns (the message states that writes were skipped), exportsSDD_*and returns, which also skips the sync of
in-project AI-SDD settings (.claude/rules/etc.), the CLAUDE.md check and the migration check;sdd_index.py
skips indexing when the root is external.
v5.1.0
Added
/migrate-design-to-adrskill - Migrates a v4.x persistedspecification/{feature-name}_design.md
into the append-only decision logadr/{feature-name}.md. Carries over only the decisions, their
rationale and the rejected alternatives (the why), leaving implementation status, module breakdowns,
data models, test strategies, change history and open questions behind. The entry format is resolved
with the same two-step fallback/task-cleanupuses (ADR_TEMPLATE.md, else
AI-SDD-PRINCIPLES.md§ Architecture Decision Record), so no second format is introduced. Takes a
feature name or--all; with--alla pilot file is approved first, then the rest are processed in
one pass. Deleting the original*_design.mdalways requires explicit confirmation, and keeping it
stays a valid outcome. A helper script detects the references to the migrated file and splits them
into core standard references (a rewrite is proposed) and project-specific ones (reported for manual
handling); generated files,CHANGELOG.md, existing ADR entries anddesign-draft.mdreferences are
never reported
Fixed
/sdd-initleft staleAI-SDD-PRINCIPLES.md/ai-sdd-instructions.mdafter a plugin reload -
The regeneration logic thatsession-start.pyran (get_plugin_version/
sync_principles_file/sync_rules_files) is now shared via
plugins/sdd-workflow/scripts/principles_sync.pyand called from bothsession-start.pyand
init-structure.py. Previously, running/sdd-initright after/reload-pluginsswitched the
plugin version left.sdd/AI-SDD-PRINCIPLES.mdand.claude/rules/ai-sdd-instructions.mdon the
old version, because theSessionStartevent that normally regenerates them does not fire in
that caseAI-SDD-PRINCIPLES.mdwording inconsistencies - Two dependency-direction bullets under
§Document Dependencies were missing the{ticket-number}placeholder fortask/design-draft.md
(9 other occurrences in the same file use it), and twoCheck Targettable rows under
§Consistency Checking capitalizedImplementationinconsistently with the rest of the table and
the adjacentCheck Execution Timingtable. Wording only; no behavior change
v5.0.0
Note: This is a major release with breaking changes to the document model. Read
"Migration from v4.x" in README.md / README.ja.md before upgrading an existing project. Migrating is
not urgent: existing specification/*_design.md files remain valid, the naming hook accepts them,
and the skills that read a technical design read them as supplementary input — nothing breaks until you
move their decisions into adr/, at your own pace.
Breaking Changes
Document Structure
specification/{feature-name}_design.mdis no longer a persistent document - Technical Design
Documents are now a temporary draft attask/{ticket-number}/design-draft.md, deleted after
implementation like the rest oftask/. Only the decisions, their rationale, and rejected
alternatives are persisted, in the newadr/{feature-name}.md(append-only). Existing
specification/*_design.mdfiles from v4.x remain valid: the skills that read a technical design
read them as supplementary input, and none of them reports them as a naming violation or proposes
deleting them (see "v4.x persistent design documents" under Fixed for the full list). Moving their decisions
intoadr/{feature-name}.mdis a human-paced step you can take feature by feature — see "Migration
from v4.x" in README.md / README.ja.md/generate-specnow requires a ticket number - The design draft path is ticket-scoped
(task/{ticket-number}/design-draft.md), so/generate-spectakes--ticket <number>(required in
--cimode, resolved interactively otherwise)doc-consistency-checkernow checks PRD ↔ spec ↔ adr, not PRD ↔ spec ↔ design/check-specnow compares the implementation against the spec, not against a design document -
The design document is a temporary draft (task/{ticket-number}/design-draft.md) that is deleted after
implementation, so it can no longer serve as a persistent comparison baseline./check-specnow takes
every spec underspecification/(suffix optional) as the first-class baseline, and uses a design draft
only as an optional auxiliary input when one exists — a missing draft is the normal state after
implementation and is never reported as a discrepancy. Because a spec is an abstract specification, the
comparison is limited to what it can express (public API, data model, behavior, literal values); module
structure and technology stack are compared only while a draft exists. Projects that still keep v4.x
{feature}_design.mdfiles underspecification/get the same auxiliary treatment for those files/plan-refactordecides Case A / Case B from the spec, and writes the plan into the design draft -
The case used to be decided by the presence ofspecification/{feature-name}_design.md, which is no
longer a persistent document, so every run fell through to Case B and reverse-engineered a persisted
design doc that the new model had just retired. The case now comes from whether a spec exists
(matched with and without the_specsuffix), the refactoring plan and the reverse-engineered design
are written totask/{ticket-number}/design-draft.md, and the reverse-engineered spec continues to be
persisted underspecification/. A leftover*_design.mdfrom v4.x is still detected, but only as
reading context — it never decides the case and is never written to/plan-refactornow takes a ticket number - The design draft path is ticket-scoped, so
/plan-refactortakes--ticket=<number>(required in--cimode, resolved interactively otherwise).
An existingtask/{ticket-number}/design-draft.mdis picked up as supplementary input in Case A/task-breakdownnow requires a ticket number - Both the design draft it reads and thetasks.md
it writes live undertask/{ticket-number}/, so the ticket number can no longer be omitted.
tasks.mdis always written totask/{ticket-number}/tasks.md; the previous fallback to
task/{feature}/tasks.mdis gone
Added
Skills
/generate-prd --amend- New mode that appends newly-provided requirements to an existing PRD instead
of regenerating it. Preserves existing requirement IDs, sections, and requirements-diagram nodes, and
assigns new IDs continuing from the existing maximum per prefix.finalize-prdnow accepts the existing
PRD text and merges the new content when called with--amend/generate-spec --amend- New mode that appends new functional/non-functional requirements to an
existing spec instead of regenerating it, preserving existing requirement IDs and sectionsrender-adr-review- New skill that renders anadr/{feature-name}.mddecision log (or
the decision rationale section of a*_spec.md/*_design.md) into a temporary review HTML, structured
by decision / rationale / rejected alternative rather than a plain Markdown-to-HTML conversion. Output
is written under.sdd/.cache/render-adr-review/and is not meant to be committed.
Because the log records a reversal one-way — on the newer entry, leaving the entry it reverses
untouched — a superseded decision carries no marker of its own in the source and reads as current.
The render resolves each entry'sSupersedesreference and marks the entry it points at as
superseded, so an obsolete decision is visibly distinct from the live one and links to the entry that
replaced it. The marker carries the one-line "what changed" theSupersedesitem records, and its link
points at the superseding entry's card in the same page rather than reusing a Markdown anchor from the
source. The file-levelsupersedes/superseded-byfront matter fields are never consulted for this,
because they mean a whole log file was retired, not that one entry was reversed. A decision that was
later reversed still shows as adopted within its own comparison table: that is what was chosen at the
time, and the reversal belongs to the entry's state, not to its history.Rejected alternatives: None consideredis rendered as "no alternatives were weighed", not as a rejected optiontask-cleanup- Posts a summary comment to the ticket when implementation completes, and checks
whether the decisions being integrated intoadr/also trigger a*_spec.mdupdate per the "When to
Update*_spec.md" criteria; if so, proposes the spec update viaAskUserQuestion/sdd-initnow generates${SDD_ROOT}/ADR_TEMPLATE.md- The decision log template ships with the
plugin in both languages and is copied like the PRD / spec / design templates (existing files are never
overwritten). It carries the settled ADR entry format, a worked two-entry example including one entry
superseding another, and a note to append below the last entry without touching the ones above. Note
that/sdd-initstill creates only the${SDD_ROOT}/root itself —adr/, likerequirement/,
specification/andtask/, is created when its first file is written/sdd-initnow adds the cache directory to your project's.gitignore-.sdd/.cache/(or
${SDD_ROOT}/.cache/for a custom root) holds generated, disposable files — the document index, the
per-skill working copies, therender-adr-reviewHTML — and used to be left for you to ignore by hand.
This is a new write into a file outside${SDD_ROOT}/, so it is deliberately minimal: the entry is
appended once under a comment naming what it is, an existing.gitignorekeeps every line it already
had (and gains a trailing newline only if it was missing one), a.gitignorethat does not exist is
created holding just that entry, and a project that already ignores the path — with or without a
leading or trailing slash — is left untouched. Re-running/sdd-initnever duplicates the line. Only
.cache/is ignored: your PRDs, specs, design drafts and decision logs under${SDD_ROOT}/stay
tracked/check-spec --ticket <number>- Scopes the auxiliary design draft to one ticket (see Fixed below)
Configuration
SDD_ADR_DIR/SDD_ADR_PATH- New environment variables for theadr/directory, set at session
start alongside the existingSDD_*_DIR/SDD_*_PATHvariables
Hooks
${SDD_ROOT}/MIGRATION_PENDING.mdlists the v4.x documents still waiting to be migrated - When a
project still holdsspecification/**/*_design.mdfiles, the SessionStart hook writes them into this
file (up to ten individually, then a count of the rest) and states that they remain valid and are read
as supplementary input, where their decisions move (adr/{feature-name}.md), where new technical
design goes (task/{ticket-number}/design-draft.md), and that the originals should be kept until the
migration is done. The steps are named as a path you can actually open —<plugin root>/README.md,
section "Extracting Existing*_design.mdFiles intoadr/" under "Migration from v4.x", with
README.ja.mdalongside it — instead of "see the plugin README". The file is deliberately separate
fromUPDATE_REQUIRED.md, which reports only thatCLAUDE.mdis outdated and disappears once
/sdd-inithas run: an unfinished migration is a different concern with a different pace, so
MIGRATION_PENDING.mdsurvives/sdd-init, is rewritten at every session start for as long as any
such file remains, and is removed automatically once none do. It is generated, so hand edits are
replaced next session. A project with no such files never gets the file. UnlikeUPDATE_REQUIRED.md,
whose presence makes the skills warn you to run/sdd-initfirst,MIGRATION_PENDING.mdis not a
pre-execution check: a pending migration never holds up a skill
Front Matter
sdd-versioncommon field - Documents may record the sdd-workflow plugin version at generation time
in thesdd-versionfront matter field, read fromplugin.json.generate-spec,generate-prd,
finalize-prd, and `...
v4.1.0
Added
Configuration
naming.ignore_patternsin.sdd-config.json- Glob patterns (e.g."*_test.md") matched
against a file's basename to exempt it from therequirement/specificationnaming convention
check, so intentionally non-conforming files (test fixtures, etc.) no longer get blocked
v4.0.1
Changed
Permissions
- Write access is no longer pre-approved wholesale - A skill's
allowed-toolsgrants tools without
asking; it is a pre-approval, not a restriction. Eleven skills listed a bareWrite/Edit, which
pre-approved writing to any path. Writes are now scoped with theEdit(<path>)rule form -
Edit(.sdd/**)plusEdit(CLAUDE.md),Edit(.sdd-config.json)andEdit(.claude/rules/**)where a
skill legitimately needs them. Writing outside those paths now asks for confirmation.
Note thatWrite(<path>)is not a valid rule form;Edit(<path>)covers every file-editing tool - Shell access is limited to the plugin's own scripts - Ten skills listed a bare
Bash, which
pre-approved any command. The seven skills that only run a bundled helper now name it explicitly, e.g.
Bash(python3 "${CLAUDE_PLUGIN_ROOT}/skills/check-spec/scripts/find-design-docs.py" *) Bashremoved from three skills -implementandrun-checklistrun arbitrary project test,
lint and scanner commands, andtask-cleanuprunsgit rm/git rm -r. None of those should be
pre-approved, so they now ask before running a command- Projects that set a custom
rootin.sdd-config.jsonwill be asked to confirm writes, because
${SDD_ROOT}is not expanded inallowed-tools. See the README for a settings snippet that
pre-approves a custom root
Plugin Layout
- Agent support files moved out of
agents/-agents/references/,agents/examples/and
agents/templates/{en,ja}/now live undershared/(shared/references/,shared/examples/,
shared/templates/{en,ja}/), leavingagents/with nothing but the six agent definitions.
claude plugin validate --strictscansagents/**recursively and ignores the manifest'sagents
array, so every support file parked there was reported as an agent without front matter - Agent reference paths are now absolute - The 33 reference, example and template paths in the agent
prompts use${CLAUDE_PLUGIN_ROOT}/shared/...instead of a bare relative path. The previous form
depended on the reader resolving the path relative to the agent file; the placeholder resolves
anywhere in agent content, so the target is now unambiguous - Five symlinks under
agents/references/that pointed intoshared/references/are gone; the agents
reference those files directly
Fixed
Agents
- Tool restrictions were not applied - All six agents declared their tool allowlist with
allowed-tools:, which is a skill-only front matter key. Subagents recognizetools:/
disallowedTools:, so the declaration was silently ignored and every agent inherited all tools,
includingWrite/Edit/Bash. Renamed the key totools:, restoring the intended read-only
scope (Read,Glob,Grep,AskUserQuestion)
Skills
- Model selection was not applied - Eight skills selected a model with
agent: sonnet/agent: haiku. Theagentfield names a subagent type and only applies whencontext: forkis set, so a
model alias there was silently ignored and fell back togeneral-purpose. Switched to themodel:
field, which applies whether or not the skill forks
Hooks
- Hooks failed when the install path contained a space -
${CLAUDE_PLUGIN_ROOT}was unquoted in all
four hook commands, so the path was word-split and every hook failed to start under such paths (for
example a$HOMEcontaining a space). The variable is now quoted - Stale tool name in matchers -
PreToolUse/PostToolUsematchedWrite|Edit|MultiEdit, but
MultiEditis no longer a Claude Code tool. Narrowed the matchers toWrite|Edit
Plugin Manifest
- Duplicate hooks load - Removed the
"hooks": "./hooks/hooks.json"declaration fromplugin.json.
Claude Code auto-detectshooks/hooks.jsonat the plugin root, and a manifest path supplements the
default path rather than replacing it, so declaring the standard path loaded the same file twice and
surfaced aDuplicate hooks file detectederror on plugin load. Hook behavior itself is unchanged - Redundant skills declaration - Removed
"skills": "./skills". The defaultskills/directory is
always scanned and theskillsfield only adds to that scan, so declaring the standard path had no
effect. All 19 skills continue to load
Documentation
- Japanese README was out of sync with the English one -
README.ja.mdlisted 5 agents (6 exist) and
1 hook (4 exist), documentedjaas the default forSDD_LANGand.sdd-config.jsonlang(the
default isen), and listed 1 of the 10 files underscripts/. Both READMEs are now aligned
v4.0.0
Added
Agents
cross-prd-reviewer- New agent that reviews consistency across multiple PRDs- Checks category boundary consistency (scope-out cross-references), terminology alignment across
glossaries, structure and notation style uniformity, CONSTITUTION.md principle reference coverage,
and front matter labeling consistency - Findings are classified as [must]/[recommend]/[nits]; single-PRD quality remains prd-reviewer's role
- Adds
templates/{en,ja}/cross_prd_review_output.mdoutput templates
- Checks category boundary consistency (scope-out cross-references), terminology alignment across
Configuration
.sdd-config.jsonindex- New boolean setting that controls the compressed.sdddocument index
built at session start to reduce token consumption- Enabled by default (
true). Set"index": falseto opt out - Auto-generated
.sdd-config.jsonnow includes"index": trueexplicitly for discoverability - Index extraction expansion - The index now also covers SysML requirement diagrams and data model
fields, so the SysML trace axis that previously required raw reads is included in the token-reduction index
- Enabled by default (
Changed
Configuration
.sdd-config.jsonindex- Value format is now boolean-only (true/false); the previous
string form ("on"/"off") is no longer supported. A non-boolean value is rejected with a warning and
falls back to the default (on)- The default changed from off to on, so the token-reduction index is built out of the box
Hooks
PreToolUse- Injects.sdd/CONSTITUTION.mdprinciples asadditionalContextwhen Write/Edit
targets implementation source code- Injection is limited to source-file edits inside the project, happens at most once per session,
and is truncated to 3000 characters to avoid context bloat - Nothing is injected when CONSTITUTION.md does not exist
- Injection is limited to source-file edits inside the project, happens at most once per session,
Agents
front-matter-reviewer- Changedmodelfromsonnettohaiku- Rule-based format validation does not require complex reasoning; a lightweight model reduces cost and latency
- Other agents (prd-reviewer, spec-reviewer, requirement-analyzer, clarification-assistant) keep
sonnet
Skills
- Model tiers - Reduced the model for mechanical / rule-based skills to cut cost and latency
generate-requirements-diagram/generate-usecase-diagram-agentchanged fromsonnettohaikurecommend-front-matter/run-checklist/sdd-init/task-cleanup- now declareagent: haiku
sdd-init/ SessionStart hook - Moved the detailed AI-SDD guide out of the always-loaded
CLAUDE.mdinto a path-scoped rule.claude/rules/ai-sdd-instructions.md(loads only under.sdd/**)
to cut context usage during work that does not touch.sdd/CLAUDE.mdnow keeps only the declaration, trigger conditions, and a pointer to the rule;
the ~90-line directory-structure / naming / link-convention block moved to the rule file- The rule file is created and version-synced automatically by the SessionStart hook
(session-start.py);/sdd-init(update-claude-md.sh) only maintains the minimalCLAUDE.mdsection - The rule is a single English file (agent-facing guidance, not human-facing) regardless of
SDD_LANG,
so no per-language rule files ever load together
because they require cross-document consistency reasoning
Skills
- Introduced named skill arguments via the
argumentsfrontmatter field (Claude Code v2.1.199+)- 8 skills (
task-breakdown,implement,clarify,check-spec,checklist,run-checklist,
task-cleanup,plan-refactor) now declarefeature-name/ticket-numberas named positional
arguments and reference them via$namesubstitution in the skill body - Free-text-input skills (
generate-spec,generate-prd, etc.) keep interpreting the whole
$ARGUMENTSstring - Each skill body documents a fallback: when a value is empty, unsubstituted, or a positionally
captured flag (--...), the skill falls back to interpreting the full argument string or asking
the user interactively, preserving pre-v2.1.199 behavior
- 8 skills (
Added
Hooks
- Expanded
hooks.jsonbeyondSessionStartUserPromptSubmit(scripts/user-prompt-submit.py) - Detects Vibe Coding signals (vague instructions such
as "make it nice" / "いい感じに") in the user prompt and injects additional context prompting a vibe-detector
style clarification flow (detection only, never blocks)PreToolUse(scripts/pre-tool-use.py, matcherWrite|Edit|MultiEdit) - Validates AI-SDD file naming
conventions before writing under.sdd/(requirement: no suffix, specification:_spec.md/_design.md
required) and blocks violating writesPostToolUse(scripts/post-tool-use.py, matcherWrite|Edit|MultiEdit) - Detects potential document
update omissions: reminds to run consistency checks after.sdd/document edits, and reminds to sync the
design doc after editing a source file with a matching*_design.md
Agents
requirement-analyzer- Added ID numbering validation (--validate-ids, also runs as part of--analyze)- Naming convention validation via configurable regex patterns (
id_conventionssection in.sdd-config.json) - Ascending order validation with move suggestions for out-of-order ID sequences
- Numbering gap detection and stale-ID detection after renames
- Added "ID Numbering Validation" section to
requirement_analysis_outputtemplates (en/ja)
- Naming convention validation via configurable regex patterns (
Documentation
AI-SDD-PRINCIPLES- Documented the optionalid_conventionssection of.sdd-config.json
Skills
check-spec(v3.1.0) - Extended consistency check to literal values- Parses the spec's "Value Range / Threshold Registry" (Schema Registry) section when present, with fallback to
extracting literal values from spec/design body text - Extracts implementation-side literals from config files, ORM CHECK constraints, validation constraints
(e.g., Pydantic), and language-specific enums/constants - Detects value drift across spec / design / implementation and reports it as a Warning
(e.g., spec0.7vsconfig.py0.6) - Verifies enum / CHECK constraint member-set completeness and requirement ID trace completeness
(PRD <-> spec <-> design) - Added value drift sections to output templates (en/ja)
- Parses the spec's "Value Range / Threshold Registry" (Schema Registry) section when present, with fallback to
generate-spec- Added "Pseudocode Completeness Rules" section to design doc templates (templates/{en,ja}/design_template.md)- Language-specific guidance (Python general / Pydantic v2 / SQLAlchemy & alembic) to keep design pseudocode copyable verbatim
- Extensible sub-section structure for additional languages (TypeScript / Go / Rust, etc.)
Fixed
- Custom
.sdd-config.jsonroot(and directory names) are now honored across the plugin. Previously
many paths were hardcoded to the default.sdd/, so projects using a custom root silently broke.session-start.pysubstitutes the configured root into the generated path-scoped rule'spaths:glob,
so.claude/rules/ai-sdd-instructions.mdauto-loads under a customized root (e.g..ai-docs/) — this
also fixes the regression where the glob was baked to.sdd/**update-claude-md.shsubstitutes the configured root into the generatedCLAUDE.mdsection- Skill/agent prompts and output templates now resolve SDD paths via
${SDD_ROOT}/${SDD_*_PATH}
instead of literal.sdd/... find-design-docs.shandvalidate-files.shwrite their cache under the configured root;pre-tool-use.py
naming-violation messages report the configured directory paths
post-tool-use.py- The advisory hint shown after editing.sdd/requirement/or.sdd/specification/
files now also suggests/constitution validate, not just thedoc-consistency-checkerskill, so
CONSTITUTION.md principle violations are more likely to be caught after generation/editsdoc-consistency-checker- Removed thedesign ↔ Implementationcheck (former spec FR-004), which
duplicatedimpl-spec-check(/check-spec) and contradicted the parent PRD's explicit scope-out for that
check.design ↔ Implementationconsistency is now handled exclusively by/check-spec- Section requirement markers in generated output - Prevented author-facing section requirement
markers (<MUST>/<RECOMMENDED>/<OPTIONAL>) from leaking into generated documents.generate-spec
now strips them from headings in the final output, andprd-reviewer/spec-reviewergained a
"No Marker Residue" check that flags any residual markers