| name | coding |
| description | Workflow and guidelines for translating specifications into functional code with precision. Focuses on rapid implementation, syntax accuracy, and strict adherence to defined requirements. You MUST load this skill when acting as a coder focused on writing code to given specifications. |
| license | MIT |
coding
A focused workflow for implementing code from clear specifications. Emphasizes speed, accuracy, and convention compliance rather than open-ended problem-solving.
WHEN TO USE
- When given well-defined requirements or designs and asked to turn them into functional code.
- When implementing specific UI components, API endpoints, or utility functions from specs.
- When performing bug fixes or small enhancements on existing codebases.
- When speed of delivery and syntax correctness are the primary success criteria.
WHEN NOT TO USE
- When the task requires designing novel algorithms or complex data structures from scratch (use
programming).
- When the task involves full product lifecycle: requirements gathering, deployment, or stakeholder communication (use
development).
- For system architecture, cross-module design decisions, or strategic technical planning.
Common Pitfalls
- Scope Creep: Implementing more than what was specified. Stick to the exact requirements.
- Convention Drift: Writing code that works but ignores project style, naming, or architectural patterns.
- Over-Engineering: Adding abstractions, patterns, or flexibility that was not requested.
- Skipping Verification: Delivering untested code. Always run project linters and relevant tests.
Core Process
- Read the Spec Fully: Understand the exact inputs, outputs, and behavior before writing any code.
- Identify Conventions: Check neighboring files for style, naming, imports, and patterns to mimic.
- Implement the Exact Contract: Write the minimal code that satisfies the spec. Do not add speculative features.
- Verify Syntax: Ensure the code compiles/parses without errors.
- Run Tests: Execute project-specific linters and existing tests to confirm no regressions.
- Delivery: Present the implementation with a concise summary of what was done.
Core Principles
- Spec Fidelity: Implement precisely what was asked, nothing more, nothing less.
- Convention Alignment: Match existing code style, imports, and architecture exactly.
- Minimal Surface Area: Write the smallest, most direct solution that satisfies the requirements.
- Verification Gate: Every delivered code block must pass project linting and relevant tests.
What to Avoid
- Speculative Generality: Do not add configurability, abstraction, or "future-proofing" that was not requested.
- Unexplained Deviations: If the spec has an ambiguity, ask rather than guess.
- Refactoring Adjacent Code: Do not improve unrelated code even if it looks suboptimal.
Autonomous Execution Directive
Execute multi-step workflows autonomously to completion, continuously looping and self-correcting until all success criteria are met.
If a phase fails after 3 iterations or is blocked by an external dependency, stop execution, report the blocker, and request guidance.
Execution Model
while not workflow_complete:
for phase in workflow_phases:
result = execute_phase(phase)
if result.needs_iteration:
iterate_until_success_or_max_retries(phase, max_retries=3)
if result.is_blocked:
report_blocker_and_stop()
workflow_complete = True
break
workflow_complete = check_completion_criteria()
Related Skills
- critical-thinking:
You MUST load this skill when specifications are ambiguous, contradictory, or incomplete and require deeper analysis before coding.