coding
FreeNo executable scriptsNot checkedCode implementation and feature development. Use this skill when implementing features, fixing bugs, or making tests pass. This is the GREEN phase of TDD…
by booch★ 18 GitHub starsAbout this skill
Coding Skill
This skill guides code implementation — the GREEN phase of TDD.
Core Process
- Understand the tests — Read failing tests to understand required behavior
- Implement minimally — Write the simplest code that makes tests pass
- Refactor — Improve structure while keeping tests green (invoke the
refactorskill)
Related Skills
- tdd — Writing tests (RED phase) before implementation
- refactor — Improving code structure (REFACTOR phase) after tests pass
- design — Software design principles for architectural decisions
- code-quality — Naming, structure, and maintainability guidelines
- security — Secure coding practices
Principles
Follow Existing Patterns
Before writing new code:
- Read surrounding code to understand conventions
- Match the style, naming, and structure of the existing codebase
- Reuse existing abstractions rather than creating new ones
Simplicity
- Solve the immediate problem, not hypothetical future ones
- Prefer clear, readable code over clever code
- Each method should do one thing at one level of abstraction
Immutability
- Initialize all state in constructors
- Avoid mutating objects after creation
- Exception: memoization/lazy initialization is acceptable
Error Handling
- Validate at system boundaries (user input, external APIs)
- Trust internal code and framework guarantees
- Provide helpful error messages
Workflow Integration
After implementation:
- Run tests to verify they pass
- Run linting to check style
- Invoke the
refactorskill for cleanup - Request code review via the SDLC process
Install coding in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the coding skill do?
Code implementation and feature development. Use this skill when implementing features, fixing bugs, or making tests pass. This is the GREEN phase of TDD — write minimal code to pass tests, then refactor. Also use the tdd, refactor, and design skills.
How do I install the coding skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the coding skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic