一键导入
brief
Load explore-repo scan artifacts into context and produce a concise repository brief for Q&A.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Load explore-repo scan artifacts into context and produce a concise repository brief for Q&A.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Capture session learnings and save to skills, guidelines, or reference docs under ~/.claude/.
Orchestrate parallel claude -p sessions — bootstrap, launch, monitor, and converge. Works with any skill that produces manifest.json, item directories, and a runner script.
Create a request (pull request or merge request) or update an existing one following project conventions.
Resolve merge or rebase conflicts between branches.
Assess open PRs with unaddressed review comments and generate a parallel addressing script — produces manifest.json and let-it-rip.sh for address-request-comments execution.
Assess open work items and generate a parallel execution script — produces manifest.json and let-it-rip.sh for implement/clarify execution.
| name | brief |
| description | Load explore-repo scan artifacts into context and produce a concise repository brief for Q&A. |
Load scan artifacts produced by /explore-repo and produce a concise synthesis. After the brief, the agent is ready for follow-up Q&A about the repository.
/explore-repo:brief - Brief the current repo's scan (default: docs/explore-repo/)/explore-repo:brief <path> - Brief scan artifacts at a custom pathDetermine whether a usable scan exists.
Resolve artifact path:
$ARGUMENTS is provided, use it as the artifact directorydocs/explore-repo/ in the current working directoryGlob for all expected files (run in parallel):
<path>/structure.md<path>/api-surface.md<path>/data-model.md<path>/integrations.md<path>/processing-flows.md<path>/config-ops.md<path>/testing.md<path>/SYSTEM_OVERVIEW.md<path>/inconsistencies.mdClassify scan state and gate on SYSTEM_OVERVIEW.md:
| Condition | Action |
|---|---|
| No files found at all | Error: "No scan artifacts found. Run /explore-repo first to scan this repository." Stop. |
| Some domain files but no SYSTEM_OVERVIEW.md | Error: "Scan artifacts found (N/7 domains) but no synthesis yet. Run /explore-repo to complete the scan and generate SYSTEM_OVERVIEW.md." Stop. |
| All 7 domain files but no SYSTEM_OVERVIEW.md | Error: "Scan complete but not yet synthesized. Run /explore-repo again to generate SYSTEM_OVERVIEW.md." Stop. |
| SYSTEM_OVERVIEW.md exists | Continue to Phase 2 |
Check freshness:
commit, branch, and date fieldsgit rev-parse --short HEAD to get the current commitgit diff --name-only <scan-commit>..HEAD -- ':!<artifact-path>/' ':!**/CLAUDE.md'
where <artifact-path> is the artifact directory resolved in step 1 (e.g., docs/explore-repo).
Read files to build the context needed for the brief and Q&A.
## Key Findings section (i.e., until the next ## heading after Key Findings). This captures metadata + Overview + Key Findings regardless of section length. Full content will be lazy-loaded during Q&A when deeper detail is needed.Output the following to the conversation (do NOT write to a file):
# Repository Brief: <Project Name>
**Scan**: commit `<hash>` on `<branch>` at `<date>` [⚠️ stale — HEAD is `<current>`]
## Overview
<2-3 sentences from SYSTEM_OVERVIEW.md project summary>
## Architecture
<Key patterns from SYSTEM_OVERVIEW.md architecture section — component relationships, module dependency highlights>
## Domain Scan Summary
| Domain | Status | Highlights |
|--------|--------|------------|
| Structure | ✅ current / ⚠️ stale / ❌ missing | <1-line from Key Findings> |
| API Surface | ... | ... |
| Data Model | ... | ... |
| Integrations | ... | ... |
| Processing Flows | ... | ... |
| Config & Ops | ... | ... |
| Testing | ... | ... |
## Cross-Cutting Patterns
<Top 3-5 patterns from SYSTEM_OVERVIEW.md cross-cutting patterns section>
## Critical Path
<Top 3-5 files/docs from SYSTEM_OVERVIEW.md "Critical Path to Productivity" section>
## Documentation Health
<Gap counts by severity from SYSTEM_OVERVIEW.md documentation gaps section>
<Inconsistency counts from inconsistencies.md — omit this line if the file doesn't exist>
## 💡 Persona Suggestion
<Conditional — see Phase 4. Omit entire section if skipped.>
---
*Context loaded. Ask me anything about this repository.*
Domain status logic: For each domain file:
commit matches SYSTEM_OVERVIEW.md's commit → inherit overall scan freshness (✅ current or ⚠️ stale)commit differs from SYSTEM_OVERVIEW.md's commit (partial rescan) → run the same source diff check independently for that domain's commitIf any domains are missing or stale, add a note after the table: Run \/explore-repo` to update missing or stale domains.`
Stale scan line: Only include [⚠️ stale — HEAD is <current>] if the source diff check determined the scan is stale (meaningful source files changed). Omit it when the only changes since the scan commit are scan artifacts and CLAUDE.md files.
Changed files hint: When the scan is stale, append a collapsed summary after the Domain Scan Summary table showing the changed source files:
<details><summary>N source files changed since scan</summary>
- path/to/changed/file1.kt
- path/to/changed/file2.java
</details>
Skip this entire section if a /set-persona activation appears earlier in the conversation history (the agent knows from context whether a persona is already active).
If no persona is active:
.claude/personas/*.md~/.claude/commands/set-persona/*.md (exclude SKILL.md)java-backend). Do NOT read persona file contents for matching.A **<persona-name>** persona is available that matches this stack. Activate with \/set-persona `.`## 💡 Persona Suggestion section entirelyAfter outputting the brief, all core context is loaded. When the operator asks follow-up questions:
<filename> for details..."/set-persona activation. No state file needed.