code-complete — Claude Code skill: rules and installation
The code-complete Claude Code skill applies software construction rules to routines, classes, control flow, defensive code, and tests. It activates for implementation and design tasks.
MIT 611 installs ★ 3,328 updated 2026-09-10
npx skills add ciembor/agent-rules-books --skill code-complete -a claude-codeWhat code-complete does
code-complete gives an agent construction rules for designing routines and classes, using variables, handling control flow, writing defensive code, and testing implementations. It also covers coding standards.
Before making design or code decisions, the agent reads and applies code-complete.mini.md. The longer code-complete.md serves as a reference when the short rules do not settle a construction choice.
What it helps with
- design a routine using software construction rules
- choose how to structure variables and classes
- add defensive checks and test an implementation
Example prompts for the agent
- Design this routine using the code-complete rules.
- Review the classes and variables I plan to add.
- Add defensive checks and tests to this implementation.
How to install code-complete
1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill code-complete -a claude-code2Manually: put the files in place
~/.claude/skills/code-complete/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/code-complete/
1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill code-complete -a codex2Manually: put the files in place
.agents/skills/code-complete/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill code-complete -a cursor2Manually: put the files in place
.cursor/skills/code-complete/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ciembor/agent-rules-books code-complete2Manually: put the files in place
.github/skills/code-complete/SKILL.md1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill code-complete -a gemini-cli2Platform CLI
gemini skills install https://github.com/ciembor/agent-rules-books --path code-completeManually: put the files in place
.devin/skills/code-complete/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill code-complete -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about code-complete
How do I install code-complete in Claude Code?
Run npx skills add ciembor/agent-rules-books --skill code-complete -a claude-code. The skill is installed at ~/.claude/skills/code-complete/SKILL.md.
What does code-complete do?
It gives the agent rules for routine and class design, variable use, control flow, defensive programming, coding standards, and implementation tests.
Which rule files does code-complete use?
The agent reads code-complete.mini.md before making design or code decisions. It consults code-complete.md when the short rules do not cover the construction tradeoff.
Source text
SKILL.md · MIT
--- name: code-complete description: Apply Steve McConnell-inspired construction rules when implementing routines, variables, classes, control flow, defensive code, or tests. license: MIT --- # Code Complete Skill Use this skill when a task involves disciplined software construction: routine design, variable use, class design, control flow, defensive programming, coding standards, or implementation testing. Before making design or code decisions, read and apply [code-complete.mini.md](code-complete.mini.md). Use [code-complete.md](code-complete.md) only as a deeper reference when the mini rules are not enough for the current construction tradeoff.
© ciembor · MIT · ciembor/agent-rules-books