К основному содержанию
команда CX Codex

run-prompt — команда для Claude Code: запуск промптов

Команда run-prompt для Claude Code передаёт промпты из ./prompts/ субагентам по одному, последовательно или параллельно, для запуска независимых задач в отдельных контекстах.

MIT ★ 1 988 обновлён 2026-04-01

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resources
Открыть на GitHub

Что делает run-prompt

run-prompt находит файлы промптов по номеру или части имени, читает их и запускает через Task в контекстах типа general-purpose. Без аргументов берёт последний созданный промпт. Для нескольких задач можно выбрать --parallel или --sequential; без флага команда выполняет их по очереди.

После успешного выполнения команда архивирует промпты в ./prompts/completed/, затем готовит коммит: добавляет изменённые файлы по отдельности и выбирает тип коммита по изменениям. В параллельном режиме все вызовы Task отправляются одним сообщением. Если промпт не найден или выполнение завершилось ошибкой, команда сообщает о проблеме; при ошибке последовательный запуск останавливается.

Какие задачи решает

  • запустить последний промпт из ./prompts/
  • найти промпт по номеру или части имени
  • выполнить независимые задачи параллельно
  • соблюсти порядок зависимых промптов
  • архивировать выполненные промпты и подготовить коммит

Примеры запросов агенту

  • Запусти последний промпт из ./prompts/.
  • Выполни промпты 005 006 007 по очереди.
  • Запусти 005 006 007 параллельно.

Как установить run-prompt

1Через маркетплейс плагинов

/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resources

2Вручную: положить файлы

.claude/commands/run-prompt.md

Вызов — /run-prompt. Для всех проектов — ~/.claude/commands/

Вопросы о run-prompt

Как установить run-prompt в Claude Code?

Выполните /plugin marketplace add glittercowboy/taches-cc-resources и затем /plugin install taches-cc-resources@taches-cc-resources. Файл команды находится по пути .claude/commands/run-prompt.md.

Что делает run-prompt?

Команда выбирает промпты из ./prompts/ и делегирует их субагентам. После успешного выполнения она архивирует файлы и подготавливает коммит.

Как запустить несколько промптов параллельно?

Передайте их номера или имена и флаг --parallel, например: 005 006 007 --parallel. Без флага несколько промптов выполняются последовательно.

Исходный текст

run-prompt.md · MIT
---
name: run-prompt
description: Delegate one or more prompts to fresh sub-task contexts with parallel or sequential execution
argument-hint: <prompt-number(s)-or-name> [--parallel|--sequential]
allowed-tools: [Read, Task, Bash(ls:*), Bash(mv:*), Bash(git:*)]
---

<context>
Git status: !`git status --short`
Recent prompts: !`ls -t ./prompts/*.md | head -5`
</context>

<objective>
Execute one or more prompts from `./prompts/` as delegated sub-tasks with fresh context. Supports single prompt execution, parallel execution of multiple independent prompts, and sequential execution of dependent prompts.
</objective>

<input>
The user will specify which prompt(s) to run via $ARGUMENTS, which can be:

**Single prompt:**

- Empty (no arguments): Run the most recently created prompt (default behavior)
- A prompt number (e.g., "001", "5", "42")
- A partial filename (e.g., "user-auth", "dashboard")

**Multiple prompts:**

- Multiple numbers (e.g., "005 006 007")
- With execution flag: "005 006 007 --parallel" or "005 006 007 --sequential"
- If no flag specified with multiple prompts, default to --sequential for safety
  </input>

<process>
<step1_parse_arguments>
Parse $ARGUMENTS to extract:
- Prompt numbers/names (all arguments that are not flags)
- Execution strategy flag (--parallel or --sequential)

<examples>
- "005" → Single prompt: 005
- "005 006 007" → Multiple prompts: [005, 006, 007], strategy: sequential (default)
- "005 006 007 --parallel" → Multiple prompts: [005, 006, 007], strategy: parallel
- "005 006 007 --sequential" → Multiple prompts: [005, 006, 007], strategy: sequential
</examples>
</step1_parse_arguments>

<step2_resolve_files>
For each prompt number/name:

- If empty or "last": Find with `!ls -t ./prompts/*.md | head -1`
- If a number: Find file matching that zero-padded number (e.g., "5" matches "005-_.md", "42" matches "042-_.md")
- If text: Find files containing that string in the filename

<matching_rules>

- If exactly one match found: Use that file
- If multiple matches found: List them and ask user to choose
- If no matches found: Report error and list available prompts
  </matching_rules>
  </step2_resolve_files>

<step3_execute>
<single_prompt>

1. Read the complete contents of the prompt file
2. Delegate as sub-task using Task tool with subagent_type="general-purpose"
3. Wait for completion
4. Archive prompt to `./prompts/completed/` with metadata
5. Commit all work:
   - Stage files YOU modified with `git add [file]` (never `git add .`)
   - Determine appropriate commit type based on changes (fix|feat|refactor|style|docs|test|chore)
   - Commit with format: `[type]: [description]` (lowercase, specific, concise)
6. Return results
   </single_prompt>

<parallel_execution>

1. Read all prompt files
2. **Spawn all Task tools in a SINGLE MESSAGE** (this is critical for parallel execution):
   <example>
   Use Task tool for prompt 005
   Use Task tool for prompt 006
   Use Task tool for prompt 007
   (All in one message with multiple tool calls)
   </example>
3. Wait for ALL to complete
4. Archive all prompts with metadata
5. Commit all work:
   - Stage files YOU modified with `git add [file]` (never `git add .`)
   - Determine appropriate commit type based on changes (fix|feat|refactor|style|docs|test|chore)
   - Commit with format: `[type]: [description]` (lowercase, specific, concise)
