code-craft
Installation
SKILL.md
code-craft
Language- and framework-specific code best practices and idiom reference. Complements compass (stack-agnostic architecture / design coach) — code-craft is tactical and per-language.
Quick start
- Detect the language or framework from the user's request — explicit (
ts,dart,flutter) or inferred from file extension / pasted code. - Detect the mode:
- reader — user asks "what is the best practice for X" or "how should I do Y in Z" → return matching rules from the language file (rule + reason + example).
- reviewer — user pastes code or asks "review this" → load the relevant language file, scan for violations, report
location → rule → fix.
- Load only the relevant file from
languages/(and aframeworks/file if applicable). When the code touches a store (database, SQLite file, KV), also load general/data-access.md: its rules apply in every stack. - Match the topic the user asked about — do not dump the entire language file when the user asked one question.