Skip to main content
devw add [category/name]
Adds rules and assets from the official dev-workflows registry. Supports both interactive and direct modes.

Interactive Mode

Running devw add without arguments launches an interactive flow:
  1. Browse categories from the registry
  2. Select rules to install (with back navigation)
  3. Optionally add rules from multiple categories
  4. Review a summary and confirm
  5. Rules are downloaded, converted to YAML, and compiled
Rules already installed are shown with an (already installed) indicator.

Direct Mode

devw add typescript/strict       # add a rule
devw add command/spec            # add a slash command
devw add template/feature-spec   # add a spec template
devw add hook/auto-format        # add an editor hook
devw add preset/spec-driven      # add a preset (bundle)
Downloads and installs a specific rule or asset by path. If the rule already exists at the same version, reports “Already up to date”.

Asset Types

The category prefix determines the type:
PrefixTypeDestination
command/Slash command.dwf/assets/commands/.claude/commands/
template/Spec template.dwf/assets/templates/docs/specs/
hook/Editor hook.dwf/assets/hooks/.claude/settings.local.json
preset/BundleInstalls multiple rules + assets at once
anything elseRule.dwf/rules/ → editor configs

Flags

FlagDescription
--list [category]List available rules from the registry
--no-compileSkip auto-compile after adding
--forceOverwrite existing rules without asking
--dry-runShow output without writing files

Examples

# Interactive — browse and select rules
devw add

# Install a specific rule
devw add typescript/strict

# Install a slash command
devw add command/spec

# Install a full workflow preset
devw add preset/spec-driven

# List all available rules
devw add --list

# Preview what would be written
devw add javascript/react --dry-run

# Force overwrite without confirmation
devw add css/tailwind --force

Available Rules

Rules are organized by category. Run devw add --list for the latest list.
RuleCategoryDescription
typescript/strictTypeScriptStrict TypeScript conventions
javascript/reactJavaScriptReact conventions and best practices
javascript/nextjsJavaScriptNext.js App Router patterns
css/tailwindCSSUtility-first Tailwind conventions
testing/vitestTestingVitest testing patterns
security/supabase-rlsSecuritySupabase RLS enforcement
security/auth-patternsSecurityAuthentication best practices
frontend/design-guidelinesFrontendUI/UX design conventions
frontend/accessibilityFrontendAccessibility (a11y) rules
frontend/performanceFrontendFrontend performance patterns
workflow/git-conventionsWorkflowGit commit and branch conventions
workflow/debuggingWorkflowSystematic debugging methodology
workflow/spec-drivenWorkflowSpec-driven development workflow

Available Assets

AssetTypeDescription
command/specCommandGenerate a feature spec through guided questions
command/planCommandCreate an implementation plan from a spec
command/buildCommandExecute a plan step by step with verification
command/learnCommandCapture a lesson learned as a project rule
template/feature-specTemplateMarkdown template for feature specifications
hook/auto-formatHookAuto-format files after AI edits
preset/spec-drivenPresetComplete spec-driven development workflow