cowork-forge: Skill for Claude Code

.agents/skills/codegraph-skill/SKILL.md

codegraph-skill is a skill for Claude Code, Codex from sopaco/cowork-forge. It costs 32 tokens per session (1,164 once invoked), scanned A, a copy of codegraph-skill, MIT.

A guide for using CodeGraph, a tool that maps relationships between code symbols such as functions, callers, and callees. It uses a pre-indexed representation of the project's code.

In plain words
What is it for?
Use it to find callers and callees, trace symbol relationships, and assess the likely impact of code changes.
Why use it?
It helps an agent understand what may be affected by a change instead of examining files one by one without knowing how they connect.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is sopaco/cowork-forge's own configuration. It tells Claude Code and Codex how to work on cowork-forge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cowork-forge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sopaco/cowork-forge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sopaco/cowork-forge/main/.agents/skills/codegraph-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sopaco/cowork-forge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codegraph-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/sopaco/cowork-forge/codegraph-skill/github.svg)](https://agentmods.dev/skills/sopaco/cowork-forge/codegraph-skill)
Your own site
<a href="https://agentmods.dev/skills/sopaco/cowork-forge/codegraph-skill"><img src="https://agentmods.dev/badge/skills/sopaco/cowork-forge/codegraph-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codegraph-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/sopaco/cowork-forge/codegraph-skill"><img src="https://agentmods.dev/badge/skills/sopaco/cowork-forge/codegraph-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 23
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin 100% copy Near-identical to another mod 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.1 $0.00032 $0.01164
Opus 5.5 $0.00013 $0.00466
Sonnet 5.5 $0.00006 $0.00233
Haiku 4.5 $0.00003 $0.00116

Measured 1mo ago against content hash e89680aa9b6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codegraph-skill 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 1mo 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.

Origin

This is a copy

100% identical to codegraph-skill — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/codegraph-skill/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CodeGraph Skill

CodeGraph provides a pre-indexed AST code graph for this project.

Terrain uses CLI only — do not run codegraph install (that configures MCP/agent rules separately).

Resolve the CodeGraph command (read first)

Use conventional paths only — never machine-specific absolute paths like /Users/... or C:\Users\....

On Windows, the wrapper may be codegraph.cmd or codegraph.exe under ~/.terrain/bin/.

Priority Command When
1 ~/.terrain/bin/codegraph Terrain env integration (see existence check below)
2 bunx codegraph No Terrain install; needs network once
3 npx codegraph Same as bunx if Bun unavailable

Optional manifest (local, gitignored): .terrain/env/agent-tools.json — same ~/.terrain/bin/… conventions.

Existence check (cross-platform):

Shell Check
bash / zsh / Git Bash [ -x ~/.terrain/bin/codegraph ] || [ -f ~/.terrain/bin/codegraph.exe ] || [ -f ~/.terrain/bin/codegraph.cmd ]
PowerShell Test-Path "$HOME\.terrain\bin\codegraph*"

In examples below, <cg> means your resolved prefix (~/.terrain/bin/codegraph or bunx codegraph).

Prerequisites

The index is per-repo under .codegraph/. If missing, initialize from the repo root:

# bash / Git Bash
if [ -x ~/.terrain/bin/codegraph ] || [ -f ~/.terrain/bin/codegraph.exe ] || [ -f ~/.terrain/bin/codegraph.cmd ]; then
  ~/.terrain/bin/codegraph init -i
else
  bunx codegraph init -i
fi

Refresh after edits: <cg> sync

Health check:

<cg> status

<cg> status can lie ("up to date" when it is not). Observed case: index untouched for 10 days while 24 commits changed source files, status still reported fresh, and <cg> query on a symbol added days earlier returned nothing. Do not treat status as authoritative on its own.

CLI commands

Intent Command
Find symbol by name <cg> query <name>
Who calls X <cg> callers <symbol>
What X calls <cg> callees <symbol>
Change blast radius <cg> impact <symbol>
Tests affected by file changes <cg> affected <files…>
Project file tree <cg> files
Index health <cg> status
Refresh after edits <cg> sync

Read the full file on GitHub · 114 lines

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. 1mo ago First seen · 114 lines · 32 tokens per session scan A e89680aa9b6d

Subscribe to this mod's changes

codegraph-skill is a skill published in the GitHub repository sopaco/cowork-forge (103 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 1,164 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to codegraph-skill, differing in 0 lines, and is treated as a copy.