一键导入
write-docblocks
Use when documentation coverage is low, after composer docs:coverage shows gaps, or when asked to batch-write PHPDoc blocks across multiple files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when documentation coverage is low, after composer docs:coverage shows gaps, or when asked to batch-write PHPDoc blocks across multiple files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | write-docblocks |
| description | Use when documentation coverage is low, after composer docs:coverage shows gaps, or when asked to batch-write PHPDoc blocks across multiple files |
Batch-process PHPDoc documentation gaps by running composer docs:coverage:missing and dispatching parallel phpdoc-writer subagents.
Core principle: Process files in batches of 5 subagents for efficient parallel documentation without overwhelming the system.
composer docs:coverage:missing shows many files needing docsdigraph write_docblocks {
rankdir=TB;
start [label="Run composer docs:coverage:missing" shape=box];
parse [label="Parse output for file paths" shape=box];
check [label="Files remaining?" shape=diamond];
batch [label="Take next 5 files" shape=box];
dispatch [label="Dispatch 5 phpdoc-writer\nsubagents in parallel" shape=box];
wait [label="Wait for batch to complete" shape=box];
done [label="Run composer docs:coverage\nto verify improvement" shape=box];
start -> parse -> check;
check -> batch [label="yes"];
check -> done [label="no"];
batch -> dispatch -> wait -> check;
}
composer docs:coverage:missing 2>&1 | sed 's/\x1b\[[0-9;]*m//g' | grep '\.php$'
This strips ANSI codes and extracts just file paths like:
Console/Commands/ProcessDataCommand.php
Http/Controllers/AuthController.php
Services/AuthService.php
For each batch of 5 files, dispatch phpdoc-writer subagents in parallel using a single message with multiple Task tool calls:
Task(subagent_type="phpdoc-writer", prompt="Write PHPDoc blocks for app/Console/Commands/ProcessDataCommand.php - read the file, understand its purpose, and add comprehensive docblocks for the class and all undocumented methods.")
Task(subagent_type="phpdoc-writer", prompt="Write PHPDoc blocks for app/Http/Controllers/OAuthController.php - read the file, understand its purpose, and add comprehensive docblocks for the class and all undocumented methods.")
// ... 3 more in same message
CRITICAL: All 5 Task calls MUST be in a single assistant message to run in parallel.
Wait for all 5 subagents to complete before starting the next batch. This prevents resource exhaustion while maintaining parallelism.
Continue processing batches until all files are documented.
composer docs:coverage
Confirm improvement toward targets (80% classes, 75% methods).
Write PHPDoc blocks for app/{PATH}
1. Read the file thoroughly to understand its purpose
2. Check what's already documented vs missing
3. Add comprehensive docblocks for:
- Class-level documentation explaining purpose and context
- All undocumented public methods with @param, @return, @throws
- Protected/private methods with brief explanations
4. Follow project-specific conventions and domain terminology
5. Run pint after editing: ./vendor/bin/pint {file}
Target audience: New developer on their first day.
Dispatching sequentially: Each file one at a time wastes time. Use batches of 5 in parallel.
Not using single message: Multiple Task calls in separate messages run sequentially. Put all 5 in ONE message.
Skipping verification: Always run composer docs:coverage at the end to confirm improvement.
Forgetting pint: Subagents should run ./vendor/bin/pint after editing to maintain code style.
Bulletproof CSS and frontend design principles from "Handcrafted CSS" by Dan Cederholm. Apply when writing CSS, HTML, Blade templates, or reviewing frontend code. CSS is king — refactor Tailwind when encountered.
Batch process GitHub issues via batch-orchestrator.sh with rate limit handling and session resumption
Use when given a GitHub issue number and base branch to implement end-to-end
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Process PR based on code review - if approved, create follow-up issues, merge, close; if changes requested, re-run implement-issue
Use when adapting the generic .claude pipeline folder to a specific codebase - adjusting skills, agents, hooks, scripts, prompts, and settings for the target project's tech stack and workflows