ripta/coding_agent_standards/tree/main/claude
coding-standards
Personal coding standards and a Claude Code plugin containing TypeScript hook modules (a pixel goblin spinner and a work-queue progress panel), installable through the plugin marketplace.
About this mod
This repo combines personal coding standards, project-management workflows, and AI agent rules in one source, then packages the claude/ directory as a Claude Code plugin named coding-standards. The plugin contains hooks, rules, skills, agents, and commands. Its mods/ and work-queue-progress UI modules are built with TypeScript function hooks: gopher-spinner replaces the spinner with a pixel goblin during a turn (hopping during tool calls, looking around while thinking, and blinking while replying), while the work-queue progress module shows execution progress above the prompt and in the /queue pane. To install, first run /plugin marketplace add ripta/coding_agent_standards, then /plugin install coding-standards@coding-standards, and choose user scope to use it across projects. You can also load it directly from the source with claude --plugin-dir and hot-reload it with /reload-plugins.
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add ripta/coding_agent_standards claude plugin install coding-standards
Original text / README
Coding Agent Standards
Personal coding standards, best practices, and coding agent configuration for use across projects. This repo acts as a single source of truth for language conventions, development practices, project management SOPs, and AI agent behavior rules.
Structure
coding_agent_standards/
├── languages/ Language-specific standards
├── practices/ Cross-cutting practices
├── .claude/ Project-local Claude Code config (skills, settings) for this repo
├── claude/ Claude Code plugin source (exported to other projects)
│ ├── .claude-plugin/ Plugin manifest
│ ├── agents/ Subagent definitions
│ ├── commands/ Slash commands
│ ├── hooks/ hooks.json, the guard scripts it wires up, and the work-queue progress mod
│ ├── project-management/ Plans, proposals, design, tracking, and commit chunking standards
│ ├── rules/ Agent behavior rules
│ ├── scripts/ Standalone scripts (statusline)
│ ├── settings/ Permission whitelist templates per ecosystem
│ ├── skills/ Skill definitions
│ ├── tests/ Tests for the plugin's hooks module
│ └── types/ State contract for the plugin's hooks module
├── codex/ Codex skills with no Claude Code equivalent (exported as a Codex plugin)
├── mods/ Claude Code mods, each its own opt-in plugin in the same marketplace
├── profiles/ Composable project profiles
├── rumdl/ Shared markdown lint config and runner
├── vale/ Shared prose lint styles and runner
└── bin/ Utility scripts
Languages
Standards for each language/framework covering naming, project structure, error handling, testing, and tooling:
- 1z (
1z.md) -- stack-oriented functional language, naming conventions, testing, quotation-based control flow - Go (
go.md) -- packages, error wrapping, concurrency, build patterns - CGO (
cgo.md) -- C FFI bridge layers, type conversions, memory management, gomobile - Swift (
swift.md) -- SwiftUI, async/await, SPM, Go/C library integration - Rust (
rust.md) -- modules, workspaces, error handling with thiserror/anyhow - Zig (
zig.md) -- allocators, error sets, build system, embedded tests - Svelte (
svelte.md) -- SvelteKit, Svelte 5 runes, Tailwind, protobuf RPC - TypeScript (
typescript.md) -- strict tsconfig, ESM, Biome for format and lint, pnpm - Phaser (
phaser.md) -- scenes, pooling, atlases, isometric projection - PixiJS (
pixijs.md) -- v8 application setup, scene graph, ticker, asset bundles - Protocol Buffers (
protobuf.md) -- file layout, naming, schema evolution, field numbering, buf-based code generation - PostgreSQL (
postgres.md) -- data types, database-enforced constraints, relationships, indexes, denormalization
Practices
Cross-cutting concerns that apply regardless of language:
- Testing -- table-driven tests, golden files, HTTP handler tests, testability patterns
- Error Handling -- wrapping, sentinel errors, structured responses, validation
- Code Review -- review priorities, submission checklist
- Security -- input validation, parameterized queries, secret management
- Game Simulation -- fixed timestep, sim/render split, determinism, offline replay
Project Management
Standards for planning and tracking work:
- Glossary -- what each term means: proposal, phase, milestone, spike, ADR
- Plans -- phase and milestone definitions, promotion rules, document format
- Proposals -- feature proposal lifecycle (draft through implemented), numbering
- Design -- Architecture Decision Records (ADRs), lifecycle, immutability rules
- Tracking -- cross-reference conventions, metadata standards, markdown guidelines
- Commit Chunking -- splitting a long-running integration branch into PR-sized chunks
Claude Code Configuration
Rules, hooks, settings, scripts, commands, agents, and skills for Claude Code:
- Rules (
rules/) -- decision-making boundaries, work discipline, git workflow, commit/PR style, writing voice - Hooks (
hooks/) --hooks.jsonwires auto-formatting on edit and a test/lint reminder on stop. Theblock-broad-find,block-redirection, andcg-checkguard scripts ship alongside it, plus opt-in hooks for project-management references, golden files, and the Zig cache; seeclaude/hooks/README.mdfor which are wired by default.hooks.jsonalso loadswork-queue-progress.tsx, a mod that shows awork-queuerun's progress above the prompt and in a/queuepane - Settings (
settings/) -- permission whitelist templates to copy into a project's.claude/settings.local.json, one per language ecosystem - Scripts (
scripts/) -- standalone scripts not tied to a hook, currently the statusline - Skills (
skills/) -- specialized agents for code review, testing, linting, Makefile maintenance, releases, proposals, etc. - Agents (
agents/) -- subagent definitions invoked by name:implementer, which writes one milestone forwork-queue, andreviewer, for post-milestone diff review - Commands (
commands/) -- slash commands for driving a phase milestone (work-on), working through a queue of milestones planned up front (work-queue), summarizing a session as a commit message (summary), and chunking an integration branch into PRs (next-pr)
Commands stay thin. The rules they enforce live in claude/rules/ and claude/project-management/, and a command reads
them at ${CLAUDE_PLUGIN_ROOT}/... rather than restating them. Keeping one copy is what stops /summary and /work-on
from drifting apart on the same commit-message rules.
Note the distinction between .claude/ and claude/:
.claude/is the standard Claude Code project config directory. Skills and settings here apply when working in this repo (e.g.,standards-synthesizerfor onboarding new languages).claude/contains skills, commands, hooks, rules, and settings exported to other projects that reference this repo via--add-diror@import.
Codex Configuration
codex/ holds skills that only run under Codex, packaged as a Codex plugin. A skill lands here when it depends on
something Codex has and Claude Code does not. expand-lore-wiki is the current example. It calls Codex's built-in
imagegen skill, and Claude Code has no image generation to port it to.
Codex skills carry an agents/openai.yaml next to SKILL.md. That file holds the display name and short description
Codex shows in its own UI, and Claude Code ignores it.
Profiles
Composable profiles that bundle the right standards for a given project type. Each profile imports a baseline plus relevant language and practice standards:
| Profile | Stack |
|---|---|
| go-service | Go backend services |
| go-svelte-fullstack | Go + Svelte + protobuf |
| go-cgo-library | Go libraries with C FFI |
| swift-macos-app | SwiftUI macOS apps |
| swift-cli | Swift command-line tools |
| rust-project | Rust projects |
| 1z-project | 1z standalone projects |
| 1z-interpreter | 1z interpreter (Zig + 1z) |
| zig-project | Zig projects |
| svelte-app | Svelte/SvelteKit apps |
| ts-game | Browser games in TypeScript, engine-agnostic base |
| ts-phaser-game | ts-game plus Phaser |
| ts-pixi-game | ts-game plus PixiJS |
| oss-contrib | Lightweight profile for contributing to repos you don't own |
Usage
Import a profile from your project's CLAUDE.md:
@~/projects/coding_agent_standards/profiles/go-service.md
For repos you don't own, use CLAUDE.local.md (auto-gitignored by Claude Code) to avoid committing personal standards:
@~/projects/coding_agent_standards/profiles/oss-contrib.md
Installing the Claude Code Plugin
The skills, hooks, and agents under claude/ are packaged as a Claude Code plugin named coding-standards. The
marketplace manifest lives at the repo root (.claude-plugin/marketplace.json) and points at ./claude as the plugin
source.
Only claude/ is copied into the plugin cache. An installed plugin cannot read files outside its own directory, so
anything a skill needs at runtime has to live inside it. That is why project-management/ sits under claude/ rather
than at the repo root, and why profiles/baseline.md imports it from there.
Install once, inside any Claude Code session. Run the two commands as separate prompts. A slash command takes the whole
rest of the input as its argument. Pasting both lines at once makes /plugin marketplace add read the second line as
part of the repo name, and it fails with is not a valid GitHub owner/repo shorthand.
First register the marketplace:
/plugin marketplace add ripta/coding_agent_standards
Then install the plugin from it:
/plugin install coding-standards@coding-standards
The coding-standards@coding-standards spelling is not a typo. The plugin and the marketplace share a name. The part
before @ is the plugin from claude/.claude-plugin/plugin.json. The part after is the marketplace from
.claude-plugin/marketplace.json.
Choose user scope when prompted so the plugin is available in all your projects. A local clone works as the
marketplace source too (/plugin marketplace add ~/projects/coding_agent_standards), in which case updates track your
clone instead of GitHub.
Plugin skills and commands are namespaced: invoke them as /coding-standards:<name>. If you keep a copy of a skill in
~/.claude/skills/, or a command in ~/.claude/commands/, both versions will appear -- delete the personal copy once
the plugin version works for you.
Updating
Installed plugins are cached copies, not live references. After changes land in the repo:
/plugin marketplace update coding-standards
The plugin has no pinned version; Claude Code versions it by git commit SHA, so every update pulls the latest commit.
Active Development
To iterate on a skill without the cache in the way, launch Claude Code with the plugin loaded directly from source:
claude --plugin-dir ~/projects/coding_agent_standards/claude
Edit freely, then run /reload-plugins in the session to pick up changes immediately. Once satisfied, commit and push,
and installed copies catch up via /plugin marketplace update.
Installing Mods
mods/ holds mods: plugins built from TypeScript function hooks that can draw UI inside Claude Code. Each is its own
plugin in the same marketplace, so none of them ride along with coding-standards. The exception is the work-queue
progress mod, which serves /work-queue and so ships inside coding-standards. Install a mods/ plugin by name:
/plugin install gopher-spinner@coding-standards
gopher-spinner draws a pixel-art gopher in place of the spinner line while a turn runs. It hops during tool calls,
looks around while thinking, and blinks while replying. It replaces the whole line, so the elapsed time and token count
are not shown. It draws in the terminal only. /gopher opens a pane that plays every frame. Redraw the
gopher by editing the pixel rows in hooks/frames.ts.
Check a mod with claude plugin validate mods/<name> and claude plugin test mods/<name>. To iterate with hot reload,
launch with claude --plugin-dir ~/projects/coding_agent_standards/mods/<name>.
Installing the Codex Plugin
The skills under codex/ are packaged as a Codex plugin, also named coding-standards. Its manifest is
codex/.codex-plugin/plugin.json. The marketplace manifest is .agents/plugins/marketplace.json at the repo root,
pointing at ./codex.
Codex discovers ~/.agents/plugins/marketplace.json implicitly, but not a repo-local one. Register this repo once:
codex plugin marketplace add ~/projects/coding_agent_standards
codex plugin add coding-standards@coding-standards
Start a new thread afterward. That is the boundary where Codex picks up new skills.
Validate against Codex's ingestion contract before pushing a manifest change:
python3 ~/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py codex
Two differences from the Claude Code plugin are worth knowing:
- Codex requires strict semver in
versionand caches by it. There is no commit-SHA equivalent. Iterating locally means rewriting the version to0.1.0+codex.<token>and re-runningcodex plugin add. - Codex rejects a
hooksfield inplugin.json, soclaude/hooks/has no counterpart on this side.
Linting
Two linters ship as shared config plus a runner, one directory each. Both are copy-in rather than import, since neither tool supports config inheritance.
cp ~/projects/coding_agent_standards/rumdl/rumdl.toml.template .rumdl.toml
~/projects/coding_agent_standards/rumdl/lint-markdown
cp ~/projects/coding_agent_standards/vale/vale.ini.template .vale.ini
~/projects/coding_agent_standards/vale/lint-prose
rumdl/ checks markdown structure, including the 120-column prose width. vale/ checks prose shape in markdown and in
code comments. They do not overlap. Each runner defaults to diff scoping against the base ref, so a repo with a backlog
can adopt them without a burn-down first. See rumdl/README.md and vale/README.md.
Setup Validation
The bin/check-setup script validates that a project has standards properly configured. It can be wired up as a Claude
Code SessionStart hook to run automatically when you open a project.
Non-standard Paths
If this repo doesn't live at ~/projects/coding_agent_standards, create a symlink:
ln -s /actual/path/to/coding_agent_standards ~/coding-standards
