Package Exports
- @strifero/contextengine
- @strifero/contextengine/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@strifero/contextengine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ContextEngine
One command. Every AI agent understands your codebase.
Stop re-explaining your stack every session. ContextEngine scans your project, detects your frameworks, and generates everything Claude Code, Cursor, Copilot, and Codex need to understand your code from day one.
Free. Open source. No account required.
npx contextengineWhat It Generates
Claude Code (default):
.claude/
├── CLAUDE.md # Project overview, conventions, architecture
├── skills/ # Tech-specific knowledge files
│ ├── typescript/SKILL.md
│ ├── react/SKILL.md
│ └── ...
└── agents/ # Specialized subagents
├── backend-engineer.md
└── code-reviewer.mdCursor (--tool cursor):
.cursor/rules/
├── typescript.mdc
├── react.mdc
└── ...GitHub Copilot (--tool copilot):
.github/
└── copilot-instructions.mdAll tools at once (--tool all):
Generates all of the above in a single run.
Usage
# First run — detect stack and generate context files
npx contextengine
# Target a specific AI tool
npx contextengine --tool cursor
npx contextengine --tool copilot
npx contextengine --tool all
# Stack changed? Re-sync without losing your edits
npx contextengine --update
# Specify a directory
npx contextengine --dir /path/to/project
# Overwrite existing context files
npx contextengine --force
# Skip agent generation (Claude Code only)
npx contextengine --no-agentsDetected Stacks
| Technology | Detected By |
|---|---|
| TypeScript | tsconfig.json, .ts files |
| Node.js + Express | package.json dependencies |
| Next.js | next.config.* |
| React | package.json dependencies |
| Vite | vite.config.* |
| Vue | package.json dependencies |
| Tailwind CSS | tailwind.config.* |
| Swift / SwiftUI | .xcodeproj, .swift files |
| Stripe | package.json dependencies |
| Prisma | prisma/schema.prisma |
| PostgreSQL | package.json dependencies |
| MongoDB | package.json dependencies |
| Azure | azure.yaml, .bicep, ARM files |
| Docker | Dockerfile, docker-compose.yml |
| Go | go.mod |
| Python | pyproject.toml, requirements.txt |
| Django | manage.py |
| Rust | Cargo.toml |
| PHP | composer.json, .php files |
| C# | .csproj, .sln, .cs files |
| Bun | bun.lockb |
Don't see yours? Open an issue or submit a PR.
How It Works
- Scans your project root for config files,
package.jsondeps, and file extensions - Detects your tech stack automatically
- Selects the relevant skills from a curated library
- Generates context files for your chosen AI tool
With --update, ContextEngine re-runs detection and syncs non-destructively — new skills are added, stale ones removed, and everything you've written by hand is preserved.
Each skill file follows the Agent Skills open standard — compatible with Claude Code, Cursor, Codex CLI, and any other agent that supports SKILL.md.
Requirements
- Node.js 18+
- A project directory (any language or framework)
Contributing
Skills are plain markdown files. To add a new stack:
- Create
src/skills/<name>.tswith the skill content - Add detection logic to
src/detect.ts - Wire it up in
src/registry.ts - Open a PR
See CONTRIBUTING.md for details.
License
MIT — by Strife Technologies