Code Rule Skill — Security skill for Claude Code
Claude Code skill with language-agnostic rules for writing, refactoring and reviewing code: security floor, tests, architecture, readability, WordPress and performance.
How to install Code Rule Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Worker1245/code-rule-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Code Rule Skill does
Claude Code skill with language-agnostic rules for writing, refactoring and reviewing code: security floor, tests, architecture, readability, WordPress and performance. Learns from your corrections after your approval and proposes a cleanup once a month.
Alternatives in Security
- Reflexion — Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit 224 ★
- Beamer Skill — A Claude Code skill for creating, compiling, reviewing, and polishing academic Beamer LaTeX presentations 163 ★
- Senior Engineering Partner — A stack-agnostic Claude Code skill: strict code reviewer, pair programmer, debugger, and mentor (Python/Bash/A 148 ★
README
code-rule-skill
A [Claude Code](https://claude.com/claude-code) skill with language-agnostic rules for writing, refactoring and reviewing code.
What it covers
- How to work with the user: numbered questions with options, no functions nobody asked for
- Six questions for every change: OWASP, YAGNI, reuse, KISS, removability, executor subagent
- Project knowledge: design folder, short task cards for agents, git from the start
- Structure and architecture: inward-pointing dependencies, one reason to change, and a per-application check whether the four Clean Architecture layers are worth their cost
- Tests, including runs in a container (Docker Desktop or a free alternative) and one check command, and simple design
- Refactoring, readability and robustness
- A security floor for every change, secure coding (OWASP, NIST SSDF) and how to judge security findings
- WordPress plugins and themes
- Slimming down, speed and data
- Executor subagents: when one helps, how to brief it, and how to verify its work
`SKILL.md` holds what applies to every change. Everything else is in `references/` and is read only when its condition applies, which keeps the text loaded per change short.
Usage
Claude loads the skill on its own before code changes. You can also call it yourself:
- Only the skill name, nothing else: If you type just
/code-rule-skillin the chat and no task is under way, nothing gets checked or changed yet. You get a short help that says what the skill does and how to use it, and Claude asks what to work on. Your answer starts the work. - With a task, file or folder:
/code-rule-skill add a contact formor/code-rule-skill review src/starts right away.
The skill answers in the language you write in.
Self-maintenance
The skill maintains itself: when the user corrects a coding mistake or states a lasting rule, Claude proposes the new wording and, after your yes, adds it to the skill, keeps the last three versions locally in `versions/` and
Related Skills
Vibecoding Security
Agent skill for Claude Code, Codex, Copilot and others, with language-agnostic rules for writing, refactoring
Wp Plugin Standards Review
WordPress plugin standards review - enforces WordPress.org submission standards, security hardening, PCP compl
Lean Code.SKILL
Use automatically whenever writing, changing or reviewing code (own work or an agent's PR): tests first, reuse
Obey
Rule enforcement plugin. Save rules with natural language, enforce with 17 lifecycle hooks. Three scopes (glob
Engineering Fix
Applies engineering corrections from the last /engineering-audit run. Creates an isolated branch, applies chan
Audit Site
Run an accessibility, SEO, or performance check on a connected WordPress site. Findings reported in plain lang
Related Agents
Bash Script Craftsman
Bash script specialist following style.ysap.sh conventions. Use for writing, reviewing, or refactoring shell s
SwiftUI Expert
SwiftUI specialist for building, reviewing, and improving SwiftUI views. Use proactively when writing new Swif
Rule Reviewer
Internal agent for reviewing draft rules. Promotes good rules to proven, merges similar rules, archives stale