ワンクリックで
optimize-project
Optimize project instructions and agent setup for lower token usage and higher signal
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Optimize project instructions and agent setup for lower token usage and higher signal
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Comprehensive code review with security, patterns, and quality focus
Parallel execution using multiple Claude instances in Kitty terminal
Agile/Waterfall project planning, tracking, and delivery management
McKinsey-level strategic analysis with MECE frameworks and quantitative prioritization
Update project documentation (ADRs, CHANGELOG, running notes) in compact Claude-friendly format
Audit and harden any repository with standardized quality gates, hooks, and scripts
| name | optimize-project |
| description | Optimize project instructions and agent setup for lower token usage and higher signal |
| allowed-tools | ["Read","Glob","Grep","Bash","Edit"] |
| context | fork |
| user-invocable | true |
| version | 1.0.0 |
User-invocable workflow to audit, fix, and bootstrap token-efficient project instructions.
--audit: analysis only, no file changes--fix: apply safe auto-fixes after audit--setup: bootstrap optimize-project baseline for new repositoriesCollect project signals from root:
package.json, tsconfig.jsonpyproject.toml, requirements.txtgo.modCargo.tomlscripts/*.sh, hooks, no language manifestReport detected stack, dominant language, test command, and docs/instruction locations.
Run the standard audit first (machine-first, JSON output):
${CLAUDE_HOME:-.claude}/scripts/project-audit.sh --project-root . --json
Use this output as baseline counts for debt, risk, and comment-density flags.
Analyze audit output plus repository files for:
AGENTS.md, CLAUDE.md, skill filesComment-density severity:
> 10%> 20%Return a structured report:
## Optimize Project Report: {project}
### Mode
{--audit|--fix|--setup}
### Detection
- Type: {type}
- Language: {language}
- Framework: {framework}
### Audit Summary
| Severity | Count |
|----------|-------|
| P1 | {n} |
| P2 | {n} |
| P3 | {n} |
### AI Findings
| # | Severity | Area | File | Issue | Suggested Action |
|---|----------|------|------|-------|------------------|
### Token Savings Estimate
- Estimated current instruction/comment tokens: {current}
- Estimated optimized tokens: {optimized}
- Estimated savings: {saved} ({percent}%)
Savings estimate should separate:
--fix mode)Only safe, low-risk fixes are allowed automatically:
.gitignore hygiene:
After fixes, rerun:
${CLAUDE_HOME:-.claude}/scripts/project-audit.sh --project-root . --json
Report before/after deltas and updated token-savings estimate.
--setup)Bootstrap optimize-project baseline:
CLAUDE.md baseline with no duplicated policy blocksAGENTS.md + skill references with clear ownership boundaries.gitignore with language-appropriate defaultsproject-audit.sh --json and return initial health report--setup must prefer concise templates and avoid adding verbose boilerplate.
--audit never writes files--fix writes only safe auto-fixes listed above--setup creates baseline files but does not overwrite user-authored docs without explicit diff review${CLAUDE_HOME:-.claude}/skills/review-pr/SKILL.md${CLAUDE_HOME:-.claude}/scripts/project-audit.sh${CLAUDE_HOME:-.claude}/skills/hardening/SKILL.md