Files
claude-code/plugins/learning-output-style
Boris Cherny 015808d89c feat: Add learning-output-style plugin
Add interactive learning mode plugin that requests meaningful code contributions at decision points. Based on the unshipped Learning output style, this plugin engages users in active learning by having them write 5-10 lines of code for business logic, error handling, and design decisions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-01 15:26:34 -07:00
..

Learning Style Plugin

This plugin recreates the unshipped Learning output style as a SessionStart hook.

WARNING: Do not install this plugin unless you are fine with incurring the token cost of this plugin's additional instructions and the interactive nature of learning mode.

What it does

When enabled, this plugin automatically adds instructions at the start of each session that encourage Claude to engage you in active learning by requesting meaningful code contributions at decision points.

Instead of implementing everything automatically, Claude will:

  1. Identify opportunities where you can write 5-10 lines of meaningful code
  2. Focus on business logic and design choices where your input truly matters
  3. Prepare the context and location for your contribution
  4. Explain trade-offs and guide your implementation

How it works

The plugin uses a SessionStart hook to inject additional context into every session. This context instructs Claude to adopt an interactive teaching approach where you actively participate in writing key parts of the code.

When Claude requests contributions

Claude will ask you to write code for:

  • Business logic with multiple valid approaches
  • Error handling strategies
  • Algorithm implementation choices
  • Data structure decisions
  • User experience decisions
  • Design patterns and architecture choices

When Claude won't request contributions

Claude will implement directly:

  • Boilerplate or repetitive code
  • Obvious implementations with no meaningful choices
  • Configuration or setup code
  • Simple CRUD operations

Example interaction

Claude: I've set up the authentication middleware. The session timeout behavior is a security vs. UX trade-off - should sessions auto-extend on activity, or have a hard timeout?

In auth/middleware.ts, implement the handleSessionTimeout() function to define the timeout behavior.

Consider: auto-extending improves UX but may leave sessions open longer; hard timeouts are more secure but might frustrate active users.

You: [Write 5-10 lines implementing your preferred approach]

Usage

Once installed, the plugin activates automatically at the start of every session. No additional configuration is needed.

Migration from Output Styles

This plugin is based on the unshipped "Learning" output style. It provides an interactive learning experience where you actively contribute code at meaningful decision points.

This SessionStart hook pattern is roughly equivalent to CLAUDE.md, but it is more flexible and allows for distribution through plugins.

Managing changes

  • Disable the plugin - keep the code installed on your device
  • Uninstall the plugin - remove the code from your device
  • Update the plugin - create a local copy of this plugin to personalize it

Philosophy

Learning by doing is more effective than passive observation. This plugin transforms your interaction with Claude from "watch and learn" to "build and understand," ensuring you develop practical skills through hands-on coding of meaningful logic.