Not in the top 1,000 by GitHub stars

Roarpeng/GraphFlow

Local-first code knowledge graph and context harness for coding agents. MCP + DeepSeek Harness (dsh) plugin.

History

Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.

View weekly changes

packages/graphflow-dsh/skills/graphflow/SKILL.md

Week of Nov 2, 2026 · +5 / −3 lines

Before Not checked yet → After Local scripts

0736767253fe → 643e66883989

Diff text is unavailable under the recorded licenses. Line counts and the GitHub link remain available.

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Not checked yet

First observation → 0736767253fe

No earlier version was observed for comparison.

Compare on GitHub

skills/graphflow/SKILL.md

Week of Nov 2, 2026 · +5 / −3 lines

Before Not checked yet → After Local scripts

0736767253fe → 643e66883989

Diff text is unavailable under the recorded licenses. Line counts and the GitHub link remain available.

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Not checked yet

First observation → 0736767253fe

No earlier version was observed for comparison.

Compare on GitHub

View on GitHubAdd to my skills

Verified commit 643e6688398991a854057452f5a406674dc79a13

29GitHub stars
-1star in 7 days
2skills in this repository
145commits in 30 days

Heat

1.6
  • Star growth, last 7 daysNot available
  • Star growth, last 24 hoursNot available
  • Rank movement, last 7 daysNot available
  • Commits, last 30 daysNot available
  • Accounts asking about it through MCP, last 7 daysNot available
  • Hot votes this weekNot available

Heat never changes the order by stars, and sponsorship never touches it. How heat works

Stars over time

Oct 25, 2026Nov 3, 202630

30-day change not yet available: not enough history.

Individual skills in this repository

How it works

graphflow

When your agent uses it

Token-First Surgical Code Engine (gf_read, gf_edit, gf_exec, gf_macro) for TS/JS, Python, Go, Rust, C/C++, C# — true AST for all six language families (TS/JS via `@babel/parser`; Python/Go/Rust/C/C++/C# via optional tree-sitter grammars, structural fallback), self-written L0 semantic index, inheritance-aware blast-radius guards, ambiguous-safe rename, type-aware knowledge-graph calls with alias-resolved imports, precision-capped BM25 doc↔code links, `extends`-aware affected-test routing, six-language parity (51 tests) with packed EN/ZH recall 1.000, offline task reflection/auto-harvest, dehydrated test logs (1-line PASS), bilingual 中文/pinyin code search, git co-change habit macros. 外科手术级省 Token 代码引擎:6 种语言真 AST(TS/JS 用 `@babel/parser`;其余用可选 tree-sitter,缺省回退结构化分析)、自研 L0 语义索引、含继承/super 的爆炸半径守卫、歧义安全重命名、类型感知知识图谱 calls 与别名解析 imports、BM25 上限控制的文档↔代码链接、extends 感知的受影响测试路由、六语言平价(51 项)与 packed EN/ZH 召回 1.000、离线任务反射/自动收割、测试日志脱水、双语检索、习惯宏。

What it loads into context

Frontmatter

340 tokens

Always available to the agent

SKILL.md

6,637 tokens

When the skill is activated

Reference documents

0 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Setup — register the MCP server (安装 MCP 服务器)

Scripts executed separately

  • ../../../../scripts/install-dsh-bundle.mjs
  • ../../../../scripts/install-dsh-bundle.mjs
  • ../../../../scripts/install-dsh-bundle.mjs
  • ../../../../scripts/install-dsh-bundle.mjs
  • ../../../../scripts/install-dsh-bundle.mjs
  • ../../../../scripts/verify-parsers.mjs
  • ../../../../scripts/verify-parsers.mjs

Files

  • SKILL.mdcore25,170 bytes
  • SKILL.mdcore25,170 bytes
  • SKILL.mdcore25,170 bytes
  • SKILL.mdcore25,170 bytes
  • ../../../../scripts/install-dsh-bundle.mjsruns19,316 bytes
  • ../../../../scripts/install-dsh-bundle.mjsruns19,316 bytes
  • ../../../../scripts/install-dsh-bundle.mjsruns19,316 bytes
  • ../../../../scripts/install-dsh-bundle.mjsruns19,316 bytes
  • ../../../../scripts/install-dsh-bundle.mjsruns19,316 bytes
  • ../../../../scripts/verify-parsers.mjsruns8,856 bytes
  • ../../../../scripts/verify-parsers.mjsruns8,856 bytes
