compound

Extract session learnings from git diff and log into CLAUDE.md and .claude/rules.

Updated May 23, 2026
One-click install
npx skills add https://github.com/devturco/thiago-dev-template --skill compound-devturco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compound
Source: https://github.com/devturco/thiago-dev-template/tree/main/.claude/skills/compound
Command: npx skills add https://github.com/devturco/thiago-dev-template --skill compound-devturco

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents valuable insights from getting lost after a work session by capturing what was learned and turning it into reusable guidance for future sessions.

Core Features & Use Cases

  • Review changes: Uses git diff and git log to ground learnings in what actually happened this session.
  • Extract reusable patterns: Identifies architectural decisions, new conventions, gotchas, fixed mistakes, and stack-specific quirks (TanStack, tRPC, better-auth, Drizzle, Zod 4).
  • Persist into the project: Updates CLAUDE.md with broadly applicable conventions or anti-patterns and adds topic-specific rule files under .claude/rules/.

Quick Start

Ask the agent to run the compound skill for this session so it can update CLAUDE.md and create any needed .claude/rules entries based on the Git changes.

Frequently Asked Questions about compound

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save session learnings into reusable project conventions?

Persisting development session learnings into CLAUDE.md involves analyzing git diff and git log outputs to identify architectural decisions and gotchas, then writing durable rules into .claude/rules/ to guide future sessions.

What is the best way to document stack-specific debugging decisions from a git diff?

Documenting stack-specific debugging decisions from a git diff involves extracting reusable patterns and fixed mistakes, then writing them into CLAUDE.md for broad conventions or creating topic-specific rule files under .claude/rules/ for framework quirks.

How do I update CLAUDE.md with new project conventions without duplicating existing rules?

Updating CLAUDE.md without duplicating existing rules requires analyzing the current session's git changes and checking existing instructions to ensure only new, broadly applicable conventions and anti-patterns are appended to the file.

Can I extract reusable rules from a refactoring session for frameworks like TanStack and Drizzle?

Yes, you can extract reusable rules from refactoring sessions for frameworks like TanStack and Drizzle by identifying stack-specific quirks and conventions from the git log, then persisting them as topic-specific rule files under .claude/rules/.

When should I avoid writing session learnings into project rules?

You should avoid writing session learnings into project rules when the insights are one-off fixes, speculative conclusions, or non-reusable implementation details that do not represent durable architectural conventions or recurring stack-specific gotchas.