Agent skill

Code Task Generator

by mikeyobrien in mikeyobrien/ralph-orchestrator

Generates structured .code-task.md files from descriptions or PDD implementation plans.

MITAuto-check passedAgent Workflows

Install Code Task Generator

skills CLI
$ npx skills add mikeyobrien/ralph-orchestrator --skill code-task-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mikeyobrien/ralph-orchestrator code-task-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mikeyobrien/ralph-orchestrator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/code-task-generator .claude/skills/code-task-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-task-generator
GitHub stars
3.2k
Token cost
~1.6k tokens
SKILL.md length
648 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
MIT

At a glance

Generates structured .code-task.md files from descriptions or PDD implementation plans.

  • Works in 7 steps: Detect Input Mode → Analyze Input → Structure Requirements → …
  • Tasks that involve Planning
  • SKILL.md covers Overview, Important Notes, Parameters and Steps, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Code Task Generator is an agent skill from mikeyobrien/ralph-orchestrator. Generates structured .code-task.md files from descriptions or PDD implementation plans. Auto-detects input type, creates properly formatted tasks with Given-When-Then acceptance criteria.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Planning and User stories. The repository describes itself as: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration. The licence is MIT.

When your agent uses it

  • Tasks that involve Planning
  • Tasks that involve User stories

Example prompts

  • “Use the code-task-generator skill to generate structured .code-task.md files from descriptions or PDD implementation plans”
  • “/code-task-generator”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Detect Input Mode
  2. Analyze Input
  3. Structure Requirements
  4. Plan Tasks
  5. Generate Tasks
  6. Report Results
  7. Offer Ralph Integration

What it can do on your machine

Read from SKILL.md and the folder at commit edc2b32. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Task Generator loads about 1.6k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 648 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mikeyobrien/ralph-orchestrator at commit edc2b32, republished under its MIT licence (© mikeyobrien). 648 words, ~1,590 tokens.

