Contextai banner
madeburo madeburo

Contextai

Development community

Description

Universal context engineering CLI – generate AGENTS.md, CLAUDE.md, .cursorrules and more from a single context.config.ts

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

contextai

![contextai](./contextai.webp?v=2)

[![Website](https://img.shields.io/badge/website-contextai.run-blue)](https://www.contextai.run) [![npm version](https://img.shields.io/npm/v/contextai.svg)](https://www.npmjs.com/package/contextai) [![license](https://img.shields.io/npm/l/contextai.svg)](LICENSE) [![node](https://img.shields.io/node/v/contextai.svg)](package.json) [![npm downloads](https://img.shields.io/npm/dm/contextai.svg)](https://www.npmjs.com/package/contextai)

Universal context engineering CLI for AI coding agents. Define your project's conventions, stack, and architecture in a single `context.config.ts` file, then generate AI-readable context files for multiple tools from that single source of truth.

**Website:** [www.contextai.run](https://www.contextai.run)

Supported output targets

Target File
OpenAI Codex / generic agents AGENTS.md
Claude CLAUDE.md
Cursor .cursorrules
GitHub Copilot .github/copilot-instructions.md
LLMs.txt llms.txt
Kiro (AWS) .kiro/steering/*.md
Windsurf .windsurf/rules/*.md
Gemini CLI / Antigravity GEMINI.md
Custom any path via config

Quick start

npm install -g contextai

# Interactive setup — creates context.config.ts
contextai init

# Generate all enabled output files
contextai generate

Commands

Command Description
contextai init Interactive setup wizard
contextai generate Generate output files from config
contextai generate --dry-run Preview output without writing files
contextai generate --format json Output JSON IR to stdout instead of writing files
contextai validate Check output files are fresh and well-structured
contextai diff Show diff between config and on-disk outputs
contextai watch Watch config for changes and regenerate automatically

Configuration

Create a `context.config.ts` at your project roo