codebase-brain
Codebase second brain workflow for AI agents — use repo maps and capability maps before deep code reads
Skill by amas-nghia
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/amas-nghia-codebase-brain
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.
About
Use cases: productivity
Reviews
Write a reviewNo 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/codebase-brain
What's inside
- Skill name
codebase-brain- Description
- Codebase second brain workflow for AI agents — use repo maps and capability maps before deep code reads
- License
- MIT
- Instructions
- 60 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "codebase-brain" does not match folder "skill-codebase-brain"
Files (2)
- SKILL.md
- package.json
SKILL.md (first lines)
# Codebase Brain Skill
## Mục tiêu
Giúp agent giảm thời gian re-discovery trong codebase bằng cách dùng codebase brain docs trước khi đọc sâu vào code.
## Quy trình mặc định
### Bước 1: Search repo-map và capability-map trước khi đọc code
Ngay khi nhận task:
1. Gọi `POST /api/agent/search-docs` với `projectId` của task.
2. Ưu tiên `types`: `repo-map`, `capability-map`, `runbook`, `adr`.
3. Chỉ sau khi đã đọc các doc liên quan mới bắt đầu search code hoặc mở file lớn.
Ví dụ payload:
```json
{
"query": "approval flow",
"projectId": "project-relayhq-aa6d7e",
"types": ["repo-map", "capability-map", "runbook", "adr"],
"agent_id": "agent-claude-code"
}
```
## Cách dùng codebase brain docs
- `repo-map`: hiểu cấu trúc thư mục, entrypoints, source of truth.
- `capability-map`: hiểu một luồng tính năng đi qua những route, service, store, component hoặc test nào.
- `runbook`: hiểu các bước thao tác hoặc debug flow.
- `adr`: hiểu vì sao kiến trúc hiện tại được chọn.
## Khi nào cần search gì
- Nếu task nói về một feature hoặc workflow: search `capability-map` trước.
- Nếu task nói về một module hoặc codebase chưa quen: search `repo-map` trước.
- Nếu task chạm behavior vận hành hoặc quy trình: search `runbook`.
- Nếu task có vẻ đi ngược kiến trúc hiện tại: search `adr` trước khi sửa.
## Sau khi sửa code
Khi thay đổi làm dịch chuyển hiểu biết về codebase, agent phải cập nhật hoặc tạo docs liên quan.
Nên update docs khi:
- xuất hiện file source of truth mới
- luồng capability đổi đường đi
- checklist thay đổi feature đã khác trước
- có quyết định kiến trúc mới hoặc rule mới đáng tái sử dụng
## Nguyên tắc thực thi
- Dùng docs để định hướng.
- Dùng code search để khoanh vùng.
- Chỉ đọc file đích sau khi đã có bản đồ.
- Nếu phát hiện doc sai hoặc cũ, sửa doc như một phần của task hoặc tạo follow-up rõ ràng.From amas-nghia/relayhq, MIT.
More from amas-nghia/relayhq
- 0.497score
tech-writing
amas-nghia
Technical writing and documentation skill — specs, runbooks, changelogs, meeting notes, ADRs
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
frontend-testing
amas-nghia
Frontend testing guide — unit, integration, visual regression, accessibility, E2E for UI
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
backend-dev
amas-nghia
Backend development guide — API design, data modeling, business logic, security, performance
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
frontend-dev
amas-nghia
Frontend development guide — UI implementation, component architecture, state management, performance
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
project-management
amas-nghia
Project management skill — sprint planning, backlog grooming, risk management, reporting, stakeholder communication
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
backend-testing
amas-nghia
Backend testing guide — unit, integration, API contract, database, load testing
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
coordination
amas-nghia
Multi-agent coordination skill — task decomposition, dependency tracking, handoff protocol, conflict resolution
SkillCFreshness: C★ 2Claude Code +9 - 0.424score
bug-fix
amas-nghia
Root cause analysis and fix guide for bug tasks
SkillDFreshness: D★ 2Claude Code +9 - 0.424score
code-review
amas-nghia
Systematic code review guide for AI agents
SkillDFreshness: D★ 2Claude Code +9 - 0.424score
documentation
amas-nghia
Documentation writing guide for AI agents
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 5, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/amas-nghia/relayhq
- Website
- amas.gitbook.io/relayhq
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from amas-nghia
- 0.497score
tech-writing
amas-nghia
Technical writing and documentation skill — specs, runbooks, changelogs, meeting notes, ADRs
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
frontend-testing
amas-nghia
Frontend testing guide — unit, integration, visual regression, accessibility, E2E for UI
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
backend-dev
amas-nghia
Backend development guide — API design, data modeling, business logic, security, performance
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
frontend-dev
amas-nghia
Frontend development guide — UI implementation, component architecture, state management, performance
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
project-management
amas-nghia
Project management skill — sprint planning, backlog grooming, risk management, reporting, stakeholder communication
SkillCFreshness: C★ 2Claude Code +9 - 0.497score
backend-testing
amas-nghia
Backend testing guide — unit, integration, API contract, database, load testing
SkillCFreshness: C★ 2Claude Code +9
Cite this page
codebase-brain skill. Agent Mart. https://agentmart.dev/skills/amas-nghia-codebase-brain (last updated 2026-10-24)