一键导入
repo-intelligence
Build and query repository understanding for context-aware work
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and query repository understanding for context-aware work
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review pull requests for code quality, security, and correctness
Review pull requests for code quality, security, and correctness
End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete.
Periodic cross-agent learning consolidation — review what worked, what didn't, propagate insights
Break down complex problems through structured analytical frameworks
Persist and recall context across sessions — critical for continuity
| name | repo-intelligence |
| version | 1.0.0 |
| description | Build and query repository understanding for context-aware work |
| uses | ["core/repo-indexing"] |
| requires | {"tools":[],"env":[]} |
| security | {"risk_level":"read","capabilities":["repo:read"],"requires_approval":false} |
Build deep understanding of a repository through accumulated experience. This knowledge persists across sessions, enabling increasingly informed work — better reviews, better implementations, and faster onboarding.
This is a builtin skill (handler: type: builtin). When query_repo_context is invoked, the executor reads from accumulated intelligence files in the agent's memory directory (patterns, conventions, known issues, file relationships, review trajectories). The tool schema in tool.yaml defines the external contract; the executor handles the retrieval directly.
On first encounter with a repository, analyze:
Store structured intelligence in agent memory:
| File | Content |
|---|---|
repo_context.yaml | Language, frameworks, patterns, conventions |
file_relationships.yaml | Dependency and test mappings |
known_issues.yaml | Persistent list of known problems |
conventions.yaml | Coding style and project conventions |
trajectories/ | Review history per PR/task |
Before starting any work, load relevant context:
After completing work, update intelligence:
repo_context.yamlknown_issues.yamltrajectories/conventions.yamlIntelligence improves with each session:
| Sessions | Knowledge Level |
|---|---|
| 1 | Basic tech stack detection |
| 2–3 | Pattern recognition, testing conventions |
| 5+ | Known issues library, common pitfalls |
| 10+ | Deep file relationship map |
| 20+ | Comprehensive codebase understanding |
## Repository Intelligence
### Repository Context
- Language: [language]
- Frameworks: [list]
- Test framework: [framework]
- Code style: [conventions]
### Known Issues (relevant to query)
| # | Severity | Issue | Location | Status |
|---|----------|-------|----------|--------|
| 1 | [level] | [description] | [file:line] | [open/resolved] |
### File Relationships
- [file] → test: [test file]
- [file] → depends on: [dependencies]
- [file] → depended on by: [dependents]
### Review History
- [PR/task]: [verdict] — [key findings]
Repository intelligence is complete when: