parallel-validate-prompts
БесплатноБез исполняемых скриптовНе проверенValidate and fix parallel prompts for required sections
от jpoutrin★ 16 звёзд на GitHubОб этом скилле
parallel-validate-prompts
Category: Parallel Development
Usage
/parallel-validate-prompts <parallel-dir> [--fix] [--verbose]
Arguments
| Argument | Required | Description |
|---|---|---|
<parallel-dir> |
Yes | Path to parallel folder (e.g., parallel/TS-0042-inventory/) |
--fix |
No | Automatically regenerate non-compliant prompts |
--verbose |
No | Show detailed validation for each prompt |
Purpose
Validate that generated prompt files in prompts/ contain all required sections for successful agent execution. This command:
- Scans all
prompts/task-*.txtfiles - Validates presence of mandatory sections
- Reports compliance status
- Optionally regenerates non-compliant prompts
Use this to verify prompts generated elsewhere (other tools, manual creation, or older decomposition runs) before running cpo run.
Required Sections
Every prompt file MUST contain these sections (see parallel-prompt-generator skill):
| Section | Marker | Purpose |
|---|---|---|
| Skills | === REQUIRED SKILLS === |
Skills to invoke at start |
| Context | === CONTEXT === |
Shared project context |
| Objective | === OBJECTIVE === |
Task goal |
| Contracts | === CONTRACTS === |
Contract file references |
| Files to Create | === FILES TO CREATE === |
Scope CREATE |
| Files to Modify | === FILES TO MODIFY === |
Scope MODIFY |
| Do Not Modify | === DO NOT MODIFY === |
Scope BOUNDARY |
| Requirements | === IMPLEMENTATION REQUIREMENTS === |
Implementation details |
| Acceptance | === ACCEPTANCE CRITERIA === |
Checklist items |
| Execution | === EXECUTION INSTRUCTIONS === |
How to implement |
| Rules | === IMPORTANT RULES === |
Constraints |
| Output Format | === OUTPUT FORMAT (REQUIRED) === |
JSON output block |
| Completion | === COMPLETION SIGNAL === |
touch .claude-task-complete |
The last four sections (bold) are critical - prompts missing these will fail to produce structured output.
Execution Instructions for Claude Code
When this command is run, Claude Code should:
1. Parse Arguments
PARALLEL_DIR = first positional argument
FIX_MODE = true if --fix specified
VERBOSE = true if --verbose specified
2. Validate Directory Structure
Check that the parallel directory exists and has prompts:
ls "$PARALLEL_DIR/prompts/task-*.txt" 2>/dev/null
If no prompts found:
ERROR: No prompt files found in $PARALLEL_DIR/prompts/
Expected files: prompts/task-001.txt, prompts/task-002.txt, etc.
Run '/parallel-decompose' to generate prompts, or create them manually.
3. Validate Each Prompt File
For each prompts/task-*.txt file, check for required markers:
REQUIRED_SECTIONS = [
("REQUIRED SKILLS", "=== REQUIRED SKILLS ==="),
("CONTEXT", "=== CONTEXT ==="),
("OBJECTIVE", "=== OBJECTIVE ==="),
("CONTRACTS", "=== CONTRACTS ==="),
("FILES TO CREATE", "=== FILES TO CREATE ==="),
("FILES TO MODIFY", "=== FILES TO MODIFY ==="),
("DO NOT MODIFY", "=== DO NOT MODIFY ==="),
("IMPLEMENTATION REQUIREMENTS", "=== IMPLEMENTATION REQUIREMENTS ==="),
("ACCEPTANCE CRITERIA", "=== ACCEPTANCE CRITERIA ==="),
("EXECUTION INSTRUCTIONS", "=== EXECUTION INSTRUCTIONS ==="),
("IMPORTANT RULES", "=== IMPORTANT RULES ==="),
("OUTPUT FORMAT", "=== OUTPUT FORMAT (REQUIRED) ==="),
("COMPLETION SIGNAL", "=== COMPLETION SIGNAL ==="),
]
CRITICAL_SECTIONS = [
"EXECUTION INSTRUCTIONS",
"IMPORTANT RULES",
"OUTPUT FORMAT",
"COMPLETION SIGNAL",
]
Also verify the JSON output block exists:
grep -q '"task_completed"' "$file"
4. Report Results
Default Output (no --verbose)
Prompt Validation Report
========================
Directory: parallel/TS-0042-inventory/
Prompts found: 5
Results:
task-001.txt: PASS
task-002.txt: PASS
task-003.txt: FAIL (missing: OUTPUT FORMAT, COMPLETION SIGNAL)
task-004.txt: PASS
task-005.txt: FAIL (missing: EXECUTION INSTRUCTIONS, IMPORTANT RULES, OUTPUT FORMAT, COMPLETION SIGNAL)
Summary:
Passed: 3/5
Failed: 2/5
Failed prompts are missing critical sections required for structured output.
Run with --fix to regenerate non-compliant prompts.
Verbose Output (--verbose)
Prompt Validation Report
========================
Directory: parallel/TS-0042-inventory/
Prompts found: 5
=== task-001.txt ===
[✓] REQUIRED SKILLS
[✓] CONTEXT
[✓] OBJECTIVE
[✓] CONTRACTS
[✓] FILES TO CREATE
[✓] FILES TO MODIFY
[✓] DO NOT MODIFY
[✓] IMPLEMENTATION REQUIREMENTS
[✓] ACCEPTANCE CRITERIA
[✓] EXECUTION INSTRUCTIONS
[✓] IMPORTANT RULES
[✓] OUTPUT FORMAT (REQUIRED)
[✓] COMPLETION SIGNAL
[✓] JSON output block
Status: PASS
=== task-003.txt ===
[✗] REQUIRED SKILLS
[✓] CONTEXT
[✓] OBJECTIVE
[✓] CONTRACTS
[✓] FILES TO CREATE
[✓] FILES TO MODIFY
[✓] DO NOT MODIFY
[✓] IMPLEMENTATION REQUIREMENTS
[✓] ACCEPTANCE C
Установить parallel-validate-prompts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл parallel-validate-prompts?
Validate and fix parallel prompts for required sections
Как установить скилл parallel-validate-prompts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл parallel-validate-prompts запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic