spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Editorial changesBrowse files
Dickson Tsai authored on Oct 29, 2025 parent 10e1d3f · commit 8b47e224a0b2
2 changed files+32 -16compared with 10e1d3f
Mplugins/explanatory-output-style/.claude-plugin/plugin.json
Mplugins/explanatory-output-style/README.md
@@ -3,7 +3,7 @@
33 "version": "1.0.0",
44 "description": "Adds educational insights about implementation choices and codebase patterns (mimics the deprecated Explanatory output style)",
55 "author": {
6- "name": "Anthropic",
7- "email": "support@anthropic.com"
6+ "name": "Dickson Tsai",
7+ "email": "dickson@anthropic.com"
88 }
99 }
@@ -1,10 +1,15 @@
11 # Explanatory Output Style Plugin
22
3-This plugin recreates the deprecated Explanatory output style as a SessionStart hook.
3+This plugin recreates the deprecated Explanatory output style as a SessionStart
4+hook.
45
6+WARNING: Do not install this plugin unless you are fine with incurring the token
7+cost of this plugin's additional instructions and output.
8+
59 ## What it does
610
7-When enabled, this plugin automatically adds instructions at the start of each session that encourage Claude to:
11+When enabled, this plugin automatically adds instructions at the start of each
12+session that encourage Claude to:
813
914 1. Provide educational insights about implementation choices
1015 2. Explain codebase patterns and decisions
@@ -12,7 +17,9 @@
1217
1318 ## How it works
1419
15-The plugin uses a SessionStart hook to inject additional context into every session. This context instructs Claude to provide brief educational explanations before and after writing code, formatted as:
20+The plugin uses a SessionStart hook to inject additional context into every
21+session. This context instructs Claude to provide brief educational explanations
22+before and after writing code, formatted as:
1623
1724 ```
1825 `★ Insight ─────────────────────────────────────`
@@ -20,15 +27,13 @@
2027 `─────────────────────────────────────────────────`
2128 ```
2229
23-## Installation
24-
25-Install this plugin from the Claude Code marketplace, or manually by placing it in your `.claude/plugins` directory.
26-
2730 ## Usage
2831
29-Once installed, the plugin activates automatically at the start of every session. No additional configuration is needed.
32+Once installed, the plugin activates automatically at the start of every
33+session. No additional configuration is needed.
3034
3135 The insights focus on:
36+
3237 - Specific implementation choices for your codebase
3338 - Patterns and conventions in your code
3439 - Trade-offs and design decisions
@@ -36,7 +41,8 @@
3641
3742 ## Migration from Output Styles
3843
39-This plugin replaces the deprecated "Explanatory" output style setting. If you previously used:
44+This plugin replaces the deprecated "Explanatory" output style setting. If you
45+previously used:
4046
4147 ```json
4248 {
@@ -46,11 +52,21 @@
4652
4753 You can now achieve the same behavior by installing this plugin instead.
4854
49-## Managing changes
55+More generally, this SessionStart hook pattern is roughly equivalent to
56+CLAUDE.md, but it is more flexible and allows for distribution through plugins.
5057
51-* Disable the plugin - keep the code installed on your device
52-* Uninstall the plugin - remove the code from your device
53-* Update the plugin - create a local copy of this plugin to personalize this plugin
54- - Hint: Ask Claude to read https://docs.claude.com/en/docs/claude-code/plugins.md and set it up for you!
58+Note: Output styles that involve tasks besides software development, are better
59+expressed as
60+[subagents](https://docs.claude.com/en/docs/claude-code/sub-agents), not as
61+SessionStart hooks. Subagents change the system prompt while SessionStart hooks
62+add to the default system prompt.
5563
64+## Managing changes
5665
66+- Disable the plugin - keep the code installed on your device
67+- Uninstall the plugin - remove the code from your device
68+- Update the plugin - create a local copy of this plugin to personalize this
69+ plugin
70+ - Hint: Ask Claude to read
71+ https://docs.claude.com/en/docs/claude-code/plugins.md and set it up for
72+ you!