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

create-ai-context

v0.2.0

Published

πŸ€– Generate AI-optimized project documentation and context files for better AI-assisted development. Creates structured templates with version control, architectural documentation, and clear guidelines for AI tools like Claude Code, GitHub Copilot, and Ch

Readme

create-ai-context

πŸ€– Generate AI-optimized project documentation and context files for better AI-assisted development.

npm version License: MIT Documentation

Create structured templates with version control, architectural documentation, and clear guidelines for AI tools like Claude Code, GitHub Copilot, and ChatGPT.

✨ Features

  • 🎯 Smart Project Detection - Auto-detects project types (new, empty, minimal, existing)
  • πŸ“ Organized File Structure - Separates workflow files (root) from documentation (docs/)
  • πŸ”„ Version Control - Track changes to strategic documents over time
  • πŸ€– AI-Optimized - Templates designed specifically for AI assistant context
  • 🧠 AI-Guided Templates - Templates that help AI tools analyze and populate themselves
  • πŸ”§ Multi-Agent Support - Optimized for Claude Code, Cursor, and GitHub Copilot
  • ⚑ Automation Ready - Supports non-interactive mode for CI/CD
  • πŸ›‘οΈ Safe Overwrites - Protects existing files with confirmation prompts

πŸš€ Quick Start

# Interactive mode - prompts for directory and AI agent
npx create-ai-context

# Direct mode - no prompts, perfect for automation
npx create-ai-context --agent cursor --path ./my-project

πŸ“ Generated Files

Root Directory

  • DEVELOPMENT_PLAN.md - Project roadmap and phases (versioned)
  • PROJECT_RULES.md - Development constraints and guidelines (versioned)
  • README.md - Project documentation
  • ai-instructions.md - Step-by-step AI guidance and tasks

docs/ Directory

  • ARCHITECTURE.md - Technical architecture and patterns (versioned)
  • DEVELOPER_GUIDE.md - Human developer workflows

πŸ› οΈ CLI Modes

Interactive Mode

npx create-ai-context
  • Prompts for target directory (default: current)
  • Prompts for AI agent selection (claude as default)
  • Prompts for project configuration

Direct Mode

npx create-ai-context --agent <name> --path <directory>
  • Requires both --agent and --path
  • No prompts, uses smart defaults
  • Perfect for automation

Options

| Option | Description | |--------|-------------| | --agent <name> | AI agent: claude, cursor, codex (required for direct mode) | | --path <directory> | Target directory (required for direct mode) | | --help | Show help message | | --version | Show version number |

πŸ€– AI Tool Integration

Claude Code

/memory add DEVELOPMENT_PLAN.md
/memory add PROJECT_RULES.md
/memory add docs/ARCHITECTURE.md

# Use AI instructions for guided setup
cat ai-instructions.md

Cursor

# Reference context files with @mentions
@DEVELOPMENT_PLAN.md @docs/ARCHITECTURE.md

# Use AI instructions for project analysis
@ai-instructions.md

GitHub Copilot

  • Workspace automatically includes project rules
  • Architecture documentation provides context
  • Reference ai-instructions.md for structured tasks

πŸ“– Documentation

πŸ“š Full Documentation

πŸ’‘ Use Cases

New Projects

mkdir my-new-app && cd my-new-app
npm init -y
npx create-ai-context  # Interactive: confirm directory, choose agent

Existing Projects

cd existing-project
npx create-ai-context  # Interactive: safe mode, prompts before overwriting

CI/CD Automation

- name: Setup AI Context
  run: npx create-ai-context --agent claude --path .

Team Onboarding

git clone project-repo
cd project-repo
npx create-ai-context --agent cursor --path .  # Direct mode for consistent setup

πŸ” Smart Detection

The tool automatically detects:

  • Project Type - new, empty (just initialized), minimal, or existing
  • Development Stage - planning, foundation, development, or production
  • Tech Stack from dependencies and project structure
  • Language from dependencies and configuration
  • Codebase Size to customize templates appropriately
  • Existing Files to prevent accidental overwrites

⚑ Examples

# Interactive setup - choose directory and agent
npx create-ai-context

# Direct setup for Claude Code
npx create-ai-context --agent claude --path ./my-project

# Direct setup for Cursor
npx create-ai-context --agent cursor --path ./react-app

# Empty project (npm init, cargo new, etc.)
cd my-empty-project && npx create-ai-context

# Automation in CI/CD
npx create-ai-context --agent claude --path ./project

πŸ—οΈ Project Structure

your-project/
β”œβ”€β”€ DEVELOPMENT_PLAN.md    # πŸ“‹ Project roadmap (versioned)
β”œβ”€β”€ PROJECT_RULES.md       # πŸ“ Development guidelines (versioned)
β”œβ”€β”€ README.md              # πŸ“– Project documentation
β”œβ”€β”€ ai-instructions.md     # 🧠 Step-by-step AI guidance
β”œβ”€β”€ src/                   # πŸ’» Your source code
└── docs/                  # πŸ“š Technical documentation
    β”œβ”€β”€ ARCHITECTURE.md    # πŸ›οΈ System architecture (versioned)
    └── DEVELOPER_GUIDE.md # πŸ‘₯ Developer workflows

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

πŸ“‹ Requirements

  • Node.js 14.0.0 or higher
  • npm or yarn

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™‹β€β™‚οΈ Support

⭐ Star History

If this tool helps your AI-assisted development workflow, please consider giving it a star! ⭐


Made with ❀️ for AI-assisted development