xiaohongshu
xiaohongshu
ln-500-story-quality-gate
Story-level quality orchestrator with 4-level Gate (PASS/CONCERNS/FAIL/WAIVED) and Quality Score. Pass 1: code quality -> regression -> manual testing. Pass 2: verify tests/coverage -> calculate NFR scores -> mark Story Done. Use when user requests quality gate for Story or when ln-400 delegates ...
Full skill instructions
Two-pass Story review with 4-level Gate verdict, Quality Score calculation, and NFR validation (security, performance, reliability, maintainability).
| 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 × FAIL_count) - (10 × 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) |
Evaluate 4 non-functional requirement dimensions:
| NFR | Checks | Issue Prefix |
|---|---|---|
| Security | Auth, input validation, secrets exposure | SEC- |
| Performance | N+1 queries, caching, response times | PERF- |
| Reliability | Error handling, retries, timeouts | REL- |
| Maintainability | DRY, SOLID, cyclomatic complexity | MNT- |
Additional prefixes: TEST- (coverage gaps), ARCH- (architecture issues), DOC- (documentation gaps), DEP- (Story/Task dependencies), COV- (AC coverage quality), DB- (database schema), AC- (AC validation)
NFR verdict per dimension: PASS / CONCERNS / FAIL
pass parameter can force 1 or 2; otherwise auto-detect by test task status.references/criteria_validation.md:
TodoWrite format (mandatory): Add pass steps to todos before starting:
Pass 1:
- Invoke ln-501-code-quality-checker (in_progress)
- Pass 1.5: Criteria Validation (Story deps, AC coverage, DB schema) (pending)
- Run linters from tech_stack.md (pending)
- Invoke ln-502-regression-checker (pending)
- Invoke ln-510-test-planner (research + manual + auto tests) (pending)
Pass 2:
- Verify test task coverage (in_progress)
- Mark Story Done (pending)
Mark each as in_progress when starting, completed when done. On failure, mark remaining as skipped.
| Step | Worker | Context | Rationale |
|---|---|---|---|
| Code Quality | ln-501-code-quality-checker | Separate (Task tool) | Independent analysis, focused on DRY/KISS/YAGNI |
| Regression | ln-502-regression-checker | Shared (direct Skill tool) | Needs Story context and previous check results |
| Test Planning | ln-510-test-planner | Shared (direct Skill tool) | Needs full Gate context for test planning |
ln-501 invocation (Separate Context):
Task(description: "Code quality check via ln-501",
prompt: "Execute ln-501-code-quality-checker. Read skill from ln-501-code-quality-checker/SKILL.md. Story: {storyId}",
subagent_type: "general-purpose")
ln-501 result contract (Task tool return): Task tool returns worker's final message. Parse for YAML block:
verdict: PASS | CONCERNS | ISSUES_FOUNDquality_score: 0-100issues: [{id, severity, finding, action}]ln-502 and ln-510: Invoke via direct Skill tool — workers see Gate context.
Note: ln-510 orchestrates the full test pipeline (ln-511 research → ln-512 manual → ln-513 auto tests).
❌ FORBIDDEN SHORTCUTS (Anti-Patterns):
mypy, ruff, pytest directly instead of invoking ln-501/ln-502✅ CORRECT BEHAVIOR:
Skill(skill: "ln-50X-...") for EVERY step — NO EXCEPTIONSZERO TOLERANCE: If you find yourself running quality commands directly (mypy, ruff, pytest, curl) instead of invoking the appropriate skill, STOP and use Skill tool instead.
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: "..."}]
references/criteria_validation.md (Story deps, AC coverage quality, DB schema checks from ln-310)references/gate_levels.md (detailed scoring rules and thresholds)../ln-501-code-quality-checker/SKILL.md, ../ln-502-regression-checker/SKILL.md../ln-510-test-planner/SKILL.md (coordinates ln-511/512/513)docs/project/tech_stack.mdVersion: 6.0.0 (BREAKING: Added Pass 1.5 Criteria Validation with 3 checks from ln-310 - Story dependencies, AC-Task Coverage Quality (STRONG/WEAK/MISSING), Database Creation Principle. New issue prefixes: DEP-, COV-, DB-, AC-. Closes validation-execution gap at Story level per BMAD Method best practices.) Last Updated: 2026-02-03
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience