Govern implementation, bug fixes, and refactors from repository orientation through scoped research, planning, evidence-led tests, implementation, review, verification, and handoff. Use for any code change; combine it with the relevant language skill for C, C++, Rust, assembly, or another stack.
Pro scans all 4 files and shows the line behind each finding
Scanned 10/5/2026
npx -y skills add meowdiocre/meowpi --skill code-standards --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Code Standards?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/meowdiocre-code-standards)More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.
---
name: code-standards
description: Govern implementation, bug fixes, and refactors from repository orientation through scoped research, planning, evidence-led tests, implementation, review, verification, and handoff. Use for any code change; combine it with the relevant language skill for C, C++, Rust, assembly, or another stack.
---
# Code standards
Use this skill as the shared engineering lifecycle. Repository instructions and the user's requested behavior take precedence. Existing project conventions govern language version, architecture, naming, formatting, error handling, and tooling unless the task explicitly changes them.
## Compose the workflow
Before editing, read [language routing](references/language-routing.md) and load only the companion skills that match the code or repository operation. Load `research-router` when a decision depends on current external documentation, dependency behavior, standards, or public implementation evidence. The shared workflow decides how to work; companion skills decide how good code or history looks in that language or domain.
For decisions about abstraction, state, interfaces, errors, comments, dependencies, security, or performance, read [engineering principles](references/engineering-principles.md). For choosing and running evidence, read [testing and verification](references/testing-and-verification.md).
## Change lifecycle
1. **Establish the contract.** Identify the requested behavior, constraints, acceptance evidence, files in scope, and actions that require separate authorization. Inspect repository instructions, relevant documentation, the working tree, and current callers before editing. Preserve unrelated user changes.
2. **Research proportionally.** Search the repository before inventing a pattern. When external evidence is necessary, use `research-router` to select the narrowest authoritative source. Do not make remote research a ritual for local, stable, or already-proven work.
3. **Plan and baseline.** For a multi-file, risky, or architectural change, record a short plan with risks and verification. Run the narrowest relevant existing check before editing. If it already fails, distinguish the pre-existing failure from the requested work instead of silently expanding scope.
4. **Create evidence.** Reproduce a bug before fixing it. For new behavior, add a stable contract or regression test when the behavior is observable and the test adds confidence. Use an explicit manual check when automation would be brittle or would only restate the implementation.
5. **Implement the smallest coherent change.** Follow local patterns. Keep data flow, ownership, state changes, and failure behavior visible. Avoid speculative abstraction, unrelated cleanup, hidden allocation, unnecessary dependencies, and mass formatting.
6. **Review the diff.** Check correctness, error paths, public interfaces, compatibility, trust boundaries, ownership and lifetime, concurrency, resource cleanup, undefined behavior, and likely performance regressions. Fix findings supported by the diff.
7. **Verify and hand off.** Run focused checks first, then the repository's required formatter, compiler, linter, static analysis, tests, and build. Report the commands and results that support completion. Update user-facing documentation when behavior or interfaces changed. When the task includes commits, branches, pull requests, or releases, load `git-workflow`; use `caveman-commit` to name a commit. Commit or publish only when the task includes it.
## Failure discipline
- Do not weaken, delete, or bypass a valid test to make a change pass.
- Do not hide warnings, errors, or partial verification behind a success claim.
- After the same failure survives two informed attempts, stop repeating the approach. Re-read the evidence, revise the hypothesis and plan, and record a concrete blocker only if progress truly requires external input.
- Keep temporary probes and generated artifacts out of the final diff unless they are useful project assets.
The goal is a small change whose behavior, design, and verification are easy for another engineer to inspect.
## Loading in Oh My Pi
Relative paths in this skill (`references/…`, `scripts/…`) resolve against the skill's own directory. Read them with `skill://code-standards/<relative-path>`. When a shell command needs a real filesystem path, that directory is `<OMP_HOME>/skills/code-standards/` — `~/.omp/agent/skills/code-standards/` by default. Invoking `/skill:code-standards` also prints the resolved location.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!