dependency-analysis
它能做什么
这个工具可以帮你了解软件项目中不同部分之间是如何关联的。它会显示哪些模块、包或文件彼此依赖。
适用场景
- ✓当你想知道哪些代码会调用某个函数时。
- ✓当你需要查看某个模块的全部依赖项时。
- ✓当你想找出组件之间的循环依赖关系时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dependency-analysis/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“哪些模块依赖于 'authentication' 模块?”
每周 5 个新技能,1 分钟读完。
工作原理
工具会使用一种名为 Ontoly 的技术来分析关联关系。它会检查依赖项和被依赖项,还能找出循环依赖。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
Dependency Analysis
Use this skill when the user asks for dependency analysis using Ontoly evidence.
Required Workflow
Follow [the shared Ontoly workflow. Also read [graph evidence rules, [MCP usage, [best practices, and [fallback rules when the task requires detail.
Ontoly Capabilities
Use these capabilities first: FindDependencies, FindDependents, FindCycles, GraphStatistics, EvidencePack.
Output Contract
Return:
- answer or plan
- capabilities invoked
- graph evidence with node ids, edge types, source spans, and graph hash when available
- confidence: high, medium, or low
- fallback reason if repository files were inspected
Boundaries
Do not implement compiler, query, MCP, SDK, or business logic in the skill. Do not search repository files until Ontoly cannot answer or evidence must be confirmed.
Resources
- [Examples
- [Prompt template
- [Capability notes
Learn more
- Documentation: https://ontoly.xyz/docs
- This skill on the web: https://ontoly.xyz/skills#dependency-analysis
- All Ontoly Agent Skills: https://ontoly.xyz/skills
- Install via skills.sh: https://www.skills.sh/?q=0xsarwagya/ontoly
Examples
User: Apply this skill to my current task.
Assistant: Follow the workflow in this skill, cite limitations, and ask before risky steps.
Limitations
- Imported upstream skill; verify credentials, permissions, and safety boundaries before execution.
- Does not replace environment-specific validation, testing, or maintainer review.
常见问题
什么是 Ontoly?
Ontoly 是一种用于分析软件项目中各种关系和依赖关系的技术。
什么是依赖关系?
依赖关系是指软件的某一部分需要依靠另一部分才能正常工作。
什么是循环依赖?
当两个或更多部分的软件相互依赖,形成闭环时,就称为循环依赖,这种情况可能会带来问题。
详情
作者的原始描述
Analyze internal and package dependencies using Ontoly graph traversal. Use when asked which modules, packages, services, or files depend on each other.
热度
- GitHub 星标
- 48k
- 排名
- #4367
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。