using-cgx

A set of instructions for using CodeGraphX, a tool that maps relationships in a codebase. It guides an agent to understand code through symbols and dependencies instead of reading every file from start to finish.

In plain words
What is it for?
Use it to explore an unfamiliar repository, understand a function or variable's impact, and check whether a completed coding task is consistent with the rest of the project.
Why use it?
Large codebases are difficult to understand by scanning files manually. Relationship-focused queries can show what a change affects and reduce unnecessary reading.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/techcraze00/codegraphx/cgx
Any agent
npx skills add techcraze00/CodeGraphX --skill cgx
Clone the repo
git clone --depth 1 https://github.com/techcraze00/CodeGraphX

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.00482
Opus 5 $0.00015 $0.00241
Sonnet 5 $0.00006 $0.00096
Haiku 4.5 $0.00003 $0.00048

Measured 2d ago against content hash ed5101597cdc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

using-cgx scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/superpowers/skills/cgx/SKILL.md · 40 lines

What it actually says

CodeGraphX (CGX) Intelligence Skill

You have access to the CodeGraphX MCP server (cgx-mcp), a deterministic semantic graph engine. Your goal is to minimize token usage and hallucination by relying on high-level, outcome-oriented tools.

The Prime Directives

  1. Prefer Outcomes over Granularity. Use explain_impact instead of manually tracing symbols. Use verify_task instead of manual diff analysis.
  2. Never read entire files blindly. Use list_files to orient yourself, then explain_impact to understand a symbol's role.
  3. Always verify tasks. When a task is claimed to be complete, run verify_task to get an automated status report.

Workflow

1. Global Orientation

At the start of a session or when exploring a new repo:

  • RUN get_graph_status to see if a graph exists.
  • If not initialized, suggest the user run codegraphx scan.
  • RUN codegraphx://file-index (resource) to get a list of all files.

2. Deep Understanding & Blast Radius

When asked about a function, class, or variable, or the effect of changing it:

  • RUN explain_impact(symbol_name: "...")
  • This provides:
    • used_by_upstream: What this symbol depends on.
    • breaks_downstream: What depends on this symbol (the blast radius).
  • Use this information to pinpoint exactly which files need to be read or modified.

3. Automated Task Verification

When a task is claimed to be complete or you need to check progress:

  • RUN verify_task(task_description: "...", commit_hash: "...")
  • Analyze the status, changes, and untested_additions fields.
  • If untested_additions is true, remind the user to add tests for their changes.

4. Search

  • Use check_symbol_exists(name: "...") for instant verification if a symbol exists before attempting deeper analysis.
  • Use list_files(filter: "...") to find files by path substring.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 40 lines · 29 tokens per session scan A ed5101597cdc

Subscribe to this mod's changes

using-cgx is a skill published in the GitHub repository techcraze00/CodeGraphX (3 stars, last pushed 12d ago), licensed MIT. It adds 29 tokens to every session and 482 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

spec-kitty-charter-doctrine

Run charter interview, generation, context, and sync workflows for project governance in Spec Kitty 3.x. Access doctrine artifacts programmatically via DoctrineService. Resolve agent profiles. Load action-scoped governance context iteratively, not all at once. Triggers: "interview for charter", "generate charter"…

Priivacy-ai/spec-kitty · 135 tokens

superlint

This skill describes the mandatory standard operating procedure for using our internal SuperLint tool. Use this when tasks require fixing code quality issues according to corporate standards.

mgechev/skillgrade · 0 tokens

neo4j-document-import-skill

Ingests unstructured and semi-structured documents into Neo4j as a knowledge graph. Use when chunking PDFs, HTML, plain text, or Markdown; extracting entities and relationships from text with an LLM (SimpleKGPipeline, neo4j-graphrag); loading JSON via apoc.load.json; building Document→Chunk→Entity graph structures; or…

neo4j-contrib/neo4j-skills · 187 tokens

neo4j-modeling-skill

Design, review, and refactor Neo4j graph data models. Use when choosing node labels vs relationship types vs properties, migrating relational/document schemas to graph, detecting anti-patterns (generic labels, supernodes, missing constraints), designing intermediate nodes for n-ary relationships, enforcing schema with…

neo4j-contrib/neo4j-skills · 152 tokens

lov-env-management

统一管理平台、账号与多组 API Key,维护有效期和启用状态,安全同步到 zsh 或用户会话环境,并提供脱敏 Dashboard;用户说“管理环境变量”“rotate API keys”时使用。.

lovstudio/skills · 53 tokens

lov-deploy-to-vercel

Deploy frontend projects to Vercel with automatic custom domain setup. Handles Vite, Next.js, CRA, and static sites. Auto-configures Cloudflare DNS CNAME records and Vercel domain aliases. Supports SPA routing via vercel.json. Trigger when user says "deploy to vercel", "部署到 vercel", "vercel deploy", or mentions a…

lovstudio/skills · 92 tokens