用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bdarbaz/claude-stack-plugin --skill s-compound命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Autonomous workflow loop - runs the full skill chain automatically with circuit breaker and stuck detection
Freeform router - accepts natural language and routes to the appropriate skill(s)
Show all available skills, agents, and workflow guides - quick reference card for claude-stack
基于 SOC 职业分类
正在显示 SKILL.md
| name | s-compound |
| description | Capture session learnings - extracts reusable knowledge and saves to docs/solutions/ (NEVER SKIP) |
Extract reusable learnings from the current session and persist them to docs/solutions/. This skill is the project's long-term memory. It must NEVER be skipped after feature work, bug fixes, or significant changes.
Without compounding, every session starts from zero. Knowledge stays in chat history and vanishes when the context window rolls over. This skill captures what was learned so future sessions (and future developers) benefit.
Read the following sources to understand what happened in this session:
git log --oneline -20 to see recent commitsgit diff HEAD~5..HEAD --stat to see what files changed (adjust range as needed).planning/STATE.md for decisions made during this sessiondocs/brainstorms/ for any design context created this sessiondocs/plans/ for any implementation plans created this sessionSynthesize a clear picture of what was built, fixed, or discovered.
Present a summary of what you found, then ask:
"Based on the session, here is what I see was accomplished:
- {bullet list of work done}
What were the key learnings? Anything surprising, tricky, or worth remembering for next time?"
Wait for user input. Their perspective adds context that code alone does not capture.
From the session context and user input, identify:
Create a new file at docs/solutions/YYYY-MM-DD-{topic}.md where:
YYYY-MM-DD is today's date{topic} is a kebab-case descriptor (e.g., auth-flow-with-supabase, test-pollution-fix)Use this format:
# {Topic Title}
## Problem
{What problem was being solved? What was the starting state?}
## Solution
{How was it solved? Include specific steps, code patterns, or configurations.
Be concrete enough that someone could reproduce this without the original context.}
## Why It Works
{Explain the reasoning. Why this approach over alternatives?
What trade-offs were accepted?}
## Gotchas
{Things to watch out for when applying this solution.
Edge cases, version-specific behavior, ordering dependencies, etc.}
## Related
- {Link to relevant files in the codebase}
- {Link to relevant docs, brainstorms, or plans}
- {Link to external resources if applicable}
.planning/STATE.md:
| {DATE} | Compound: {topic} | Learnings captured in docs/solutions/ |Output to the user:
Learnings captured: docs/solutions/{filename}.md
This knowledge is now part of the project's permanent memory.
Future sessions will benefit from these learnings.
Next steps:
- Run `/s:retro` for a full retrospective of this phase
- Run `/s:status` to see overall project progress
| Trigger | Action |
|---|---|
After /s:ship | Always - capture what was shipped |
| After a bug fix | Always - capture the root cause and fix |
| After a refactor | Always - capture why and how |
| After a difficult debugging session | Always - capture the investigation |
| After discovering something unexpected | Always - capture the surprise |
| After a trivial change | Optional - use judgment |
/s:ship suggests running this skill after every successful ship/s:retro reads from docs/solutions/ to build retrospective insights/s:resume reads recent solutions to reconstruct session context