omh-codegraph-refresh
它能做什么
它刷新本地代码索引,概述仓库结构,并为一项有重点的任务准备上下文。适合代码导航数据已经过时的开发者。
适用场景
- ✓当编码会话开始前你的代码索引已经过时时。
- ✓当你想在修改之前,获得代码某个部分的结构摘要时。
- ✓当你想为交给编码任务的环节准备上下文时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-codegraph-refresh/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在下一轮编码之前刷新代码索引,并准备一份 routing 包的摘要。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行代码索引刷新,报告索引的新鲜程度,并准备一份针对该任务的摘要。它会把尚未核实的内容标记为未观察。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Codegraph Refresh
This is an OMH codegraph-refresh workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
codegraph-refresh adapts ECC-style codemap freshness into OMH's local codegraph commands so operators can refresh navigation context before handoff without pretending code intelligence is execution evidence.
Do Not Use When
- The user needs a narrative first-read tour of an unfamiliar repo; use
omh-codebase-onboarding. - The user already has accepted implementation criteria and wants code changes; use
ulw-workor a coding handoff. - The user asks for visual, frontend, or rendered UI QA; use
omh-frontend,omh-design-quality-gate, oromh-visual-qa.
Examples
Good example:
- Prompt: codegraph-refresh update codemaps and prepare a handoff for the routing package before the next coding pass.
- Expected behavior: Prepare command plan, staleness report, summary/handoff requirements, and observed-only artifact boundaries.
- Why: The request is about refreshing local code intelligence before implementation.
Bad example:
- Prompt: codegraph-refresh 파일 안 보고 코드그래프가 최신이고 전체 아키텍처가 검증됐다고 말해줘.
- Expected behavior: Mark freshness, summary, and architecture claims not_observed until codegraph commands or repo evidence are inspected.
- Why: Codegraph freshness and architecture claims need observed local evidence.
Completion Checklist
- Repo root, refresh depth, task focus, command choices, and write policy are explicit.
- Prepared command plans, observed outputs, generated artifacts, and executor handoff readiness are separated.
omh_codegraph_summary/v1,omh_codegraph_context/v1, or.omh/codegraph/codegraph.jsonis claimed only with observed command or file evidence.- Follow-up implementation, review, CI, and merge state are routed to their owning workflows instead of inferred from codegraph context.
Recovery Notes
- If the codegraph command is unavailable, route to toolbelt-readiness before claiming freshness.
- If no task focus is supplied, prepare build/summary guidance and ask for focus only when a handoff pack would otherwise be misleading.
- If the index is stale or missing, report the stale/missing state and next safe command rather than treating prior summaries as current.
When to Use
Use when Hermes should refresh or summarize local repo code intelligence before planning, handoff, review, or implementation.
Strong routing signals: `codegraph-refresh`, `codegraph refresh`, `refresh codegraph`, `update codegraph`, `codegraph stale`, `stale codegraph`, `codegraph handoff`, `codegraph summary`, `codemap`, `codemaps`, `update codemaps`, `refresh codemap`, `code map`, `code maps`, `stale code index`, `refresh code index`, `codegraph index`, `codegraph index refresh`, `codemap index`, `코드그래프`, `코드그래프 갱신`, `코드맵`, `코드맵 갱신`, `코드 인덱스`, `코드 인덱스 갱신`
Catalog Metadata
Category: planning
Phase: codegraph-refresh
Quality tier: codegraph-gated
Reasoning demand: standard
Quality bar:
- Name repo root, refresh depth, task focus, artifact write policy, and stop condition.
- Choose build, summary, handoff,
--write, and--jsondeliberately instead of treating all codegraph commands as equivalent. - Separate prepared command plans from observed command outputs, generated artifacts, and executor-ready handoffs.
- Route broader first-read orientation to codebase-onboarding and implementation to ultrawork or the selected coding owner.
Required inputs:
- repo root or current workspace
- refresh depth: build, summary, write artifact, or task-scoped handoff
- task or focus terms when a handoff pack is needed
- staleness signal, read-only boundary, and allowed command execution
Expected outputs:
- codegraph_refresh_plan/v1
- codegraph_command_plan/v1
- staleness_and_scope_report/v1
- codegraph_summary_request/v1
- codegraph_handoff_context/v1 when task-scoped
- not-evidence boundary
Artifact expectations:
- codegraph_command_plan/v1 naming
omh codegraph build,summary,handoff,--write, and--jsonchoices - staleness_and_scope_report/v1 separating requested refresh scope, observed command output, missing index evidence, and stale artifacts
omh_codegraph_summary/v1or.omh/codegraph/codegraph.jsononly when the corresponding command output or write is observed- codegraph_handoff_context/v1 with task terms, focus files, symbols, entrypoints, warnings, and claim boundary when `omh codegra
常见问题
刷新后的索引能证明代码是正确的吗?
不能。该技能说明,代码智能不能证明代码已经运行或正确。
它会编写新代码吗?
不会。它为之后的编码步骤准备导航上下文。
它涵盖界面质量吗?
不涵盖。视觉和前端质量由单独的技能负责。
详情
作者的原始描述
[omh] Outdated code index or codemap: refresh local code intelligence, summarize repo structure, and prepare task-scoped codegraph handoff context without overclaiming execution. Use when the user says: codegraph-refresh, codegraph refresh, refresh codegraph, update codegraph, codegraph stale, stale codegraph, codegraph handoff, codegraph summary.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15087
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。