بنقرة واحدة
compound
Capture session learnings and save to skills, guidelines, or reference docs under ~/.claude/.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Capture session learnings and save to skills, guidelines, or reference docs under ~/.claude/.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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.
Analyze a file for refactoring opportunities and apply selected improvements.
| name | compound |
| description | Capture session learnings and save to skills, guidelines, or reference docs under ~/.claude/. |
| allowed-tools | ["Read","Glob","Grep","Edit","Write","AskUserQuestion","Skill"] |
Save new patterns and learnings from the current session into global skills, guidelines, or learnings under ~/.claude/.
/learnings:compound — Capture learnings from current sessionRead ~/.claude/learnings-providers.json to discover available learning destinations. Each entry has:
localPath — where files are writtenwriteScope — which learning scope routes here (global or private)writable — whether this skill may write heredefaultWriteTarget — the canonical Global destinationScope routing:
defaultWriteTarget: true (plus any other writeScope: "global", writable: true — multi-provider write)writeScope: "private" (e.g., ~/.claude/learnings-private)projectLocal.path in the current project (resolved relative to project root)Adding a new provider is just an edit to ~/.claude/learnings-providers.json. The ~/.claude/learnings*/** permission pattern covers any provider following the learnings-<name>/ naming convention.
For prompt-free execution, add these allow patterns to user-level ~/.claude/settings.local.json:
"Read(~/.claude/commands/**)",
"Read(~/.claude/learnings-providers.json)",
"Read(~/.claude/learnings*/**)",
"Read(~/.claude/guidelines/**)",
"Write(~/.claude/learnings*/**)",
"Write(~/.claude/commands/**)",
"Write(~/.claude/guidelines/**)",
"Edit(~/.claude/learnings*/**)",
"Edit(~/.claude/commands/**)",
"Edit(~/.claude/guidelines/**)"
~/.claude/learnings/claude-authoring/routing-table.md — categorization ambiguousskill-template.md + ~/.claude/learnings/claude-authoring-skills.md — authoring a new Skilliterative-loop-design.md — learning involves iterative/loop patternspublic-release-review.md — learning will be shared publicly or across reposCategorize each candidate against this table — it's the source of truth for routing, target paths, and write behavior.
| Type | When | Target | Write behavior |
|---|---|---|---|
| Skill | Command with clear, repeatable steps | ~/.claude/commands/<name>/SKILL.md (new file from template) | Auto-write if High/Medium utility |
| Skill fix | Concrete edit to an existing skill file | <skill-file>:<approx line> | Per-fix operator confirm (Apply / Skip / Defer) — never auto-applied, never batched |
| Guideline | Changes behavior or approach | ~/.claude/guidelines/<name>.md | Auto-write if High/Medium utility |
| Learning | Reference info, patterns, examples | Provider localPath per scope (see Providers above) | Auto-write if High/Medium utility |
Ambiguous type? Prefer Learning > Guideline > Skill (least to most structured).
Utility ratings (apply to Skill / Guideline / Learning — not Skill fix):
Read(file, limit=80) or grep keywords) before finalizing utility. If an existing section already covers the pattern → downgrade utility (Medium → Low) or drop. Catches redundancy before the table is built. Skip when the target file doesn't exist yet.ALWAYS use a markdown table — never section breaks, horizontal rules, or prose paragraphs.
Identified learnings from this session:
| # | Description | Type | Scope | Target | Utility |
|---|-------------|------|-------|--------|---------|
| 1 | LGTM verification process | Skill | Global | ~/.claude/commands/address-pr-review/SKILL.md | High |
| 2 | Co-authorship in PR replies | Guideline | Global | ~/.claude/guidelines/git-workflow.md | Low |
| 3 | SessionEnd hook configuration | Learning | Global | ~/.claude/learnings/ci-cd.md | High |
| 4 | Step 10b skip when no workflows | Skill fix | -- | ~/.claude/commands/sweep/address-prs/addresser-prompt.md:~84 | -- |
After the table, announce:
Auto-writing N High/Medium learning(s). Skipping K Low. M Skill fix(es) require confirmation.
If nothing qualifies (no High/Medium AND no Skill fixes) → state so and exit. Otherwise proceed.
Read each target before writing.
Skill fix path (per-fix, never batched, never auto-applied):
old_string / new_string) per the Conciseness gate below.AskUserQuestion with options Apply / Skip / Defer.Apply → Edit. On Skip → log "skill fix declined" with a one-line reason. On Defer → list in step 4 summary as "pending apply."Auto-write path (Skill / Guideline / Learning):
writeScope: "global" and writable: true, write to each. For new files in additional providers, add an index entry to that provider's CLAUDE.md (- `filename.md` — one-line description). Cross-refs in the copy use paths relative to that provider's localPath. Single-provider setup → skip silently.Conciseness gate (mandatory):
code or terse structure (→, bullet fragments, tables) over prose when meaning is preserved.Read back each written file to confirm. Output:
Updated files:
- <path> — <what was added> (Utility: <High/Medium>)
- <provider path> — multi-provider write (if applicable)
- <skill-file>:<line> — applied / declined / deferred (Skill fix)
Wrote N learnings. Applied K skill fixes (D declined, E deferred). Wrote M to additional providers.