/skill-chain:gap-analysis <built-product-path> [--category saas|cli|chrome-extension]from skill-chain
Compare a harness-built product against a reference product in the same category. Scores feature count, code depth, test coverage, page count, and UX complexity. Use after building a product to identify what's missing vs production-grade open source.
Ships in skill-chain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Compare a harness-built product against a real open-source reference product to identify gaps in feature depth, test coverage, and code quality.
test-runs/level-5-image-converter/project)saas, cli, or chrome-extension. Auto-detected from .harness/founder-profile.yml if present.References are defined in .harness/product-references.yml and cloned to reference/products/. Each category has 1-2 production-grade open-source products as ground truth.
.harness/founder-profile.yml or --category flag.harness/product-references.ymlRun these measurements on both the built product and the reference product:
Feature Count
app/**/page.tsx, pages/**/*.tsx)app/api/**/route.ts, pages/api/**)Code Depth
node_modules, .git, lockfiles)Test Coverage
**/*.test.*, **/*.spec.*, **/test/**, **/__tests__/**)expect(, assert(, it(, test()Page Count (web apps only)
UX Complexity (web apps only)
For each metric, compute:
gap_percent = ((reference_value - built_value) / reference_value) * 100
Produce a scored report:
| Metric | Built | Reference | Gap |
|---|---|---|---|
| Routes/Pages | ? | ? | ?% |
| API Endpoints | ? | ? | ?% |
| Test Files | ? | ? | ?% |
| Source Files | ? | ? | ?% |
| Lines of Code | ? | ? | ?% |
Overall gap score: weighted average (feature count 30%, test coverage 25%, code depth 20%, page count 15%, UX complexity 10%)
List the top 5 specific features/patterns present in the reference but missing in the built product:
Output a structured list of improvement targets that can feed into /plan or /self-improve:
targets:
- area: test-coverage
current: 12 test files
reference: 847 test files
gap: 98%
priority: P0
action: "Generate tests for all routes and API endpoints"
- area: feature-count
current: 9 pages
reference: 45 pages
gap: 80%
priority: P1
action: "Add missing CRUD pages, settings, billing"
Save the report to .harness/gap-analysis-{timestamp}.yml in the built product's directory.
Print a summary to the terminal showing:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cheggin/skill-chain --plugin skill-chain2 plugins ship this exact skill · first indexed Oct 25, 2026
Other plugins' skills for the same job
122 skills in this plugin
/accessibility-checkerRun automated WCAG 2.1 AA accessibility audits using axe-core via Playwright. Use when implementing or reviewing UI features to enforce accessibility compliance, catch color contrast failures, validate keyboard navigation, check screen reader landmarks, verify alt text and ARIA attributes, or gate feature completion on accessibility standards./adaptAdapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility./agent-creatorCreate new agent definitions with specific instruction sets, skill assignments, and behavioral rules. Use when the user wants a new type of agent (e.g., research-papers agent, customer-support agent, data-pipeline agent) or wants to modify an existing agent's behavior.