.dwf/rules/ files and auto-compiles.
Behavior
- Loads the block from the internal registry
- Merges rules into the corresponding scope files
- Adds the block ID to
config.yml > blocks[] - Runs
devw compileautomatically
Flags
| Flag | Description |
|---|---|
--list | List all available blocks |
--no-compile | Skip auto-compile after adding |
Examples
Available Blocks
| Block | Scope | Description |
|---|---|---|
typescript-strict | conventions | No any, explicit returns, union types over enums |
react-conventions | conventions | Hooks rules, component patterns, naming |
nextjs-approuter | architecture | App Router, RSC, server actions |
tailwind | conventions | Utility-first, no custom CSS, design tokens |
testing-basics | testing | Test naming, coverage, mocks |
supabase-rls | security | RLS enforcement, auth patterns |