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

ai-factory

v2.9.3

Published

CLI tool for automating AI agent context setup in projects

Readme

logo

AI Factory

Stop configuring. Start building.

You want to build with AI, but setting up the right context, prompts, and workflows takes time. AI Factory handles all of that so you can focus on what matters — shipping quality code.

One command. Full AI-powered development environment.

ai-factory init

Why AI Factory?

  • Zero configuration — installs relevant skills, configures integrations
  • Best practices built-in — logging, commits, code review, all following industry standards
  • Spec-driven development — AI follows plans, not random exploration. Predictable, resumable, reviewable
  • Community skills — leverage skills.sh ecosystem or generate custom skills
  • Stack-agnostic — works with any language, framework, or platform
  • Multi-agent support — Claude Code, Cursor, Windsurf, Roo Code, Kilo Code, Antigravity, OpenCode, Warp, Zencoder, Codex CLI, GitHub Copilot, Gemini CLI, Junie, Qwen Code, or any agent

Installation

Using npm

npm install -g ai-factory

Using mise

mise use -g npm:ai-factory

Quick Start

# In your project directory (interactive wizard)
ai-factory init

# Or non-interactive with flags
ai-factory init --agents claude,codex --mcp playwright,github

This will:

  • Ask which AI agent you use (or use --agents flag)
  • Install relevant skills (or use --skills flag)
  • Configure MCP servers (or use --mcp flag)

Then open your AI agent and start working:

/aif

Usage

If the package is installed:

ai-factory init

Or running without installation via npx:

npx ai-factory init

Non-interactive mode

Pass --agents to skip the interactive wizard:

# Agents + MCP servers
ai-factory init --agents claude,cursor --mcp github,playwright

# With specific skills
ai-factory init --agents claude --skills commit,plan

# Without base skills
ai-factory init --agents codex --no-skills --mcp github

Available MCP servers: github, postgres, filesystem, chrome-devtools, playwright

Upgrading from v1 to v2

ai-factory upgrade

ai-factory upgrade removes old bare-named skills (commit, feature, etc.) and installs new aif-* prefixed versions. Custom skills are preserved.

Note: ai-factory update automatically checks npm for a newer CLI version and offers to install it before updating skills, then reports changed/unchanged/skipped/removed for installed base skills. Use ai-factory update --force for a clean reinstall of currently installed base skills.

Example Workflow

# Explore options and requirements before planning (optional)
/aif-explore Add user authentication with OAuth

# Need a strictly verified answer before changing anything?
/aif-grounded Does this repo already support OAuth providers?

# Plan a feature — creates branch, analyzes codebase, builds step-by-step plan
/aif-plan Add user authentication with OAuth

# Optionally refine the plan with deeper analysis
/aif-improve

# Execute the plan — implements tasks one by one, commits at checkpoints
/aif-implement

# Create a knowledge reference from docs AI doesn't know about
/aif-reference https://docs.example.com/api-reference --name example-api

# Fix a bug — AI learns from every fix and gets smarter over time
/aif-fix TypeError: Cannot read property 'name' of undefined

# Set up CI pipeline — GitHub Actions or GitLab CI with linting, SA, tests
/aif-ci github

# Generate project documentation — README + docs/ with topics
/aif-docs

See the full Development Workflow with diagram and decision table.

Auto-Generated Documentation

AI Factory can generate and maintain your project docs with a single command:

/aif-docs          # Creates README + docs/ structure from your codebase
/aif-docs --web    # Also generates a static HTML documentation site
  • Generates docs from scratch — analyzes your codebase and creates a lean README + detailed docs/ pages by topic
  • Cleans up scattered files — finds loose CONTRIBUTING.md, ARCHITECTURE.md, SETUP.md in your root and consolidates them into a structured docs/ directory
  • Keeps docs in sync — integrates with /aif-implement docs policy (Docs: yes = mandatory docs checkpoint routed to /aif-docs, Docs: no = visible WARN [docs])
  • Builds a docs website--web generates a static HTML site with navigation and dark mode, ready to host

Documentation

| Guide | Description | |-------|-------------| | Getting Started | What is AI Factory, supported agents, CLI commands | | Development Workflow | Workflow diagram, when to use explore vs grounded, spec-driven approach | | Reflex Loop | Iterative generate → evaluate → critique → refine workflow | | Subagents | Claude Code only: repo-local planning, implementation, and loop subagents with narrow role contracts | | Core Skills | All slash commands — explore, grounded, plan, fix, implement, evolve, docs, and more | | Skill Evolution | How /aif-fix patches feed into /aif-evolve to generate smarter skill rules | | Plan Files | Plan files, self-improvement patches, skill acquisition | | Security | Two-level security scanning for external skills | | Extensions | Writing and installing extensions — commands, injections, MCP, agents | | Configuration | .ai-factory.json, MCP servers, project structure, best practices | | Config Reference | Full config.yaml key reference and skill read/write matrix |


happy

AIF Handoff

Looking for an Autonomous Kanban board where AI agents plan, implement, and review your tasks? Check out aif-handoff — a visual task management system built on top of AI Factory.

ui-light ui-dark ui-light-list ui-dark-list

Links

License

MIT