@chinjanpatel/claude-workflow
v1.0.0
Published
Portable Claude Code workflow — install coordinator prompts and subagents into any project
Maintainers
Readme
@chinjanpatel/claude-workflow
Portable Claude Code workflow for any project. Install coordinator prompts and subagents with one command — no copy-paste.
Quick start
# In any project root
npx @chinjanpatel/claude-workflow initThis installs:
CLAUDE.md— shared coordinator instructions.claude/settings.json— default plugin config.claude/agents/*.md— backend, frontend, rules-engine, code-reviewer, report-generator
And bootstraps local-only files (created once, never overwritten on update):
CLAUDE.local.md— your project-specific rules.claude/settings.local.json— your plugin overrides.claude/agents-local/— extra project-specific agents
Update shared workflow
npx @chinjanpatel/claude-workflow updateManaged files are refreshed from the package. Local overrides are preserved.
Use --force to overwrite existing managed files, or --dry-run to preview changes.
Commands
| Command | Description |
|---------|-------------|
| init | First-time install + bootstrap local overrides |
| update | Refresh managed files, preserve local overrides |
Options
| Flag | Description |
|------|-------------|
| --dir <path> | Target project (default: nearest git/package root) |
| --force | Overwrite existing managed files |
| --dry-run | Preview without writing |
Local override convention
Put anything project-specific in local files so you can update the shared workflow safely:
| File | Purpose |
|------|---------|
| CLAUDE.local.md | Stack, domain rules, build order — supplements generic CLAUDE.md context |
| .claude/settings.local.json | Plugin toggles for this project |
| .claude/agents-local/ | Extra agents (e.g. rules-engine-dev customized for your domain) |
The installed CLAUDE.md instructs agents to read CLAUDE.local.md before starting work.
Version lock
After install/update, .claude/workflow-version.json records the installed package version and managed paths.
Versioning policy
- Major — breaking changes to agent contracts or managed file structure
- Minor — new agents or safe workflow improvements
- Patch — typo fixes, clarifications
Development
git clone https://github.com/chinjan2395/claude-workflow.git
cd claude-workflow
npm test
npm link
# In a target project
claude-workflow initPublish
npm login
npm publish --access publicFor private use via GitHub Packages, configure .npmrc:
@chinjanpatel:registry=https://npm.pkg.github.comMigrate an existing project
- Move project-specific content from
CLAUDE.mdintoCLAUDE.local.md. - Run
npx @chinjanpatel/claude-workflow init --forceto replace managed files. - Keep custom agents in
.claude/agents-local/or merge into managed agents if they're generic enough for the package.
License
MIT
