Agent Skillsmindfold-ai/Trellis › gitnexus-exploring

gitnexus-exploring

GitHub

用于探索和理解代码库架构、执行流程及组件关系,帮助用户快速掌握陌生代码逻辑。

.claude/skills/gitnexus/gitnexus-exploring/SKILL.md mindfold-ai/Trellis

Trigger Scenarios

询问代码工作原理 追溯执行流程 了解项目结构

Install

npx skills add mindfold-ai/Trellis --skill gitnexus-exploring -g -y
More Options

Non-standard path

npx skills add https://github.com/mindfold-ai/Trellis/tree/main/.claude/skills/gitnexus/gitnexus-exploring -g -y

Use without installing

npx skills use mindfold-ai/Trellis@gitnexus-exploring

指定 Agent (Claude Code)

npx skills add mindfold-ai/Trellis --skill gitnexus-exploring -a claude-code -g -y

安装 repo 全部 skill

npx skills add mindfold-ai/Trellis --all -g -y

预览 repo 内 skill

npx skills add mindfold-ai/Trellis --list

SKILL.md

Frontmatter
{
    "name": "gitnexus-exploring",
    "description": "Use when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar parts of the codebase. Examples: \"How does X work?\", \"What calls this function?\", \"Show me the auth flow\""
}

Exploring Codebases with GitNexus

When to Use

  • "How does authentication work?"
  • "What's the project structure?"
  • "Show me the main components"
  • "Where is the database logic?"
  • Understanding code you haven't seen before

Workflow

1. READ gitnexus://repos                          → Discover indexed repos
2. READ gitnexus://repo/{name}/context             → Codebase overview, check staleness
3. query({query: "<what you want to understand>"})  → Find related execution flows
4. context({name: "<symbol>"})            → Deep dive on specific symbol
5. READ gitnexus://repo/{name}/process/{name}      → Trace full execution flow

If step 2 says "Index is stale" → run node .gitnexus/run.cjs analyze in terminal.

Checklist

- [ ] READ gitnexus://repo/{name}/context
- [ ] query for the concept you want to understand
- [ ] Review returned processes (execution flows)
- [ ] context on key symbols for callers/callees
- [ ] READ process resource for full execution traces
- [ ] Read source files for implementation details

Resources

Resource What you get
gitnexus://repo/{name}/context Stats, staleness warning (~150 tokens)
gitnexus://repo/{name}/clusters All functional areas with cohesion scores (~300 tokens)
gitnexus://repo/{name}/cluster/{name} Area members with file paths (~500 tokens)
gitnexus://repo/{name}/process/{name} Step-by-step execution trace (~200 tokens)

Tools

query — find execution flows related to a concept:

query({query: "payment processing"})
→ Processes: CheckoutFlow, RefundFlow, WebhookHandler
→ Symbols grouped by flow with file locations

context — 360-degree view of a symbol:

context({name: "validateUser"})
→ Incoming calls: loginHandler, apiMiddleware
→ Outgoing calls: checkToken, getUserById
→ Processes: LoginFlow (step 2/5), TokenRefresh (step 1/3)

Example: "How does payment processing work?"

1. READ gitnexus://repo/my-app/context       → 918 symbols, 45 processes
2. query({query: "payment processing"})
   → CheckoutFlow: processPayment → validateCard → chargeStripe
   → RefundFlow: initiateRefund → calculateRefund → processRefund
3. context({name: "processPayment"})
   → Incoming: checkoutHandler, webhookHandler
   → Outgoing: validateCard, chargeStripe, saveTransaction
4. Read src/payments/processor.ts for implementation details

Version History

  • 0e0f1f6 Current 2026-08-20 08:08

Same Skill Collection

.agents/skills/python-design/SKILL.md
.agents/skills/trellis-before-dev/SKILL.md
.agents/skills/trellis-brainstorm/SKILL.md
.agents/skills/trellis-break-loop/SKILL.md
.agents/skills/trellis-channel/SKILL.md
.agents/skills/trellis-check/SKILL.md
.agents/skills/trellis-continue/SKILL.md
.agents/skills/trellis-finish-work/SKILL.md
.agents/skills/trellis-spec-bootstrap/SKILL.md
.agents/skills/trellis-start/SKILL.md
.agents/skills/trellis-update-spec/SKILL.md
.claude/skills/gitnexus/gitnexus-cli/SKILL.md
.claude/skills/gitnexus/gitnexus-debugging/SKILL.md
.claude/skills/gitnexus/gitnexus-guide/SKILL.md
.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md
.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md
.claude/skills/python-design/SKILL.md
.claude/skills/trellis-before-dev/SKILL.md
.claude/skills/trellis-brainstorm/SKILL.md
.claude/skills/trellis-break-loop/SKILL.md
.claude/skills/trellis-channel/SKILL.md
.claude/skills/trellis-check/SKILL.md
.claude/skills/trellis-spec-bootstrap/SKILL.md
.claude/skills/trellis-update-spec/SKILL.md
.codex/skills/create-manifest/SKILL.md
.cursor/skills/trellis-before-dev/SKILL.md
.cursor/skills/trellis-brainstorm/SKILL.md
.cursor/skills/trellis-break-loop/SKILL.md
.cursor/skills/trellis-channel/SKILL.md
.cursor/skills/trellis-check/SKILL.md
.cursor/skills/trellis-spec-bootstrap/SKILL.md
.cursor/skills/trellis-update-spec/SKILL.md
.omp/skills/trellis-before-dev/SKILL.md
.omp/skills/trellis-brainstorm/SKILL.md
.omp/skills/trellis-break-loop/SKILL.md
.omp/skills/trellis-check/SKILL.md
.omp/skills/trellis-spec-bootstrap/SKILL.md
.omp/skills/trellis-update-spec/SKILL.md
.opencode/skills/trellis-before-dev/SKILL.md
.opencode/skills/trellis-brainstorm/SKILL.md
.opencode/skills/trellis-break-loop/SKILL.md
.opencode/skills/trellis-channel/SKILL.md
.opencode/skills/trellis-check/SKILL.md
.opencode/skills/trellis-spec-bootstrap/SKILL.md
.opencode/skills/trellis-update-spec/SKILL.md
.pi/skills/trellis-before-dev/SKILL.md
.pi/skills/trellis-brainstorm/SKILL.md
.pi/skills/trellis-break-loop/SKILL.md
.pi/skills/trellis-channel/SKILL.md

Metadata

Files
0
Version
0e0f1f6
Hash
72eaf940
Indexed
2026-08-20 08:08

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 22:37
浙ICP备14020137号-1 $방문자$