Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

parallel-prompt-generator

БесплатноБез исполняемых скриптовНе проверен

Generate agent-ready prompts from existing task specification files. Use when regenerating prompts after editing tasks, updating prompt templates, or…

jpoutrinот jpoutrin★ 16 звёзд на GitHub11 установок в других каталогах

Об этом скилле

Prompt Generator

Generate agent-ready prompts from existing task specification files in tasks/.

CRITICAL: Prompt Template Requirements

Every generated prompt file MUST include ALL of these sections (see Step 4 for full template):

Section Purpose Required
=== REQUIRED SKILLS === Skills to invoke at start YES
=== CONTEXT === Shared project context YES
=== OBJECTIVE === Task goal YES
=== CONTRACTS === Contract file references YES
=== FILES TO CREATE === Scope CREATE YES
=== FILES TO MODIFY === Scope MODIFY YES
=== DO NOT MODIFY === Scope BOUNDARY YES
=== IMPLEMENTATION REQUIREMENTS === Requirements YES
=== ACCEPTANCE CRITERIA === Checklist YES
=== EXECUTION INSTRUCTIONS === How to implement MANDATORY
=== IMPORTANT RULES === Constraints MANDATORY
=== COMPLETION SIGNAL === touch .claude-task-complete MANDATORY

DO NOT generate prompts without the EXECUTION INSTRUCTIONS, IMPORTANT RULES, and COMPLETION SIGNAL sections.

When to Use

  • After editing task files in tasks/
  • To regenerate prompts with updated template
  • Before running cpo run if prompts are missing
  • To test different prompt formats

Input Requirements

The parallel directory must have:

parallel/TS-XXXX-slug/
  manifest.json       # Required: wave structure, agents
  context.md          # Required: shared context
  contracts/          # Required: types.py, api-schema.yaml
  tasks/              # Required: task-*.md files
    task-001-users.md
    task-002-products.md

Output

Generates:

parallel/TS-XXXX-slug/
  prompts/
    agent-prompts.md   # Wave summary and launch commands
    task-001.txt       # Individual agent prompt
    task-002.txt
    ...

Workflow

flowchart TB
    Start[("tasks/ folder")]
    Read["1. Read manifest.json"]
    Context["2. Load context.md"]
    Parse["3. Parse each task file"]
    Generate["4. Generate task-NNN.txt"]
    Summary["5. Create agent-prompts.md"]
    Done[("prompts/ ready")]

    Start --> Read
    Read --> Context
    Context --> Parse
    Parse --> Generate
    Generate --> Summary
    Summary --> Done

Step 1: Read manifest.json

Extract:

  • Wave structure and task ordering
  • Agent assignments per task
  • Tech spec reference
  • Technology stack

Step 2: Load context.md

The shared context is injected into every prompt for efficiency.

Step 3: Parse Task Files

For each tasks/task-NNN-*.md:

  1. Extract YAML frontmatter:

    id: task-001
    component: users
    wave: 1
    deps: []
    agent: python-experts:django-expert
    contracts: [contracts/types.py, contracts/api-schema.yaml]
    
  2. Extract Markdown sections:

    • ## Scope -> CREATE, MODIFY, BOUNDARY
    • ## Requirements -> Implementation requirements
    • ## Checklist -> Acceptance criteria
  3. Resolve skills for each task:

    • Read parallel-agents/agent-skills-mapping.yaml for agent-to-skills mapping
    • Look up the agent from task frontmatter (e.g., python-experts:django-expert)
    • Get the skills list for that agent
    • Format as full skill names: plugin:skill-name

Note: The Output Format section is not in task files. It's a static template that the prompt generator always includes in generated prompts.

Step 4: Generate Individual Prompts

CRITICAL: Copy content EXACTLY from task files. Do not summarize or rewrite.

When generating prompts:

  1. Include FULL context.md content (do not summarize - include every line)
  2. COPY the ## Requirements section VERBATIM - every bullet point, every field name, every type
  3. COPY the ## Checklist section VERBATIM - every item exactly as written
  4. Match exact field names from contracts (e.g., use principal_id not user_id)

Create prompts/task-NNN.txt using this template:

TASK-{id}: {title}
Agent: {agent}
Wave: {wave}
Dependencies: {deps or "None"}

=== REQUIRED SKILLS ===
Before starting implementation, invoke these skills to load best practices:
{list of skills from agent-skills-mapping.yaml, formatted as bullets}

Invoke skills using: skill: "plugin:skill-name"

=== CONTEXT ===
{contents of context.md}

=== OBJECTIVE ===
{First line of task description or component name}

=== CONTRACTS ===
Reference these contract files before implementing:
{list of contract files with full paths}

=== FILES TO CREATE ===
{CREATE section from Scope}

=== FILES TO MODIFY ===
{MODIFY section from Scope}

=== DO NOT MODIFY ===
{BOUNDARY section from Scope}

=== IMPLEMENTATION REQUIREMENTS ===
{Requirements section content}

=== ACCEPTANCE CRITERIA ===
{Checklist section content}

=== EXECUTION INSTRUCTIONS ===

You MUST write code, not just describe it. Follow these steps:

1. **Read contracts first**: Read all files in contracts/ to understand interfaces
2. **Read existing code**: If modifying files, read them first
3. **Imple
Полный SKILL.md на GitHub

Установить parallel-prompt-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл parallel-prompt-generator?

Generate agent-ready prompts from existing task specification files. Use when regenerating prompts after editing tasks, updating prompt templates, or preparing tasks for cpo execution.

Как установить скилл parallel-prompt-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл parallel-prompt-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить parallel-prompt-generator с