بنقرة واحدة
output-learn
Extract technical learnings from the session and save them to the learn repository.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Extract technical learnings from the session and save them to the learn repository.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Publish agent research as a durable Markdown vault entry, optionally with a GitHub Gist share artifact.
Iteratively ask clarifying questions to enrich the current Plan before review.
Create, switch, list, and delete git worktrees with `git wt` (the git-wt CLI). Use when working on multiple branches in parallel, isolating an experiment in its own checkout, or whenever the user mentions worktrees or `git wt`.
Iteratively refine the current Plan by applying Codex review feedback until Codex has no more issues to raise.
Review the current plan by auto-selecting appropriate reviewer agents based on project characteristics.
Analyze session context and generate a targeted prompt for /compact to preserve important information.
| name | output-learn |
| description | Extract technical learnings from the session and save them to the learn repository. |
Extract and organize technical learnings from the current Claude Code session and save them to the learn repository.
@homeDirectory@/Repo/github.com/magurotuna/learn/<category>/<topic-slug>.md
Analyze the conversation history and extract technical learnings.
Extraction targets:
If no learnings are found, notify the user that the session lacks technical content and stop.
Auto-detect candidate categories from keywords and confirm with the user via AskUserQuestion.
Example categories:
| Category | Scope |
|---|---|
typescript | TypeScript language features, types |
rust | Rust language, cargo, crates |
go | Go language, modules |
nix | Nix, NixOS, home-manager, flakes |
testing | Test methodology, frameworks |
git | Git operations, workflows |
cli | CLI development, command-line tools |
architecture | Design patterns, architecture |
library/<name> | Specific library usage |
devops | CI/CD, infrastructure |
k8s | Kubernetes, Helm, k9s |
performance | Performance optimization |
Via AskUserQuestion:
- Present detected category candidates
- Allow custom category input
Generate a markdown file based on this template.
Filename: <topic-slug>.md (lowercase kebab-case)
Template:
# <Title>
## Summary
<1-2 sentence overview of the learning>
## Background
<What situation led to this learning>
## What I Learned
### <Subtopic>
<Detailed explanation>
```<language>
// code example
```
## Key Takeaways
- <Key point 1>
- <Key point 2>
## References
- [Link text](URL)
Display a preview of the generated markdown and ask for confirmation via AskUserQuestion.
Confirmation items:
Via AskUserQuestion:
- Approve and save
- Request modifications (provide instructions)
- Change filename
- Cancel
If a file with the same name exists:
Via AskUserQuestion:
- Overwrite
- Save with a different name (add suffix)
- Append to existing file
- Cancel
After approval, save and push:
LEARN_REPO="@homeDirectory@/Repo/github.com/magurotuna/learn"
if [ ! -d "$LEARN_REPO" ]; then
echo "learn repository not found"
echo "Run: ghq get magurotuna/learn"
exit 1
fi
# Create category directory if needed
mkdir -p "$LEARN_REPO/<category>"
# Write the markdown file via the Write tool
# Git operations
cd "$LEARN_REPO"
git add "<category>/<topic-slug>.md"
git commit -m "Add: <title>"
git push origin main
| Situation | Response |
|---|---|
| learn repo not cloned | Suggest running ghq get magurotuna/learn |
| No technical learnings found | Notify that the session lacks technical content, stop |
| Git push fails | Show the error and suggest manual resolution |
| Duplicate filename | Offer overwrite / rename / append via AskUserQuestion |
| Directory creation fails | Report permission error |