Asset Types
Commands
Slash commands are Markdown files with prompts that AI editors (like Claude Code) can execute via/command-name.
.dwf/assets/commands/ and deployed to .claude/commands/ with frontmatter stripped.
Available commands:
Templates
Templates are Markdown files that provide structure for documents like feature specs..dwf/assets/templates/ and deployed to the path specified in their output_path frontmatter field (defaults to docs/specs/).
Available templates:
Hooks
Hooks are JSON files that configure editor behavior (e.g., auto-formatting after edits)..dwf/assets/hooks/ and their settings object is deep-merged into .claude/settings.local.json. Arrays are concatenated, objects are recursively merged.
Available hooks:
Presets
Presets are YAML manifests that bundle multiple rules and assets into a single install.Asset Lifecycle
- Install:
devw add command/specdownloads the file to.dwf/assets/commands/spec.mdand records it inconfig.yml - Deploy:
devw compilecopies the file (stripping frontmatter) to the output location - Remove:
devw remove command/specdeletes the source file and removes the config entry - Verify:
devw doctorchecks that all registered assets have corresponding files on disk
Config Format
Assets are tracked in.dwf/config.yml:
assets field is optional and backwards-compatible. Configs without it default to an empty array.
