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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agiflowai/aicode-toolkit

v1.1.0

Published

AI-powered code toolkit CLI for scaffolding, architecture management, and development workflows

Downloads

264

Readme

@agiflowai/aicode-toolkit

CLI for initializing projects and managing AI Code Toolkit templates

Use this CLI to initialize templates, generate .toolkit/settings.yaml, and sync agent-facing config files.

Quick Start

# Initialize templates in existing project
npx @agiflowai/aicode-toolkit init

# Create new project with templates
npx @agiflowai/aicode-toolkit init --name my-project --project-type monolith

Commands

init

Initialize AI Code Toolkit in your workspace.

For existing projects:

npx @agiflowai/aicode-toolkit init

This will:

  1. Create templates/
  2. Download built-in templates
  3. Detect installed coding agents
  4. Optionally configure MCP servers

For new projects:

# Interactive mode
npx @agiflowai/aicode-toolkit init

# Non-interactive mode
npx @agiflowai/aicode-toolkit init --name my-app --project-type monolith

This will:

  1. Create the project directory
  2. Initialize Git
  3. Download templates
  4. Create .toolkit/settings.yaml

Options: | Option | Description | Default | |--------|-------------|---------| | --name <name> | Project name (for new projects) | - | | --project-type <type> | monolith or monorepo | - | | --path <path> | Custom templates path | ./templates | | --no-download | Skip template download | false |

sync

Generate platform config files from .toolkit/settings.yaml as the single source of truth.

# Generate both .claude/settings.json and mcp-config.yaml
npx @agiflowai/aicode-toolkit sync

# Generate only .claude/settings.json (Claude Code hooks)
npx @agiflowai/aicode-toolkit sync --hooks

# Generate only mcp-config.yaml (MCP server list)
npx @agiflowai/aicode-toolkit sync --mcp

Options: | Option | Description | |--------|-------------| | --hooks | Write .claude/settings.json only | | --mcp | Write mcp-config.yaml only |

Hooks → .claude/settings.json

Hook commands are derived automatically from mcp-config.servers by replacing mcp-serve with hook --type claude-code.<method>. Configure which methods to activate in .toolkit/settings.yaml:

scaffold-mcp:
  hook:
    claude-code:
      preToolUse:
        args:           # extra CLI args appended to the generated hook command
          llm-tool: gemini-cli
      postToolUse: {}
      stop: {}
      userPromptSubmit: {}
      taskCompleted: {}

architect-mcp:
  hook:
    claude-code:
      preToolUse:
        matcher: Edit|MultiEdit|Write
      postToolUse:
        matcher: Edit|MultiEdit|Write

Generated architect hook entries default to Edit|MultiEdit|Write. Run aicode sync --hooks to write .claude/settings.json.

Both .toolkit/settings.yaml and .toolkit/settings.local.yaml now support ordered fallbacks lists in scaffold-mcp and architect-mcp config blocks; the first valid fallback is used when the singular fallback fields are unset.

mcp-config section → mcp-config.yaml

Define MCP servers in .toolkit/settings.yaml:

mcp-config:
  servers:
    scaffold-mcp:
      command: bun
      args:
        - run
        - packages/scaffold-mcp/src/cli.ts
        - mcp-serve
        - --admin-enable
        - --prompt-as-skill
      instruction: "Use this server for generating boilerplate code and scaffolding."
    architect-mcp:
      command: bun
      args:
        - run
        - packages/architect-mcp/src/cli.ts
        - mcp-serve
      instruction: "Use this server for design pattern guidance and code review."
  skills:
    paths:
      - docs/skills

Run aicode sync --mcp to write mcp-config.yaml from this config.


add

Add templates from GitHub repositories.

# Add from full repository
npx @agiflowai/aicode-toolkit add \
  --name my-template \
  --url https://github.com/yourorg/template-repo

# Add from repository subdirectory
npx @agiflowai/aicode-toolkit add \
  --name react-vite \
  --url https://github.com/AgiFlow/aicode-toolkit/tree/main/templates/react-vite

Options: | Option | Description | |--------|-------------| | --name <name> | Template name (required) | | --url <url> | GitHub URL (required) | | --type <type> | Template type folder |

Supported URL formats:

  • Full repository: https://github.com/user/repo
  • Subdirectory: https://github.com/user/repo/tree/branch/path/to/template
  • With .git: https://github.com/user/repo.git

What Gets Installed

When you run init, these built-in templates are downloaded:

| Template | Description | |----------|-------------| | nextjs-15-drizzle | Next.js 15 + App Router + TypeScript + Tailwind CSS 4 + Drizzle ORM | | typescript-lib | TypeScript library with ESM/CJS builds | | typescript-mcp-package | MCP server package template |

Each template includes:

  • scaffold.yaml - Boilerplate and feature definitions
  • architect.yaml - Design patterns (optional)
  • RULES.yaml - Coding standards (optional)

Project Types

Monolith

Single application with .toolkit/settings.yaml as the primary config:

my-app/
├── .toolkit/
│   └── settings.yaml     # sourceTemplate: "nextjs-15"
├── templates/
│   └── nextjs-15/
├── src/
└── package.json

Monorepo

Multiple projects with project.json in each:

my-workspace/
├── templates/
│   ├── nextjs-15/
│   └── typescript-lib/
├── apps/
│   └── web/
│       └── project.json  # sourceTemplate: "nextjs-15"
└── packages/
    └── shared/
        └── project.json  # sourceTemplate: "typescript-lib"

Coding Agent Detection

The CLI checks for these agent configs:

| Agent | Config Location | Status | |-------|-----------------|--------| | Claude Code | .mcp.json | Supported | | Cursor | .cursor/mcp.json | Supported | | Gemini CLI | .gemini/settings.json | Supported | | Codex CLI | .codex/config.json | Supported | | GitHub Copilot | VS Code settings | Supported |

If detected, the CLI can add MCP server config for them.


Template Structure

templates/
└── nextjs-15/
    ├── scaffold.yaml         # Required: boilerplate + feature definitions
    ├── architect.yaml        # Optional: design patterns
    ├── RULES.yaml            # Optional: coding standards
    └── src/                  # Template files (.liquid for variable replacement)
        ├── package.json.liquid
        └── app/
            └── page.tsx.liquid

See scaffold-mcp documentation for template creation guide.


Related Packages

| Package | Description | |---------|-------------| | @agiflowai/scaffold-mcp | MCP server for code scaffolding | | @agiflowai/architect-mcp | MCP server for design patterns | | @agiflowai/one-mcp | MCP proxy for reduced token usage |


License

AGPL-3.0