Worker1245

Code Rule Skill — Security skill for Claude Code

Security community

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-skill in 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 form or /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