From accelerator
Compares two design inventories from current and target surfaces to emit a structured gap artifact under meta/design-gaps/ that feeds into accelerator:extract-work-items for actionable tasks.
npx claudepluginhub atomicinnovation/accelerator --plugin acceleratorThis skill is limited to using the following tools:
!`${CLAUDE_PLUGIN_ROOT}/scripts/config-read-context.sh`
Generates structured design inventory for frontend sources—tokens, components, screens, features—via code analysis, Playwright inspection, or hybrid crawling. Captures dated snapshots with inventory.md and screenshots for design gap analysis.
Identifies system-wide drift in design systems: components diverging from specs, local token overrides, forked patterns across teams. Classifies severity, origins, and generates response recommendations.
Current session: !`source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_current_session 2>/dev/null || echo "No active session"`
Share bugs, ideas, or general feedback.
!${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 design_inventories meta/design-inventories
Design gaps directory: !${CLAUDE_PLUGIN_ROOT}/scripts/config-read-path.sh design_gaps meta/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`
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