Read SKILL.md

# GraphFlow — Token-First Surgical Engine (外科手术级省 Token 引擎)

Always prefer the 4 surgical `gf_*` MCP tools over raw full-file reads or verbose test runs (请优先使用以下 4 个 `gf_*` 工具代替整文件读取与全量测试):

1. **`gf_read`** (`targets`, `q`, `topK`, `skeleton`, `dedup`):
   - Read exact symbols (`"src/file.ts#symbol"`, `"src/file.ts:L1-L2"`) with automatic **Cross-File Type Closure** and receiver-type-aware `[Blast Radius]` caller snippets — blast-radius target resolution consults the self-written L0 semantic index first (confidence ≥0.75) and only then the receiver/inheritance heuristics: declarations, annotations, `new Type()`, parameters, class fields, `this`/`self`/`cls`/`Self`, `Class.`/`Class::` and the Go/Rust/C++/C# declaration forms; `super`/`base` resolve to the parent class, subclass receivers dispatch to inherited base methods unless an intermediate class overrides, last assignment wins per scope, and generic/array/nullable annotations are unwrapped, so `A.cancel` vs `B.cancel` in one file disambiguate and only matching receivers count (精准读取目标函数/类,自动附带跨文件类型定义与调用点爆炸半径;调用目标先查自研 L0 语义索引(置信度 ≥0.75),再回退接收者/继承启发式;方法调用按推断出的接收者类型消歧,`super`/`base` 指向父类,子类可命中未覆写的基类方法,最后赋值优先,泛型/数组/可空标注会解包).
   - Bilingual keyword search (`q: "keyword / 中文关键词 / pinyin"`) across symbol names, docstrings and comments — validated at **1.000 EN / 1.000 ZH recall@1/@3/@5** on the isolated + packed (6 symbols/file) corpus. Phrases outside that glossary use a repo PMI map (`.graphflow/zh-identifier-map.json`) plus a small curated colloquial lexicon; `registerZhEnModel` stays off unless `GRAPHFLOW_ZH_EN_MODEL=1`. Omitting `topK` returns one slice when the top score margin is confident, otherwise the near-tie cluster, without type closure (双语检索在孤立 + packed 语料上 EN/ZH @1/@3/@5 仍为 1.000;词表外说法走仓库 PMI 映射和小型口语词表;默认不传 `topK` 时高置信只切 1 条,接近的分数保留一小簇,且不附类型闭合).
   - Fold large files into symbol skeletons (`"src/file.ts"`, `skeleton: true`) and pass `dedup: true` to skip unchanged files.
2. **`gf_edit`** (`file`, `symbol`, `newCode`, `edits`, `renameTo`):
   - Edit symbols or line ranges in-place, apply multi-file atomic batch `edits` bottom-up with zero line drift, or run zero-LLM cross-repo symbol rename (`renameTo`) — rename asks the semantic index for a resolved target first (confidence ≥0.75) and then reuses the receiver/inheritance resolution: foreign-receiver-only files are skipped, mixed target/foreign files are rejected as `REJECTED [ambiguous-symbol]`, same-name sibling declarations are rejected before writing, and unresolved callers roll the rename back with the file list. **Import paths are never rewritten**: comments and string/template literals are masked with equal-length placeholders before replacing, so renaming `combineURLs` cannot turn `./combineURLs.js` into `./joinURLs.js` (import 路径不会被重命名改动:替换前先对注释与字符串/模板串做等长遮蔽,因此重命名 `combineURLs` 不会把 `./combineURLs.js` 改成 `./joinURLs.js`). (重命名先查语义索引(置信度 ≥0.75),再复用接收者/继承解析:跳过仅外部接收者命中的文件;目标与外部接收者混用的文件以 `REJECTED [ambiguous-symbol]` 拒绝;同名兄弟声明写入前拒绝;仍有未解析调用方则回滚并返回文件清单).
   - Syntax guards use the true-AST backends when installed — `@babel/parser` for TS/JS, tree-sitter ERROR/MISSING diagnostics for Python/Go/Rust/C/C++/C#; the structural analyzers' heuristic checks (brace/declaration, Python missing-colon/bracket diagnostics) are the fallback and apply when `GRAPHFLOW_TREE_SITTER=0`. Caller-arity checks and struct/interface field-deletion guards also apply (语法守卫使用已安装的真 AST 后端:TS/JS 用 `@babel/parser`,其余 5 种用 tree-sitter 的 ERROR/MISSING 诊断;结构化分析器的启发式检查为回退,`GRAPHFLOW_TREE_SITTER=0` 时生效;另有调用方参数个数校验与结构体字段删除引用守卫).
