skills/gap-analysis/SKILL.md
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.
npx skillsauth add Cheggin/skill-chain gap-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
development
Design engineering principles for making interfaces feel polished. Use when building UI components, reviewing frontend code, implementing animations, hover states, shadows, borders, typography, micro-interactions, enter/exit animations, or any visual detail work. Triggers on UI polish, design details, "make it feel better", "feels off", stagger animations, border radius, optical alignment, font smoothing, tabular numbers, image outlines, box shadows.
documentation
Agentic memory system for writers - track characters, relationships, scenes, and themes
documentation
LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)
development
Build production-quality SaaS websites with opinionated design presets. Use when creating any startup website. The user MUST pick a design style before building. Enforces shadcn/ui, Figma design principles, specific CSS values per style, and anti-AI-writing. Load alongside anti-ai-writing skill. LIGHT MODE ONLY.