بنقرة واحدة
codebase-brain
Codebase second brain workflow for AI agents — use repo maps and capability maps before deep code reads
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Codebase second brain workflow for AI agents — use repo maps and capability maps before deep code reads
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Backend testing guide — unit, integration, API contract, database, load testing
Backend development guide — API design, data modeling, business logic, security, performance
Multi-agent coordination skill — task decomposition, dependency tracking, handoff protocol, conflict resolution
Frontend development guide — UI implementation, component architecture, state management, performance
Frontend testing guide — unit, integration, visual regression, accessibility, E2E for UI
Project management skill — sprint planning, backlog grooming, risk management, reporting, stakeholder communication
| name | codebase-brain |
| version | 1.0.0 |
| description | Codebase second brain workflow for AI agents — use repo maps and capability maps before deep code reads |
| requires | [] |
| task_types | ["feature-implementation","bug-fix","refactoring","api-design"] |
| applies_to_tags | ["codebase-brain","backend","frontend","api"] |
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.
Ngay khi nhận task:
POST /api/agent/search-docs với projectId của task.types: repo-map, capability-map, runbook, adr.Ví dụ payload:
{
"query": "approval flow",
"projectId": "project-relayhq-aa6d7e",
"types": ["repo-map", "capability-map", "runbook", "adr"],
"agent_id": "agent-claude-code"
}
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.capability-map trước.repo-map trước.runbook.adr trước khi sửa.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: