hashline-edit
Hash-anchored StrReplace edits using LINE#ID tags from Read output.
Skill by mihazs
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/mihazs-hashline-edit
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: writing
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/hashline-edit
What's inside
- Skill 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.
- License
- MIT
- Instructions
- 40 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Hashline edits (LINE#ID)
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.
## Format
Each line from Read is tagged as:
```text
{line}#{hash}|{content}
```
- **line**: 1-based line number
- **hash**: two letters from `ZPMQVRWSNKTXJBYH` (content fingerprint)
- Copy tags exactly — never guess hashes
Example: `11#XJ| console.log("hi");` → anchor `11#XJ` (omit `|content` in `old_string` unless you intentionally include it; the hook strips `|…` when matching).
## Workflow
1. **Read** the target file (hooks refresh the hashline cache).
2. Copy the smallest set of `LINE#ID` anchors you need into `old_string`.
3. **StrReplace** once per logical change batch; re-read before a second edit on the same file.
4. If PreToolUse denies with “stale LINE#ID”, **Read** again and use the updated tags from the error or fresh read.
## Rules
- Anchors in `old_string` must match the **last Read cache** for that path.
- Whitespace in `old_string` must still match file content; hashes only guard line identity.
- SKILL.md reads are not cached — use normal edits for skills.
- Disable validation: `OMG_HASHLINE=0`.
## Configuration
| Variable | Default | Effect |
|----------|---------|--------|
| `OMG_HASHLINE` | `1` | `0` disables cache + PreToolUse guard |
UserPromptSubmit may include `<HASHLINE_CACHE>` listing recently read files and sample tags.From mihazs/oh-my-grok, MIT.
More from mihazs/oh-my-grok
- 0.542score
agent-skill-gate
mihazs
MANDATORY before code changes, debugging, planning, or multi-step implementation in ANY repository.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
handoff
mihazs
Create a detailed HANDOFF CONTEXT summary for continuing work in a new Grok session.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
ralph-loop
mihazs
Start a Ralph Loop — autonomous work-until-done via Stop-hook continuations.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
ulw-loop
mihazs
Start an ULTRAWORK loop — Ralph loop plus mandatory Oracle verification before exit.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
lsp
mihazs
Language Server Protocol tools via the bundled lsp MCP server — diagnostics, navigation, symbols, and rename.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
prometheus-plan
mihazs
Strategic planning mode (/plan): interview, gap analysis, write work plans under .omg/plans/, optional review, then /start-work to activate boulder execution.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
ast-grep
mihazs
Structural code search and rewrite via the bundled ast_grep MCP server.
SkillCFreshness: C★ 11Claude Code +9 - 0.537score
cancel-ralph
mihazs
Cancel an active Ralph or Ultrawork loop.
SkillCFreshness: C★ 11Claude Code +9 - 0.517score
finishing-a-development-branch
mihazs
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting…
SkillCFreshness: C★ 11Claude Code +9 - 0.516score
requesting-code-review
mihazs
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
SkillCFreshness: C★ 11Claude Code +9 - 0.516score
writing-plans
mihazs
Use when you have a spec or requirements for a multi-step task, before touching code
SkillCFreshness: C★ 11Claude Code +9 - 0.516score
subagent-driven-development
mihazs
Use when executing implementation plans with independent tasks in the current session
SkillCFreshness: C★ 11Claude Code +9
Signals
- Stars
- 11
- Forks
- 5
- Open issues
- 0
- Last commit (this folder)
- Jun 3, 2026 (4 months ago)
- Last release
- Jun 3, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mihazs/oh-my-grok
- Website
- github.com/mihazs/oh-my-grok
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mihazs
- 0.542score
agent-skill-gate
mihazs
MANDATORY before code changes, debugging, planning, or multi-step implementation in ANY repository.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
handoff
mihazs
Create a detailed HANDOFF CONTEXT summary for continuing work in a new Grok session.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
ralph-loop
mihazs
Start a Ralph Loop — autonomous work-until-done via Stop-hook continuations.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
ast-grep
mihazs
Structural code search and rewrite via the bundled ast_grep MCP server.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
lsp
mihazs
Language Server Protocol tools via the bundled lsp MCP server — diagnostics, navigation, symbols, and rename.
SkillCFreshness: C★ 11Claude Code +9 - 0.539score
prometheus-plan
mihazs
Strategic planning mode (/plan): interview, gap analysis, write work plans under .omg/plans/, optional review, then /start-work to activate boulder execution.
SkillCFreshness: C★ 11Claude Code +9
Cite this page
hashline-edit skill. Agent Mart. https://agentmart.dev/skills/mihazs-hashline-edit (last updated 2026-10-24)