xiaohongshu
xiaohongshu
ln-140-test-docs-creator
Creates test documentation (testing-strategy.md + tests/README.md). Establishes testing philosophy and Story-Level Test Task Pattern. L2 Worker in ln-100-documents-pipeline workflow.
Full skill instructions
This skill creates and validates test documentation: testing-strategy.md (universal testing philosophy) + tests/README.md (test organization structure and Story-Level Test Task Pattern).
This skill is a L2 WORKER invoked by ln-100-documents-pipeline orchestrator.
This skill should be used directly when:
The skill follows a 3-phase workflow: CREATE → VALIDATE STRUCTURE → VALIDATE CONTENT. Each phase builds on the previous, ensuring complete structure and semantic validation.
Objective: Establish test philosophy and documentation structure.
Process:
1.1 Check & create directories:
docs/reference/guides/ exists → create if missingtests/ exists → create if missingtests/manual/ exists → create if missingtests/manual/results/ exists → create if missingtests/manual/results/ to project .gitignore if not present1.2 Check & create documentation files:
Check if docs/reference/guides/testing-strategy.md exists
If exists:
If NOT exists:
ln-114-test-docs-creator/references/testing_strategy_template.md → docs/reference/guides/testing-strategy.md[CURRENT_DATE] — current date (YYYY-MM-DD)Check if tests/README.md exists
If exists:
If NOT exists:
ln-114-test-docs-creator/references/tests_readme_template.md → tests/README.md{{DATE}} — current date (YYYY-MM-DD)1.3 Output:
docs/reference/guides/
└── testing-strategy.md # Created or existing
tests/
├── README.md # Created or existing
└── manual/
└── results/ # Created, added to .gitignore
Objective: Ensure test documentation files comply with structural requirements and auto-fix violations.
Process:
2.1 Check SCOPE tags:
<!-- SCOPE: ... --> tag in each<!-- SCOPE: Universal testing philosophy (Risk-Based Testing, test pyramid, isolation patterns) --><!-- SCOPE: Test organization structure (directory layout, Story-Level Test Task Pattern) -->scope_tags_added += 12.2 Check required sections:
references/questions.md## [Section Name] header existsmissing_sections += 12.3 Check Maintenance section:
## Maintenance header## Maintenance
**Last Updated:** [current date]
**Update Triggers:**
- Test framework changes
- Test organization changes
- New test patterns introduced
**Verification:**
- [ ] All test examples follow current framework syntax
- [ ] Directory structure matches actual tests/
- [ ] Test runner commands are current
maintenance_added += 12.4 Check POSIX file endings:
posix_fixed += 12.5 Report validation:
✅ Structure validation complete:
- SCOPE tags: [added N / already present]
- Missing sections: [added N sections]
- Maintenance sections: [added N / already present]
- POSIX endings: [fixed N / compliant]
Objective: Ensure each section answers its questions with meaningful content and populate test-specific sections from auto-discovery.
Process:
3.1 Load validation spec:
references/questions.md3.2 Validate testing-strategy.md sections:
For this file, use standard template content (no auto-discovery needed):
Testing Philosophy section:
Test Levels section:
Note: testing-strategy.md is universal philosophy - no project-specific auto-discovery needed.
3.3 Validate tests/README.md sections with auto-discovery:
Section: Test Organization
Auto-discover test framework:
package.json → "devDependencies" and "dependencies":
requirements.txt (if Python project):
go.mod (if Go project):
framework_detected = "[framework]"framework_detected = NoneAuto-discover test directory structure:
"tests/e2e/**/*.{js,ts,py,go}""tests/integration/**/*.{js,ts,py,go}""tests/unit/**/*.{js,ts,py,go}"e2e_count = len(e2e_files)integration_count = len(integration_files)unit_count = len(unit_files)tests/
e2e/ (empty, ready for E2E tests)
integration/ (empty, ready for Integration tests)
unit/ (empty, ready for Unit tests)
Auto-discover naming conventions:
*.test.js → "*.test.js" convention*.spec.ts → "*.spec.ts" conventiontest_*.py → "test_*.py" convention*_test.go → "*_test.go" conventionCheck Test Organization section content:
Section: Running Tests
Auto-discover test runner command:
package.json → "scripts" → "test""jest" → Test runner: "npm test" (runs jest)"vitest" → Test runner: "npm test" (runs vitest)"mocha" → Test runner: "npm test" (runs mocha)Auto-discover coverage command (optional):
package.json → "scripts" for:
Check Running Tests section content:
3.4 Report content validation:
✅ Content validation complete:
- testing-strategy.md: [2 sections checked]
- tests/README.md: [2 sections checked]
- Test framework: [detected framework or "Not detected"]
- Test structure: [e2e/integration/unit counts or "Created placeholder"]
- Naming convention: [pattern or "Framework default"]
- Test runner: [command]
- Coverage command: [command]
docs/reference/guides/
└── testing-strategy.md # Universal testing philosophy (465 lines)
tests/
└── README.md # Test organization + Story-Level Pattern (112 lines)
Note: Actual test directories (e2e/, integration/, unit/) created during Story test task execution or Phase 3 if missing.
Testing Strategy Template:
references/testing_strategy_template.md - Universal testing philosophy with:
Tests README Template:
references/tests_readme_template.md - Test organization with:
Validation Specification:
references/questions.md (v1.0.0) - Question-driven validation:
Invoked by: ln-110-documents-pipeline orchestrator
Requires:
docs/reference/guides/ directory (created by ln-112-reference-docs-creator or Phase 1 if missing)Creates:
docs/reference/guides/testing-strategy.md (universal testing philosophy)tests/README.md (test organization structure)Before completing work, verify ALL checkpoints:
✅ Structure Created (Phase 1):
docs/reference/guides/ directory existstests/ directory existstests/manual/ directory existstests/manual/results/ directory existstests/manual/results/ added to .gitignoretesting-strategy.md exists (created or existing)tests/README.md exists (created or existing)✅ Structure Validated (Phase 2):
✅ Content Validated (Phase 3):
✅ Reporting:
Standards:
Language: English only
Auto-Discovery Support:
Version: 7.2.0 (Added tests/manual/results/ structure creation and .gitignore entry) Last Updated: 2026-01-15
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