6. Return consolidated results
   </parallel_execution>

<sequential_execution>

1. Read first prompt file
2. Spawn Task tool for first prompt
3. Wait for completion
4. Archive first prompt
5. Read second prompt file
6. Spawn Task tool for second prompt
7. Wait for completion
8. Archive second prompt
9. Repeat for remaining prompts
10. Archive all prompts with metadata
11. Commit all work:
    - Stage files YOU modified with `git add [file]` (never `git add .`)
    - Determine appropriate commit type based on changes (fix|feat|refactor|style|docs|test|chore)
    - Commit with format: `[type]: [description]` (lowercase, specific, concise)
12. Return consolidated results
    </sequential_execution>
    </step3_execute>
    </process>

<context_strategy>
By delegating to a sub-task, the actual implementation work happens in fresh context while the main conversation stays lean for orchestration and iteration.
</context_strategy>

<output>
<single_prompt_output>
✓ Executed: ./prompts/005-implement-feature.md
✓ Archived to: ./prompts/completed/005-implement-feature.md

<results>
[Summary of what the sub-task accomplished]
</results>
</single_prompt_output>

<parallel_output>
✓ Executed in PARALLEL:

- ./prompts/005-implement-auth.md
- ./prompts/006-implement-api.md
- ./prompts/007-implement-ui.md

✓ All archived to ./prompts/completed/

<results>
[Consolidated summary of all sub-task results]
</results>
</parallel_output>

<sequential_output>
✓ Executed SEQUENTIALLY:

1. ./prompts/005-setup-database.md → Success
2. ./prompts/006-create-migrations.md → Success
3. ./prompts/007-seed-data.md → Success

✓ All archived to ./prompts/completed/

<results>
[Consolidated summary showing progression through each step]
</results>
</sequential_output>
</output>

<critical_notes>

- For parallel execution: ALL Task tool calls MUST be in a single message
- For sequential execution: Wait for each Task to complete before starting next
- Archive prompts only after successful completion
- If any prompt fails, stop sequential execution and report error
- Provide clear, consolidated results for multiple prompt execution
  </critical_notes>

© Lex Christopherson · MIT · glittercowboy/taches-cc-resources

Похожие слэш-команды

Все слэш-команды по теме «Настройка агента: память, контекст, субагенты» →
ar-run Alireza Rezvani Скилл ar-run запускает ровно одну итерацию автоисследования: читает историю результатов, вносит правку в целевой файл и оценивает метрики. CX Codex +1 ★ 30 251звёзд репо run-release alirezarezvani Команда run-release для Claude Code запускает workflow релиза по семантическому тегу версии. Автоматизирует создание аннотированного тега, черновика релиза и запрашивает одобрение перед публикацией. CX Codex +1 ★ 907звёзд репо release-dry-run dyoshikawa Скилл release-dry-run сравнивает текущую ветку с последним тегом релиза, сводит изменения и предлагает MAJOR, MINOR или PATCH. Пригодится перед выпуском версии. CX Codex +1 ★ 1 636звёзд репо run-github-project chrisbanes Скилл run-github-project ведёт работу по колонкам GitHub Project: разбирает Todo, берёт задачи в Ready to implement и доводит до Done. CX Codex +1 829установок run-train lllllllama Скилл run-train для Claude Code, Codex, Cursor и других платформ, который запускает команду обучения нейросети и сохраняет логи, чекпоинты и метрики в train_outputs/. CX Codex +1 362 700установок run-tests dotnet Скилл run-tests для Claude Code подбирает и запускает команду dotnet test с учётом проекта и раннера. Разбирает несовпадения фильтров и флагов в .NET-тестах. CX Codex +1 7 000установок

Из того же набора48

Весь набор →
technical Команда technical исследует варианты реализации технической задачи, сравнивает библиотеки и компромиссы, а затем сохраняет структурированный отчёт. CX Codex +1 ★ 1 988звёзд репо feasibility Команда feasibility проверяет, реально ли выполнить проект с заданными ограничениями, и выдаёт рекомендацию: начинать, менять условия или отказаться. CX Codex +1 ★ 1 988звёзд репо landscape Команда landscape для Claude Code, которая картирует пространство домена: выявляет ключевых игроков, существующие инструменты, тренды и пробелы. Запускается с названием домена или в контексте текущей темы. CX Codex +1 ★ 1 988звёзд репо build-iphone-apps Скилл build-iphone-apps создаёт нативные приложения для iPhone на Swift через интерфейс командной строки без запуска Xcode. Ведёт разработку от макета до релиза в App Store. CX Codex +1 ★ 1 988звёзд репо open-source Ищет open-source библиотеки и инструменты под вашу задачу, проверяет, жив ли проект, и говорит, брать готовое или писать своё. CX Codex +1 ★ 1 988звёзд репо create-mcp-servers Скилл create-mcp-servers помогает создавать MCP-серверы на Python и TypeScript для Claude Code и Claude Desktop с нуля или обновлять существующие. CX Codex +1 ★ 1 988звёзд репо slash-command-auditor Субагент slash-command-auditor аудирует .md-файлы слэш-команд Claude Code по структуре, аргументам, контексту, инструментам и безопасности. CX Codex ★ 1 988звёзд репо create-hooks Скилл create-hooks учит писать и настраивать хуки Claude Code: от блокировки опасных команд до автоформатирования после правок. CX Codex +1 ★ 1 988звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой