npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dotted-labs/claude-code-flow

v0.1.7

Published

A CLI tool to initialize DL Agentic Workflow for Claude Code

Downloads

10

Readme

claude-code-flow

A CLI tool to initialize DL Agentic Workflow for Claude Code projects.

Installation & Usage

Quick Start

npx claude-code-flow init

This command initializes the DL Agentic Workflow in your current project by:

  • Copying agent configurations to .claude/agents
  • Adding workflow commands to commands/dl
  • Merging MCP server configurations into mcp.json
  • Updating CLAUDE.md with workflow instructions

Available Commands

init

Initialize DL Agentic Workflow in your project.

npx claude-code-flow init [options]

Options:

  • --cwd <path> - Target directory (default: current working directory)
  • --dry-run - Show what would be done without making changes
  • --force - Overwrite existing files when they differ

Examples:

# Initialize in current directory
npx claude-code-flow init

# Initialize in specific directory
npx claude-code-flow init --cwd /path/to/project

# Preview changes without applying them
npx claude-code-flow init --dry-run

# Force overwrite conflicting files
npx claude-code-flow init --force

What Gets Created/Modified

1. Agent Configurations (.claude/agents/)

  • Copies agent workflow definitions from the package
  • Merges with existing agents without overwriting
  • Provides specialized Claude Code agents for different tasks

2. Workflow Commands (commands/dl/)

  • Adds DL-specific workflow commands
  • Integrates with Claude Code's command system
  • Enables enhanced project automation

3. MCP Configuration (mcp.json)

  • Merges MCP server entries required by DL workflow
  • Creates .bak backup before modifications
  • Preserves existing user configurations and formatting
  • Only adds missing entries, never removes or modifies existing ones

4. Claude Instructions (CLAUDE.md)

  • Updates the "## DL Agentic Workflow" section
  • Creates file if it doesn't exist
  • Preserves all other content in the file
  • Uses sentinels for precise section replacement

Idempotency & Safety

Safe Operations:

  • Running init multiple times is safe and won't duplicate content
  • Existing files are only modified when content actually differs
  • Backups are created before modifying mcp.json
  • User modifications are preserved unless --force is used

Conflict Resolution:

  • By default, conflicting files are not overwritten
  • Use --force flag to overwrite when necessary
  • Clear logs indicate what actions were taken or skipped

Cross-Platform Support:

  • Works on Windows, macOS, and Linux
  • Handles different path separators automatically
  • Preserves line endings (CRLF/LF) as appropriate

File Structure

After running init, your project will have:

your-project/
├── .claude/
│   └── agents/
│       └── [agent files from package]
├── commands/
│   └── dl/
│       └── [workflow commands from package]
├── mcp.json (updated with DL MCP servers)
├── mcp.json.bak (backup of original)
└── CLAUDE.md (updated with DL workflow section)

Development

Building

npm install
npm run build

Local Testing

# Build and test locally
npm run build
node dist/cli.js init --dry-run

# Test with npm pack
npm pack
npx ./claude-code-flow-*.tgz init --dry-run

Publishing

npm run prepublishOnly
npm publish

Troubleshooting

Common Issues

Permission Errors:

  • Ensure you have write permissions to the target directory
  • On Windows, run as Administrator if needed

Path Issues:

  • Use absolute paths with --cwd flag
  • Ensure target directory exists before running

MCP Conflicts:

  • Review mcp.json.bak to see original configuration
  • Use --force to overwrite conflicting MCP entries

Error Messages

  • "Target directory does not exist" - Create the directory or use correct --cwd path
  • "Source directory does not exist" - Package installation may be incomplete
  • "Mismatched sentinels" - CLAUDE.md has corrupted section markers, fix manually

License

MIT License - see LICENSE file for details.