Skip to content
Agentmart
Submit a tool

ck:code-map

Code flow and symbol mapping

Skill by forgekit

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/duy-nguyen-2006-ck-code-map

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Code flow and symbol mapping

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ck-code-map

What's inside

Skill name
ck:code-map
Description
Code flow and symbol mapping
License
MIT
Metadata
author: forgekit · version: 1.0.0
Instructions
113 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "ck:code-map" does not match folder "code-map"

Files (3)

  • SKILL.md
  • code2prompt-guide.md · references/
  • gitingest-guide.md · references/

SKILL.md (first lines)

# Code Map

Token-bounded codebase summarization — fallback khi GitNexus MCP không available.

## Trigger

- "map codebase", "code map", "tóm tắt repo", "codebase overview"
- "code2prompt", "gitingest"
- Cần hiểu nhanh project structure mà không muốn đọc từng file
- GitNexus MCP không available hoặc chưa cài
- Orchestrator cần context overview trước khi route task

## Khi nào KHÔNG dùng

- GitNexus MCP available → dùng `query` + `context` (chính xác hơn)
- Chỉ cần đọc 1-2 file cụ thể → dùng native read
- Đã có `docs/codebase-summary.md` mới (từ repomix) → đọc file đó thay vì generate lại

## Quy trình

### 1. Kiểm tra tool available

```
which code2prompt || which gitingest
```

- Cả hai đều có → ưu tiên `code2prompt` (template control tốt hơn)
- Chỉ `gitingest` → dùng gitingest
- Không có gì → cài `code2prompt`: `pip install code2prompt`

### 2. Chạy code2prompt (ưu tiên)

```bash
code2prompt . \
  --output docs/codebase-summary.md \
  --tokens <TOKEN_BUDGET> \
  --template code-map \
  --exclude-file ".forgeignore,.git,node_modules,__pycache__,.venv,dist,build,.next,coverage"
```

Xem `references/code2prompt-guide.md` cho template tùy chỉnh và options đầy đủ.

### 3. Fallback: chạy gitingest

```bash
gitingest . --output docs/codebase-summary.md
```

Xem `references/gitingest-guide.md` cho URL mode và token limiting.

### 4. Post-processing

1. Đọc output file đã generate
2. Kiểm tra token count — nếu vượt budget, truncate hoặc re-run với `--tokens` nhỏ hơn
3. Inject vào context chỉ phần cần thiết (không inject toàn bộ)

## Token Budget Rules

| Context | Budget | Action |
|---|---|---|
| Quick overview | ≤ 2000 tokens | `--tokens 2000` |
| Standard task | ≤ 4000 tokens | `--tokens 4000` |
| Deep analysis | ≤ 8000 tokens | `--tokens 8000` |

**Luôn bắt đầu với budget nhỏ nhất đủ dùng.** Escalate chỉ khi task yêu cầu.

## Integration với .forgeignore

Nếu project có `.forgeignore`, code2prompt tự động tôn trọng khi chạy từ project root.
Nếu không có, dùng `--exclude-file` với pattern mặc định:

```
.git
node_modules
__pycache__
.venv
dist
build
.next
coverage
*.lock
*.min.js
*.min.css
```

## Tool Selection Decision Tree

```
GitNexus MCP available?
├─ YES → use GitNexus (query, context)
└─ NO → code2prompt available?
         ├─ YES → code2prompt with template
         └─ NO → gitingest available?
                  ├─ YES → gitingest (structured output)
                  └─ NO → pip install code2prompt → retry
```

## Output Format

Summary phải chứa:

1. **Project overview** — name, purpose, tech stack
2. **Directory tree** — simplified, max 3 levels
3. **Key files** — entry points, configs, main modules
4. **Dependencies** — từ package.json / requirements.txt
5. **Token count** — tổng tokens trong summary

## References

- `references/code2prompt-guide.md` — code2prompt cài đặt, template, options
- `references/gitingest-guide.md` — gitingest cài đặt, URL mode, token limiting

From Duy-Nguyen-2006/ForgeKit, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 12, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from forgekit

Cite this page

ck:code-map skill. Agent Mart. https://agentmart.dev/skills/duy-nguyen-2006-ck-code-map (last updated 2026-10-24)