New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dev-workflows

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-workflows

CLI that compiles developer rules into editor-specific config files

latest
Source
npmnpm
Version
0.6.0
Version published
Maintainers
1
Created
Source

dev-workflows

npm version license docs

Define rules once. Compile them everywhere.

A local-first CLI to define AI coding rules, slash commands, templates, and hooks — compiled for every editor and agent.

Quick Start

npx dev-workflows init
devw add typescript/strict
devw compile

Or bootstrap a full spec-driven workflow:

devw init --preset spec-driven -y

What it does

.dwf/rules/*.yml        →  devw compile  →  CLAUDE.md
                                             .cursor/rules/devworkflows.mdc
                                             GEMINI.md
                                             .windsurf/rules/devworkflows.md
                                             .github/copilot-instructions.md

.dwf/assets/commands/*   →  devw compile  →  .claude/commands/*.md
.dwf/assets/templates/*  →  devw compile  →  docs/specs/*.md
.dwf/assets/hooks/*      →  devw compile  →  .claude/settings.local.json

You define rules in YAML and assets in Markdown/JSON. The compiler generates each editor's native format. Change a rule, recompile — every editor stays in sync.

Commands

CommandDescription
devw initInitialize a .dwf/ ruleset in your project
devw init --preset <name>Initialize with a preset (e.g., spec-driven)
devw add <category>/<name>Install a rule from the registry
devw add command/<name>Install a slash command
devw add template/<name>Install a spec template
devw add hook/<name>Install an editor hook
devw add preset/<name>Install a preset (bundle of rules + assets)
devw remove <category>/<name>Remove a rule or asset
devw compileGenerate editor configs and deploy assets
devw watchWatch .dwf/ and recompile on changes
devw doctorValidate config and detect drift
devw list rulesList all active rules
devw list assetsList installed assets
devw list toolsList configured editors

Rules Registry

Install rules from the registry with devw add <category>/<rule>.

RuleDescription
typescript/strictStrict TypeScript patterns
javascript/reactReact component and hook conventions
javascript/nextjsNext.js App Router best practices
css/tailwindUtility-first styling conventions
testing/vitestTest naming and structure rules
security/supabase-rlsDatabase security and RLS rules
security/auth-patternsAuthentication best practices
frontend/design-guidelinesUI/UX design conventions
frontend/accessibilityAccessibility (a11y) rules
frontend/performanceFrontend performance patterns
workflow/git-conventionsGit commit and branch conventions
workflow/debuggingSystematic debugging methodology
workflow/spec-drivenSpec-driven development workflow

Assets

Beyond rules, dev-workflows manages assets — slash commands, templates, and hooks that power AI workflows.

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

Presets

Presets bundle rules and assets into a single install.

PresetIncludes
preset/spec-drivenworkflow/spec-driven rule + all 4 commands + feature-spec template + auto-format hook

Bridges

Bridges generate editor-compatible rule files. One adapter per tool.

ToolOutput
Claude CodeCLAUDE.md
Cursor.cursor/rules/devworkflows.mdc
Gemini CLIGEMINI.md
Windsurf.windsurf/rules/devworkflows.md
VS Code Copilot.github/copilot-instructions.md

Why

  • Every AI coding tool requires rules in a different format.
  • Maintaining the same rules in three files means they drift apart.
  • dev-workflows makes your rules a single source of truth.

Philosophy

  • Local-first
  • Source over output
  • No accounts. No cloud.

Contributing

Issues and PRs welcome. If you find a bug or have an idea, open an issue.

License

MIT

Keywords

cli

FAQs

Package last updated on 07 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts