Source profileQuality 94/100

humansys/raise/packages/raise-cli/src/raise_cli/skills_base/rai-story-plan/SKILL.md

rai-story-plan

Decompose story into atomic tasks with TDD verification. Use after story design.

Source repository stars
71
Declared platforms
0
Static risk flags
0
Last source update
2026-08-22
Source checked
2026-08-25

Decision brief

What it does: where it fits

Decompose story into atomic tasks with TDD verification. Use after story design.

Best for

  • Decompose a story into atomic executable tasks with dependencies, verification criteria, and a deterministic execution order.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/humansys/raise --skill "packages/raise-cli/src/raise_cli/skills_base/rai-story-plan"
Safe inspection promptEditorial

Inspect the Agent Skill "rai-story-plan" from https://github.com/humansys/raise/blob/88a77d6e4065e3c8bdbae9be4aff5b84e6a7a5eb/packages/raise-cli/src/raise_cli/skills_base/rai-story-plan/SKILL.md at commit 88a77d6e4065e3c8bdbae9be4aff5b84e6a7a5eb. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Step 1: Verify Design

    JIT: Before verifying design completeness, query graph for complexity assessment patterns → aspects/introspection.md § JIT Protocol

    JIT: Before verifying design completeness, query graph for complexity assessment patterns → aspects/introspection.md § JIT ProtocolDesign loaded or simple story confirmed.
  2. 02

    Step 2: Decompose into Tasks

    Divide story into atomic, individually verifiable tasks. One commit per task.

    Description, files to create/modifyTDD cycle: RED (failing test) → GREEN (minimal code) → REFACTORAC reference: link to story.md Gherkin scenario (if exists)
  3. 03

    Step 3: Order & Dependencies

    JIT: Before ordering dependencies, query graph for risk-first ordering patterns → aspects/introspection.md § JIT Protocol

    Map dependencies (sequential vs parallel)Apply risk-first ordering (riskiest tasks early)Maximize parallelism where no mutual dependencies exist
  4. 04

    Step 4: Document Plan

    Publish work/epics/e{N}-{name}/stories/s{N}.{M}-plan.md via CLI:

    Overview (story ID, size, date)Ordered task list with descriptions, files, verification, sizes, dependenciesExecution order with rationale
  5. 05

    Purpose

    Decompose a story into atomic executable tasks with dependencies, verification criteria, and a deterministic execution order.

    Decompose a story into atomic executable tasks with dependencies, verification criteria, and a deterministic execution order.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score94/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars71SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
humansys/raise
Skill path
packages/raise-cli/src/raise_cli/skills_base/rai-story-plan/SKILL.md
Commit
88a77d6e4065e3c8bdbae9be4aff5b84e6a7a5eb
License
Apache-2.0
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Story Plan

Purpose

Decompose a story into atomic executable tasks with dependencies, verification criteria, and a deterministic execution order.

Mastery Levels (ShuHaRi)

See raise.mastery in frontmatter.

Context

When to use: After /rai-story-design has grounded integration decisions (or directly for simple stories).

Prerequisite: Design document at work/epics/e{N}-{name}/stories/s{N}.{M}-design.md (optional for simple stories).

Inputs: Story with acceptance criteria, design document (if exists).

Steps

PRIME (mandatory — do not skip)

Before starting Step 1, you MUST execute the PRIME protocol:

  1. Graph query: Execute tier1 queries from this skill's metadata using the raise_graph_query MCP tool with cwd="{project_or_worktree_path}". If MCP tools are not available, fall back to:
    rai graph query
    
    0 results is valid.

Step 1: Verify Design

ls work/epics/e*/stories/{story_id}-design.md 2>/dev/null || echo "INFO: No design"

JIT: Before verifying design completeness, query graph for complexity assessment patterns → aspects/introspection.md § JIT Protocol

ConditionAction
Design existsLoad and reference
No design + simple storyContinue
No design + complex storyRun /rai-story-design first

Step 2: Decompose into Tasks

Divide story into atomic, individually verifiable tasks. One commit per task.

Story SizeTasksRationale
XS (1-2 SP)1-2Single-pass implementation
S (3-5 SP)2-3Avoid over-decomposition
M (5-8 SP)3-5Balance granularity and overhead
L (8+ SP)5-8Consider splitting the story

