user-scope-skills/compound/SKILL.md
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/.
npx skillsauth add onejaejae/skills compoundInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
.dev/specs/{name}/PLAN.md\.dev/specs/[^/]+/PLAN\.md.dev/specs/ directory listingDerive Context path
.dev/specs/{name}/context/Parallel collection (run following commands simultaneously, skip if files don't exist)
# Context files (treat as empty if not found)
cat .dev/specs/{name}/context/learnings.md 2>/dev/null || echo ""
cat .dev/specs/{name}/context/decisions.md 2>/dev/null || echo ""
cat .dev/specs/{name}/context/issues.md 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.md | Direct learnings | | decisions.md | Decision rationale | | issues.md | Out of scope issues (for future reference) |
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)
| Skill | Purpose | Output | When to use |
|-------|---------|--------|-------------|
| /compound | Extract and save learnings from a PR | docs/learnings/{date}-{title}.md | After completing a PR, to capture knowledge |
| /check | Rule-based verification | PASS/WARN per rule | Before push, to verify compliance |
| session-wrap | Session summary and cleanup | Session analysis report | When ending a session, broader than just PR learnings |
gh pr view fails, prompt the user to enter a PR number directly or confirm proceeding without PR context..dev/specs/ directory listing, or enter one manually.docs/learnings/ does not exist: Create the directory automatically before saving.docs/learnings/, show the existing file path and ask the user whether to update the existing document or create a new one.templates/LEARNING_TEMPLATE.md (relative to this skill directory) is not found, generate the document directly using the YAML frontmatter structure defined in Phase 3, without the template. Note this in the output.# 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.md, 2 PR comments
testing
CLAUDE.md 기반 환경 안전 체크. 작업 시작 전에 프로젝트의 안전 규칙, 컨벤션, 환경 설정을 자동 검증하여 CLEAR/WARNING/BLOCKED 상태를 보고한다. /check가 "변경 후 검증"이라면, /pre-flight는 "작업 전 환경 검증"이다. Use PROACTIVELY before starting work, especially after switching branches, pulling changes, or resuming a session. Also use when explicitly asked: "/pre-flight", "프리플라이트", "환경 체크", "작업 전 점검", "안전 체크", "environment check", "pre-flight check", "시작해도 돼?", "환경 괜찮아?", "safety check", "DB 확인", "설정 확인", "config check".
tools
PR 리뷰 워크플로우와 체크리스트를 제공하는 스킬. "PR 리뷰해줘", "코드 리뷰 해줘", "이 PR 봐줘", "review this PR" 등 PR 리뷰 요청 시 사용. GitHub/GitLab PR URL 또는 로컬 브랜치 diff를 기반으로 체계적이고 일관된 리뷰를 수행. 코드 품질, 안정성/보안, 성능, 테스트, 문서화 관점에서 건설적인 피드백 제공.
documentation
PR review comments를 체계적으로 처리하는 skill. Use when: (1) PR에 동료의 리뷰가 달렸을 때, (2) 여러 리뷰를 한 번에 처리하고 싶을 때, (3) 수정 후 commit 링크가 포함된 reply를 자동으로 추가하고 싶을 때
tools
PR diff를 받아 코드 리뷰 자동 요약을 생성하는 스킬. 핵심 변경점을 3줄로 요약하고, 변경 파일별로 what changed / why it matters / risk level을 정리. Use when: "PR 요약", "diff 요약", "PR 변경점 정리", "코드 변경 요약", "summarize PR", "PR summary", "diff summary", "what changed in this PR", "변경점 요약해줘", "PR 핵심 정리", "리뷰 요약"