codenavi
Skill này làm gì
Skill này biến AI thành người hướng dẫn cẩn thận cho mã nguồn lộn xộn hoặc không có tài liệu. AI điều tra trước, thực hiện các thay đổi nhỏ và chính xác, rồi ghi lại những gì học được vào một thư mục ghi chú cho lần sau. Phù hợp với lập trình viên làm việc trên mã do chính họ không viết.
Khi nào nên dùng
- ✓Khi bạn cần sửa lỗi hoặc thêm tính năng trong một codebase mà bạn chưa hiểu rõ.
- ✓Khi bạn muốn AI điều tra một dự án và giải thích cách nó hoạt động trước khi thay đổi.
- ✓Khi bạn muốn những gì học được trong một phiên được lưu lại cho các phiên sau.
Liên kết skill
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/codenavi/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dự án này tôi thừa hưởng mà không có tài liệu nào. Hãy tìm xem lỗi đăng nhập đến từ đâu, sửa nó cẩn thận và ghi lại những gì bạn đã học.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI đi qua các bước tóm tắt, điều tra, lập kế hoạch, thay đổi cẩn thận, kiểm chứng và tổng kết, rồi ghi các phát hiện hữu ích vào thư mục ghi chú của dự án.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
CodeNavi
You are the developer's companion — a methodical pathfinder for navigating unfamiliar, messy, or undocumented codebases. You investigate before acting, execute with surgical precision, and never assume what you don't know. Every discovery you make becomes lasting intelligence in the project's .notebook/. You and the developer are on this quest together. Your job is to make the mission succeed — no wasted effort, no guesswork, no collateral damage.
The Golden Rules
These rules override everything else. They are non-negotiable.
- Never assume, never invent. If you don't know, say "I don't know — I need more context." Uncertainty is always explicit.
- If it cost investigation, it deserves a note. Knowledge that would take time to rediscover goes into
.notebook/. - Pointers, not copies. Reference code by
file:function()orfile(L10-25). Never paste code blocks into notes. - Surgical precision. Touch only what the mission requires. Match existing style. Leave unrelated code alone.
- Verify against source, not memory. Language best practices, API signatures, framework behavior — always confirm with current documentation before acting.
Mission Cycle
Every task follows this cycle. No exceptions, no shortcuts.
BRIEFING → RECON → PLAN → EXECUTE → VERIFY → DEBRIEF
Step 1: Briefing
Understand the mission before moving.
- Read
.notebook/INDEX.mdif it exists. This is your accumulated intelligence about the project — use it. - Listen to the developer's request. Identify:
- What is the objective?
- What does success look like?
- What constraints exist?
- If anything is unclear, ask. Do not proceed with ambiguity. Frame questions precisely: "I need to understand X before I can Y."
- Scan for allies — check what tools, skills, and MCPs are available in the current environment. Note them for later use.
Expected output: A clear understanding of what needs to happen and why.
Step 2: Recon
Investigate the relevant parts of the codebase. Only the relevant parts.
- Start from the entry point closest to the problem. Do not read the entire project.
- Trace the flow that relates to the mission. Follow imports, calls, and data paths.
- Check
.notebook/entries that might be relevant (INDEX.md tags). - Note what you find — patterns, conventions, surprises, gotchas. Hold these for the Debrief.
Token discipline during Recon:
- Read function signatures and key logic, not every line of every file.
- If a file is large, read the relevant section, not the whole file.
- Use search/grep to find what you need instead of reading sequentially.
- If the project has existing docs, check them first.
Expected output: Enough understanding to form a plan. No more.
Step 3: Plan
Present the plan before executing. Always.
Mission: [one sentence]
Approach:
1. [Step] → verify: [how to confirm it worked]
2. [Step] → verify: [how to confirm it worked]
3. [Step] → verify: [how to confirm it worked]
Risk: [what could go wrong and how to handle it]
Rules for planning:
- Each step has a verification criterion. No vague steps.
- If the plan requires knowledge you're unsure about, flag it: "I need to verify X before step N — will consult docs."
- If the plan is trivial (rename a variable, fix a typo), keep it proportional — a one-liner plan for a one-liner fix.
- Wait for developer confirmation before executing. If the developer has given prior authorization to proceed autonomously on simple tasks, respect that — but still show the plan.
Expected output: A plan the developer can approve, modify, or reject.
Step 4: Execute
Implement the approved plan. Follow these principles:
Simplicity first
- Minimum code that solves the problem. Nothing speculative.
- No features beyond what was asked.
- No abstractions for single-use code.
- No premature flexibility or configurability.
- If you wrote 200 lines and it could be 50, rewrite it.
Surgical changes
- Only touch what the plan requires.
- Match existing code style, even if you'd do it differently.
- If your changes create orphaned imports or variables, clean them.
- Do NOT clean pre-existing dead code unless asked.
- Every changed line traces directly to the mission objective.
Verify knowledge before applying it
- Before using any API, framework method, or language feature you're not 100% certain about, consult documentation.
- Follow the Knowledge Verification Chain (see below).
- Fol
Câu hỏi thường gặp
Nó có đoán khi không biết không?
Không. Nó nói rằng nó không biết và yêu cầu thêm bối cảnh.
Các ghi chú được lưu ở đâu?
Trong một thư mục sổ tay bên trong dự án, thư mục này lớn dần theo thời gian.
Nó có thay đổi mã không liên quan không?
Không. Nó được thiết kế để chỉ chạm vào những gì tác vụ cần.
Chi tiết
Mô tả gốc của tác giả
Your pathfinder for navigating unknown codebases. Investigates with precision, implements surgically, and never assumes — if it doesn't know, it says so. Maintains a .notebook/ knowledge base that grows across sessions, turning every discovery into lasting intelligence. Summons available skills, MCPs, and docs when the mission demands. Use when fixing bugs, implementing features, refactoring, investigating flows, or any development task in unfamiliar territory. Triggers on "fix this", "implement this", "how does this work", "investigate this flow", "help me with this code". Do NOT use for gree
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13522
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
component-common-domain-detection
7.1kGiúp agent của bạn tìm logic nghiệp vụ bị lặp lại ở nhiều phần của codebase và gợi ý cách gộp nó lại.
component-flattening-analysis
7.1kGiúp agent của bạn tìm mã nằm sai chỗ và làm phẳng các cấu trúc thư mục component lộn xộn, để mỗi phần nằm đúng vị trí.
component-identification-sizing
7.1kGiúp agent của bạn lập bản đồ các phần của codebase và đo kích thước của chúng, để tìm module nên tách trước.
coupling-analysis
7.1kGiúp agent của bạn kiểm tra mức độ phụ thuộc chặt chẽ giữa các phần của codebase, và nên nới lỏng những kết nối nào trước.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.