code-nav
使用仓库已有的 Pyright language server 做 Python 跨文件语义导航。用于改函数前确认调用者/被调用者、收敛 grep 结果到真实语义引用、检查符号爆炸半径,或在陌生模块里追踪引用链。必须通过 readiness gate 才接受语义结果;把 LSP semantic scope 与…
Skill by deyi2026
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/deyi2026-code-nav
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-nav
What's inside
- Skill name
code-nav- Description
- 使用仓库已有的 Pyright language server 做 Python 跨文件语义导航。用于改函数前确认调用者/被调用者、收敛 grep 结果到真实语义引用、检查符号爆炸半径,或在陌生模块里追踪引用链。必须通过 readiness gate 才接受语义结果;把 LSP semantic scope 与 repo-visible lexical candidates 分开报告;遇到符号歧义、协议错误、server 提前退出或未就绪时 fail-closed。常用入口:scripts/code_nav.py doctor / refs / callers / callees。
- License
- Apache-2.0
- Instructions
- 135 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# code-nav — 按需 Pyright 语义导航 ## 核心原则 1. **先证明 ready,再信结果。** `initialize -> initialized -> didOpen -> publishDiagnostics(target)` 是当前 Pyright 1.1.411 已验证的 readiness contract。未收到目标文件 diagnostics 时命令必须失败并返回非零;不要采用部分结果。 2. **区分 semantic 与 lexical。** LSP 结果只声明在当前 Pyright program/config scope 内成立。`refs` 默认另跑 repo-visible lexical cross-check;这些文本命中只能叫 lexical candidates,不能直接叫“Pyright 漏掉的 references”。 3. **调用点和定义点分开。** `callers`/`callees` 输出 `site_path/site_lines` 与 definition/target path;必须保留全部 `fromRanges`,不要只看第一个调用点。 4. **歧义就失败。** 同文件多个同名 definition、或 `prepareCallHierarchy` 返回多个 item 时,不允许自动选第一个。 5. **路径以 repo root 为准。** 从仓库根或子目录执行应得到同一 semantic 结果;目标文件必须位于 repo 内且为 Python 文件。 ## 运行依赖 `code_nav.py` 的 Python 实现不新增第三方包,但运行依赖: - `git` CLI; - 已安装的 `pyright-langserver`。 managed worktree 通常没有自己的 `.venv`。脚本会按以下顺序找 language server: 1. 当前 code root 的 `.venv/bin/pyright-langserver`; 2. Git common root 的共享 `.venv/bin/pyright-langserver`; 3. `PATH`。 不要在 Skill 里假设 `$PWD/.venv` 一定存在。 ## 用法 ```bash # 0) 自检:server / version / config / capability / readiness python3 scripts/code_nav.py doctor # 1) 谁调用它 python3 scripts/code_nav.py callers src/llm_loop/core/run_context.py workspace_base # 2) 它调用谁 python3 scripts/code_nav.py callees src/llm_loop/factory.py build_engine # 3) 语义引用 + repo-visible lexical complement python3 scripts/code_nav.py refs src/llm_loop/core/message.py ToolResult --limit 20 # 4) 机器可读 python3 scripts/code_nav.py refs src/llm_loop/core/message.py ToolResult --json ``` 退出码: - `0`:readiness/capability/ambiguity gate 后成功,且有 semantic result; - `1`:参数、环境、协议、readiness、ambiguity、repo lock 或默认 cross-check 失败; - `2`:readiness 已确认且查询正常完成,但当前 semantic scope 内结果为 0。 `rc=2` **不能**解释成 repo-wide absence。 ## 机器输出怎么读 成功 JSON 使用 `schema=lfl.code_nav.v1`,重点看: - `status`: `ok` / `no_results` / `not_ready` 等; - `trust.analysis_ready`; - `trust.readiness_signal`; - `trust.semantic_scope`; - `trust.repo_lexical_cross_check`(`refs`); - `cross_check.universe=git-visible-python`; - `cross_check.occurrences / matching_lines / matching_files`; - `inside_configured_include` / `outside_configured_include`。 lexical universe 来自: ```bash git ls-files -co --exclude-standard -- '*.py' ``` 即 tracked Python + non-ignored untracked Python。普通 ignored 临时/生成文件不进入统计。 ## 2026-09-28 hardened 基线 环境:production-based hardening worktree,base gen159 `889634f21...`,Pyright `1.1.411`。 | 操作 | 当前观测 | |---|---| | `doctor` | `status=ok`、ready=true、`langserver_source=git_common_root_venv` | | `refs ToolResult` | **729 semantic locations / 82 files** | | root vs `scripts/` 子目录执行 | semantic locations 完全一致 | | lexical complement | **153 occurrences / 153 lines / 47 files** | | configured include=`src` 内 lexical-only | 3 occurrences / 3 files | | configured include 外 lexical-only | **150 occurrences / 44 files** | | `callers workspace_base` | 21 callers | | `callees build_engine` | 361 outgoing entries;多 `fromRanges` 完整保留 | | `--ready-timeout 0` | rc=1 / `status=not_ready` | 这些数字是**当前代码快照的观测 baseline,不是固定验收门**。代码演进后 exact counts 变化是正常的;必须保留的是 readiness、路径、scope、分类和字段语义。 ## 协议硬约束 - `initialize` 成功后必须发送 `initialized`;漏发可表现为静默挂死。 - server→client 带 `id` 的消息是 request,必须应答。 - 已支持 request 走 allowlist;未知 request 返回 JSON-RPC `-32601 Method not found`,不要假装 `result:null` 成功。 - reader framing/JSON 错误或 server 提前退出必须 fail-fast,不等满 query timeout。 - 正常结束走 `shutdown -> exit`,terminate/kill 只作兜底。 - 同一 repo 默认用 advisory lock 限制并发 langserver,避免瞬时 fan-out。 ## callers / callees 字段语义 `callers`: - `site_path/site_lines`:caller 内真实调用点; - `caller_definition_path/caller_definition_line`:caller 定义位置。 `callees`: - `site_path/site_lines`:当前 caller 文件里的调用点; - `target_path/target_definition_line`:被调用函数定义位置。 例如真实 hardened canary 已得到:`factory.py:397 -> config.py:731 ensure_dirs()`;这避免了旧原型把 caller 行号错误贴到 callee 文件上的伪定位。 ## 已知盲区 1. **动态派发仍解不了**:`getattr`、注册表、字符串 dispatch 等要沿注册结构追踪。 2. **只覆盖 Python**:TS/JS 尚无对应 LSP wrapper。 3. **readiness signal 是版本限定 contract**:`publishDiagnostics` 不是 LSP 规范定义的“workspace 全索引完成”通用保证;当前结论基于 Pyright 1.1.411 的 fixture 与真实仓库对照。升级 Pyright 后要重跑真实 fixture/canary。
From deyi2026/llm-first-loop, Apache-2.0.
More from deyi2026/llm-first-loop
- 0.589score
integrity-auditor
deyi2026
论文诚信审计——对一篇论文(外部 PDF/DOI/arXiv 或本地写作产出)做图像误用、数值异常、逻辑缺口三轨证据审计,产出 Level 1–4 分级、可复核的 audit_report.md。用于投稿前自查、审稿前评估、对 AI 生成内容做"数字有没有来源、图表有没有被动过"级核验。触发:integrity…
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
fit-page-limit
deyi2026
篇幅达标规划——论文超页限或篇幅不足时,逐节量化"长度去哪了",给出优先级方案:压缩/移附录哪些低价值节、补实哪些薄弱节,同时保护贡献、结果与引用;不删证据、不为凑页注水。触发:超页限、页数超了、压缩论文、该删哪里、trim、over the page limit、too long、too short、fit…
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
anonymize-paper
deyi2026
双盲匿名深扫 + camera-ready 干净还原——投稿前扫尽泄漏面(作者块/grant 致谢/PDF 元数据/第一人称自引/仓库与主页链接/LaTeX 注释/.bib 注释/主目录路径/补充材料),自带 stdlib…
SkillAFreshness: A★ 1Claude Code +9 - 0.588score
gzh-design
deyi2026
微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx)…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
assess-paper
deyi2026
论文整体健康度评估——"我这论文现在什么水平/能不能投/先改哪里/优缺点"时使用。编排本仓库已装的 preflight-check、verify-citations、anonymize-paper、fit-page-limit 做桌拒合规/引用/匿名/篇幅检查,汇总成一份先优点、再风险、带优先级修改清单的…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
method-ab-experiment
deyi2026
设计或审查模型、Agent、缓存、上下文、工具策略、runtime 优化的 A/B/qualification 实验时使用。用于锁唯一自变量、隔离 cache/session/evidence/model residency 等跨 run…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
method-candidate-ab-validity-trigger-confound
deyi2026
A/B qualification candidate distilled verbatim by Qwen3.8-27B from the working-set receipts teacher episode; experimental candidate only, not promoted.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
method-candidate-current-callsite-refresh
deyi2026
Repo/API candidate distilled verbatim by Qwen3.8-27B from the parallel-line stale-callsite teacher episode; experimental candidate only, not promoted.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
method-candidate-hydrate-trace
deyi2026
Qwen3.8-27B 从离线网页绕路 episode 经 teacher exemplar 蒸馏出的实验 candidate;仅用于独立 transfer qualification,不代表已 promotion。适用于当前页面是 loading shell 且显式引用可能负责加载目标内容的脚本时,测试是否应先沿…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
method-candidate-relative-clock-never-state
deyi2026
Root Cause candidate distilled verbatim by Qwen3.8-27B from the fresh-process relative-clock sentinel teacher episode; experimental candidate only, not…
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
merge-review-gate
deyi2026
合并 main 审查闸(RULE-AI-34)——分支 Goal/任务收口前的专门合并审查子代理任务书:核完成证据、核分支卫生、核 main 基线、批准并入 main、落盘回执
SkillAFreshness: A★ 1Claude Code +9 - 0.580score
humanizer-zh-next
deyi2026
编辑或审阅已有中文文本中的空话、重复和模板化表达,保留原意、事实、确定程度和作者声音。 主文件包含通用表达模式、中文句式、体裁判断、作者样本使用和文件保护,适用于去 AI 腔与自然化润色。 商务营销、论文与审稿回复、基金申请分别按需加载专用 reference。用于写作质量编辑,不判定作者身份。
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 28, 2026 (1 month ago)
- Last release
- Oct 22, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/deyi2026/llm-first-loop
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from deyi2026
- 0.589score
anonymize-paper
deyi2026
双盲匿名深扫 + camera-ready 干净还原——投稿前扫尽泄漏面(作者块/grant 致谢/PDF 元数据/第一人称自引/仓库与主页链接/LaTeX 注释/.bib 注释/主目录路径/补充材料),自带 stdlib…
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
integrity-auditor
deyi2026
论文诚信审计——对一篇论文(外部 PDF/DOI/arXiv 或本地写作产出)做图像误用、数值异常、逻辑缺口三轨证据审计,产出 Level 1–4 分级、可复核的 audit_report.md。用于投稿前自查、审稿前评估、对 AI 生成内容做"数字有没有来源、图表有没有被动过"级核验。触发:integrity…
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
fit-page-limit
deyi2026
篇幅达标规划——论文超页限或篇幅不足时,逐节量化"长度去哪了",给出优先级方案:压缩/移附录哪些低价值节、补实哪些薄弱节,同时保护贡献、结果与引用;不删证据、不为凑页注水。触发:超页限、页数超了、压缩论文、该删哪里、trim、over the page limit、too long、too short、fit…
SkillAFreshness: A★ 1Claude Code +9 - 0.588score
gzh-design
deyi2026
微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx)…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
method-ab-experiment
deyi2026
设计或审查模型、Agent、缓存、上下文、工具策略、runtime 优化的 A/B/qualification 实验时使用。用于锁唯一自变量、隔离 cache/session/evidence/model residency 等跨 run…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
assess-paper
deyi2026
论文整体健康度评估——"我这论文现在什么水平/能不能投/先改哪里/优缺点"时使用。编排本仓库已装的 preflight-check、verify-citations、anonymize-paper、fit-page-limit 做桌拒合规/引用/匿名/篇幅检查,汇总成一份先优点、再风险、带优先级修改清单的…
SkillAFreshness: A★ 1Claude Code +9
Cite this page
code-nav skill. Agent Mart. https://agentmart.dev/skills/deyi2026-code-nav (last updated 2026-10-24)