.codex/skills/create-task/SKILL.md
Use when creating any beads task — auto-researches the codebase, links related tasks, and produces a rich self-contained description from a structured template. Accepts minimal intent and outputs a complete task ready for agent implementation.
npx skillsauth add ahrav/gossip-rs create-taskInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Creates high-quality, self-contained beads tasks by researching the codebase and assembling a structured description. Every task produced by this skill should give an implementing agent 90% of the context it needs inline.
Core principle: Invest effort at creation time to save 10x at implementation time.
/create-task "Fix off-by-one in window boundary check" --type=bug --priority=1
/create-task --quick "Add capacity hint to Vec in compile_rules" --type=task --priority=3
/create-task --dry-run "Refactor transform chain error handling" --type=task --priority=2
/create-task --from-plan docs/plans/2026-02-23-feature-v3.md --step=3
Input formats:
"title text here"--title, --type, --priority, --labels, --files-hint, --parentFlags:
| Flag | Effect |
|------|--------|
| --quick | Skip research (Phase 1). Apply template with available info only. |
| --dry-run | Print the full description without creating the beads task. |
| --from-plan <path> --step=N | Extract task from a plan file step. |
| --type=<type> | Task type: task, bug, feature, epic, question, docs (default: task) |
| --priority=<N> | Priority 0-4 (default: 2) |
| --labels=<a,b> | Comma-separated labels |
| --files-hint=<paths> | Comma-separated file paths to seed research |
| --parent=<id> | Parent epic beads ID |
Extract from input:
task2If only a title with no brief description, ask the user:
What's the 1-2 sentence context for this task? (What problem does it solve or what need does it address?)
If --from-plan is specified:
--step=NSkip when --quick is passed.
Spawn one subagent_type=general-purpose agent with the structured research prompt
below. The agent performs up to ~30 tool calls across 6 steps.
You are a codebase researcher preparing context for a new task. Your job is to
gather specific, concrete information — NOT to implement anything.
## Task Being Created
**Title**: {TITLE}
**Brief**: {BRIEF_DESCRIPTION}
**Type**: {TYPE}
**Files hint**: {FILES_HINT or "none provided"}
## Research Steps (follow in order)
### Step 1: Find Affected Files
Use Grep and Glob to search for identifiers, types, functions, and concepts
mentioned in the title and brief. Search broadly:
- Exact names and keywords from the title
- Related concepts (synonyms, adjacent functionality)
- File paths mentioned in files-hint
List every file that is likely touched by this task.
### Step 2: Read Relevant Code
Read the specific functions, structs, and modules most relevant to this task.
- Maximum 8 files
- For each, extract the most relevant 5-20 line snippet with file:line header
- Note function signatures, struct definitions, trait impls
### Step 3: Trace Blast Radius
For the primary functions/types affected:
- Grep for callers and call sites
- Note which modules depend on the affected code
- Identify downstream effects of changes
### Step 4: Find Reusable Patterns
Check for existing utilities that could be reused (per duplication prevention rules):
- Search `crates/gossip-stdx/src/` for related helpers
- Check sibling modules for similar patterns
- Note any existing abstractions that should be extended rather than duplicated
### Step 5: Search Related Beads Tasks
Run: `bd search "{keywords from title}" --limit 10`
For each result, classify the relationship:
- **blocks**: This new task cannot start until that task completes
- **blocked-by**: That task cannot start until this new task completes
- **relates-to**: Related but independent work
- **possible-duplicate**: May be the same task — FLAG THIS
### Step 6: Assess Scope
Based on your research, classify:
- **files_affected**: count of files that will be modified
- **modules_crossed**: count of distinct modules (top-level src/ directories)
- **touches_hot_path**: true/false — does this touch engine/, coordination/, stdx/, or hot loop code?
- **has_unsafe**: true/false — does affected code contain unsafe blocks?
## Output Format
Return a structured markdown document with these sections:
### Affected Files
| File | Relevance | What Changes |
|------|-----------|-------------|
### Code Snippets
For each relevant snippet:
```rust
// {file_path}:{start_line}-{end_line} — {brief description}
{actual code}
| Caller/Dependent | File | Relationship | |-----------------|------|-------------|
| Utility | Location | How to Reuse | |---------|----------|-------------| (or "None found")
| Task ID | Title | Relationship | Notes | |---------|-------|-------------|-------| (or "None found")
IMPORTANT: Be concrete. Every file path must be real. Every code snippet must
be copied from the actual codebase, not invented. Every task ID must come from
bd search output.
---
## Phase 2 --- Link Related Tasks
Process the Related Tasks output from the research agent:
1. **Possible duplicates**: Present to the user with details. Ask before proceeding.
> Found a possible duplicate: {task_id} "{title}". Should I:
> (a) Skip creating this task (it's already covered)
> (b) Create anyway (different scope)
> (c) Show me more details
**Never silently create a duplicate.**
2. **Blocking relationships**: After the task is created (Phase 4), run:
```bash
bd dep add <new-id> <blocker-id>
Assemble the full task description from the template below, filling sections
with explore agent output (Phase 1) or available information (if --quick).
| Complexity | Criteria | Sections | Expected Length | |------------|----------|----------|-----------------| | Trivial | 1 function, clear fix | Mandatory only | 30-60 lines | | Standard | 1-3 files, 1 module | All mandatory | 80-150 lines | | Complex | 3+ files, multi-module | All mandatory + conditionals | 200-400 lines |
Determine complexity from the scope assessment (Phase 1) or from the brief
description (if --quick).
## Context
{Why this task exists. What problem or need it addresses. What symptom prompted it.}
## Current State
{What exists today with code snippets and file:line references.}
```rust
// crates/scanner-engine/src/engine/core.rs:142-158 — current boundary check
{actual code from research}
{What should exist after. Specific behavior, interface, or structure.}
| File | Change | Rationale | |------|--------|-----------|
{Existing patterns to mirror, with file:line refs. "None" if nothing specific.}
{From crates/gossip-stdx/src/ or siblings. "None found" if nothing applies.}
{Callers, downstream effects, call sites needing updates.}
{3-5 inline snippets of the most relevant current code, each 5-20 lines. Each snippet has a file:line header.}
| Task ID | Title | Relationship | |---------|-------|-------------| {Or "None found" — section must always be present.}
cargo testcargo fmt --all && cargo check && cargo clippy --all-targets --all-features -- -D warnings{Where to look for the remaining ~10%: docs, related commits, design docs, files to read.}
### Conditional Sections
Include these based on scope assessment:
| Section | Include When | Content |
|---------|-------------|---------|
| **Design Notes** | modules_crossed >= 2 or multiple valid approaches | Trade-offs, alternatives considered, rationale for chosen approach |
| **Risk Analysis** | priority <= 1 or has_unsafe | What could go wrong, mitigation strategies, rollback plan |
| **Performance Considerations** | touches engine/, stdx/, coordination/ | Hot path impact, allocation concerns, benchmark expectations |
| **Testing Strategy** | files_affected > 1 | What tests to add/modify, test types (unit, property, integration), coverage goals |
Place conditional sections between "Code References" and "Related Work".
### Handling Missing Information
If the research agent didn't find enough for a section, include the section
with a `[NEEDS ENRICHMENT]` marker:
```markdown
### Blast Radius
[NEEDS ENRICHMENT] — Could not trace all callers. The implementing agent should
grep for usages of `FunctionName` before making changes.
Write the composed description to a temp file:
TMPFILE=$(mktemp /tmp/task-desc-XXXXXX.md)
Write the description content to the temp file.
Create the beads task:
bd create --title="{TITLE}" --type={TYPE} --priority={PRIORITY} --body-file="$TMPFILE"
Add --labels={LABELS} if provided.
Add --parent={PARENT} if provided.
Register dependencies (from Phase 2):
bd dep add <new-id> <blocker-id>
Clean up temp file:
rm "$TMPFILE"
Show the created task:
bd show <new-id>
Present summary to user:
Created task: {id}
Title: {title}
Type: {type} | Priority: P{priority}
Sections: {count} mandatory + {count} conditional
Related tasks linked: {count}
Dependencies added: {count}
If --dry-run is passed, skip step 2-4. Instead, print the full description
to the user with a header:
--- DRY RUN: Task Description Preview ---
Title: {title}
Type: {type} | Priority: P{priority}
{full description}
--- End Preview (no task created) ---
| Anti-Pattern | Why It's Wrong | Do This Instead |
|--------------|----------------|-----------------|
| Creating a task with no description | Agent wastes time rediscovering context | Always use this skill or follow the template |
| Writing "see review for details" | External reference will rot; agent can't work it | Inline all context in the description |
| Code references without file:line | Agent can't find the code | Always include file path and line numbers |
| Acceptance criteria like "it works" | Not verifiable | Specific conditions: "function returns X when given Y" |
| Skipping Related Work search | Creates duplicates, misses dependencies | Always run bd search |
| Research agent reading 20+ files | Diminishing returns, bloats context | Cap at 8 files, focus on most relevant |
| Silently creating a duplicate | Wastes implementation effort | Always present possible duplicates to user |
/plan-forge — creates implementation plans; use --create-tasks to auto-generate tasks from plan steps/execute-review-findings — converts review findings to tasks (uses compatible template)/review-dispatch — produces findings that may become tasksdevelopment
Deep first-principles code explanation that builds real understanding through phased walkthroughs with diagrams. Covers algorithms, data structures, memory layout, concurrency patterns, and performance tricks — especially for systems code in Rust. Use whenever the user asks to explain, walk through, break down, deep dive into, or understand code. Trigger on "how does this work", "what's happening here", "teach me about this", "why is it done this way", or when the user references a file with @ and wants to understand it. Proactively use when examining code involving lock-free algorithms, atomics/CAS, memory ordering,
development
Use when creating implementation-ready beads tasks that need testing strategy, optimal implementation approach, and documentation requirements baked in — composes /create-task with parallel enrichment agents that analyze the codebase and produce concrete test specifications, algorithm/data-structure guidance, and doc quality standards so implementing agents don't need to re-research
development
--- name: autoresearch description: Autonomous Goal-directed Iteration. Apply Karpathy's autoresearch principles to ANY task. Loops autonomously — modify, verify, keep/discard, repeat. Supports bounded iteration via Iterations: N inline config. version: 1.9.11 --- # Claude Autoresearch — Autonomous Goal-directed Iteration Inspired by [Karpathy's autoresearch](https://github.com/karpathy/autoresearch). Applies constraint-driven autonomous iteration to ANY work — not just ML research. **Core id
development
Use when implementing a new feature and assessing coverage gaps, during periodic test hygiene, when test suites feel bloated, or before merging code that changes coordination or hot paths. Two-phase assess-then-improve testing pipeline.