Skip to content

Add the ruleset as a Claude Code output style - #13

Merged
kmizu merged 2 commits into
mainfrom
output-style
Oct 5, 2026
Merged

kmizu merged 2 commits into
mainfrom
output-style

Conversation

@kmizu

@kmizu kmizu commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Adds the ruleset as a Claude Code output style, selectable with /output-style concise:concise. It gives a second way to keep concise on: per project, persisted by Claude Code itself in .claude/settings.local.json, with no hook, no flag file, and no Node.js. The existing /concise skill and always-on hook are unchanged.

  • output-styles/concise.md: the ruleset with keep-coding-instructions: true, so Claude Code's own engineering guidance stays and only presentation changes. Not force-for-plugin; the user selects it.
  • scripts/build_output_style.py: generates the style from skills/concise/SKILL.md (frontmatter and credit footer stripped, one sentence added on how to turn it off). --check fails when the file is stale.
  • tests/test_output_style.py: checks the generated file is current, keeps coding instructions, and carries the ten rules.
  • CI: plugin-load-check.yml runs the check. README.md, AGENTS.md, and CONTRIBUTING.md document the style and the build step.
  • Version: 0.5.0 to 0.6.0 (new component); the Codex package manifests mirror the version and are regenerated.

Verified headlessly: claude -p --setting-sources "" --tools "" --plugin-dir . --settings '{"outputStyle":"concise:concise"}' reported the active style as concise:concise and quoted the ruleset's last pre-send check, so the full ruleset reaches the model through this path. Whether answers under the style match the hook path in quality was not measured; the output style has no 10 KB limit, so the same text is delivered either way.

Note: Claude Code ships a built-in style also named "Concise". This one is namespaced concise:concise; the README says so.

Checked: python -m unittest discover -s tests (50 tests, OK), python scripts/build_output_style.py --check, python scripts/build_codex.py --check, claude plugin validate . (passed), git diff --check (clean).

🤖 Generated with Claude Code

kmizu and others added 2 commits October 6, 2026 04:11
output-styles/concise.md is generated from skills/concise/SKILL.md and selected with /output-style concise:concise. Per-project persistence through Claude Code settings, no hook or flag file. Keeps coding instructions. Bump to 0.6.0.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@kmizu
kmizu merged commit 325dd67 into main Oct 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant