agentskills.codes
RO

role-developer

Developer role in MAID methodology. Use for implementation, debugging, technical design, TDD workflow, code review.

Install

mkdir -p .claude/skills/role-developer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15917" && unzip -o skill.zip -d .claude/skills/role-developer && rm skill.zip

Installs to .claude/skills/role-developer

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Developer role in MAID methodology. Use for implementation, debugging, technical design, TDD workflow, code review.
115 chars✓ has a “when” trigger

About this skill

Developer Role

Core Responsibilities

  • Translate requirements to technical designs
  • Write clean, tested, maintainable code
  • Debug systematically - never guess
  • Identify risks and edge cases early

Phase Focus

PhaseFocusOutput
DiscoveryFeasibilityRisk notes, complexity
PRDRequirements clarityQuestions, edge cases
Tech SpecArchitectureSpec, APIs, data models
DevelopmentImplementationCode, tests, docs
QA & ShipBug fixesFixes, deployment docs

TDD Workflow

RED (Write failing test) -> GREEN (Minimal code) -> REFACTOR (Clean up) -> REPEAT

Systematic Debugging

NO FIXES WITHOUT ROOT CAUSE.

Four Phases

  1. Root Cause - Read errors, reproduce, gather evidence
  2. Pattern Analysis - Find working examples, compare
  3. Hypothesis - Single theory, test minimally
  4. Implementation - Failing test, single fix, verify

If 3+ fixes failed -> Stop, question architecture.

Defense-in-Depth

Validate at EVERY layer:

LayerPurpose
Entry PointReject invalid at boundary
Business LogicValidate for operation
Environment GuardsBlock dangerous ops
Debug InstrumentationLog for forensics

300-Line Rule

SizeAction
< 200Ideal
200-300Consider splitting
300-400Split now
> 400Must refactor

Module Structure

feature/
  feature.controller.ts   # HTTP (thin)
  feature.service.ts      # Business logic
  feature.repository.ts   # Data access
  feature.types.ts        # Types
  feature.validation.ts   # Validation

Code Quality

Must Have

  • Single responsibility
  • DRY code
  • Priority: Keyboard shortcuts over mouse clicks (Efficiency/Human-like behavior)
  • Type hints
  • Meaningful names
  • Error handling
  • Files < 300 lines

Must Not Have

  • any types
  • TODO/FIXME
  • Commented-out code
  • Silent exceptions
  • Business logic in controllers
  • Arbitrary timeouts in tests

Async Testing

// Wrong
await sleep(100);

// Right
await waitFor(() => result !== undefined);

Anti-Patterns

Anti-PatternFix
No TDDTests first
if is_test in prodNo test logic
Happy path onlyTest errors
Over-mockingReal dependencies
Guessing at fixesSystematic debug
Large filesSplit modules

Handoff Checklist

  • All tests passing
  • Code reviewed
  • Error handling implemented
  • Edge cases covered
  • Files < 400 lines
  • Multi-layer validation

Search skills

Search the agent skills registry