3. **`gf_exec`** (`cmd`, `changedFiles`, `handle`, `run`, `timeoutMs`):
   - Run `cmd: "affected-tests"` (2-hop reverse import router + `tsconfig.json`/`jsconfig.json` JSONC `baseUrl`/`paths` aliases with `extends` chains, nearest nested configs and root project `references` + dynamic `import()`/`require()`; honors `package.json` `scripts.test`) or any command with output dehydration. It recognizes `tests/`, `__tests__/`, `spec/`, `.test.*`/`.spec.*`, `.test.mts`/`.cts`, `*_test.go`, `test_*.py`, `*Tests.cs`; routing stays heuristic — no nested project-to-project reference traversal, no Node `exports` map, `node_modules` `extends` stops at the workspace root (2-hop 反向 import 路由 + tsconfig/jsconfig 别名(含 extends 链、最近嵌套配置、根 references)+ 动态 import;识别常见测试约定;不做嵌套项目间 reference 遍历、不支持 Node exports map,node_modules 的 extends 止于工作区根).
   - **`run: true` is required to execute — without it the call is a preview only** (必须传 `run: true` 才执行,否则仅返回预览;测试通过仅回 1 行 `PASS`;失败时内联最多 5 行源码上下文,包括 `Error:` 行紧跟栈帧与 Python traceback 的情况;连续 3 次失败触发死循环熔断急救包).
View the complete source on GitHub

Skills included

  • graphflow
  • graphflow

Repository facts

License
Apache-2.0
Created
May 27, 2026
Last pushed
Nov 5, 2026
Forks
2
Open issues
0
Project activity
Active

Before you install

Local scripts

Automated signals, not a guarantee

Checked Nov 6, 2026

Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.

Show 16 notes
  • packages/graphflow-dsh/skills/graphflow/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • packages/graphflow-dsh/skills/graphflow/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • packages/graphflow-dsh/skills/graphflow/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/verify-parsers.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/install-dsh-bundle.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • scripts/verify-parsers.mjs:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/graphflow/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/graphflow/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/graphflow/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
Show all 14 signals by file

scripts/install-dsh-bundle.mjs

  • Executable scriptline 1
    #!/usr/bin/env node
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    #!/usr/bin/env node
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    Executable file; content unavailable

scripts/verify-parsers.mjs

  • Executable scriptline 1
    #!/usr/bin/env node
  • Executable scriptline 1
    Executable file; content unavailable
  • Executable scriptline 1
    #!/usr/bin/env node
  • Executable scriptline 1
    Executable file; content unavailable

How the signals fit together

Facts from a static read of the files at the pinned commit. They describe what the code does, not why.

Signal confidence: 14 facts

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeCompatibleStandard SKILL.md packages/graphflow-dsh/skills/graphflow/SKILL.md.claude/skills/<skill-name>/
CodexCompatibleStandard SKILL.md packages/graphflow-dsh/skills/graphflow/SKILL.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md packages/graphflow-dsh/skills/graphflow/SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md packages/graphflow-dsh/skills/graphflow/SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotCompatibleStandard SKILL.md packages/graphflow-dsh/skills/graphflow/SKILL.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard SKILL.md packages/graphflow-dsh/skills/graphflow/SKILL.md.opencode/skills/<skill-name>/
  • Native The repository ships a manifest, folder or frontmatter field for this agent.
  • Compatible A standard SKILL.md that this agent can read.
  • Unknown No evidence either way.

Derived automatically from paths, manifests and frontmatter. Not tested on each agent.