Agent Skillsmtarcure/claude-vibe-squad › cross-file-relationship-synthesis

cross-file-relationship-synthesis

GitHub

构建跨文件调用、导入及数据流向的有向关系图,定位切点、爆炸半径和孤立节点。用于在代码重构或分析时建立精确依赖映射,确保结论基于追踪路径而非模糊印象。

.claude/skills/cross-file-relationship-synthesis/SKILL.md mtarcure/claude-vibe-squad

Trigger Scenarios

需要理解多个文件间的控制流或数据流关系 评估代码变更的影响范围 重构前梳理复杂依赖结构

Install

npx skills add mtarcure/claude-vibe-squad --skill cross-file-relationship-synthesis -g -y
More Options

Non-standard path

npx skills add https://github.com/mtarcure/claude-vibe-squad/tree/main/.claude/skills/cross-file-relationship-synthesis -g -y

Use without installing

npx skills use mtarcure/claude-vibe-squad@cross-file-relationship-synthesis

指定 Agent (Claude Code)

npx skills add mtarcure/claude-vibe-squad --skill cross-file-relationship-synthesis -a claude-code -g -y

安装 repo 全部 skill

npx skills add mtarcure/claude-vibe-squad --all -g -y

预览 repo 内 skill

npx skills add mtarcure/claude-vibe-squad --list

SKILL.md

Frontmatter
{
    "name": "cross-file-relationship-synthesis",
    "audience": "specialist",
    "description": "Use when several files have been read independently but a conclusion depends on how control or data crosses them: build a typed, directed, line-anchored map of calls, imports, producer-consumer and config edges; identify cut points, blast radius, orphans, and traversal-backed conclusions. It maps arbitrary repository relationships; it does not settle privacy compliance or prescribe graph surgery."
}

Cross-File Relationship Synthesis

Turn a set of independently-read files into an explicit relationship map, so conclusions rest on traced edges rather than on the impression that the files are related.

Steps

  1. List the files in scope and give each a one-line role. A file whose role you cannot state in one line has not been understood well enough to relate to others.
  2. Name the edge kinds you will trace before tracing them — calls, imports, writes-then-reads, schema producer/consumer, config-to-consumer, generator-to-generated. Untyped "related to" edges hide the actual dependency.
  3. Trace each edge in the direction data or control actually flows, and record the file and line at both ends. An edge without two anchors is a hypothesis.
  4. Distinguish edges you observed from edges you inferred from naming. Matching names are a lead to verify, never an edge.
  5. Look specifically for the edges that contradict the obvious structure: the secondary writer, the path that bypasses the abstraction, the consumer nobody registered. These decide correctness more often than the primary path does.
  6. Identify the cut points — files whose change propagates furthest — and state the blast radius of each as a concrete list of affected files.
  7. Check the map for orphans and dead ends, and resolve each: either an edge is missing from the map, or the file genuinely is unreachable. Never leave the ambiguity unexplained.
  8. State the conclusion as a traversal over the map, so a reader can follow the same path and reach the same result.

Acceptance

  • Every file in scope has a stated one-line role.
  • Every edge is typed, directed, and anchored at both ends with file and line.
  • Observed edges and name-inferred edges are visibly separated.
  • Cut points are named with an explicit blast-radius file list.
  • Orphans and dead ends are each resolved as missing-edge or genuinely-unreachable.
  • The final claim is expressed as a walk over recorded edges, not as a summary impression.

Version History

  • d5262e2 Current 2026-09-11 11:47

Same Skill Collection

.agents/skills/accessible-media-authoring/SKILL.md
.agents/skills/agent-prompt-engineering/SKILL.md
.agents/skills/agentic-safety-audit/SKILL.md
.agents/skills/audio-event-map-authoring/SKILL.md
.agents/skills/auto-scaffold/SKILL.md
.agents/skills/claim-verification/SKILL.md
.agents/skills/code-reachability-audit/SKILL.md
.agents/skills/code-review-loop/SKILL.md
.agents/skills/color-theory/SKILL.md
.agents/skills/conversation-design/SKILL.md
.agents/skills/copy-refinement/SKILL.md
.agents/skills/cross-file-relationship-synthesis/SKILL.md
.agents/skills/dependency-cycle-audit/SKILL.md
.agents/skills/dependency-health-triage/SKILL.md
.agents/skills/detection-as-code/SKILL.md
.agents/skills/diff-aware-semgrep-scan/SKILL.md
.agents/skills/differential-review/SKILL.md
.agents/skills/dimensional-analysis-check/SKILL.md
.agents/skills/dual-level-retrieval/SKILL.md
.agents/skills/figma-implement-design/SKILL.md
.agents/skills/forensic-timeline-authoring/SKILL.md
.agents/skills/game-design-fundamentals/SKILL.md
.agents/skills/game-mechanics-balancing/SKILL.md
.agents/skills/head-tail/SKILL.md
.agents/skills/incident-response-runbook/SKILL.md
.agents/skills/interactive-audio-design/SKILL.md
.agents/skills/interface-ambiguity-check/SKILL.md
.agents/skills/keyword-clustering/SKILL.md
.agents/skills/knowledge-base-integration/SKILL.md
.agents/skills/layered-analysis-loop/SKILL.md
.agents/skills/level-design-patterns/SKILL.md
.agents/skills/locale-adaptation/SKILL.md
.agents/skills/narrative-structure/SKILL.md
.agents/skills/platform-compliance/SKILL.md
.agents/skills/player-engagement-psychology/SKILL.md
.agents/skills/requirements-elicitation/SKILL.md
.agents/skills/rule6-rights-gate/SKILL.md
.agents/skills/rule8-truth-gate/SKILL.md
.agents/skills/sandbox-provision-discipline/SKILL.md
.agents/skills/scope-decomposition/SKILL.md
.agents/skills/scope-estimation/SKILL.md
.agents/skills/security-ownership-map/SKILL.md
.agents/skills/security-threat-model/SKILL.md
.agents/skills/semgrep-rule-author/SKILL.md
.agents/skills/skill-description-trigger-authoring/SKILL.md
.agents/skills/sound-design-principles/SKILL.md
.agents/skills/structured-data-authoring/SKILL.md
.agents/skills/supply-chain-audit/SKILL.md
.agents/skills/take-over-resume/SKILL.md
.agents/skills/technical-seo-audit/SKILL.md

Metadata

Files
0
Version
d5262e2
Hash
6432a3b9
Indexed
2026-09-11 11:47

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-15 19:35
浙ICP备14020137号-1 $bản đồ khách truy cập$