Generate tasks.json directly from a feature description. Full pipeline: research, spec analysis, story decomposition, JSON output. Triggers on: plan feature, generate tasks, create task list, direct planning.
From aimi-engineeringnpx claudepluginhub aimi-so/aimi-engineering-plugin --plugin aimi-engineeringThis skill uses the workspace's default tool permissions.
references/pipeline-phases.mdreferences/story-decomposition.mdreferences/task-format-v3.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Generate .aimi/tasks/YYYY-MM-DD-[feature]-tasks.json directly from a feature description. No intermediate markdown plan.
Take a feature description through research, spec analysis, and story decomposition. Output a tasks.json file ready for autonomous execution.
Filename: .aimi/tasks/YYYY-MM-DD-[feature-name]-tasks.json
Key fields:
schemaVersion("3.1"),metadata{title,type,branchName,createdAt,planPath(null),maxConcurrency(4)},userStories[]{id(US-NNN),title(≤200),description(≤500),acceptanceCriteria(each≤600),priority,status("pending"),dependsOn([]),notes,project(optional)}
Notes: planPath is always null (this skill generates tasks.json directly). All stories initialize with status: "pending". dependsOn is a string array of story IDs. maxConcurrency defaults to 4.
| Type | Use When |
|---|---|
feat | New feature |
ref | Refactoring |
bug | Bug fix |
chore | Maintenance task |
Execute these phases in order.
Check .aimi/brainstorms/ for a matching brainstorm (semantic match, within 14 days). If found, use as context and skip questions. If multiple match, ask user. If none, ask refinement questions via AskUserQuestion until the idea is clear.
Auto-scan for git repos: Before launching research agents, scan immediate child directories for .git/ directories to discover sub-projects:
for dir in */; do
case "$dir" in .worktrees/|node_modules/|.aimi/|vendor/) continue;; esac
[ -d "$dir/.git" ] && echo "$dir"
done
List discovered repos with their relative paths from the .aimi/ parent.
Run these agents in parallel:
Task subagent_type="aimi-engineering:research:aimi-codebase-researcher"
prompt: "[feature description + brainstorm context + discovered repos]"
Task subagent_type="aimi-engineering:research:aimi-learnings-researcher"
prompt: "[feature description]"
Only if Phase 1.5 decides external research is needed:
Task subagent_type="aimi-engineering:research:aimi-best-practices-researcher"
prompt: "[feature description]"
Task subagent_type="aimi-engineering:research:aimi-framework-docs-researcher"
prompt: "[feature description]"
Merge findings from all research agents:
.aimi/solutions/Task subagent_type="aimi-engineering:workflow:aimi-spec-flow-analyzer"
prompt: "[feature description + consolidated research]"
Incorporate identified gaps as acceptance criteria or story notes.
dependsOn arrays:
dependsOn: [] between themproject field when multiple repos were discovered in Phase 1:
project to the repo's relative path (e.g., backend, services/api)project when only one repo exists or the story targets the CWD repo./, no .. components, must match ^[a-zA-Z0-9][a-zA-Z0-9/_.-]*$US-NNN zero-padded format (US-001, US-002, ...) — never US-1, story-1, S1, or any other formatdependsOn exist as story IDsschemaVersion: "3.1"planPath: nullbrainstormPath if a brainstorm was usedmaxConcurrency (optional — default 4; set to 1 for fully sequential execution)status: "pending", include dependsOn array from Phase 3.aimi/tasks/YYYY-MM-DD-[feature-name]-tasks.jsonAfter writing the tasks.json file, validate the generated output:
$AIMI_CLI validate-ids
$AIMI_CLI validate-deps
$AIMI_CLI validate-stories
If any validation fails (non-zero exit):
dependsOn references, dependency cycles, or project fieldsDo not proceed to the report step until all validations succeed.
| Phase | Failure | Action |
|---|---|---|
| Phase 0 | No feature description | Ask user for input |
| Phase 1 | Research agent fails | Proceed with available results |
| Phase 1.5b | External research fails | Proceed without external context |
| Phase 2 | Spec-flow finds critical gaps | Add gaps as story notes, flag in report |
| Phase 3 | Zero stories produced | Report error, ask user to refine scope |
| Phase 3 | 10+ stories produced | Proceed with warning in report |
| Phase 4 | File write fails | Report error with path |
planPath is nullschemaVersion is "3.1"id follows US-NNN format (e.g., US-001, US-002) — not S1, F1, TASK-1, or any other formatstatus initialized to "pending"dependsOn array (even if empty [])dependsOn (graph must be a DAG)dependsOn exist as story IDs in the filedependsOn)priority values are sequential integers, consistent with dependency depthmaxConcurrency (if set) is a positive integerproject (if present) is a relative path with no .. components, matching ^[a-zA-Z0-9][a-zA-Z0-9/_.-]*$project is omitted when only one repo exists or story targets CWD repo