Logo Codebase Tips

Codebase Tips

Cộng đồng
Heyvhuang
codebase-tips

Codebase · 29 tips: repo index and map, coding principles, AGENTS.md, scope rules.

Tổng quan

Nhà phát hànhHeyvhuang
Kho mãcopybook-skills
Tên kỹ năngcodebase-tips
Sao
143
Bản fork
9
Tệp đi kèm
30
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 30 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Heyvhuang công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Codebase Tips trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/copybook-zh/skills/codebase-tips
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Heyvhuang/copybook-skills.git /tmp/copybook-skills
mkdir -p .claude/skills
cp -r /tmp/copybook-skills/plugins/copybook-zh/skills/codebase-tips .claude/skills/codebase-tips
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Codebase Tips trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Codebase Tips ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Codebase Tips với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Codebase · 29 tips

Copybook's 29 tips on codebase, most saved first. Each tip's text, where it goes and what the user should get are in its file in references/.

  • If the user names a tip, use that tip. If they describe a task, choose the tip that best meets their goal and constraints from those that work with the agent doing the work. If several fit equally well, choose one. Tell the user in one sentence which tip you picked and why, then read its file and follow it. If another tip also fits and would materially change the approach or result, name it and say how it differs.
  • If the user said nothing, show them the list below (each tip's name and what it does) and ask which to use.
  • If none fits, say so and suggest copybook, which looks through all 128 tips.
TipWhat it does
codebase-memory MCP: an index of your repo codebase-memory-repo-indexDozens of grep and read turns per question: the repo as one graph of functions, files and dependencies; dead code found too.
Vibe-coding cleanup: 5 Codex /goal prompts vibe-coding-cleanup-promptsHalf your quota left at reset: dead code, duplicates and unneeded dependencies cut; scheduled tasks and old worktrees sorted.
Clickable repo map clickable-repo-mapBefore you change a repo: click any module for its callers, dependencies, tests and source evidence; a rule keeps it current.
Scope Guard: AGENTS.md rules for small tasks scope-guard-rulesAsked to change a config, it builds a framework: minimum sufficient change, reuse first, ask before widening, test narrowly.
Disk map of dev leftovers disk-map-of-dev-leftoversDisk almost full: a read-only scan, a treemap of what development left behind, and a cleanup script only for what you tick.
One AGENTS.md for Claude Code and Codex one-agents-md-for-both-agentsTwo agents, one rules file: plan first, smallest change, subagent roles, own the bug, verify before done, Lessons per correction.
Untangle /goal for spaghetti code untangle-goalMonths of vibe coding left the code in knots: an HTML wiring diagram, the worst numbered in red, then fixes tested one by one.
Investigate-and-plan prompt for Codex investigate-and-plan-promptBefore it implements on a guess: repo read, goal restated, assumptions and plan listed, then a stop for your approval.
Repeated PR comments as AGENTS.md rules pr-comments-as-agents-md-rulesA reviewer keeps flagging the same things: 50 recent PRs scanned, issues ranked by count, your picks written into AGENTS.md.
Archify: system diagrams from code archify-system-diagramsA system you have to explain: an HTML diagram you can search, trace up and downstream, compare across versions, export as PNG.
REA: take apart another app's feature rea-take-apart-a-featureA feature you like and can't see how it's built: taken down layer by layer, each finding with evidence, then a plan for your own.
Less defensive code: 4 AGENTS.md rules less-defensive-codeEven a tiny change gets null checks at every layer: Codex checks data once where it comes in, then just uses it.
CI time audit: 150 runs, 9 checks ci-time-auditCode takes minutes, then each PR waits on CI: the 5 slowest jobs split into queue, setup and run, and the line to change per fix.
MIT axiomatic design check for coupled code axiomatic-design-coupling-checkFixing one bug breaks ten other things: an MIT axiomatic design analysis that says whether your code is coupled.
Agent workspace audit agent-workspace-auditYour agent feels dumber over time: every instruction, skill, MCP and memory marked KEEP or REMOVE, cleared on your OK.
Agent memory tools: 8 repos in 4 kinds agent-memory-tools-8-reposNo memory of code, notes, sessions or long tasks: 8 repos in those 4 kinds, one of each installed on your OK.
3 slimmer AGENTS.md plans side by side 3-slimmer-agents-md-plansAGENTS.md past 200 lines gets followed less: 3 slimmer versions, each more aggressive, nothing lost, shown before changes.
No compatibility code yet: AGENTS.md rules no-compatibility-code-yetNo users yet, but the agent adds compatibility code and migrations: skip both, then docs, tests, smallest change and cleanup.
Claude Code permissions: deny, ask and allow commands deny-ask-and-allow-permissionsClaude deleted a config that 'looked unused': risky commands blocked, pushes ask first, routine ones run, deny always wins.
Ask before edge-case code: one AGENTS.md line ask-before-edge-case-codeThe agent codes for races that never happen: one line makes it state the risk and the odds, then wait for your OK.
Claude Code project instructions from your sessions instructions-from-your-sessionsBackground you re-explain every new session: pulled from your last 20 sessions and written up as project instructions.
~/.codex and ~/.claude sorted before cleanup codex-and-claude-sortedA cleanup that could delete your chats: items sorted Keep, History, Work, Clearable or Unknown, each command approved by you.
Mod ideas from your last 20 sessions mod-ideas-from-20-sessionsRequests you repeat, commands you stop or undo, how you check changes: ranked by how much each would help, your words quoted.
/teach: strategic programming on your project teach-strategic-programmingSpend tokens learning what AI can't replace: 3 questions about your codebase, then MISSION.md, a curriculum and lessons on it.
Bug-fix loop rules for CLAUDE.md or AGENTS.md bug-fix-loop-rulesAgents that both fix and review can't stop going back and forth: stop after two failed fixes, review only this round's changes.
ub-mode: the Clean Code author's agent rules ub-mode-clean-code-agent-rulesYour agent's code hides bugs and its tests fool you: a skill it follows on every change, with crapper, dryer and mutator checks.
Outdated CLAUDE.md and AGENTS.md review outdated-claude-md-reviewAgents follow an outdated CLAUDE.md over your code: its old instructions identified, and a rule that puts code first.
Repeat mistakes as helpers and lint rules repeat-mistakes-as-lint-rulesThe agent keeps making one mistake: the right way in a helper, the old way banned by lint, an error that names the helper to use.
Situation routing rules for skills situation-routing-for-skillsYour agent often forgets to use what you install, so you call each by name: the best fit per task, with one line on which and why.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Codebase Tips làm được gì?

Codebase · 29 tips: repo index and map, coding principles, AGENTS.md, scope rules.

Vì sao nên dùng Codebase Tips trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Codebase Tips là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Codebase Tips trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/copybook-zh/skills/codebase-tips. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Codebase Tips?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Codebase Tips với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Codebase Tips với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Codebase Tips có miễn phí không?

Có. Kỹ năng này được Heyvhuang phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