) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Automated Test Planner
Creates Story test task with comprehensive automated test coverage (E2E/Integration/Unit) based on Risk-Based Testing methodology and REAL manual testing results.
Inputs
Input
Required
Source
Description
storyId
Yes
args, git branch, kanban, user
Story to process
Resolution:
Story Resolution Chain.
Status filter:
To Review
Purpose & Scope
Create
comprehensive test task for Story automation
Calculate
risk-based priorities (Impact x Probability)
Generate
11-section test plan from manual test results
Delegate
to ln-301-task-creator (CREATE) or ln-302-task-replanner (REPLAN)
NOT
for: manual testing (ln-522), research (ln-521), orchestration (ln-520)
When to Use This Skill
This skill should be used when:
Invoked by ln-520-test-planner
after ln-521 research and ln-522 manual testing
All implementation tasks in Story are Done
Manual testing results documented in Linear comment (from ln-522)
Research findings available in Linear comment (from ln-521)
Map to test design: PASSED AC -> E2E, Edge cases -> Unit, Errors -> Error handling, Flows -> Integration
Step 2: Analyze Story + Tasks
Parse Story: Goal, Test Strategy, Technical Notes
Fetch all child Tasks (status = Done):
IF
task_provider
=
linear
:
list_issues(parentId=Story.id, state="Done")
IF
task_provider
=
file
:
Glob("docs/tasks/epics//stories//tasks/*.md")
→ filter by
Status: Done
Analyze each Task:
Components implemented
Business logic added
Integration points created
Conditional branches (if/else/switch)
Identify what needs testing
Phase 3: Parsing Strategy for Manual Test Results
Process:
Locate Linear comment with "Manual Testing Results" header -> Verify Format Version 1.0 -> Extract structured sections (Acceptance Criteria, Test Results by AC, Edge Cases, Error Handling, Integration Testing) using regex -> Validate (at least 1 PASSED AC, AC count matches Story, completeness check) -> Map parsed data to test design structure
Error Handling:
Missing comment -> ERROR (run ln-522 first), Missing format version -> WARNING (try legacy parsing), Required section missing -> ERROR (re-run ln-522), No PASSED AC -> ERROR (fix implementation)
Phase 4: Risk-Based Test Planning (Automated)
MANDATORY READ:
Load
shared/references/risk_based_testing_guide.md
for complete methodology.
E2E-First Approach:
Prioritize by business risk (Priority = Impact x Probability), not coverage metrics.
Workflow:
Step 1: Risk Assessment
Calculate Priority for each scenario from manual testing:
Priority = Business Impact (1-5) x Probability (1-5)
Invoke ln-302-task-replanner worker with taskType: "test"
Pass to worker:
Same data as CREATE MODE + existingTaskIds
Worker returns:
Operations summary + warnings
Step 5:
Return summary to orchestrator (ln-520)
Definition of Done
Research and Manual Results Loaded:
Research comment "## Test Research: {Feature}" found (from ln-521)
Manual test results "## Manual Testing Results" found (from ln-522)
At least 1 AC marked as PASSED
Risk-Based Test Plan Generated:
Risk Priority Matrix calculated for all scenarios
E2E tests: Baseline positive + negative, additional only if Priority ≥15
Integration tests: ONLY if E2E doesn't cover AND Priority ≥15
Unit tests: ONLY complex business logic with Priority ≥15
Each test passes all 6 Usefulness Criteria
No framework/library testing: Each test validates OUR business logic only
Test Task Description Complete (11 sections):
All 11 sections populated per template
Risk Priority Matrix included
Each test beyond baseline 2 justified
Worker Delegation Executed:
CREATE MODE: Delegated to ln-301-task-creator
REPLAN MODE: Delegated to ln-302-task-replanner
Linear Issue URL returned
Output:
CREATE MODE:
Linear Issue URL + confirmation
REPLAN MODE:
Operations summary + URLs
Reference Files
Tools config:
shared/references/tools_config_guide.md
Storage mode operations:
shared/references/storage_mode_detection.md
Risk-based testing methodology:
shared/references/risk_based_testing_guide.md
Auto-discovery patterns:
shared/references/auto_discovery_pattern.md
MANDATORY READ:
shared/references/research_tool_fallback.md
risk_based_testing_guide.md
Purpose
Risk-Based Testing methodology (detailed guide)
Location
:
shared/references/risk_based_testing_guide.md
test_task_template.md (CENTRALIZED)
Location
:
shared/templates/test_task_template.md
Usage
Workers (ln-301, ln-302) load via Template Loading logic
Critical Rules
Manual results required:
Never plan tests without ln-522 manual testing results — guessing coverage is worse than no tests
E2E-first, not unit-first:
Baseline is always 2 E2E (positive + negative); unit/integration added only for Priority >= 15
No framework testing:
Every test must validate OUR business logic; never test library/framework behavior
Usefulness enforcement:
Every test beyond baseline must pass all 6 Usefulness Criteria (see risk_based_testing_guide.md)
Delegate, don't create:
Task creation goes through ln-301/ln-302 workers; this skill generates the plan only
Best Practices
Minimum Viable Testing:
Start with baseline E2E (positive + negative). Each additional test must pass all 6 Usefulness Criteria.
Risk-Based Testing:
Prioritize by Business Impact x Probability. E2E-first from ACTUAL manual testing results. Priority ≥15 scenarios covered by tests.
Expected-Based Testing:
For deterministic tests, compare actual vs expected using
diff
.
MANDATORY READ:
Load
../ln-522-manual-tester/SKILL.md
— section "Test Design Principles".
Version:
1.0.0
Last Updated:
2026-01-15