2 0xsarwagya

dead-code-analysis Skill

利用 Ontoly 的死代码和入口点能力找出可能未使用的函数、方法、服务、路由或功能。当被询问哪些代码看起来不可达或可安全删除时使用。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Dead Code Analysis

Use this skill when the user asks for dead code 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: FindDeadCode, FindUnusedFeature, FindEntrypoints, FindDependents, 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

Learn more

  • Documentation: https://ontoly.xyz/docs
  • This skill on the web: https://ontoly.xyz/skills#dead-code-analysis
  • All Ontoly Agent Skills: https://ontoly.xyz/skills
  • Install via skills.sh: https://www.skills.sh/?q=0xsarwagya/ontoly