This skill should be used when the user says "/compound", "compound this", "document learnings", "save what we learned", or after completing a PR. Extracts knowledge from PR context and saves to docs/learnings/.
Extracts knowledge from PR context and saves structured documentation to docs/learnings/.
Identify PR number/branch
gh pr view --json number,body,titleExtract Plan path
.hoyeon/specs/{name}/PLAN.md\.hoyeon/specs/[^/]+/PLAN\.md.hoyeon/specs/ directory listingDerive Context path
.hoyeon/specs/{name}/context/Parallel collection (run following commands simultaneously, skip if files don't exist)
# Context files (treat as empty if not found)
cat .hoyeon/specs/{name}/context/learnings.json 2>/dev/null || echo ""
cat .hoyeon/specs/{name}/context/decisions.md 2>/dev/null || echo ""
cat .hoyeon/specs/{name}/context/issues.json 2>/dev/null || echo ""
# PR comments and reviews (collect as JSON for stability)
gh pr view {pr_number} --json comments,reviews
Error Handling:
Criteria for valuable feedback:
Filter out:
Extraction keywords:
Extracted information:
| File | Purpose | |------|---------| | learnings.json | Structured learnings | | decisions.md | Decision rationale | | issues.json | Structured issues |
docs/learnings/references/problem-types.md (relative to this skill directory)Generate YAML frontmatter
pr_number: {PR_NUMBER}
date: {YYYY-MM-DD}
problem_type: {TYPE}
tags: [{TAGS}]
plan_path: {PLAN_PATH}
Write document using template
templates/LEARNING_TEMPLATE.md (relative to this skill directory)Determine filename
{YYYY-MM-DD}-{short-title}.md2024-01-15-api-error-handling.mdSave
docs/learnings/{filename}.mdAdd cross-references (if related documents exist)
# Specify PR number
/compound 123
# Use PR from current branch
/compound
Outputs the created document path and summary:
Created: docs/learnings/2024-01-15-api-error-handling.md
Summary:
- Problem Type: error-handling
- Tags: api, typescript, validation
- Sources: learnings.json, 2 PR comments
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer