spec-kitty-tasks-packages
🔗 Workflow Provenance
Source: This skill augments the baseline workflow located at
./workflows/spec-kitty.tasks-packages.md. It acts as an intelligent wrapper that is continuously improved with each execution.
/spec-kitty.tasks-packages - Generate Work Package Files
Version: 0.12.0+
Purpose
Generate individual tasks/WP*.md prompt files from the outline in tasks.md.
This step assumes tasks.md already exists with complete WP definitions.
📍 WORKING DIRECTORY: Stay in the project root checkout
IMPORTANT: This step works in the project root checkout. NO worktrees created.
In repos with multiple features, always pass --feature <slug> to every spec-kitty command.
User Input
$ARGUMENTS
Steps
1. Setup
Run:
spec-kitty agent context resolve --action tasks_packages --json
Then execute the returned check_prerequisites command and capture
feature_dir. All paths must be absolute.
2. Load tasks.md
Read feature_dir/tasks.md — this must already exist from the previous step.
Parse the work package definitions, subtask lists, and dependencies.
3. Generate Prompt Files
For each work package defined in tasks.md:
CRITICAL PATH RULE: All WP files MUST be created in a FLAT feature_dir/tasks/ directory, NOT in subdirectories!
- Correct:
feature_dir/tasks/WPxx-slug.md(flat, no subdirectories) - WRONG:
feature_dir/tasks/planned/,feature_dir/tasks/doing/, or ANY lane subdirectories
For each WP:
- Derive a kebab-case slug from the title
- Filename:
WPxx-slug.md(e.g.,WP01-create-html-page.md) - Full path:
feature_dir/tasks/WP01-create-html-page.md - Follow the WP prompt template structure below (do NOT write instructions to read a template file from
.kittify/) - Include frontmatter with:
work_package_id,subtasksarray,lane: "planned",dependencies, history entryrequirement_refsarray from the WP'sRequirement Refsline intasks.mdowned_files,authoritative_surface,execution_mode(required ownership fields)
- Include in body:
- Objective, context, detailed guidance per subtask
- Test strategy (only if requested)
- Definition of Done, risks, reviewer guidance
- Update
tasks.mdto reference the prompt filename
TARGET PROMPT SIZE: 200-500 lines per WP (3-7 subtasks) MAXIMUM PROMPT SIZE: 700 lines per WP (10 subtasks max) If prompts are >700 lines: Split the WP — it's too large
IMPORTANT: All WP files live in flat tasks/ directory. Lane status is tracked ONLY in the lane: frontmatter field, NOT by directory location.
4. Include Dependencies in Frontmatter
Each WP prompt file MUST include a dependencies field:
---
work_package_id: "WP02"
title: "Build API"
lane: "planned"
dependencies: ["WP01"] # From tasks.md
requirement_refs: ["FR-001", "NFR-001"] # From tasks.md Requirement Refs
subtasks: ["T001", "T002"]
owned_files: ["src/api/**"]
authoritative_surface: "src/api/"
execution_mode: "code_change"
---
Include the correct implementation command:
- No dependencies:
spec-kitty implement WP01 - With dependencies:
spec-kitty implement WP02 --base WP01
Ownership rules:
owned_files: List of glob patterns for files this WP touches — no two WPs may overlap.authoritative_surface: Path prefix that must be a prefix of at least oneowned_filesentry.execution_mode:"code_change"for source code changes,"planning_artifact"for kitty-specs docs.- Agents working on a WP must not modify files outside their
owned_fileslist.
5. Self-Check
After generating each prompt:
- Subtask count: 3-7? ✓ | 8-10? ⚠️ | 11+? ❌ SPLIT
- Estimated lines: 200-500? ✓ | 500-700? ⚠️ | 700+? ❌ SPLIT
- Can implement in one session? ✓ | Multiple sessions needed? ❌ SPLIT
Output
After completing this step:
feature_dir/tasks/WP*.mdprompt files exist for all work packages- Each has proper frontmatter with
work_package_id,lane,dependencies,owned_files,authoritative_surface,execution_mode tasks.mdreferences all prompt filenames
Next step: spec-kitty next --agent <name> will advance to finalization.
Prompt Quality Guidelines
Good prompt (~60 lines per subtask):
### Subtask T001: Implement User Login Endpoint
**Purpose**: Create POST /api/auth/login endpoint that validates credentials and returns JWT token.
**Steps**:
1. Create endpoint handler in `src/api/auth.py`:
- Route: POST /api/auth/login
- Request body: `{email: string, password: string}`
- Response: `{token: string, user: UserProfile}` on success
- Error codes: 400, 401, 429
2. Implement credential validation:
- Hash password with bcrypt
- Use constant-time comparison
**Files**: `src/api/auth.py` (new, ~80 lines)
**Validation**: Valid credentials return 200 with token
Bad prompt (~20 lines per subtask):
### T001: Add auth
Steps: Create endpoint. Add validation. Test it.
Context for work-package planning: $ARGUMENTS
More from richfrem/agent-plugins-skills
markdown-to-msword-converter
Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.
52excel-to-csv
>
32zip-bundling
Create technical ZIP bundles of code, design, and documentation for external review or context sharing. Use when you need to package multiple project files into a portable `.zip` archive instead of a single Markdown file.
29learning-loop
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
26ollama-launch
Start and verify the local Ollama LLM server. Use when Ollama is needed for RLM distillation, seal snapshots, embeddings, or any local LLM inference — and it's not already running. Checks if Ollama is running, starts it if not, and verifies the health endpoint.
26spec-kitty-checklist
A standard Spec-Kitty workflow routine.
26