Apply deft framework standards for AI-assisted development. Use when starting projects, writing code, running tests, making commits, or when the user references deft, project standards, or coding guidelines.
Install
npx skillscat add visionik/deft Install via the SkillsCat registry.
Deft Framework
A layered framework for AI-assisted development with consistent standards and workflows.
When This Skill Activates
This skill automatically loads when you:
- Start work in a deft-enabled project (has
./deft/directory) - Reference deft, project standards, or coding conventions
- Run tests, make commits, or perform quality checks
- Ask about project structure, workflows, or best practices
Core Principle: Rule Precedence
Deft uses hierarchical rules where more specific overrides general:
user.md ← HIGHEST precedence (personal preferences)
↓
project.md ← Project-specific rules
↓
{language}.md ← Language standards (python.md, go.md, typescript.md, cpp.md)
↓
{tool}.md ← Tool guidelines (taskfile.md, git.md)
↓
main.md ← General AI behavior
↓
specification.md ← LOWEST precedence (requirements)IMPORTANT: If user.md says one thing and python.md says another, user.md ALWAYS wins.
File Reading Strategy (Lazy Loading)
DO NOT read all deft files at once. Read only what you need:
- Always start with:
./deft/main.md(general guidelines) - Check for:
./deft/core/user.md(personal overrides - highest precedence) - Check for:
./deft/core/project.md(project-specific rules) - Then read language-specific only if working with that language:
./deft/languages/python.md./deft/languages/go.md./deft/languages/typescript.md./deft/languages/cpp.md
- Read tool files only when using that tool:
./deft/tools/taskfile.md(when running tasks)./deft/scm/git.md(when using git)./deft/scm/github.md(when using GitHub)
Task-Centric Workflow
Deft projects use Taskfile as the universal task runner.
task --list # See all available tasks
task check # CRITICAL: Run before EVERY commitSee ./deft/tools/taskfile.md for complete task standards and common commands.
Development Methodology
Test-Driven Development (TDD):
- Write test first → Watch it fail → Implement → Refactor → Repeat
- Default: ≥85% coverage (check
project.mdfor overrides) - Implementation is INCOMPLETE until tests pass
Spec-Driven Development (SDD) for new features/projects:
- Run
deft/run specto generate PRD.md via AI interview - Review PRD.md → Generate SPECIFICATION.md → Review → Implement
See ./deft/coding/testing.md for complete testing standards.
Quality Standards
Before Every Commit:
task check # MUST run: fmt, lint, type check, test, coverageConventional Commits: Use https://www.conventionalcommits.org/en/v1.0.0/ format
File Naming: Use hyphens (e.g., user-service.py), not underscores
Secrets: Store in secrets/ directory with .example templates
See ./deft/coding/coding.md and ./deft/scm/git.md for complete standards.
Language-Specific Standards
All languages require ≥85% test coverage. See language-specific files:
./deft/languages/python.md./deft/languages/go.md./deft/languages/typescript.md./deft/languages/cpp.md
New Project Setup
Initialize new project:
deft/run init # Create deft structure
deft/run bootstrap # User config (first time only)
deft/run project # Project config
deft/run spec # Generate PRD + SPECIFICATION (optional)Work with existing deft project:
- First time? If
./deft/core/user.mddoesn't exist, rundeft/run bootstrap - Read
./deft/main.md(general guidelines) - Read
./deft/core/user.md(personal preferences - highest precedence) - Read
./deft/core/project.md(project rules) - Run
task --listto see available tasks
See ./deft/main.md for complete workflow details.
Self-Improvement
Deft learns and evolves via meta/ directory:
lessons.md- Patterns learned (AI can update)ideas.md- Future improvementssuggestions.md- Project-specific suggestions
Platform Integration
This SKILL.md follows the AgentSkills specification, compatible with:
- Claude Code:
~/.claude/skills/deft/or.claude/skills/deft/ - clawd.bot:
~/.clawdbot/skills/deft/or install viaclawdhub sync deft - Warp AI: Upload to Warp Drive, reference in
WARP.md/AGENTS.md
See ./deft/docs/claude-code-integration.md for integration details.
Quick Reference
| Task | Command |
|---|---|
| List tasks | task or task --list |
| Pre-commit checks | task check |
| Run tests | task test |
| Check coverage | task test:coverage |
| Format code | task fmt |
| Lint code | task lint |
| Initialize deft | deft/run init |
| Configure user | deft/run bootstrap |
| Configure project | deft/run project |
| Generate spec | deft/run spec |
Remember
- Lazy load files - Only read what you need
- User.md is king - Highest precedence always
- Task-centric - Use
taskfor everything - Test first - Write tests before implementation
- Always check - Run
task checkbefore commits - Conventional commits - Follow the standard
- Coverage matters - ≥85% by default
- Never lie - Don't claim checks passed without running them
For more details, read the specific files in ./deft/ as needed. Start with main.md and follow the precedence hierarchy.