/accelerator:analyse-design-gaps [current-source-id] [target-source-id]from accelerator
Compares two design inventories and produces a structured gap artifact that feeds into the work-item extraction pipeline.
Ships in accelerator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
!${CLAUDE_PLUGIN_ROOT}/scripts/config-read-context.sh
!${CLAUDE_PLUGIN_ROOT}/scripts/config-read-skill-context.sh analyse-design-gaps
!${CLAUDE_PLUGIN_ROOT}/scripts/config-read-agents.sh
If no "Agent Names" section appears above, use these defaults: accelerator:reviewer, accelerator:codebase-locator, accelerator:codebase-analyser, accelerator:codebase-pattern-finder, accelerator:documents-locator, accelerator:documents-analyser, accelerator:web-search-researcher.
Design inventories directory: !${CLAUDE_PLUGIN_ROOT}/scripts/config-read-path.sh research_design_inventories
Design gaps directory: !${CLAUDE_PLUGIN_ROOT}/scripts/config-read-path.sh research_design_gaps
You are tasked with comparing two design inventories and producing a structured
design-gap artifact. The artifact's prose paragraphs must satisfy the
extract-work-items cue-phrase contract so they flow into the work-item
lifecycle without manual editing.
For each of [current-source-id] and [target-source-id]:
a. Validate format: must match ^[a-z0-9][a-z0-9-]*$. Report a clear error
naming offending characters if not.
b. Glob <design_inventories>/*-{source-id}/ (excluding leading-dot directories).
c. Zero matches: exit non-zero with:
error: source-id '<id>' did not match any inventory under <root>. Available source-ids: <comma-separated list>. Run /accelerator:inventory-design <id> <location> first.
d. Read frontmatter for each match. If an inventory.md is missing,
unparseable, or lacks a status field, treat it as superseded and log a
one-line warning naming the directory.
e. Filter to status != superseded (also exclude leading-dot directories).
If multiple remain (crashed prior supersede step), apply the resolver tiebreaker:
sequence number in frontmatter (primary — robust against clock skew)YYYY-MM-DD-HHMMSS directory-name prefix, newest first (final)Emit a one-line warning naming any non-selected directories when more than one remained after filtering.
f. Record the resolved absolute paths in the gap artifact frontmatter as
current_inventory and target_inventory.
Read each resolved inventory.md in full into context.
Compare the two inventories across five categories:
If a category has no differences, omit its H2 section from the artifact rather than writing an empty section.
For each non-empty category, write at least one paragraph whose prose satisfies
the cue-phrase contract used by extract-work-items. Each paragraph must contain
one or more of:
Guidance per category:
Avoid bare structural headings without actionable content. Every non-empty H2 must contain at least one paragraph meeting the cue-phrase contract.
After generating the gap body, run:
${CLAUDE_PLUGIN_ROOT}/skills/design/analyse-design-gaps/scripts/audit-cue-phrases.sh \
"<draft-body-path>"
On failure: the script names the offending H2 sections. Revise only those sections while keeping passing sections byte-identical. Re-run the audit. After three consecutive failures, write the rejected body to:
<design_gaps>/.YYYY-MM-DD-{current-source-id}-vs-{target-source-id}.draft.md
with a note at the top naming the failed sections, then report the failure and the draft path to the user. Do not write the artifact to its final path.
The frontmatter timestamp is generated once before the first write attempt and reused across retries.
Run:
${CLAUDE_PLUGIN_ROOT}/skills/design/analyse-design-gaps/scripts/gap-metadata.sh
Use the design-gap template:
!`${CLAUDE_PLUGIN_ROOT}/scripts/config-read-template.sh design-gap`
Before writing the artifact file, substitute every field below
with the indicated value, using the helper output captured in
Step 6 (Current Date/Time (UTC):):
type: ← design-gapid: ← the filename stem (the file path computed below without
.md), always quoted as a YAML stringtitle: ← Design Gap Analysis: {current-source} → {target-source}date: ← the Current Date/Time (UTC): valueauthor: ← the author resolved per the standard chain (config →
VCS user → prompt)producer: ← analyse-design-gapsstatus: ← draftcurrent_inventory: ← the resolved absolute path to the current
inventory's inventory.mdtarget_inventory: ← the resolved absolute path to the target
inventory's inventory.mdlast_updated: ← the same Current Date/Time (UTC): valuelast_updated_by: ← the same value resolved for authorschema_version: ← 1 (bare integer)Optional linkage keys are omit-by-default (ADR-0040): the template shows
each as ""/[], but write a key into the artifact only when it has
a value, and omit it entirely otherwise (do not carry the empty
placeholder through). The current_inventory: / target_inventory:
keys above are always-valued and not subject to this rule.
parent: ← the work item this gap analysis supports, as a
typed-linkage ref ("work-item:NNNN"). Fill when the analysis has an
owning work item; otherwise omit the key.relates_to: ← list of typed-linkage refs to related artifacts
(["design-inventory:NNNN", ...]). Fill when relationships are
explicit; otherwise omit the key.The design-gap artifact is not code-state-anchored — the helper's
Current Revision: and Repository Name: output is ignored here
even when present.
Write to:
<design_gaps>/YYYY-MM-DD-{current-source-id}-vs-{target-source-id}.md
The References section must record:
Report:
Suggest next steps:
/accelerator:extract-work-items <gap-file> to generate work itemssequence tiebreaker is authoritative; do not rely on directory-name date
alone.!${CLAUDE_PLUGIN_ROOT}/scripts/config-read-skill-instructions.sh analyse-design-gaps
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub atomicinnovation/accelerator --plugin accelerator68 skills in this plugin
/architecture-lensArchitecture review lens for evaluating structural integrity, coupling, cohesion, and evolutionary fitness. Used by review orchestrators — not invoked directly./attach-jira-issueUse this skill only when the user explicitly invokes /attach-jira-issue to upload one or more local files as attachments to a Jira issue. This is a write skill with irreversible side effects — it must never be auto-invoked from conversational context. Shows a preview of what will be uploaded and requires explicit confirmation before POSTing.
/attach-linear-issueUse this skill only when the user explicitly invokes /attach-linear-issue to attach a link or a binary file to an existing Linear issue. This is a write skill with irreversible side effects — it must never be auto-invoked from conversational context. Link mode registers an external URL; binary mode uploads a local file via Linear's pre-signed URL flow and registers the resulting asset. Shows a preview, requires explicit confirmation, then attaches.
/browser-executorResolves the absolute path of the Playwright executor (run.sh) for browser agents. Preloaded by agent definitions that need to invoke the executor without self-discovery; not intended for direct user invocation./clarityWork-item review lens for evaluating unambiguous communication — referent clarity, internal consistency, jargon handling, and actor/outcome identification. Used by review orchestrators — not invoked directly./code-quality-lensCode quality review lens for evaluating design principles, error handling, complexity, testability, and maintainability. Used by review orchestrators — not invoked directly.Other plugins' skills for the same job