🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

devflow-kit

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devflow-kit

Agentic Development Toolkit for Claude Code - Enhance AI-assisted development with intelligent commands and workflows

Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
61
-17.57%
Maintainers
1
Weekly downloads
 
Created
Source

DevFlow - Agentic Development Toolkit

A comprehensive collection of Claude Code commands and configurations designed to enhance developer workflows when working with AI coding assistants.

Installation

# Run with npx (recommended - no global install needed)
npx devflow-kit init

That's it! DevFlow is now installed and ready to use in Claude Code.

What's Included

🎯 Skills (Auto-Activate)

Skills are model-invoked - Claude automatically activates them based on context, enforcing quality without manual invocation.

SkillPurposeAuto-Triggers When
pattern-checkArchitectural pattern validation (Result types, DI, immutability)Code changes are made, new functions added
test-designTest quality enforcement (setup complexity, mocking, behavior vs implementation)Tests are written or modified
code-smellAnti-pattern detection (fake solutions, unlabeled workarounds, magic values)Features are implemented, code is reviewed
researchPre-implementation planning, documentation study, integration strategyUnfamiliar features requested, architectural decisions needed
debugSystematic debugging with hypothesis testing and root cause analysisErrors occur, tests fail, performance issues detected
input-validationBoundary validation enforcement (parse-don't-validate, SQL injection prevention)API endpoints created, external data handled
error-handlingResult type consistency and exception boundary enforcementError handling code written, functions that can fail

How Skills Work:

  • Proactive enforcement - Catch issues during implementation, not after
  • No manual invocation - Model decides when skills are relevant
  • Quality gates - Block anti-patterns automatically
  • Context-aware - Activate based on what you're doing

IMPORTANT: Skills are automatically activated by Claude based on context. They cannot be manually invoked like slash commands.

Dual-Mode Pattern: The research and debug skills also exist as slash commands (/research, /debug) for manual control:

  • Skill mode (auto): Activates when Claude detects unfamiliar features or errors
  • Command mode (manual): Use /research or /debug when you want explicit control over the workflow

This gives you the best of both worlds: automatic assistance when needed, manual control when preferred.

📊 Slash Commands (User-Invoked)

CommandPurposeWhen to Use
/catch-upSmart summaries for starting new sessions with status validationStarting a session
/devlogDevelopment log for comprehensive session documentationEnding a session
/plan-next-stepsExtract actionable next steps from current discussionAfter planning discussion
/implementSmart interactive implementation orchestrator with todo triageAfter planning, ready to implement todos
/debugSystematic debugging workflow with hypothesis testingWhen errors occur, tests fail, or investigating issues
/researchPre-implementation research and approach analysisBefore implementing unfamiliar features or integrations
/code-reviewComprehensive code review using specialized sub-agentsBefore committing or creating PR
/commitIntelligent atomic commit creation with safety checksWhen ready to commit
/releaseAutomated release workflow with version management and publishingCreating a new release

🤖 Sub-Agents

Sub-AgentSpecialtyPurpose
audit-securitySecurity AnalysisExpert vulnerability detection and security code review
audit-performancePerformanceOptimization and bottleneck detection
audit-architectureArchitectureDesign pattern analysis and code structure review
audit-testsTestingTest quality, coverage, and effectiveness analysis (surgical execution)
audit-complexityComplexityCode complexity and maintainability assessment
audit-dependenciesDependenciesDependency management and security analysis
audit-databaseDatabaseDatabase design and optimization review
audit-documentationDocumentationDocs-code alignment, API accuracy, comment quality
catch-upContext RestorationProject status and context restoration with validation
commitGit OperationsIntelligent commit creation with safety checks
researchImplementation PlanningPre-implementation research, approach analysis, and planning
releaseRelease AutomationProject-agnostic release workflow with version management

How Sub-Agents Work:

  • Specialized AI assistants with deep expertise in specific domains
  • Separate context windows for focused analysis
  • Can be invoked explicitly or automatically by orchestrator commands
  • Restricted tool access appropriate to their domain

Invoking Sub-Agents:

# Explicit invocation
"Use the audit-security sub-agent to analyze this authentication code"

# Automatic delegation (Claude Code decides which sub-agent to use)
"Review this code for security issues"

📊 Smart Statusline

Real-time project context display showing:

  • Current model and session duration
  • Git branch and uncommitted changes indicator
  • Session cost tracking
  • Project context
  • Zero configuration - works immediately after installation

🔒 Security & Token Optimization

DevFlow automatically creates a comprehensive .claudeignore file at your git repository root to:

Protect Sensitive Data:

  • Environment files (.env, .env.*, .envrc)
  • Credentials & keys (*.key, *.pem, SSH keys)
  • Cloud configs (.aws/, .gcp/, .azure/)
  • Package tokens (.npmrc, .pypirc)
  • Database files (*.sql, *.db)

Optimize Token Usage:

  • Dependencies (node_modules/, vendor/, venv/)
  • Build artifacts (dist/, build/, .next/)
  • IDE files (.vscode/, .idea/)
  • Lock files (package-lock.json, yarn.lock)
  • Media and binaries

Covers patterns for all major languages and operating systems.

Development Workflow

Starting a Session

  • /catch-up - Review what was done previously
  • Check statusline for current model, git state, duration
  • Review recommended next actions

During Development

  • Skills auto-activate - research skill triggers for unfamiliar features, pattern-check validates architecture
  • Code with confidence - Skills catch anti-patterns and violations during implementation
  • /code-review - Review changes before committing
  • /commit - Create intelligent atomic commits

Ending a Session

  • /devlog - Document decisions and state
  • /code-review - Review branch before creating PR
  • /commit - Final commits with validation

Creating a Release

  • /code-review - Comprehensive branch review
  • /release - Automated release workflow
    • Detects project type (Node.js, Rust, Python, Go, etc.)
    • Analyzes commits and suggests version bump
    • Generates changelog from git history
    • Builds and tests before publishing
    • Creates git tags and platform releases
  • Verify package in registry

When Things Go Wrong

  • Skills auto-activate - debug skill triggers on errors/failures with systematic approach
  • Check git log and recent commits
  • Revert changes using git
  • Document lessons learned in .docs/debug/

CLI Commands

CommandPurposeOptions
devflow initInitialize DevFlow for Claude Code--skip-docs - Skip creating .docs/ structure
devflow uninstallRemove DevFlow from Claude Code--keep-docs - Keep .docs/ directory

What devflow init does:

  • Installs commands to ~/.claude/commands/devflow/
  • Installs sub-agents to ~/.claude/agents/devflow/
  • Installs skills to ~/.claude/skills/devflow/
  • Installs scripts to ~/.devflow/scripts/
  • Updates ~/.claude/settings.json (statusline and model)
  • Creates .claudeignore at git repository root
  • Creates .docs/ structure for project documentation

First Run:

devflow init
/devlog      # Document your current project state
/catch-up    # Get oriented with the project

Advanced Usage

Custom Audit Rules

# Extend sub-agents for project-specific patterns
echo "Check for exposed API keys in config files" >> ~/.claude/agents/devflow/audit-security.md

Team Usage

# Share session documentation with team
/devlog
git add .docs/status/
git commit -m "Session status: completed user auth feature"

Integration Examples

# Skills auto-activate during development
"Add JWT authentication"  # research skill triggers automatically
"Fix this error"          # debug skill activates and guides systematic approach

# Manual command invocation
/code-review   # Review changes (uncommitted or full branch)
/commit        # Create atomic commits
/release       # Automated release workflow

Philosophy

Modern development increasingly involves AI agents that can read, write, and modify code autonomously. DevFlow provides:

  • Trust but Verify - Tools to catch AI agent mistakes
  • Context Preservation - Memory across long-term projects
  • Quality Gates - Automated checks for AI changes
  • Developer Empowerment - Enhance human judgment, not replace it

Building from Source

# Clone and build
git clone https://github.com/dean0x/devflow.git
cd devflow
npm install
npm run build

# Test locally
node dist/cli.js init

# Watch mode for development
npm run dev

Project Structure:

src/
├── cli/                   # CLI source code (TypeScript)
│   ├── commands/           # init.ts, uninstall.ts
│   └── cli.ts             # CLI entry point
└── claude/                # Claude Code configuration
    ├── agents/devflow/     # Sub-agent definitions (.md)
    ├── commands/devflow/   # Slash command definitions (.md)
    ├── skills/devflow/     # Auto-activate skill definitions (.md)
    ├── scripts/            # statusline.sh
    └── settings.json       # Claude Code settings

Support

  • Check installed command documentation
  • Review .docs/status/ for recent sessions
  • Skills auto-activate for systematic troubleshooting
  • Report issues at https://github.com/dean0x/devflow/issues

License

MIT

Keywords

claude

FAQs

Package last updated on 21 Oct 2025

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