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
Maintainers
Readme
create-ai-context
π€ Generate AI-optimized project documentation and context files for better AI-assisted development.
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
--agentand--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.mdCursor
# Reference context files with @mentions
@DEVELOPMENT_PLAN.md @docs/ARCHITECTURE.md
# Use AI instructions for project analysis
@ai-instructions.mdGitHub Copilot
- Workspace automatically includes project rules
- Architecture documentation provides context
- Reference ai-instructions.md for structured tasks
π Documentation
π‘ Use Cases
New Projects
mkdir my-new-app && cd my-new-app
npm init -y
npx create-ai-context # Interactive: confirm directory, choose agentExisting Projects
cd existing-project
npx create-ai-context # Interactive: safe mode, prompts before overwritingCI/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
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - 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
- π Issues
- π¬ Discussions
- π Documentation
β Star History
If this tool helps your AI-assisted development workflow, please consider giving it a star! β
Made with β€οΈ for AI-assisted development
