Skip to content

Releases

v5.3.4

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 29 Nov 16:01
08c03a8

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-init CLAUDE.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-cleanup delete safety - The target path is now validated before any rm / 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

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 27 Nov 08:58
e513bbc

Changed

  • Repository ownership - Both repositories moved from the ToshikiImagawa account to the comcreate organization: the marketplace repository is now comcreate/ai-sdd-workflow and the development repository is comcreate/ai-sdd-workflow-dev. GitHub redirects the old names, so existing /plugin marketplace add ToshikiImagawa/ai-sdd-workflow commands 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

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 22 Oct 18:00

Fixed

  • --ci mode in task-cleanup and check-spec - Both skills still stopped at their scope confirmation in a non-interactive session (5.3.0 added --ci to 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 changes
    • task-cleanup --ci: requires ticket-number (aborts with an error instead of sweeping the whole of task/ non-interactively), records any spec-update proposal as "deferred" instead of asking, and skips integration for an unclear target while keeping task/ in place. It does not pre-approve the delete / gh issue comment shell commands: a CI run must grant those through its own permission configuration, otherwise --ci still fails safely at the first delete

v5.3.0

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 22 Oct 17:43

Added

  • evals/: a claude plugin eval suite 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), each case.yaml naming the spec section it checks, graded by regex only. Run with claude plugin eval ./plugins/sdd-workflow --trust-plugin --scaffold --allow-tools Bash Write Edit

  • draft-laws: point assertions (a law with no for quantifier, i.e. one decision-table row, unless its kind is empty / singleton / identity) are no longer written to LAWS.bend. rank returns them in a new to_tests list and draft writes them as differential pytest cases against the implementation (<laws.tests_dir>/test_<feature>.py, default tests/laws/; new templates laws_tests.md en/ja), each preceded by the same # source: line as a law. New check --tests <file> --spec <spec> verifies those lines (errors test_source_missing / test_source_drift). .sdd-config.json gains laws.tests_dir

  • draft-laws: a spec declares where its implementation lives with plain impl-of: <path> lines (same shape as model-api:). status returns it as impl (fallback: the # model-of: of an existing main.bend; warning impl_undeclared when neither exists) and the model stage 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 existing LAWS.bend into keep / to_tests / prose_delete with a migration table (new templates laws_migration_report.md en/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 from ambiguity_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 for vibe-detector (works without a PRD/spec), and NFR handling that reuses the nfr_checklist.md levels with an aggregation rule for the 7 categories (lowest in-scope mark). Referenced from vibe-detector and ambiguity_patterns.md; the vibe-detector and generate-spec risk 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-submit hook: the context injected on a Vibe Coding signal now tells the model to invoke the sdd-workflow:vibe-detector skill 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 reported
  • vibe-detector templates: the risk level line is now a placeholder ({High | Medium | Low}) instead of the literal High / Medium / Low, which the model could echo verbatim instead of choosing one level
  • Bend proof gate: bend remains an optional dependency and user projects still need no bend in CI (the result is SKIPPED / TOOL_NOT_FOUND without 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: in main.bend must point at source code, never at a SKILL.md or agent definition
  • draft-laws report template (en/ja) gains a "Candidates routed to differential tests" section and lists the implementation location
  • Constitution version-bump definitions in the constitution skill (SKILL.md, references/best_practices.md) and the constitution_template.md templates (en/ja) now follow the repository CONSTITUTION v2.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 Path text duplicated in 6 agents and doc-consistency-checker now lives in shared/references/index_fast_path.md (read index.md once; fall back to a specific file only when full text is needed; Glob/Grep/Read flow when SDD_INDEX is unset/off). Each caller keeps only its table list and fall-back condition. Behavior with SDD_INDEX=on is unchanged (Refs #190)
  • Aligned ambiguity-evaluation wording (Refs #9): the /clarify clarity-score tiers in skills/clarify/SKILL.md now match the 4 tiers of clarification-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-reviewer labels its PRD→spec figure the "Coverage Rate" (Covered + Partially Covered) and states it differs from the clarity score (Clear only); generate-spec uses the same High/Medium/Low risk wording as vibe-detector, the canonical definition
  • Skills and agents no longer instruct a full read of AI-SDD-PRINCIPLES.md (~43KB). prerequisites_principles.md now tells the
    reader to look up headings with grep -n and read only the sections each skill / agent names (§ <heading>); every
    consumer (18 skills, 5 agents) lists its own sections. AI-SDD-PRINCIPLES.source.md itself is unchanged (Refs #7)
  • spec-reviewer Covered / Partially Covered / Not Covered now have concrete criteria that reuse ambiguity_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.md Level 0–3). spec_review_output.md (en/ja) and check-spec follow. NFR categories are unified to the seven in nfr_checklist.md across clarification-assistant, clarify, analyze-requirements, generate-prd and generate-spec (PRD §4.2 and spec §3.2 templates gain category guidance). PRD template §4.2 / requirement-analyzer / sample outputs use NFR_xxx instead of PR_xxx (SysML element type performanceRequirement is unchanged) (Refs #9, Refs #8)
  • Criteria calibration from the #9 real-document check (Refs #9): nfr_checklist.md gains 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-reviewer and 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 in nine_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

  • --ci mode in 5 skills - checklist, implement, run-checklist and recommend-front-matter stopped at interactive confirmations even with --ci; they now follow the same rule as generate-spec / plan-refactor (missing arguments abort with an error, confirmations are skipped). task-breakdown already implemented --ci but omitted it from its argument-hint

v5.2.0

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 20 Oct 18:46

Added

  • /draft-laws extraction 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 carry level: "binary", which rank orders last inside one priority
  • /draft-laws skill - draft <feature> extracts law candidates from a spec (decision tables, aggregation rules, invariants, numeric targets) into LAWS.bend (or LAWS.draft.bend when a LAWS.bend already exists) with # source: section hashes, # model-api: lines, a static check and an extraction report (--ticket <n> writes laws-draft-report.md); model <feature> writes main.bend / PROOF.bend only when the approval line is valid. It never writes # approved: or laws-status / laws: (proposals only), never touches a LAWS.bend with an approval line, never calls bend. .sdd-config.json laws.max_laws (integer >= 1, default 10) caps adopted laws; candidates are ordered and cut off deterministically by draft_laws.py
  • Proof gate source-drift warnings and spec-edit reminder: run-verification.py proof adds an optional warnings array ({"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 when bend is absent). post-tool-use suggests re-running /draft-laws after editing a spec with laws:, naming drifted laws. Reported on CHK-205
  • Shared laws_drafting.py module for the upcoming /draft-laws skill 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 (reuses laws_header.py). No behavior change to existing laws or the proof gate
  • Bend proof gate (opt-in) - /run-checklist gains a proof verification category that checks a spec's
    constraints as Bend laws (${SDD_LAWS_PATH}/{feature}/ with LAWS.bend / PROOF.bend / main.bend). It is
    optional: without bend, a law file or an approved law it reads TOOL_NOT_FOUND / SKIPPED and 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. bend always runs with BEND_NO_TELEMETRY=1, and only import Base and
    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 proof takes --laws-dir (repeatable), --verdict, --timeout and --print-laws-hash
  • Spec front matter laws: / laws-status: (front-matter-reviewer validates them, and with --cross-ref the
    directory, # spec: match, status vs. files and orphan laws); CHK-205 [P2] generated only for specs with laws:
  • post-tool-use reminders: re-run the proof gate after a .bend edit, and review the model after editing a file
    named in a main.bend # model-of: line
  • .sdd-config.json: directories.laws, proof.timeout_seconds, proof.verdict; SDD_LAWS_DIR / SDD_LAWS_PATH exported at session start

Fixed

  • Hooks broke silently when .sdd-config.json root was an absolute path (#151) -
    With a root pointing outside the project, pre-tool-use.py skipped external documents without
    a word (no naming validation / CONSTITUTION injection), post-tool-use.py crashed with a
    ValueError from Path.relative_to (rc=1) whenever a source edit matched a spec outside the
    project, and session-start.py never warned. Absolute / project-escaping roots are not supported
    yet
    ; this change makes that explicit instead of silent: session-start.py prints a warning
    (suggesting a relative path or a git submodule) and continues, post-tool-use.py ignores
    out-of-project documents without failing, pre-tool-use.py treats out-of-project paths as out of
    scope via the new hook_common.is_within_project() / is_external_sdd_root() helpers (the single
    place to change if external roots are supported later), and init-structure.py skips the
    meaningless {root}/.cache/ .gitignore entry with a warning.
  • session-start.py / sdd_index.py wrote into the external directory for an absolute root (#155) -
    After warning, session-start.py still created .cache/, AI-SDD-PRINCIPLES.md, UPDATE_REQUIRED.md
    and MIGRATION_PENDING.md outside the project, and sdd_index.py could hit ValueError in
    relative_to. Consistent with #151 (absolute roots unsupported), both now skip: session-start.py
    warns (the message states that writes were skipped), exports SDD_* 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

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 16 Sep 09:06

Added

  • /migrate-design-to-adr skill - Migrates a v4.x persisted specification/{feature-name}_design.md
    into the append-only decision log adr/{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-cleanup uses (ADR_TEMPLATE.md, else
    AI-SDD-PRINCIPLES.md § Architecture Decision Record), so no second format is introduced. Takes a
    feature name or --all; with --all a pilot file is approved first, then the rest are processed in
    one pass. Deleting the original *_design.md always 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 and design-draft.md references are
    never reported

Fixed

  • /sdd-init left stale AI-SDD-PRINCIPLES.md / ai-sdd-instructions.md after a plugin reload -
    The regeneration logic that session-start.py ran (get_plugin_version /
    sync_principles_file / sync_rules_files) is now shared via
    plugins/sdd-workflow/scripts/principles_sync.py and called from both session-start.py and
    init-structure.py. Previously, running /sdd-init right after /reload-plugins switched the
    plugin version left .sdd/AI-SDD-PRINCIPLES.md and .claude/rules/ai-sdd-instructions.md on the
    old version, because the SessionStart event that normally regenerates them does not fire in
    that case
  • AI-SDD-PRINCIPLES.md wording inconsistencies - Two dependency-direction bullets under
    §Document Dependencies were missing the {ticket-number} placeholder for task/design-draft.md
    (9 other occurrences in the same file use it), and two Check Target table rows under
    §Consistency Checking capitalized Implementation inconsistently with the rest of the table and
    the adjacent Check Execution Timing table. Wording only; no behavior change

v5.0.0

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 11 Sep 11:40

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.md is no longer a persistent document - Technical Design
    Documents are now a temporary draft at task/{ticket-number}/design-draft.md, deleted after
    implementation like the rest of task/. Only the decisions, their rationale, and rejected
    alternatives are persisted, in the new adr/{feature-name}.md (append-only). Existing
    specification/*_design.md files 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
    into adr/{feature-name}.md is a human-paced step you can take feature by feature — see "Migration
    from v4.x" in README.md / README.ja.md
  • /generate-spec now requires a ticket number - The design draft path is ticket-scoped
    (task/{ticket-number}/design-draft.md), so /generate-spec takes --ticket <number> (required in
    --ci mode, resolved interactively otherwise)
  • doc-consistency-checker now checks PRD ↔ spec ↔ adr, not PRD ↔ spec ↔ design
  • /check-spec now 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-spec now takes
    every spec under specification/ (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.md files under specification/ get the same auxiliary treatment for those files
  • /plan-refactor decides Case A / Case B from the spec, and writes the plan into the design draft -
    The case used to be decided by the presence of specification/{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 _spec suffix), the refactoring plan and the reverse-engineered design
    are written to task/{ticket-number}/design-draft.md, and the reverse-engineered spec continues to be
    persisted under specification/. A leftover *_design.md from v4.x is still detected, but only as
    reading context — it never decides the case and is never written to
  • /plan-refactor now takes a ticket number - The design draft path is ticket-scoped, so
    /plan-refactor takes --ticket=<number> (required in --ci mode, resolved interactively otherwise).
    An existing task/{ticket-number}/design-draft.md is picked up as supplementary input in Case A
  • /task-breakdown now requires a ticket number - Both the design draft it reads and the tasks.md
    it writes live under task/{ticket-number}/, so the ticket number can no longer be omitted.
    tasks.md is always written to task/{ticket-number}/tasks.md; the previous fallback to
    task/{feature}/tasks.md is 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-prd now 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 sections
  • render-adr-review - New skill that renders an adr/{feature-name}.md decision 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's Supersedes reference 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" the Supersedes item 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-level supersedes / superseded-by front 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 considered is rendered as "no alternatives were weighed", not as a rejected option
  • task-cleanup - Posts a summary comment to the ticket when implementation completes, and checks
    whether the decisions being integrated into adr/ also trigger a *_spec.md update per the "When to
    Update *_spec.md" criteria; if so, proposes the spec update via AskUserQuestion
  • /sdd-init now 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-init still creates only the ${SDD_ROOT}/ root itself — adr/, like requirement/,
    specification/ and task/, is created when its first file is written
  • /sdd-init now 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, the render-adr-review HTML — 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 .gitignore keeps every line it already
    had (and gains a trailing newline only if it was missing one), a .gitignore that 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-init never 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 the adr/ directory, set at session
    start alongside the existing SDD_*_DIR / SDD_*_PATH variables

Hooks

  • ${SDD_ROOT}/MIGRATION_PENDING.md lists the v4.x documents still waiting to be migrated - When a
    project still holds specification/**/*_design.md files, 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.md Files into adr/" under "Migration from v4.x", with
    README.ja.md alongside it — instead of "see the plugin README". The file is deliberately separate
    from UPDATE_REQUIRED.md
    , which reports only that CLAUDE.md is outdated and disappears once
    /sdd-init has run: an unfinished migration is a different concern with a different pace, so
    MIGRATION_PENDING.md survives /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. Unlike UPDATE_REQUIRED.md,
    whose presence makes the skills warn you to run /sdd-init first, MIGRATION_PENDING.md is not a
    pre-execution check: a pending migration never holds up a skill

Front Matter

  • sdd-version common field - Documents may record the sdd-workflow plugin version at generation time
    in the sdd-version front matter field, read from plugin.json. generate-spec, generate-prd,
    finalize-prd, and `...
Read more

v4.1.0

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 18 Aug 15:51

Added

Configuration

  • naming.ignore_patterns in .sdd-config.json - Glob patterns (e.g. "*_test.md") matched
    against a file's basename to exempt it from the requirement/specification naming convention
    check, so intentionally non-conforming files (test fixtures, etc.) no longer get blocked

v4.0.1

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 28 Jul 16:06

Changed

Permissions

  • Write access is no longer pre-approved wholesale - A skill's allowed-tools grants tools without
    asking
    ; it is a pre-approval, not a restriction. Eleven skills listed a bare Write / Edit, which
    pre-approved writing to any path. Writes are now scoped with the Edit(<path>) rule form -
    Edit(.sdd/**) plus Edit(CLAUDE.md), Edit(.sdd-config.json) and Edit(.claude/rules/**) where a
    skill legitimately needs them. Writing outside those paths now asks for confirmation.
    Note that Write(<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" *)
  • Bash removed from three skills - implement and run-checklist run arbitrary project test,
    lint and scanner commands, and task-cleanup runs git rm / git rm -r. None of those should be
    pre-approved, so they now ask before running a command
  • Projects that set a custom root in .sdd-config.json will be asked to confirm writes, because
    ${SDD_ROOT} is not expanded in allowed-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 under shared/ (shared/references/, shared/examples/,
    shared/templates/{en,ja}/), leaving agents/ with nothing but the six agent definitions.
    claude plugin validate --strict scans agents/** recursively and ignores the manifest's agents
    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 into shared/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 recognize tools: /
    disallowedTools:, so the declaration was silently ignored and every agent inherited all tools,
    including Write / Edit / Bash. Renamed the key to tools:, 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. The agent field names a subagent type and only applies when context: fork is set, so a
    model alias there was silently ignored and fell back to general-purpose. Switched to the model:
    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 $HOME containing a space). The variable is now quoted
  • Stale tool name in matchers - PreToolUse / PostToolUse matched Write|Edit|MultiEdit, but
    MultiEdit is no longer a Claude Code tool. Narrowed the matchers to Write|Edit

Plugin Manifest

  • Duplicate hooks load - Removed the "hooks": "./hooks/hooks.json" declaration from plugin.json.
    Claude Code auto-detects hooks/hooks.json at 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 a Duplicate hooks file detected error on plugin load. Hook behavior itself is unchanged
  • Redundant skills declaration - Removed "skills": "./skills". The default skills/ directory is
    always scanned and the skills field 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.md listed 5 agents (6 exist) and
    1 hook (4 exist), documented ja as the default for SDD_LANG and .sdd-config.json lang (the
    default is en), and listed 1 of the 10 files under scripts/. Both READMEs are now aligned

v4.0.0

Choose a tag to compare

@ToshikiImagawa ToshikiImagawa released this 16 Jul 08:50

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.md output templates

Configuration

  • .sdd-config.json index - New boolean setting that controls the compressed .sdd document index
    built at session start to reduce token consumption
    • Enabled by default (true). Set "index": false to opt out
    • Auto-generated .sdd-config.json now includes "index": true explicitly 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

Changed

Configuration

  • .sdd-config.json index - 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.md principles as additionalContext when 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

Agents

  • front-matter-reviewer - Changed model from sonnet to haiku
    • 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 - agent changed from sonnet to haiku
    • recommend-front-matter / run-checklist / sdd-init / task-cleanup - now declare agent: haiku
  • sdd-init / SessionStart hook - Moved the detailed AI-SDD guide out of the always-loaded
    CLAUDE.md into 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.md now 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 minimal CLAUDE.md section
    • 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 arguments frontmatter field (Claude Code v2.1.199+)
    • 8 skills (task-breakdown, implement, clarify, check-spec, checklist, run-checklist,
      task-cleanup, plan-refactor) now declare feature-name / ticket-number as named positional
      arguments and reference them via $name substitution in the skill body
    • Free-text-input skills (generate-spec, generate-prd, etc.) keep interpreting the whole
      $ARGUMENTS string
    • 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

Added

Hooks

  • Expanded hooks.json beyond SessionStart
    • UserPromptSubmit (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, matcher Write|Edit|MultiEdit) - Validates AI-SDD file naming
      conventions before writing under .sdd/ (requirement: no suffix, specification: _spec.md / _design.md
      required) and blocks violating writes
    • PostToolUse (scripts/post-tool-use.py, matcher Write|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_conventions section 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_output templates (en/ja)

Documentation

  • AI-SDD-PRINCIPLES - Documented the optional id_conventions section 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., spec 0.7 vs config.py 0.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)
  • 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.json root (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.py substitutes the configured root into the generated path-scoped rule's paths: glob,
      so .claude/rules/ai-sdd-instructions.md auto-loads under a customized root (e.g. .ai-docs/) — this
      also fixes the regression where the glob was baked to .sdd/**
    • update-claude-md.sh substitutes the configured root into the generated CLAUDE.md section
    • Skill/agent prompts and output templates now resolve SDD paths via ${SDD_ROOT} / ${SDD_*_PATH}
      instead of literal .sdd/...
    • find-design-docs.sh and validate-files.sh write 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 the doc-consistency-checker skill, so
    CONSTITUTION.md principle violations are more likely to be caught after generation/edits
  • doc-consistency-checker - Removed the design ↔ Implementation check (former spec FR-004), which
    duplicated impl-spec-check (/check-spec) and contradicted the parent PRD's explicit scope-out for that
    check. design ↔ Implementation consistency 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, and prd-reviewer / spec-reviewer gained a
    "No Marker Residue" check that flags any residual markers