Skip to content
Skillpedia
General coding9.0k · #12314

ontoly-software-graph

What it does

This skill lets an AI agent answer questions about how a software project is built, using a prebuilt map of its code. It is for developers reviewing architecture or planning changes.

When to use it

  • ✓When you want to understand how a software project is structured.
  • ✓When you need to trace how a request moves through the code.
  • ✓When you plan a refactor and want to see what it might affect.

Skill link

https://github.com/anbeime/skill/blob/main/skills/ontoly-software-graph/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/anbeime/skill/blob/main/skills/ontoly-software-graph/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Using the code map, show me which services depend on the payments module before I refactor it.”

5 new skills a week. 1 minute to read.

How it works

It checks for an existing Ontoly graph, uses its tools to answer questions with cited evidence, and searches source files only when the graph cannot help.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Ontoly Software Graph

Use this skill when a coding agent needs evidence-backed software understanding from an Ontoly graph before searching repository files directly.

When to Use

  • Explaining a repository architecture
  • Tracing a request, route, controller, service, or dependency path
  • Finding owners of services, modules, routes, configuration, or environment variables
  • Reviewing dependency impact before a refactor
  • Auditing dead code, cycles, unresolved imports, graph quality, or semantic coverage
  • Preparing documentation, onboarding notes, or architecture review from graph evidence

Required Workflow

  1. Check whether an Ontoly graph already exists by looking for .ontoly/, SoftwareGraph.json, diagnostics.json, validation reports, or an Ontoly MCP configuration.

  2. If no graph exists and the user permits local analysis, run:

    ontoly build .
    
  3. Inspect graph health before answering: diagnostics, graph hash, semantic coverage, trust or quality score, framework detection, and generation timestamp.

  4. Prefer Ontoly CLI or MCP capabilities for graph questions instead of scanning source files first.

  5. Use repository search only when Ontoly cannot answer, the graph is stale, the graph is incomplete, or the user explicitly asks for source-level verification.

  6. Always cite graph evidence in the answer: node IDs, edge types, file paths, source locations, diagnostics, or framework analyzer output.

  7. State confidence from graph evidence. Do not guess confidence.

Useful Ontoly Capabilities

  • ExplainArchitecture for repository and package topology
  • FindDependencies for dependency trees and direct consumers
  • ImpactAnalysis for refactor blast radius
  • TraceExecution for request, route, and call-flow tracing
  • FindConfigurationUsage for configuration and environment variable usage
  • FrameworkReport for detected framework concepts such as modules, controllers, providers, and routes
  • FindDeadCode for unreachable or unused graph regions

Answer Shape

When answering, include:

  • the direct answer
  • graph evidence
  • confidence
  • diagnostics or caveats
  • fallback source inspection only if needed

Example:

AuthController handles authentication.

Evidence:
- node: class:src/auth/auth.controller.ts:AuthController
- route edges: HANDLES POST /login, POST /logout
- dependency edges: USES AuthService, JwtService

Confidence: high, because the graph has controller, route, and dependency edges with source locations.

Fallback Rules

  • If the graph is missing, build it first when allowed.
  • If graph validation fails, report the failure and use source search only to verify the affected area.
  • If multiple nodes match the same name, ask for disambiguation or show the candidates with package/module context.
  • If the requested concept is not in the graph, return NOT_FOUND with the closest graph evidence instead of inventing an answer.
FAQ

What if I do not have a graph yet?

If you allow it, the skill can build one locally with the ontoly command.

Will the answers point to real code?

Yes, the skill asks the agent to cite node IDs, connection types and file paths from the graph.

Can it find unused code?

Yes, it covers audits of dead code, dependency cycles and unresolved imports.

Details

Original description by the author

Use Ontoly's deterministic Software Graph and MCP capabilities for architecture review, request tracing, dependency analysis, configuration lookup, and impact analysis before falling back to source-file search.

repo: anbeime/skill

Popularity

GitHub stars
9.0k
Ranking position
#12314
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills