Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: team-attention-hoyeon-compound3description: Compound Skill4---56# Compound Skill78Extracts knowledge from PR context and saves structured documentation to `docs/learnings/`.910## Workflow1112### Phase 1: Context Collection13141. **Identify PR number/branch**15 - Use PR number if provided as argument16 - Otherwise, find PR from current branch: `gh pr view --json number,body,title`17 - **If no PR exists**: Prompt user to enter PR number directly or confirm proceeding without PR18192. **Extract Plan path**20 - Find Plan path pattern in PR body: `.hoyeon/specs/{name}/PLAN.md`21 - Regex: `\.hoyeon/specs/[^/]+/PLAN\.md`22 - **If no Plan path found**: Prompt user to enter spec name directly or select from `.hoyeon/specs/` directory listing23243. **Derive Context path**25 - Extract spec name from Plan path26 - Context directory: `.hoyeon/specs/{name}/context/`27284. **Parallel collection** (run following commands simultaneously, skip if files don't exist)29 ```bash30 # Context files (treat as empty if not found)31 cat .hoyeon/specs/{name}/context/learnings.json 2>/dev/null || echo ""32 cat .hoyeon/specs/{name}/context/decisions.md 2>/dev/null || echo ""33 cat .hoyeon/specs/{name}/context/issues.json 2>/dev/null || echo ""3435 # PR comments and reviews (collect as JSON for stability)36 gh pr view {pr_number} --json comments,reviews37 ```3839**Error Handling:**40- If no context files exist AND no PR comments → Notify user and request manual input41- At least 1 source required to proceed with document generation4243### Phase 2: Knowledge Extraction & Classification4445#### 2.1 Extract Valuable Feedback from PR Comments4647**Criteria for valuable feedback:**48- Code improvement suggestions49- Bug/issue identification50- Pattern/best practice mentions51- "This would be better" type advice52- Comments left with approval5354**Filter out:**55- Simple questions ("What is this?")56- Confirmation requests ("Is this correct?")57- Approval-only comments ("LGTM", "Approved")58- Bot comments5960**Extraction keywords:**61- "suggest", "recommend", "better", "instead"62- "pattern", "practice", "convention"63- "issue", "bug", "fix"64- "learned", "TIL", "note"6566**Extracted information:**67- author68- body69- file_path (if inline comment)70- created_at7172#### 2.2 Analyze Context Files7374| File | Purpose |75|------|---------|76| learnings.json | Structured learnings |77| decisions.md | Decision rationale |78| issues.json | Structured issues |7980#### 2.3 Synthesize81821. Assess documentation value from collected sources832. Check for duplicates: Search `docs/learnings/`843. Classify problem type - Refer to `references/problem-types.md` (relative to this skill directory)854. Generate tags8687### Phase 3: Document Generation88891. **Generate YAML frontmatter**90 ```yaml91 pr_number: {PR_NUMBER}92 date: {YYYY-MM-DD}93 problem_type: {TYPE}94 tags: [{TAGS}]95 plan_path: {PLAN_PATH}96 ```97982. **Write document using template**99 - Template location: `templates/LEARNING_TEMPLATE.md` (relative to this skill directory)100 - Read template and substitute placeholders1011023. **Determine filename**103 - Format: `{YYYY-MM-DD}-{short-title}.md`104 - Example: `2024-01-15-api-error-handling.md`1051064. **Save**107 - Path: `docs/learnings/{filename}.md`1081095. **Add cross-references** (if related documents exist)110 - Add new document link to Related section of existing documents111112## Usage Examples113114```115# Specify PR number116/compound 123117118# Use PR from current branch119/compound120```121122## Output123124Outputs the created document path and summary:125126```127Created: docs/learnings/2024-01-15-api-error-handling.md128129Summary:130- Problem Type: error-handling131- Tags: api, typescript, validation132- Sources: learnings.json, 2 PR comments133```134135---136137<!-- TODO: Future extensions -->138<!-- - [ ] Session ID based user feedback collection -->139<!-- - [ ] CLAUDE.md auto-update suggestions -->140<!-- - [ ] Detect existing document UPDATEs -->141<!-- - [ ] Auto-categorization by problem_type (docs/solutions/{type}/) -->142143---144> Converted and distributed by [TomeVault](https://tomevault.io/claim/team-attention) — claim your Tome and manage your conversions.145<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/team-attention-hoyeon-compound in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Compound Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.