# Code Scaffolding

> Generate boilerplate code for new modules, services, and components

- Skill: `diegosouzapw/code-scaffolding` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add diegosouzapw/code-scaffolding`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegosouzapw/code-scaffolding/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: diegosouzapw (https://skillmd.com/u/diegosouzapw)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/diegosouzapw/code-scaffolding

---


# Code Scaffolding Skill

Generate boilerplate code for new modules, services, and components.

## Trigger Conditions
- New module or service creation command
- User invokes with "scaffold" or "create service" or "new module"

## Input Contract
- **Required:** Template type (service, module, component, API endpoint)
- **Required:** Name and basic configuration
- **Optional:** Technology stack preferences, feature flags

## Output Contract
- Generated files following project conventions
- Directory structure with all required files
- Configuration stubs (tests, CI, docs)

## Tool Permissions
- **Read:** Project templates, coding standards, existing patterns
- **Write:** New files in target directory
- **Execute:** Code generation tools

## Execution Steps
1. Determine template type and target location
2. Load project conventions and coding standards
3. Generate directory structure
4. Create source files with boilerplate following conventions
5. Create test file stubs
6. Create documentation stubs (README, API docs)
7. Verify generated code compiles/lints clean

## Success Criteria
- Generated code follows project coding standards
- Test stubs included for all public interfaces
- Documentation stubs included
- Code compiles/lints without errors

## Escalation Rules
- Escalate if no matching template exists for the request
- Escalate if scaffolding conflicts with existing code

## Example Invocations

**Input:** "Scaffold a new Go microservice called 'notification-service'"

**Output:** Created: cmd/notification-service/main.go, internal/notification/handler.go, internal/notification/service.go, internal/notification/repository.go, internal/notification/handler_test.go, Dockerfile, README.md. All follow clean architecture pattern with dependency injection. Health check endpoint included.