Per task:

  • Description, files to create/modify
  • TDD cycle: RED (failing test) → GREEN (minimal code) → REFACTOR
  • AC reference: link to story.md Gherkin scenario (if exists)
  • Verification: specify the rai gate check commands with explicit --scope (see Gate Policy below)
  • Size (XS/S/M/L) and dependencies

Always include as final task: Manual integration test — validate end-to-end with running software.

Gate Policy (mandatory in every plan):

Include this section verbatim in the plan document — it keeps the test execution rules in context during /rai-story-implement:

WhenCommandScope
Per taskrai gate check gate-tests --scope <test_dir>/Only tests for the changed module (e.g. packages/raise-cli/tests/storage/)
Per taskrai gate check gate-lintFull project (fast)
Per taskrai gate check gate-formatFull project (fast)
Per taskrai gate check gate-typesFull project
End of storyrai gate check gate-tests --scope packages/<pkg>/Changed package only — NOT full suite
MR creation/rai-mr-createFull suite — the ONLY place where unscoped tests run

NEVER run test commands directly (e.g. uv run pytest, npm test) — always use rai gate check. Direct invocation floods context with raw output and bypasses gate tracking.

Each task's Verification section MUST use rai gate check gate-tests --scope <path> with the concrete test path for that task. Generic or unscoped test commands are not acceptable.

Step 3: Order & Dependencies

JIT: Before ordering dependencies, query graph for risk-first ordering patterns → aspects/introspection.md § JIT Protocol

  • Map dependencies (sequential vs parallel)
  • Apply risk-first ordering (riskiest tasks early)
  • Maximize parallelism where no mutual dependencies exist
  • Verify no circular dependencies

Step 4: Document Plan

Publish work/epics/e{N}-{name}/stories/s{N}.{M}-plan.md via CLI:

Use raise_docs_write MCP tool with doc_type="story-plan", title="S{N}.{M}: {story-name} plan", content="[plan content: overview, ordered task list, execution order, risks, duration tracking table]", output_path="work/epics/e{N}-{name}/stories/s{N}.{M}-plan.md", cwd="{project_or_worktree_path}". If MCP tools are not available, fall back to:

rai docs write story-plan \
  --title "S{N}.{M}: {story-name} plan" \
  --stdin \
  --output-path work/epics/e{N}-{name}/stories/s{N}.{M}-plan.md << 'EOF'
[plan content below]
EOF

Content to include:

  • Overview (story ID, size, date)
  • Ordered task list with descriptions, files, verification, sizes, dependencies
  • Execution order with rationale
  • Risks and mitigations
  • Duration tracking table (filled during implementation)

Output

ItemDestination
Implementation planwork/epics/e{N}-{name}/stories/s{N}.{M}-plan.md
SignalWorkLifecycle event emitted (start on entry, complete here)

Backlog transition to implement status is engine-owned (RAISE-15034): Engine performs the transition via apply_phase_transition at phase completion. No skill-initiated transition call required or allowed.

STOP HERE. Return your summary to the orchestrator. Do NOT invoke any further skill.

Quality Checklist

  • NEVER over-decompose simple stories
  • NEVER skip TDD guidance — tests define behavior
  • NEVER write uv run pytest / npm test in verification — always rai gate check gate-tests --scope
  • Gate Policy section included in plan document with concrete --scope paths per task

References

  • Gate: gates/gate-plan.md
  • Previous: /rai-story-design
  • Next: /rai-story-implement

Frequently asked questions

What to verify before installation and use

What does the rai-story-plan source document cover?

Decompose story into atomic tasks with TDD verification. Use after story design.

How do I install rai-story-plan?

The source record exposes this install command: npx skills add https://github.com/humansys/raise --skill "packages/raise-cli/src/raise_cli/skills_base/rai-story-plan". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 10045,511

coreyhaines31/marketingskills

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

Computed 10045,511

coreyhaines31/marketingskills

churn-prevention

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,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o

Computed 10014,671

prowler-cloud/prowler

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance

Computed 100147

oaustegard/claude-skills

featuring

Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre