From coding
Draft TypeScript-compliant code skeleton with TODO placeholders. Use when starting new implementations, creating code scaffolds, or preparing test structure for TDD.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coding:draft-codeopusThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Creates TypeScript-compliant code skeletons with TODO placeholders. Drafts type definitions, function signatures, and test structure while leaving implementation details as TODOs for later completion. Corresponds to Steps 0-1 (Design Discovery + Skeleton Creation) of the TDD lifecycle.
Creates TypeScript-compliant code skeletons with TODO placeholders. Drafts type definitions, function signatures, and test structure while leaving implementation details as TODOs for later completion. Corresponds to Steps 0-1 (Design Discovery + Skeleton Creation) of the TDD lifecycle.
What this command does NOT do:
When to REJECT:
When executing this skill, the following standards apply:
| Standard | Purpose |
|---|---|
documentation/write | JSDoc structure and placeholder comments |
file-structure | Project directory layout and organization |
function/write | Function signatures, parameter types, return types |
naming/write | Naming conventions for files, types, functions |
testing/write | Test file structure, describe/it patterns |
typescript/write | Type definitions, interfaces, generics |
universal/write | General code authoring conventions |
ultrathink: you'd perform the following steps
Parse Instructions
--from-composite)Discover Design Documentation
DESIGN.md in project root using Glob (NEVER use find in bash)**/*.md files that might contain design specificationsDiscover Handover Documentation
CONTEXT.md, NOTES.md, PLAN.md in project root using GlobResearch Context
Plan Structure
Create Type Definitions
Draft Function Signatures
CODE DRAFTING PATTERNS: When drafting incomplete implementations:
describe.todo, it.todo for test placeholders that need implementation// TODO: comments to mark incomplete code sectionsnew Error('IMPLEMENTATION: <description of what is missing>, requiring <parameters required as JSON object>')throw new Error(\IMPLEMENTATION: user authentication logic needed, requiring ${JSON.stringify({ userId, token })}`)`Create Test Files
describe.todo() and it.todo() syntaxAdd Test Utilities
TypeScript Check
Standards Check
Run Scripts
npm run test or equivalentnpm run lint or equivalentOutput Format:
[OK/FAIL] Command: draft-code $ARGUMENTS
## Summary
- Instruction: [parsed instruction]
- Files created: [count]
- Types defined: [count]
- Functions drafted: [count]
- TODOs placed: [count]
## Actions Taken
1. Discovered design context from [sources]
2. Created type definitions at [path]
3. Drafted function signatures at [path]
4. Set up test structure at [path]
5. Verified TypeScript compilation
## Files Created
- [path] - [description]
- [path] - [description]
## TODOs Summary
- Implementation: [count]
- Tests: [count]
- Documentation: [count]
## Next Steps
1. Review type definitions
2. Complete implementations with /coding:complete-code
3. Add test assertions
/draft-code "Create user authentication service with login, logout, and token refresh"
# Creates:
# - src/services/auth/types.ts (interfaces)
# - src/services/auth/auth.service.ts (stubs)
# - src/services/auth/auth.test.ts (test structure)
/draft-code "REST endpoint for product CRUD operations"
# Creates skeleton for controller, service, and tests
/draft-code "Date formatting utilities with timezone support"
# Creates type-safe utility functions with TODOs
/draft-code "thing"
# Error: Instruction too vague
# Suggestion: Provide specific requirements like "Create validation helpers for user input"
npx claudepluginhub alvis/.claude --plugin codingGuides strict Test-Driven Development (Red-Green-Refactor): write failing tests for normal/edge/error cases, minimal code to pass, refactor with checklists. Includes TypeScript example.
Generates new files that match existing codebase conventions for naming, structure, imports, exports, and test patterns. Wires generated files into project registration points.
Creates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.