Download SKILL.mdSave it as .claude/skills/code-task-generator/SKILL.md (or your agent's skills folder).
name
code-task-generator
description
Generates structured .code-task.md files from descriptions or PDD implementation plans. Auto-detects input type, creates properly formatted tasks with Given-When-Then acceptance criteria.
type
anthropic-skill
version
1.1
metadata.internal
true

Code Task Generator

Overview

Generate structured code task files from rough descriptions or PDD implementation plans. Auto-detects input type and creates properly formatted .code-task.md files. For PDD plans, processes one step at a time to allow learning between steps.

Important Notes

These rules apply across ALL steps:

  • User approval required: Present the task breakdown plan and get explicit approval before generating any files.
  • Tests are integrated: Include unit test requirements in each task's acceptance criteria. Never create separate "add tests" tasks.
  • PDD mode references: Always include the design document path as required reading. Only include research docs if directly relevant to the specific task.

Parameters

  • input (required): Task description, file path, or PDD plan path
  • step_number (optional, PDD only): Specific step to process. Auto-determines next uncompleted step if omitted.
  • output_dir (optional, default: .ralph/tasks/): Output directory for code task files
  • task_name (optional, description mode only): Override auto-generated task name

Constraints:

  • You MUST ask for all required parameters upfront in a single prompt
  • You MUST support input as: direct text, file path, directory path (looks for plan.md), or URL

Steps

1. Detect Input Mode

Check if input is a file with PDD plan structure (checklist + numbered steps). Set mode to "pdd" or "description" and inform the user.

2. Analyze Input
  • PDD mode: Parse the plan, extract steps and checklist status, determine target step (from step_number or first uncompleted)
  • Description mode: Identify core functionality, technical requirements, complexity level (Low/Medium/High), and technology domain
3. Structure Requirements
  • PDD mode: Extract the target step's title, description, demo requirements, constraints, and integration notes with previous steps. Identify relevant research documents.
  • Description mode: Identify functional requirements, infer technical constraints and dependencies.

For both modes: create measurable acceptance criteria in Given-When-Then format and prepare a task breakdown plan.

4. Plan Tasks

Present the proposed breakdown to the user:

  • One-line summary per task
  • Proposed sequence and dependencies
  • You MUST NOT generate files until the user explicitly approves
5. Generate Tasks

Create files following the Code Task Format below.

PDD mode specifics:

  • Create .ralph/tasks/{task_name}/step{NN}/ folder by default (zero-padded: step01, step02, step10)
  • Name files sequentially: task-01-{title}.code-task.md, task-02-{title}.code-task.md
  • Break down by functional components, not testing phases

All tasks:

  • You MUST use the exact Code Task Format structure below
  • You MUST include YAML frontmatter with status: pending, created: YYYY-MM-DD, started: null, completed: null
  • You MUST use kebab-case names with .code-task.md extension
  • You MUST include acceptance criteria covering main functionality and unit tests
Show full SKILL.md (250 more words)Show less
6. Report Results

List generated files with paths. For PDD mode, include the step's demo requirements. Suggest running code-assist on tasks in sequence, or using Ralph for autonomous implementation.

7. Offer Ralph Integration

Ask: "Would you like me to set up Ralph to implement these tasks autonomously?"

If yes, create a concise PROMPT.md with objective, spec directory reference, execution order, and acceptance criteria. Suggest the appropriate command:

  • Full pipeline: ralph run --config presets/pdd-to-code-assist.yml
  • Simpler flow: ralph run -c ralph.yml -H builtin:code-assist

Code Task Format Specification

Each code task file MUST follow this structure:

markdown
---
status: pending
created: YYYY-MM-DD
started: null
completed: null
---
# Task: [Task Name]

## Description
[What needs to be implemented and why]

## Background
[Context needed to understand the task]

## Reference Documentation
**Required:**
- Design: .ralph/specs/{task_name}/design.md

**Additional References (if relevant to this task):**
- [Specific research document or section]

**Note:** Read the design document before beginning implementation.

## Technical Requirements
1. [First requirement]
2. [Second requirement]

## Dependencies
- [Dependency with details]

## Implementation Approach
1. [Implementation step or approach]

## Acceptance Criteria

1. **[Criterion Name]**
   - Given [precondition]
   - When [action]
   - Then [expected result]

## Metadata
- **Complexity**: [Low/Medium/High]
- **Labels**: [Comma-separated labels]
- **Required Skills**: [Skills needed]

Examples

Description mode input: "I need a function that validates email addresses and returns detailed error messages"

Description mode output: .ralph/tasks/email-validator.code-task.md — task with acceptance criteria for valid/invalid email handling, error messages, and unit tests.

PDD mode input: ".ralph/specs/data-pipeline/plan.md"

PDD mode output: .ralph/tasks/data-pipeline/step02/ containing task-01-create-data-models.code-task.md, task-02-implement-validation.code-task.md, task-03-add-serialization.code-task.md — each with design.md reference, acceptance criteria, and demo requirements.

Troubleshooting

Vague description: Ask clarifying questions, suggest common patterns, create a basic task and offer to refine.

Complex description: Suggest breaking into smaller tasks, focus on core functionality first, offer to create related tasks.

Missing technical details: Make reasonable assumptions, include multiple approaches, note areas needing user decisions.

Plan file not found: Check if path is a directory (look for plan.md within), suggest common PDD plan locations.

Invalid plan format: Identify missing sections, suggest running PDD to generate a proper plan, extract what's available.

All steps complete: Inform user, ask if they want a specific step anyway, suggest reviewing for new steps.

© mikeyobrien, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/code-task-generator of mikeyobrien/ralph-orchestrator.

Open the folder on GitHubat commit edc2b32

Compare with similar skills

Code Task Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Task Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Task Generator this skillmikeyobrien/ralph-orchestrator3.2k—~1.6kAutomated safety check: PassMIT
Gen Planalibaba/atrex-kernel-agent161—~3.4kAutomated safety check: PassMIT
Autospec Tasksariel-frischer/autospec144—~2.5kAutomated safety check: PassMIT
Notion Spec To Implementationrongxinzy/RongxinAI1542 repos~2.2kAutomated safety check: PassAGPL-3.0
Factory Queuetikalk/adlc-team-skills141—~1.3kAutomated safety check: PassMIT
App Buildermicrosoft/power-platform-skills972—~13kAutomated safety check: NotesMIT

Similar skills

  • Gen Plan

    alibaba/atrex-kernel-agent

    Generate a structured implementation plan from an evidence draft.

    161 GitHub stars~3.4k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • Autospec Tasks

    ariel-frischer/autospec

    Generate YAML task breakdown from implementation plan. An agent skill from ariel-frischer/autospec.

    144 GitHub stars~2.5k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • Turns product or tech specs into concrete Notion tasks that Claude code can implement.

    154 GitHub starsUsed in 2 repos~2.2k tokens
    Agent WorkflowsAuto-check passed
  • Factory Queue

    tikalk/adlc-team-skills

    A skill your agent uses when managing mission brief intake — triage, AI-assisted advisory scoring, gating label stamping, and milestones or epics generation (plan mode).

    141 GitHub stars~1.3k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • App Builder

    microsoft/power-platform-skills

    Official

    Builds and edits a model-driven Power Apps app from a natural-language intent — tables, columns, relationships, adaptive forms with sub-grids, views, Choice-column charts, business rules, business…

    972 GitHub stars~13k tokensUpdated today
    Agent WorkflowsAuto-check: notes
  • Feature Planning

    HybridAIOne/hybridclaw

    Break features into implementation plans, acceptance criteria, and sequenced tasks.

    158 GitHub stars~720 tokensUpdated today
    Agent WorkflowsAuto-check passed

More from mikeyobrien/ralph-orchestrator

All 16 skills in this repo
  • Ralph Docs

    mikeyobrien/ralph-orchestrator

    Introspect, explain, and improve Ralph Orchestrator using its published llms.txt doc map.

    3.2k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Evaluate Presets

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when testing Ralph's hat collection presets, validating preset configurations, or auditing the preset library for bugs and UX issues.

    3.2k GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • PR Demo

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when creating animated demos (GIFs) for pull requests or documentation.

    3.2k GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Release Bump

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when bumping ralph-orchestrator version for a new release, after fixes are committed and ready to publish

    3.2k GitHub stars~583 tokensUpdated 3 days ago
    Auto-check passed
  • Review PR

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when asked to review a PR, run a code review loop, or invoke the ralph reviewer against a pull request number or GitHub URL

    3.2k GitHub stars~589 tokensUpdated 3 days ago
    Auto-check passed
  • Tui Debug In Pane

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when you need to reproduce or debug TUI rendering issues (garbled output, broken streaming, layout corruption) by running ralph in a tmux split pane and capturing live output.

    3.2k GitHub stars~825 tokensUpdated 3 days ago
    Auto-check passed

Questions about Code Task Generator

What does Code Task Generator do?

Generates structured .code-task.md files from descriptions or PDD implementation plans. Code Task Generator is an agent skill from mikeyobrien/ralph-orchestrator.md files from descriptions or PDD implementation plans.

When should I use Code Task Generator?

Code Task Generator fits situations like: tasks that involve Planning; tasks that involve User stories.

How do I install Code Task Generator in Claude Code?

Run `npx skills add mikeyobrien/ralph-orchestrator --skill code-task-generator -a claude-code`. Or copy the skill folder (.claude/skills/code-task-generator in mikeyobrien/ralph-orchestrator) into .claude/skills/code-task-generator in your project. Claude Code loads it when a task matches its description.

How do I install Code Task Generator in Codex?

Run `npx skills add mikeyobrien/ralph-orchestrator --skill code-task-generator -a codex`. Or copy the skill folder (.claude/skills/code-task-generator in mikeyobrien/ralph-orchestrator) into .agents/skills/code-task-generator in your project. Codex loads it when a task matches its description.

Can I use Code Task Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mikeyobrien/ralph-orchestrator --skill code-task-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-task-generator, .gemini/skills/code-task-generator, .github/skills/code-task-generator and .opencode/skills/code-task-generator in your project.

What does Code Task Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Task Generator is instructions for the agent only.

Does Code Task Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Task Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Task Generator use?

Code Task Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Task Generator use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Task Generator?

Skills that share tags, products or a category with Code Task Generator: Gen Plan (alibaba/atrex-kernel-agent, 161 stars), Autospec Tasks (ariel-frischer/autospec, 144 stars), Notion Spec To Implementation (rongxinzy/RongxinAI, 154 stars) and Factory Queue (tikalk/adlc-team-skills, 141 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Task Generator?

mikeyobrien (a GitHub user) maintains it in mikeyobrien/ralph-orchestrator, which has 3,167 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 5, 2026.

Source: mikeyobrien/ralph-orchestrator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.