Skip to content
coach logo

Coach - Self-Improving Learning System

coach

Self-improving learning system that detects friction signals and proposes rule updates. This skill should be used when Claude needs to learn from mistakes, when users repeatedly correct behavior, when tool failures indicate missing knowledge, or when reviewing learning candidates via /coach comma...

SKILL.md

Full skill instructions

Coach - Self-Improving Learning System

Coach enables Claude to learn from friction and improve over time. It detects learning opportunities (user corrections, repeated instructions, tool failures, tone escalation), extracts actionable improvement candidates, and proposes changes requiring explicit user approval.

Core Principle: No silent writes. All improvements require user approval via /​coach approve.

Activation Triggers

Activate this skill when:

  • User corrects Claude's behavior ("no", "stop", "don't", "I said", "you didn't")
  • Same instruction is repeated within recent turns
  • Tool/​command failures occur (non-zero exit, stderr patterns)
  • Tone escalation detected (ALL CAPS, "!!!", "for the last time")
  • User supplements a skill with additional instructions ("the skill doesn't...", "also remember...")
  • Deprecated/​outdated tool warnings appear in command output
  • User explicitly requests /​coach commands
  • Session end triggers batch review of accumulated signals

Signal Categories (Priority Order)

  1. COMMAND_FAILURE (Highest) - Non-zero exit codes, stderr error patterns
  2. USER_CORRECTION (High) - Explicit correction language
  3. SKILL_SUPPLEMENT (High) - User providing additional guidance for a skill
  4. VERSION_ISSUE (Medium-High) - Deprecated/​outdated tool warnings in output
  5. REPETITION (Medium) - Semantically similar instruction repeated
  6. TONE_ESCALATION (Low) - Frustration indicators (triggers review, not rule)

Candidate Types

TypeDescriptionExample
ruleStable constraint"Never edit generated files"
checklistWorkflow step"Run tests after code change"
snippetRepeatable command"Preflight check script"
skillSkill update suggestion"Add X guidance to Y skill"
antipatternThings to never do"Never assume tool exists"

Workflow Summary

  1. Signal Detection - Hooks capture friction events → stored in ~/​.claude-coach/​events.sqlite
  2. Candidate Generation - Aggregate signals into proposals with fingerprints for deduplication
  3. Scope Decision - Determine project vs global scope based on path/​language patterns
  4. Proposal Review - User reviews via /​coach review, approves/​rejects/​edits
  5. Application - Approved rules added to CLAUDE.md (project or global)

File Locations

~/​.claude-coach/
├── events.sqlite      # Raw friction events
├── candidates.json    # Pending proposals
└── ledger.sqlite      # Cross-repo fingerprints

~/​.claude/ or <repo>/​.claude/
├── CLAUDE.md          # Rules destination
├── checklists/        # Workflow checklists
└── snippets/          # Reusable commands

Scripts

Execute from ${CLAUDE_PLUGIN_ROOT}/​scripts/:

ScriptPurpose
init_coach.pyInitialize coach system
detect_signals.pyPattern detection for friction
aggregate.pyTurn signals into candidates
skill_analyzer.pyAnalyze skills and scan for outdated tools
apply.pyApply approved proposals

Proactive Scanning

Use /​coach scan to proactively check for:

  • Outdated CLI tools (node, npm, python, go, docker, gh)
  • Outdated npm/​pip dependencies
  • Tool version issues and deprecation warnings

For detailed architecture, schemas, and patterns, see references/ directory.

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View