.claude/skills/ln-500-story-quality-gate/SKILL.md
Story-level quality orchestrator with 4-level Gate (PASS/CONCERNS/FAIL/WAIVED) and Quality Score. Delegates to ln-510 (quality) and ln-520 (tests), calculates final verdict.
npx skillsauth add cbbkrd-tech/jl-finishes ln-500-story-quality-gateInstall 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.
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Thin orchestrator that coordinates quality checks and test planning, then determines final Story verdict.
| Level | Meaning | Action | |-------|---------|--------| | PASS | All checks pass, no issues | Story -> Done | | CONCERNS | Minor issues, acceptable risk | Story -> Done with comment noting concerns | | FAIL | Blocking issues found | Create fix tasks, return to ln-400 | | WAIVED | Issues acknowledged by user | Story -> Done with waiver reason documented |
Verdict calculation: FAIL if any check fails. CONCERNS if minor issues exist. PASS if all clean.
Formula: Quality Score = 100 - (20 x FAIL_count) - (10 x CONCERN_count)
| Score Range | Status | Action | |-------------|--------|--------| | 90-100 | Excellent | PASS | | 70-89 | Acceptable | CONCERNS (proceed with notes) | | 50-69 | Below threshold | FAIL (create fix tasks) | | <50 | Critical | FAIL (urgent priority) |
| NFR | Checks | Issue Prefix | |-----|--------|--------------| | Security | Auth, input validation, secrets exposure | SEC- | | Performance | N+1 queries, caching, response times | PERF- | | Maintainability | DRY, SOLID, cyclomatic complexity, error handling | MNT- |
Additional prefixes: TEST- (coverage gaps), ARCH- (architecture), DOC- (documentation), DEP- (dependencies), COV- (AC coverage), DB- (database schema), AC- (AC validation)
docs/tasks/kanban_board.mdStories with high readiness (validated pre-execution) can skip expensive checks.
IF readiness_score available in CONTEXT:
IF readiness_score == 10:
fast_track = true
ELSE:
fast_track = false
ELSE:
fast_track = false # No readiness data — full gate
Fast-track matrix (readiness == 10):
| Component | Full Gate | Fast-Track | Why | |-----------|-----------|------------|-----| | ln-514 regression tests | RUN | RUN | Always critical, cheap | | Linters | RUN | RUN | Cheap, catches formatting | | Criteria Validation (3 checks) | RUN | RUN | Cheap, validates AC coverage | | ln-511 metrics + static analysis | RUN | RUN | Catches complexity/DRY/dead code that per-task review misses | | ln-511 MCP Ref (OPT-, BP-, PERF-) | RUN | SKIP | Expensive external calls | | ln-513 agent review | RUN | SKIP | Expensive external calls | | ln-520 test planning | RUN | SKIP | Redundant for pre-validated | | NFR validation | All dims | Security only | Perf/Maintainability less critical |
--fast-track flag if fast_track == true)--skip-mcp-ref) -> criteria -> linters -> regression (ln-514) — skips MCP Ref/ln-513IF fast_track: SKIP Phase 4 entirely (proceed to Phase 5)
Check test task status:
Invoke ln-520-test-planner via Skill tool (if needed)
docs/project/architecture_health.md under ## Root Cause Log (create section if missing). Format: | {date} | {story_id} | {issue_id} | {classification} | {action_taken} |TodoWrite format (mandatory):
- Invoke ln-510-quality-coordinator (in_progress)
- Check test task status (pending)
- Invoke ln-520-test-planner (pending, if needed)
- Verify test coverage (pending)
- Calculate Quality Score + NFR (pending)
- Determine verdict + update Story (pending)
| Phase | Worker | Purpose | |-------|--------|---------| | 2 | ln-510-quality-coordinator | Code quality + criteria + linters + regression | | 3 | ln-520-test-planner | Research + manual testing + auto test planning |
Invocation:
Skill(skill: "ln-510-quality-coordinator", args: "{storyId}")
Skill(skill: "ln-520-test-planner", args: "{storyId}")
Anti-Patterns:
gate: PASS | CONCERNS | FAIL | WAIVED
quality_score: {0-100}
nfr_validation:
security: PASS | CONCERNS | FAIL
performance: PASS | CONCERNS | FAIL
reliability: PASS | CONCERNS | FAIL
maintainability: PASS | CONCERNS | FAIL
issues: [{id: "SEC-001", severity: high|medium|low, finding: "...", action: "..."}]
shared/references/orchestrator_pattern.md../ln-510-quality-coordinator/SKILL.md../ln-520-test-planner/SKILL.mdshared/references/risk_based_testing_guide.mdVersion: 7.0.0 Last Updated: 2026-02-09
testing
When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," or "content planning." For writing individual pieces, see copywriting. For SEO-specific audits, see seo-audit.
development
When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' or 'competitive landing pages.' Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. Emphasizes deep research, modular content architecture, and varied section types beyond feature tables.
development
Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Covers subject lines, opening lines, body copy, CTAs, personalization, and multi-touch follow-up sequences.
development
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' or 'involuntary churn.' This skill covers voluntary churn (cancel flows, save offers, exit surveys) and involuntary churn (dunning, payment recovery). For post-cancel win-back email sequences, see email-sequence. For in-app upgrade paywalls, see paywall-upgrade-cro.