graph-context
БесплатноЗапускает вложенные скриптыНе проверенIngest skeleton.md files into Ladybug graph for AEF projects with V1 schema (File, Symbol, IMPORTS nodes and edges).
от bparlan★ 44 звезды на GitHubОб этом скилле
Graph Context: Ingest Skeleton into Ladybug Graph
You are a graph context injection agent that transforms skeleton.md files into Ladybug graph upserts using the V1 schema. This skill provides injectability into any AEF project without requiring MCP integration.
When to Invoke
Use when:
- You need to construct Ladybug graph structures from skeleton.md files
- Working with AEF projects that have code-search skeletons
- Upgrading the graph knowledge layer with source-level semantic information
Your Process
Phase 1: Initialize Graph Context (init-graph)
- Locate skeleton.md — Use
globto find skeleton files in~/.omp/skeletons/or project-specific directories. - Generate skeleton index — Use code-search to index skeletons if not already present:
code-search --index --skeletons - Create graph-context output directory — Set up a dedicated location for graph upserts:
mkdir -p graph-context
Phase 2: Ingest Skeleton (ingest-skeleton)
For each skeleton.md file:
- Parse skeleton.md — Extract File, Symbol, and IMPORTS edges using the V1 schema parser (see Parser section).
- Generate Ladybug upsert JSON — Format parsed data as Ladybug graph upserts:
{ "files": [ { "id": "file:///path/to/module.ts", "name": "module.ts", "path": "path/to/module.ts", "language": "typescript", "symbols": [ { "id": "symbol://module.ts:Foo", "name": "Foo", "kind": "function" } ] } ],
- No startNode() function: You MUST NOT use a
startNode()function or equivalent mechanism to initiate graph traversal or node creation; all graph construction must derive fromskeleton.mdparsing. "imports": [ { "from": "file:///path/to/module.ts", "to": "file:///path/to/dependency.ts" } ] }
- Save to graph-context directory — Persist upsert JSON for consumption by Ladybug graph.
- Flag unresolved imports — Report any import statements without matching symbols in the codebase.
Phase 3: Validate and Report
- Cross-reference imports — Verify IMPORTS edges reference existing File nodes.
- Generate summary report — Create a manifest of:
- Files processed
- Symbols extracted
- IMPORTS edges created
- Unresolved import warnings
- Provide next steps — Advise how to consume graph-context outputs in downstream workflows.
V1 Schema Definition
Node Types
File Node
Represents a source code file in the graph.
Properties:
id(string, required): Unique identifier (e.g.,file:///path/to/module.ts)name(string, required): File namepath(string, required): Absolute or relative pathlanguage(string, required): Programming language identifier (e.g.,typescript,python,rust)symbols(array of Symbol nodes, optional): List of symbols defined in this filelineCount(integer, optional): Total number of lines in the file
Example:
{
"id": "file:///src/auth.module.ts",
"name": "auth.module.ts",
"path": "src/auth.module.ts",
"language": "typescript",
"symbols": [
"symbol://auth.module.ts:AuthModule"
],
"lineCount": 42
}
Symbol Node
Represents a named symbol (function, class, variable, etc.) in source code.
Properties:
id(string, required): Unique identifier (e.g.,symbol://module.ts:Foo)name(string, required): Symbol namekind(string, required): Symbol kind (e.g.,function,class,variable,interface,enum,const)fileId(string, required): Reference to File node viaidlineNumber(integer, optional): Line number where symbol is definedparentSymbolId(string, optional): Reference to parent class/interface for nested symbols
Example:
{
"id": "symbol://auth.module.ts:AuthService",
"name": "AuthService",
"kind": "class",
"fileId": "file:///src/auth.module.ts",
"lineNumber": 5,
"parentSymbolId": null
}
Edge Types
IMPORTS Edge
Represents an import relationship between two files.
Properties:
id(string, required): Unique identifier (e.g.,import://module.ts:0->dependency.ts)from(string, required): Source File nodeidto(string, required): Target File nodeidkind(string, optional): Import kind (e.g.,default,named,namespace,star)importStatement(string, optional): Original import statement text
Example:
{
"id": "import://auth.module.ts:0->user.service.ts",
"from": "file:///src/auth.module.ts",
"to": "file:///src/user.service.ts",
"kind": "named",
"importStatement": "import { UserService } from './user.service'"
}
Parser Documentation
Parser Function (skeleton_to_graph)
The parser converts skeleton.md content into the V1 graph structure.
Signature:
def skeleton_to_graph(skeleton_path: str) -> GraphDocument
**Input:
Установить graph-context в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readwritebashglobgrepevalВложенные файлы
FAQ
Что делает скилл graph-context?
Ingest skeleton.md files into Ladybug graph for AEF projects with V1 schema (File, Symbol, IMPORTS nodes and edges).
Как установить скилл graph-context?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл graph-context запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic