跳到正文
Skillpedia
通用编程5.1k · #15087

omh-codegraph-refresh

它能做什么

它刷新本地代码索引,概述仓库结构,并为一项有重点的任务准备上下文。适合代码导航数据已经过时的开发者。

适用场景

  • ✓当编码会话开始前你的代码索引已经过时时。
  • ✓当你想在修改之前,获得代码某个部分的结构摘要时。
  • ✓当你想为交给编码任务的环节准备上下文时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-codegraph-refresh/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-codegraph-refresh/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-work or a coding handoff.
  • The user asks for visual, frontend, or rendered UI QA; use omh-frontend, omh-design-quality-gate, or omh-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.json is 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 --json deliberately 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 --json choices
  • staleness_and_scope_report/v1 separating requested refresh scope, observed command output, missing index evidence, and stale artifacts
  • omh_codegraph_summary/v1 or .omh/codegraph/codegraph.json only 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能