一键导入
hashline-edit
Hash-anchored StrReplace edits using LINE#ID tags from Read output. PreToolUse blocks stale anchors when the file changed since the last cached read.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Hash-anchored StrReplace edits using LINE#ID tags from Read output. PreToolUse blocks stale anchors when the file changed since the last cached read.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
MANDATORY before code changes, debugging, planning, or multi-step implementation in ANY repository. Discover skills via grok inspect, Read every SKILL.md whose description matches the task, then use tools. Hooks block mutating tools until at least one catalog skill was Read. superpowers skills ship bundled in oh-my-grok (vendor/superpowers/skills).
Start a Ralph Loop — autonomous work-until-done via Stop-hook continuations. Use when the user says ralph loop, /ralph-loop, or wants the agent to keep going until it emits a completion promise tag. Pair with cancel-ralph to stop.
Structural code search and rewrite via the bundled ast_grep MCP server. Use for AST patterns ($VAR, $$$), not regex. Prefer over Grep when matching syntax trees.
Language Server Protocol tools via the bundled lsp MCP server — diagnostics, navigation, symbols, and rename. Use after edits to verify types and catch errors.
Strategic planning mode (/plan): interview, gap analysis, write work plans under .omg/plans/, optional review, then /start-work to activate boulder execution.
Create a detailed HANDOFF CONTEXT summary for continuing work in a new Grok session. Use when the user says /handoff, handoff, context too long, fresh session, compaction, or wants a paste-ready continuation prompt. Ported from oh-my-openagent /handoff.
| name | hashline-edit |
| description | Hash-anchored StrReplace edits using LINE#ID tags from Read output. PreToolUse blocks stale anchors when the file changed since the last cached read. |
| user_invocable | false |
oh-my-grok caches per-line hashes after each workspace Read. Use those tags in StrReplace old_string when you need precise, conflict-safe edits.
Each line from Read is tagged as:
{line}#{hash}|{content}
ZPMQVRWSNKTXJBYH (content fingerprint)Example: 11#XJ| console.log("hi"); → anchor 11#XJ (omit |content in old_string unless you intentionally include it; the hook strips |… when matching).
LINE#ID anchors you need into old_string.old_string must match the last Read cache for that path.old_string must still match file content; hashes only guard line identity.OMG_HASHLINE=0.| Variable | Default | Effect |
|---|---|---|
OMG_HASHLINE | 1 | 0 disables cache + PreToolUse guard |
UserPromptSubmit may include <HASHLINE_CACHE> listing recently read files and sample tags.