xiaohongshu
xiaohongshu
ln-310-story-validator
Validates Stories/Tasks with GO/NO-GO verdict, Readiness Score (1-10), Penalty Points, and Anti-Hallucination verification. Auto-fixes to reach 0 points, delegates to ln-002 for docs. Use when reviewing Stories before execution or when user requests validation.
Full skill instructions
Validate Stories/Tasks with explicit GO/NO-GO verdict, Readiness Score, and Anti-Hallucination verification.
Goal: Quantitative assessment of Story/Tasks quality. Target = 0 penalty points after fixes.
| Severity | Points | Description |
|---|---|---|
| CRITICAL | 10 | RFC/OWASP/security violations |
| HIGH | 5 | Outdated libraries, architecture issues |
| MEDIUM | 3 | Best practices violations |
| LOW | 1 | Structural/cosmetic issues |
Workflow:
Detect operating mode at startup:
Plan Mode Active:
Normal Mode:
Step 1: Configuration & Metadata Loading
docs/tasks/kanban_board.md), project docs (CLAUDE.md), epic from Story.projectAlways execute for every Story - no exceptions.
Step 1: Domain Extraction
references/domain_patterns.mdStep 2: Documentation Delegation
Skill(skill="ln-002-best-practices-researcher",
args="doc_type=[guide|manual|adr] topic='[pattern]'")
docs/guides/, docs/manuals/, docs/adrs/, docs/research/)Step 3: Research via MCP
ref_search_documentation(query="[topic] RFC OWASP best practices 2025")resolve-library-id + query-docsStep 3.5: Anti-Hallucination Verification
Step 4: Penalty Points Calculation
Display audit results:
Mode handling:
Execute fixes for ALL 19 criteria on the spot.
kanban_board.md with APPROVED marker--execute flag provided, delegate to ln-400-story-executor to start execution immediately after approval| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 1 | Story Structure | 8 sections per template | LOW (1) | Add/reorder sections with TODO placeholders; update Linear |
| 2 | Tasks Structure | Each Task has 7 sections | LOW (1) | Load each Task; add/reorder sections; update Linear |
| 3 | Story Statement | As a/I want/So that clarity | LOW (1) | Rewrite using persona/capability/value; update Linear |
| 4 | Acceptance Criteria | Given/When/Then, 3-5 items | MEDIUM (3) | Normalize to G/W/T; add edge cases; update Linear |
| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 5 | Standards Compliance | RFC, OWASP, REST, Security | CRITICAL (10) | Query MCP Ref; update Technical Notes with compliant approach |
| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 6 | Library & Version | Libraries are latest stable | HIGH (5) | Query Context7; update to recommended versions |
| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 7 | Test Strategy | Section exists but empty | LOW (1) | Ensure section present; leave empty (testing handled separately) |
| 8 | Documentation Integration | No standalone doc tasks | MEDIUM (3) | Remove doc-only tasks; fold into implementation DoD |
| 9 | Story Size | 3-8 tasks; 3-5h each | MEDIUM (3) | If <3 or >8, add TODO; flag task size issues |
| 10 | Test Task Cleanup | No premature test tasks | MEDIUM (3) | Remove test tasks before final; testing appears later |
| 11 | YAGNI | No premature features | MEDIUM (3) | Move speculative items to Out of Scope unless standards require |
| 12 | KISS | Simplest solution | MEDIUM (3) | Simplify unless standards require complexity |
| 13 | Task Order | DB→Service→API→UI | MEDIUM (3) | Reorder Tasks foundation-first |
| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 14 | Documentation Complete | Pattern docs exist + referenced | HIGH (5) | Delegate to ln-002; add all doc links to Technical Notes |
| 15 | Code Quality Basics | No hardcoded values | MEDIUM (3) | Add TODOs for constants/config/env |
| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 16 | Story-Task Alignment | Tasks implement Story statement | MEDIUM (3) | Add TODO to misaligned Tasks; warn user |
| 17 | AC-Task Coverage | Each AC has implementing Task | MEDIUM (3) | Add TODO for uncovered ACs; suggest missing Tasks |
| # | Criterion | What it checks | Penalty | Auto-fix actions |
|---|---|---|---|---|
| 18 | Story Dependencies | No forward Story dependencies | CRITICAL (10) | Flag forward dependencies; suggest reorder |
| 19 | Task Dependencies | No forward Task dependencies | MEDIUM (3) | Flag forward dependencies; reorder Tasks |
Maximum Penalty: 60 points
Outputs after all fixes applied:
| Metric | Value | Meaning |
|---|---|---|
| Gate | GO / NO-GO | Final verdict for execution readiness |
| Readiness Score | 1-10 | Quality confidence level |
| Penalty Points | 0 (after fixes) | Validation completeness |
| Anti-Hallucination | VERIFIED / FLAGGED | Technical claims verified |
| AC Coverage | 100% (N/N) | All ACs mapped to Tasks |
Readiness Score = 10 - (Penalty Points / 5)
| Score | Status | Gate |
|---|---|---|
| 9-10 | Excellent | GO |
| 7-8 | Good | GO |
| 5-6 | Acceptable | GO (with notes) |
| 3-4 | Concerns | NO-GO (requires review) |
| 1-2 | Critical | NO-GO (major issues) |
Verify technical claims have evidence:
| Claim Type | Verification |
|---|---|
| RFC/Standard reference | MCP Ref search confirms existence |
| Library version | Context7 query confirms version |
| Security requirement | OWASP/CWE reference exists |
| Performance claim | Benchmark/doc reference |
Status: VERIFIED (all claims sourced) or FLAGGED (unverified claims listed)
Output explicit mapping:
| AC | Task(s) | Coverage |
|----|---------|----------|
| AC1: Given/When/Then | T-001, T-002 | ✅ |
| AC2: Given/When/Then | T-003 | ✅ |
| AC3: Given/When/Then | — | ❌ UNCOVERED |
Coverage: {covered}/{total} ACs (target: 100%)
Before marking any criterion as complete, provide concrete evidence (doc path, MCP result, Linear update).
| # | Self-Audit Question | Required Evidence |
|---|---|---|
| 1 | Validated all 8 Story sections? | Section list |
| 2 | Loaded full description for each Task? | Task validation count |
| 3 | Statement in As a/I want/So that? | Quoted statement |
| 4 | AC are G/W/T and testable? | AC count and format |
| 5 | Verified RFC/OWASP/REST compliance? | Standards list + MCP result |
| 6 | Checked library versions via Context7? | Context7 result |
| 7 | Test Strategy kept empty? | Note that testing deferred |
| 8 | Docs integrated, no standalone tasks? | Integration evidence |
| 9 | Task count 3-8 and 3-5h? | Task count/sizes |
| 10 | No premature test tasks? | Search result |
| 11 | Only current-scope features (YAGNI)? | Scope review |
| 12 | Simplest approach within standards (KISS)? | Simplicity justification |
| 13 | Tasks ordered Foundation-First? | Task order list |
| 14 | All pattern docs exist and referenced? | Doc paths from ln-002 |
| 15 | Hardcoded values handled? | TODO/config evidence |
| 16 | Each Task aligns with Story statement? | Alignment check result |
| 17 | Each AC has implementing Task? | Coverage matrix |
gate: GO | NO-GO
readiness_score: {1-10}
penalty_points: 0 (was {N})
anti_hallucination: VERIFIED | FLAGGED
ac_coverage: "{N}/{M} (100%)"
ac_matrix:
- ac: "AC1"
tasks: ["T-001", "T-002"]
status: covered
kanban_board.md updated; Linear comment with Final Assessment added--execute flag, ln-400-story-executor invoked after approvalStory: "Create user management API with rate limiting"
Templates: story_template.md, task_template_implementation.md
Loading Logic:
docs/templates/{template}.md exists in target projectdocs/templates/ directory if missing
b. Copy shared/templates/{template}.md → docs/templates/{template}.md
c. Replace placeholders in the LOCAL copy:
{{TEAM_ID}} → from docs/tasks/kanban_board.md{{DOCS_PATH}} → "docs" (standard)docs/templates/{template}.md) for all validation operationsRationale: Templates are copied to target project on first use, ensuring:
references/readiness_scoring.md (GO/NO-GO rules, Readiness Score calculation)shared/templates/story_template.md, shared/templates/task_template_implementation.mddocs/templates/ (in target project)references/verification_checklist_template.md (overview of 7 categories)references/structural_validation.md (criteria #1-#4)references/standards_validation.md (criterion #5)references/solution_validation.md (criterion #6)references/workflow_validation.md (criteria #7-#13)references/quality_validation.md (criteria #14-#15)references/dependency_validation.md (criteria #18-#19)references/traceability_validation.md (criteria #16-#17)references/domain_patterns.md (pattern registry for ln-002 delegation)references/penalty_points.md (penalty system details)../shared/templates/linear_integration.mdVersion: 7.0.0 (BREAKING: Added 2 new criteria #18-#19 for Story/Task dependencies per BMAD Method. Expanded criterion #4 with AC completeness/specificity, #9 with Database Creation Principle, #13 with forward dependency checks, #17 with STRONG/WEAK/MISSING coverage quality. Total 19 criteria, max 60 penalty points.) 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