promote
Promote a project-local script or procedure to the shared toolkit. Generalises the implementation and creates a thin project-local wrapper.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Promote a project-local script or procedure to the shared toolkit. Generalises the implementation and creates a thin project-local wrapper.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Automatically implement all sub-issues of an epic in dependency order
Implement a GitHub issue with automated PR creation
End-of-session retrospective. Captures knowledge from any working session (debug, implementation, config, deployment) as reusable scripts, CLAUDE.md procedures, or skill proposals. Run before ending a session to prevent knowledge loss.
Decompose a large GitHub issue into sub-issues and create a tracking draft PR
OWASP-guided security code review for a specific domain or issue
Project kickoff checklist based on lessons learned from previous projects. Generates a tailored checklist and optionally creates GitHub issues.
SOC 職業分類に基づく
| name | promote |
| description | Promote a project-local script or procedure to the shared toolkit. Generalises the implementation and creates a thin project-local wrapper. |
| argument-hint | <script-or-procedure> |
| user-invocable | true |
Move a proven project-local pattern to the shared toolkit (claude-code-toolkit repo) so it is available across all projects and devices.
When to use: When the same pattern has appeared in two or more projects, or when a /retro toolkit proposal is ready to be acted on.
The argument is one of: $ARGUMENTS
scripts/pam-login.sh)~/.claude/toolkit-proposals/fastapi-session-login.md)Read the source and understand what it does. If the argument is a procedure name, find it in the project's CLAUDE.md.
Read ~/.claude/toolkit.yaml and extract the local path of the toolkit repo:
~/.claude/skills is a symlink — if so, resolve it to find the toolkit repo roottoolkit.yaml for configured sources and look for a local clone in the cache_dirVerify the toolkit repo exists and is a git repo.
Create a parameterised version that:
Check the toolkit repo for existing similar scripts/skills before creating duplicates.
| Type | Location in toolkit repo |
|---|---|
| Reusable script | bin/ (if it's a helper Claude calls) or scripts/ (if user-facing) |
| Reusable skill | skills/<name>/SKILL.md |
| Reusable procedure | claude-md/procedures/<name>.md |
Replace the project-local version with a thin wrapper that calls the toolkit version.
Example — script promotion:
Before (in project repo):
#!/usr/bin/env bash
# Full implementation of session-cookie login
# ... 20 lines of curl logic ...
After (in project repo):
#!/usr/bin/env bash
# PAM login — wraps toolkit's fastapi-session-login
source .env
~/.claude/bin/fastapi-session-login.sh \
"http://localhost:8000" "$PAM_DEBUG_USER" "$PAM_DEBUG_PASS"
New (in toolkit repo):
#!/usr/bin/env bash
# Generic FastAPI session-cookie login
# Usage: fastapi-session-login.sh <base-url> <username> <password>
# Exports: SESSION_COOKIE
# ... generalised implementation ...
Example — procedure promotion:
Before (in project CLAUDE.md):
## Learned Procedures
### FastAPI Session Auth
1. POST /auth/login with form data
2. Extract session cookie from response
3. Include cookie in subsequent requests
After (in project CLAUDE.md):
## Learned Procedures
### FastAPI Session Auth
See ~/.claude/skills/claude-code-toolkit/claude-md/procedures/fastapi-session-auth.md
Project-specific: base URL is http://localhost:8000, credentials in .env as PAM_DEBUG_USER/PAM_DEBUG_PASS
Update the project's CLAUDE.md to reference the toolkit version instead of the local implementation.
Show:
Important: The user needs to commit to TWO repos:
Make this clear in the summary. Do NOT auto-commit to the toolkit repo.
Wait for confirmation before making any changes.