yugasun/aiops · Archived

code-graph

Build and query a persistent code graph for the target project. Uses graphify (Tree-sitter + Louvain clustering) for deterministic structural extraction, then the model adds semantic annotations. Use when the user says build graph, code graph, dependency graph, impact analysis, or when other skills need structured code understanding before proceeding.

First seen Jul 5, 2026

Installation

$ npx skills add yugasun/aiops --skill code-graph

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from yugasun/aiops · top by installs.

npx skills add yugasun/aiops

Browse all from yugasun/aiops

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
License LICENSE
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,287 B
  • docs SUMMARY.md 371 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Code Graph

Build, query, and incrementally update a persistent knowledge graph for the target project. Infrastructure — other skills consume it via query; Flow Conductor checks freshness on session start.

Two-tier extraction

Tier Tool Role
Structural graphify AST nodes, edges, communities, confidence — deterministic
Semantic Model Purpose, depth, impact — contextual

graphify parses; the model annotates. Never replace graphify structural data with grep guesses.

Prerequisites

[prerequisites.md](prerequisites.md) — install graphifyy via uv/pipx/pip. Non-blocking if user declines.

Storage

Path Source Purpose
graphify-out/graph.json graphify Structural graph
.scratch/graph/annotations.json Model Semantic layer

Do not copy graph.json into .scratch/. Schema: [graph-schema.md](graph-schema.md).

Operations

Detailed steps: [build-steps.md](build-steps.md).

  • /code-graph build — full scan + semantic annotation
  • /code-graph query <subcommand> — read-only; patterns in [query-patterns.md](query-patterns.md)
  • /code-graph update — incremental via graphify cache

Constraints

  • graphify is the structural backbone — no grep-based dependency guessing
  • Model adds semantic layer only; never override graphify edges
  • Prefer update over build when graph exists
  • Non-blocking on graphify failure — warn and continue
  • Confidence-aware: EXTRACTED (1.0) vs INFERRED (0.5) vs AMBIGUOUS (0.2)

Flow Conductor

aiops-graph.js hook suggests /code-graph build when stale. Architecture health runs graph_build phase first (phases.py) — build when missing/stale, skip when fresh, user may decline (organic fallback in /improve-codebase-architecture).