Skip to main content
devw add <block>
Installs a prebuilt rule block into your .dwf/rules/ files and auto-compiles.

Behavior

  1. Loads the block from the internal registry
  2. Merges rules into the corresponding scope files
  3. Adds the block ID to config.yml > blocks[]
  4. Runs devw compile automatically

Flags

FlagDescription
--listList all available blocks
--no-compileSkip auto-compile after adding

Examples

# List available blocks
devw add --list

# Install a block
devw add typescript-strict

# Install without auto-compiling
devw add react-conventions --no-compile

Available Blocks

BlockScopeDescription
typescript-strictconventionsNo any, explicit returns, union types over enums
react-conventionsconventionsHooks rules, component patterns, naming
nextjs-approuterarchitectureApp Router, RSC, server actions
tailwindconventionsUtility-first, no custom CSS, design tokens
testing-basicstestingTest naming, coverage, mocks
supabase-rlssecurityRLS enforcement, auth patterns