development
БесплатноБез исполняемых скриптовНе проверенProvides expertise on development practices and code quality standards for this repo
Об этом скилле
Overview
This skill provides comprehensive guidance on development practices, code quality standards, and the proper approach to handling incomplete work during implementation.
Core Principles:
- Completeness over speed - Never leave TODO markers or stub implementations
- Design before code - Every TODO discovered requires technical design first
- Type-driven development - Types are not optional, they are the contract
- No technical debt - Address issues immediately, don't defer them
🚨 CRITICAL: TODO Markers Are FORBIDDEN
The Hard Rule
TODO/FIXME/XXX/HACK markers in committed code are UNACCEPTABLE.
When you discover a TODO marker (whether you created it or inherited it), this is NOT a reminder for later work. This is a BLOCKING SIGNAL that:
- ✅ There is incomplete design work
- ✅ There is missing implementation
- ✅ The code is broken or insufficient
- ✅ You must stop and address it NOW
Why TODO Markers Are Problematic
// ❌ WRONG - This is a broken contract
export type StripTags<T extends string> = T; // TODO: implement actual stripping
// ❌ WRONG - This defeats the purpose of the function
export function parseComplexData(input: string): ParsedResult {
// TODO: implement proper parsing
return {} as ParsedResult;
}
// ❌ WRONG - This is technical debt from day one
export function validateConfig(config: unknown): boolean {
// FIXME: add validation logic
return true;
}
Problems with the above:
- Broken contracts - Users expect
StripTagsto strip tags, but it doesn't - Type lies - Return types promise something the implementation doesn't deliver
- Hidden bugs - Code appears to work but fails in production
- Compounding debt - One TODO leads to workarounds that create more TODOs
- Lost context - Future you won't remember why the TODO exists or what it needs
The Proper Workflow When You Encounter a TODO
When you find a TODO marker (in existing code or while planning new code), follow this workflow:
Step 1: STOP Immediately
Do not proceed with any other work. TODOs are blocking issues.
# Immediately search for ALL TODOs in the affected area
rg -i "TODO|FIXME|XXX|HACK" modules/lib/src/
# Document what you found
echo "Found TODO in X: <description>" >> .ai/logs/current-phase.md
Step 2: Understand the Context
Ask yourself:
What is this TODO supposed to do?
- Read the surrounding code
- Check the function signature / type definition
- Look at how it's being used
- Review any related documentation
Why was it left incomplete?
- Was it a lack of knowledge?
- Was it complexity avoidance?
- Was it a placeholder during design?
- Was it genuinely forgotten?
What would a complete implementation look like?
- What are the inputs and outputs?
- What edge cases need handling?
- What type-level computation is needed?
- What tests would verify correctness?
Step 3: Technical Design
BEFORE writing any code, create a technical design for the complete solution.
For Type Utilities:
// DESIGN NOTES for StripSimpleTags<T>
/**
* Goal: Remove all SimpleTag markup from a string literal type
*
* Input: "Hello <soft>world</soft> and <loud>universe</loud>"
* Output: "Hello world and universe"
*
* Approach:
* 1. Use recursive conditional types with template literals
* 2. Pattern match each tag type: <soft>, </soft>, <loud>, </loud>, etc.
* 3. For each match: extract before/after, strip tag, recurse
* 4. Base case: no more tags found, return string as-is
*
* Edge Cases:
* - Nested tags: <soft><loud>text</loud></soft>
* - Multiple tags: <soft>a</soft> <loud>b</loud>
* - No tags: "plain text"
* - Empty string: ""
* - Unclosed tags: <soft>text (treat as-is? or error?)
*
* Type Complexity: Medium (recursive template literals)
* Estimated LOC: ~30-50 lines
*/
For Runtime Functions:
// DESIGN NOTES for parseComplexData()
/**
* Goal: Parse structured data from string input
*
* Input Format: "key1=value1,key2=value2"
* Output Format: { key1: string, key2: string }
*
* Algorithm:
* 1. Split by commas to get key-value pairs
* 2. Split each pair by '=' to separate key/value
* 3. Trim whitespace from keys and values
* 4. Build result object
*
* Edge Cases:
* - Empty string: return {}
* - Missing '=': throw error or skip?
* - Duplicate keys: last wins or error?
* - Special characters in values: escape handling?
*
* Error Handling:
* - Invalid format: throw ParseError
* - Malformed pairs: skip with warning or fail fast?
*
* Tests Needed:
* - Happy path: valid input → correct output
* - Empty input: "" → {}
* - Malformed: "key1value1" → error
* - Duplicates: "a=1,a=2" → {a: "2"}
*
* Estimated LOC: ~20-30 lines + error handling
*/
Step 4: Add to TODO List
Track this as a blocking task in your active todo list:
Установить development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл development?
Provides expertise on development practices and code quality standards for this repo
Как установить скилл development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic