codesight-ai-context
БесплатноБез исполняемых скриптовНе проверенUniversal AI context generator that compiles codebase maps, wiki knowledge bases, and MCP tools to save thousands of tokens per AI conversation.
от reason-machines★ 99 звёзд на GitHubОб этом скилле
CodeSight — AI Context Generator
Skill by ara.so — Daily 2026 Skills collection.
CodeSight compiles your codebase into a compact, structured context map (routes, models, components, dependencies) that AI coding assistants can read in one shot — eliminating thousands of tokens spent on manual file exploration. Supports 14 languages, 30+ frameworks, 13 ORM parsers, and an MCP server with 13 tools.
Installation
No installation required. Run directly with npx:
npx codesight
Or install globally:
npm install -g codesight
codesight
Requirements: Node.js >= 18, no API keys, no config files needed.
Core Commands
# Generate context map (default — outputs .codesight/CODESIGHT.md)
npx codesight
# Generate persistent wiki knowledge base (.codesight/wiki/)
npx codesight --wiki
# Generate AI tool config files (CLAUDE.md, .cursorrules, codex.md, AGENTS.md)
npx codesight --init
# Open interactive HTML report in browser
npx codesight --open
# Start as MCP server (13 tools) for Claude Code / Cursor
npx codesight --mcp
# Show blast radius for a specific file
npx codesight --blast src/lib/db.ts
# Generate optimized config for a specific AI tool
npx codesight --profile claude-code
npx codesight --profile cursor
npx codesight --profile copilot
npx codesight --profile codex
# Show token savings breakdown
npx codesight --benchmark
# Map markdown knowledge base (ADRs, meeting notes, Obsidian vault)
npx codesight --mode knowledge
npx codesight --mode knowledge ~/vault
npx codesight --mode knowledge ./docs
# Watch mode — regenerate on file changes
npx codesight --watch
# Git hook — regenerate on every commit
npx codesight --hook
What Gets Generated
Default Scan (npx codesight)
Outputs .codesight/CODESIGHT.md — a structured map including:
- Project metadata (stack, language, framework, package manager)
- All routes with HTTP methods and handler locations
- Database models with fields and relations
- UI components with props
- High-impact files ranked by dependency count
- Framework and ORM detection results
Wiki Knowledge Base (--wiki)
Outputs .codesight/wiki/ directory:
.codesight/wiki/
index.md — catalog of all articles (~200 tokens)
overview.md — architecture, subsystems, high-impact files
auth.md — auth routes, middleware, session flow
payments.md — payment routes, webhook handling, billing flow
database.md — all models, fields, relations
users.md — user management routes and models
ui.md — UI components with props
log.md — append-only operation log
AI Tool Config Files (--init)
Generates project-root files for each AI tool:
CLAUDE.md— Claude Code project instructions.cursorrules— Cursor rules filecodex.md— OpenAI Codex contextAGENTS.md— general agent instructions
MCP Server Mode
Start CodeSight as an MCP server to give Claude Code or Cursor direct tool access:
npx codesight --mcp
MCP Tool Reference
| Tool | Description |
|---|---|
codesight_get_context |
Full codebase context map |
codesight_get_routes |
All API routes with methods and handlers |
codesight_get_models |
All database models and schema |
codesight_get_components |
UI components with props |
codesight_get_blast_radius |
Impact analysis for a specific file |
codesight_get_high_impact_files |
Files ranked by dependency count |
codesight_get_framework_info |
Detected frameworks and ORMs |
codesight_get_wiki_index |
Wiki catalog (~200 tokens) for session start |
codesight_get_wiki_article |
Read one wiki article by name |
codesight_lint_wiki |
Wiki health check (orphans, stale, missing links) |
codesight_get_knowledge |
Knowledge map from markdown notes |
codesight_benchmark |
Token savings analysis |
codesight_get_overview |
Project overview summary |
Configuring MCP in Claude Code
Add to your Claude Code MCP config (~/.claude/mcp_settings.json or project .mcp.json):
{
"mcpServers": {
"codesight": {
"command": "npx",
"args": ["codesight", "--mcp"],
"cwd": "/path/to/your/project"
}
}
}
Configuring MCP in Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"codesight": {
"command": "npx",
"args": ["codesight", "--mcp"]
}
}
}
Language & Framework Support
| Language | AST Precision | Frameworks Detected |
|---|---|---|
| TypeScript | ✅ Full AST | Next.js, NestJS, Hono, Remix, SvelteKit, Nuxt, Express, Fastify |
| JavaScript | Regex | Express, Fastify, Koa, Hapi |
| Python | Regex | Django, FastAPI, Flask, SQLAlchemy |
| Go | Regex | Gin, Echo, Fiber, Chi |
| Ruby | Regex | Rails, Sinatra |
| PHP | Regex | Laravel, Symfony |
| Elixir | Regex | Phoenix |
| Java | Regex | Spring Boot |
| Kotlin | Regex | Ktor, Spring Boot |
| Rust | Regex | Axum, Actix |
| Dart | Regex | Flutter |
Установить codesight-ai-context в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл codesight-ai-context?
Universal AI context generator that compiles codebase maps, wiki knowledge bases, and MCP tools to save thousands of tokens per AI conversation.
Как установить скилл codesight-ai-context?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codesight-ai-context запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic