# codesight-ai-context

Builds a compact project map, wiki, and AI-tool files from a codebase. Useful when an agent needs project structure before editing code.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 550 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/codesight-ai-context/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/codesight-ai-context

## What it does

The skill runs `codesight` through `npx` and writes a structured project view to `.codesight/CODESIGHT.md`. It records routes, dependency links, data-model structure, interface component inputs, and files with high impact across the project. The `--wiki` mode creates Markdown articles, while `--init` produces `CLAUDE.md`, `.cursorrules`, `codex.md`, and `AGENTS.md`.

You can open an HTML report with `--open`, inspect a file’s affected area with `--blast`, or expose the project through an MCP server. MCP tools cover context, routes, models, wiki articles, knowledge notes, and token analysis. The `--watch` option rebuilds the output after file changes. Node.js >= 18 is required, and the command does not need API keys or config files to start.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill codesight-ai-context -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/codesight-ai-context/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/codesight-ai-context/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill codesight-ai-context -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/codesight-ai-context/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill codesight-ai-context -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/codesight-ai-context/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills codesight-ai-context
```

2. **Manually: put the files in place**
- File: `.github/skills/codesight-ai-context/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill codesight-ai-context -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/codesight-ai-context
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/codesight-ai-context/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill codesight-ai-context -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/codesight-ai-context/SKILL.md

## When to use it
- map a codebase for an AI coding session
- build a project wiki from source and Markdown notes
- create context files for supported AI tools
- inspect the impact of changing one file
- serve project context through MCP

## Example prompts
- Generate a map of this project and save it to `.codesight/CODESIGHT.md`.
- Create a project wiki with `npx codesight --wiki`, including the architecture and authentication flow.
- Check the impact of changing `src/lib/database.ts` with `npx codesight --blast src/lib/database.ts`.

## Similar
- [bmad-project-context](https://affpapa.org/en/nevibecode/skills/bmad-project-context.md) — skill · 11500 installs
- [ghost-repo-context](https://affpapa.org/en/nevibecode/skills/ghost-repo-context.md) — skill · 3800 installs
- [domain-context](https://affpapa.org/en/nevibecode/skills/domain-context.md) — skill · 2500 installs
- [maintaining-agent-context](https://affpapa.org/en/nevibecode/skills/maintaining-agent-context.md) — skill · 1900 installs
- [openspec-context-loading](https://affpapa.org/en/nevibecode/skills/openspec-context-loading.md) — skill · 1100 installs
- [platform-metadata-api-context-get](https://affpapa.org/en/nevibecode/skills/platform-metadata-api-context-get.md) — skill · 6000 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 186 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
