بنقرة واحدة
distribute
Distribute global learnings and guidelines from ~/.claude/ into the current project's .claude/ directory.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Distribute global learnings and guidelines from ~/.claude/ into the current project's .claude/ directory.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Capture session learnings and save to skills, guidelines, or reference docs under ~/.claude/.
Orchestrate parallel claude -p sessions — bootstrap, launch, monitor, and converge. Works with any skill that produces manifest.json, item directories, and a runner script.
Create a request (pull request or merge request) or update an existing one following project conventions.
Resolve merge or rebase conflicts between branches.
Assess open PRs with unaddressed review comments and generate a parallel addressing script — produces manifest.json and let-it-rip.sh for address-request-comments execution.
Assess open work items and generate a parallel execution script — produces manifest.json and let-it-rip.sh for implement/clarify execution.
| name | distribute |
| description | Distribute global learnings and guidelines from ~/.claude/ into the current project's .claude/ directory. |
| disable-model-invocation | true |
| allowed-tools | ["Read","Glob","Grep","Edit","Write","Bash"] |
git rev-parse --show-toplevel 2>/dev/nullKeywords: distribute, sync, learnings, guidelines, project-local, dotfiles to project, merge, new/differs/up-to-date, relevance assessment, provider directories
Copy or merge global learnings and guidelines from ~/.claude/ into the current project's .claude/ directory. Skills are excluded — only guidelines and learnings are distributed.
/learnings:distribute - Distribute global learnings/guidelines to current projectDetect project root:
git rev-parse --show-toplevel to find the project rootPROJECT_ROOT<PROJECT_ROOT>/.claude/ exists; if not, note it will be createdUnderstand the project context:
<PROJECT_ROOT>/CLAUDE.md if it exists — this is the primary source for project context, stack, conventions, and architecturepackage.json, pyproject.toml, Cargo.toml, go.mod, Gemfile, pom.xml, Makefile, docker-compose.yml, etc.ls)<PROJECT_ROOT>/.claude/ config if present (existing guidelines/learnings) to understand what's already establishedPROJECT_CONTEXT — used for relevance assessment in the next stepInventory and assess global items:
~/.claude/learnings-providers.json to discover all provider directories. Use Glob to list all files in ~/.claude/guidelines/** and each provider's localPath/**<PROJECT_ROOT>/.claude/guidelines/** and <PROJECT_ROOT>/.claude/learnings/**guidelines/git-workflow.md, learnings/ci-cd.md).claude/PROJECT_CONTEXT:
Display items for selection:
ALWAYS use a markdown table — never use prose paragraphs to list items.
Available for distribution to <PROJECT_ROOT>:
| # | File | Type | Status | Relevance | Summary |
|---|------|------|--------|-----------|---------|
| 1 | guidelines/git-workflow.md | Guideline | New | General | Git commit and PR conventions |
| 2 | learnings/ci-cd.md | Learning | Differs | Relevant | CI pipeline patterns (global has new sections) |
| 3 | guidelines/testing.md | Guideline | New | Relevant | Testing conventions and patterns |
N items already up to date (skipped). M items not relevant to this project (skipped).
Use AskUserQuestion with multi-select to let the operator choose which items to distribute.
Include the status and relevance in each option's description field (e.g., "New, Relevant — Git commit and PR conventions" or "Differs, General — global has new sections on rebase workflow").
Store selected items as SELECTED_ITEMS.
Do NOT proceed until the operator selects. If no items selected, inform the operator and exit.
Distribute selected items:
SELECTED_ITEMS:
<PROJECT_ROOT>/.claude/<relative-path><PROJECT_ROOT>/.claude/learnings/) if they don't existVerify and report:
Distributed to <PROJECT_ROOT>/.claude/:
- guidelines/git-workflow.md — copied (new)
- learnings/ci-cd.md — merged (2 new sections added)
Distributed N items. M items were already up to date.
For prompt-free execution, add these allow patterns to project-level .claude/settings.local.json:
"Read(.claude/guidelines/**)",
"Read(.claude/learnings/**)",
"Write(.claude/guidelines/**)",
"Write(.claude/learnings/**)",
"Edit(.claude/guidelines/**)",
"Edit(.claude/learnings/**)"
And ensure these are in your user-level ~/.claude/settings.local.json:
"Read(~/.claude/guidelines/**)",
"Read(~/.claude/learnings*/**)",
"Read(~/.claude/learnings-providers.json)"
~/.claude/commands/) are excluded — only guidelines and learnings are distributed