/workflow:setup-standards [language or framework ...]from workflow
Set up coding standards for a repository as one rule file per language in .claude/rules/, each loaded only when Claude works on files of that language, plus a general file for the whole project. Use when the user wants to set up, define, add or update coding standards, conventions or rules for a project, or for one language or framework in it.
Ships in workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Writes the project's coding standards where Claude Code loads them by itself:
.claude/rules/
general.md no paths: loaded in every session
go.md loaded when a .go file is read
python.md loaded when a .py file is read
django.md a framework gets its own file, scoped to its folders
The code-review skill reads the same files as the project's standards.
Arguments: $ARGUMENTS. With arguments, do only those languages or
frameworks. With none, do every one the project uses.
Find out, from the files and not from the user:
go.mod, pyproject.toml,
package.json, tsconfig.json, Cargo.toml, …) and where the source
files of each one live. Ignore vendored and generated code.CLAUDE.md, existing .claude/rules/,
CONTRIBUTING.md, CODING_STANDARDS.md, style notes under docs/.Note where the code is inconsistent with itself. Those are questions for step 3, not rules.
A line earns its place only when all of these hold:
%w and the operation
name; never log and return the same error" is.Aim for 5 to 15 rules per language and keep each file to 40 lines at most. A short file that is followed beats a long one that is skimmed. Put the reason after a rule when it is not obvious, in a few words.
Ask one round of numbered questions, only about decisions: an inconsistency found in step 1, or a gap in a place where the choice matters. Give a recommended answer with each and word the question so that "yes" accepts it. Take the recommendation from the first of these that settles it:
Do not ask for facts that the repository can answer.
If nobody can answer, for example in a scheduled or headless run, take the recommended answers and list them under "Assumed" in the summary. When the sources disagree with equal weight, or none applies, write no rule and list the question under "Open". A question whose answer is "no rule is needed" is not reported.
One file per language or framework, named after it in lower case.
---
paths:
- "**/*.go"
---
# Go
Enforced by tooling, not repeated here: gofmt, go vet (`make test`).
Configured, but nothing runs it: golangci-lint (`.golangci.yml`).
## Errors
- Wrap with `fmt.Errorf("<operation>: %w", err)`; the caller logs, once.
## Tests
- Table-driven, in the same package, file `<name>_test.go` next to the code.
The example shows the format only; the rules come from this project. The first line names the tools that something runs. The second line appears only when a tool is configured but never run, so that a reader of the file does not take its checks for granted.
paths is a YAML list of quoted globs, one entry per extension, and only
for extensions the repository has now ("**/*.ts", and "**/*.tsx" once
there is a .tsx file). A language file uses **/*.<ext> also when the
language lives in one folder today. Scope a framework file to its folders
("backend/**/*.py"), not to the whole language.general.md has no frontmatter. It holds coding rules that cross
languages: a contract two parts share, a unit or naming scheme used
everywhere. Project instructions that CLAUDE.md already gives (how to
run tests, what never to commit) stay in CLAUDE.md and are not repeated.
When there is no cross-language rule, do not create the file.When a rule file already exists, change it in place: keep the rules a person wrote, add what is missing, and remove a rule only when the code or the user contradicts it. Say what changed.
A rule lives in one place. Move a rule about one language out of
CLAUDE.md into that language's file, and leave everything else in
CLAUDE.md as it is.
Do not change source code in this run, also where it breaks a new rule.
python3 "${CLAUDE_SKILL_DIR}/scripts/check_rules.py"
It reports a rule file whose frontmatter does not parse or has a key other
than paths, a file whose globs match nothing in the repository, a file
with no rules written as list items, and a file over 40 lines. Fix what it
reports.
Tell the user, briefly:
CLAUDE.md or another document;file:line with
the rule it breaks, and any real defect found on the way, marked as a bug;/memory in Claude Code shows which rule files a session has loaded.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oduvan/claude-marketplace --plugin workflow10 skills in this plugin
/code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X"./code-simplificationSimplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity. Use when asked to simplify, clean up, or reduce the nesting of a function or module that already works, even when the code is pasted inline and nothing else needs to change./diagnosing-bugs