compound-learning
Knowledge management for compound engineering. Use when adding learnings to CLAUDE.md, reviewing past patterns, or deciding how to structure project memory. Covers entry format, section organization, and maintenance.
What this skill does
# Compound Learning — Project Memory Management
The compound learning system turns each build/review cycle into accumulated project knowledge via CLAUDE.md.
## How It Works
Every project has a CLAUDE.md that Claude reads at the start of each session. The `/ct:compound` command appends learnings after each cycle. Over time, Claude becomes increasingly effective at working in this specific codebase.
## Entry Format
Every learning entry must be:
### Dated
```
[2026-02-07] Always use server actions for mutations in Next.js App Router
```
### Specific
```
[2026-02-07] The Stripe webhook handler at /app/api/webhooks/stripe/route.ts
needs `export const config = { api: { bodyParser: false } }` — without raw
body, constructEvent() throws "No signatures found"
```
### Actionable
Future Claude should know what to DO, not just what happened:
✅ "Use `prisma.$transaction()` when updating both the user and subscription tables"
❌ "Had a bug with Prisma transactions"
## Section Structure
CLAUDE.md should have these sections (created by `/ct:setup`):
### What Works
Patterns, libraries, approaches that proved effective:
```
[2026-02-07] Zod schemas as single source of truth: define once in /lib/schemas/,
use for API validation, form validation, and TypeScript types via z.infer<>
```
### What Failed
Approaches tried and abandoned, with reasons:
```
[2026-02-07] tRPC added too much boilerplate for our API surface (3 endpoints).
Switched to plain route handlers with Zod validation. Revisit if API grows past 15 endpoints.
```
### Recurring Bugs
Errors that show up repeatedly — prevent them proactively:
```
[2026-02-08] Forgetting "use server" directive causes: "Error: Functions cannot be
passed directly to Client Components unless you explicitly expose it by marking it
with 'use server'." Always add to files in /app/actions/.
```
## Maintenance
### Deduplication
If a new learning overlaps with an existing one, UPDATE the existing entry rather than adding a duplicate. Add the new date.
### Retirement
Remove entries about tech that's been removed from the project. Dead patterns create noise.
### Size Management
If CLAUDE.md exceeds ~500 lines:
1. Split into topic files: `.claude/docs/auth-patterns.md`, `.claude/docs/api-conventions.md`
2. Reference them from CLAUDE.md: "See `.claude/docs/auth-patterns.md` for auth conventions"
3. Keep CLAUDE.md as the index with the most critical patterns inline
### Contradiction Resolution
If a new learning contradicts an old one, update the old entry:
```
[2026-02-07] ~~Use REST for all endpoints~~ [2026-02-15] Use REST for CRUD,
WebSockets for real-time features (chat, notifications). See /lib/ws/ for setup.
```
## What Makes Good Compound Learnings
| Good | Bad |
|------|-----|
| References specific files/functions | Vague generalities |
| Includes error messages | "Had an error" |
| Says what TO DO | Says what happened |
| Includes WHY | Just states facts |
| Has context for when it applies | Universal claims |
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.