graph-create

Generates the initial codebase knowledge graph in .claude/graph/ during setup-init.

1|Updated Jun 27, 2026
One-click install
npx skills add https://github.com/vickysrawat/AI-Assisted-development --skill graph-create-vickysrawat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graph-create
Source: https://github.com/vickysrawat/AI-Assisted-development/tree/main/skills/graph-create
Command: npx skills add https://github.com/vickysrawat/AI-Assisted-development --skill graph-create-vickysrawat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams onboarding a repository need a machine-readable map of its modules, domains, and dependencies before any review or feature work can be oriented. This Skill builds that initial codebase knowledge graph automatically during setup-init, replacing manual architecture discovery. ## Core Features & Use Cases - Module classification: Reads the module skeleton from module-derive.cjs and classifies each module by type (service, repository, ui, datastore, external-api, shared-lib, domain) based on what the code actually does. - Deterministic graph generation: Computes per-module fingerprints, runs graph-extract-edges.js for EXTRACTED edges, and writes graph.json with stable sorting so diffs stay minimal. - Projected documentation: Emits graph-index.md plus one detail file per module (bounded context, key files, dependencies, patterns), including support for dependency repos from additionalDirectories. - Use Case: During /setup-init, after the architect step completes, this Skill produces the full .claude/graph/ orientation layer consumed by icea-feature, code-review, security, and graph-viz. ## Quick Start Run /setup-init so the graph-create step generates the initial knowledge graph under .claude/graph/ for this repository.

Frequently Asked Questions about graph-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a codebase knowledge graph for my repository?

Run /setup-init, which invokes this internal graph-create step after the architect phase. It reads the module skeleton, classifies modules, extracts edges, and writes graph.json plus markdown projections under .claude/graph/.

How do I refresh the knowledge graph after code changes?

Use /graph-sync for incremental refreshes instead of regenerating from scratch. graph-create is a one-time initial generation invoked by setup-init and is not user-invocable directly.

Can the knowledge graph include locally-cloned dependency repositories?

Yes. Modules from dependency repos listed in .claude/settings.local.json additionalDirectories are graphed as nodes with a sourceRoot field, and fingerprints resolve against the dependency repo path.

Why does graph-create fail with SKELETON_MISSING?

The .claude/graph/.module-skeleton.json file is missing, meaning module-derive.cjs has not run. Run node {PLUGIN_DIR}/scripts/module-derive.cjs first, then re-run the skill.

What module types does the knowledge graph support?

Each module must be classified as one of service, repository, ui, datastore, external-api, shared-lib, or domain. The type is inferred from the entry point, folder role, and actual code behavior, and can never be left unset.