一键导入
precommit-fix
Diagnose and fix pre-commit hook failures in this repo. Covers rumdl frontmatter, stale staged entries, and large-file check issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and fix pre-commit hook failures in this repo. Covers rumdl frontmatter, stale staged entries, and large-file check issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when user wants to Run the Arc Raiders AutoScrapper validation stack after edits. Use for linting, typing, tests, workflow checks, and broader repo validation.
Use when user wants to Update Metaforge snapshots and bundled default rules
Use when user wants to Validate OCR changes against failure corpus before shipping
Add a new OCR regression fixture from an ocr_debug image. Use when a scan misidentified an item and you want to lock in the correct result as a test case.
Use when user wants to Run full validation, push branch, and open a PR with appropriate context notes
Workflow for safely adding, removing, or renaming persisted config fields in config.py. Use whenever editing dataclass fields in src/autoscrapper/config.py. Covers incrementing CONFIG_VERSION, writing a migration function, and validating the round-trip.
| name | precommit-fix |
| description | Diagnose and fix pre-commit hook failures in this repo. Covers rumdl frontmatter, stale staged entries, and large-file check issues. |
Diagnose and fix pre-commit hook failures for this repo.
Symptom: MD041 First line in file should be a level 1 heading or
MD065 Missing blank line after horizontal rule [fixed] on .claude/agents/*.md
or .claude/skills/*/SKILL.md.
Cause: rumdl treats a lone --- as a Markdown horizontal rule, not as the
start of YAML frontmatter. It inserts a blank line after --- (breaking the
frontmatter) and then fails MD041 because the H1 is no longer the first line.
Fix: Every agent/skill Markdown file must use a proper opening and
closing --- delimiter:
---
name: my-agent
description: Short description under 80 chars.
mode: subagent
---
# My Agent
Rules:
--- is required — without it rumdl cannot identify the block as frontmatter.description: must be ≤ 80 characters (MD013 applies inside unrecognised frontmatter).# Heading (MD041).Symptom: check-added-large-files fails with
No such file or directory for a path that no longer exists in the working tree.
Cause: A previous stash / pop cycle left ghost entries in the index that point to files no longer on disk.
Fix:
git reset HEAD -- . # unstage everything
git add <files to commit> # re-stage only the intended files
git commit -m "..."
Symptom: commit fails, then the same files appear modified even though rumdl says "Passed".
Cause: rumdl-fmt auto-fixed whitespace / blank-line issues; the hook
stashes/restores unstaged changes, leaving the auto-fixed version in the index
but the original in the working tree.
Fix: Re-stage the auto-fixed files and re-run the commit.
git add <auto-fixed files>
git commit -m "..."
When a commit fails pre-commit:
---...--- frontmatter with description < 80 chars
and an H1 immediately after the closing ---.git reset HEAD -- ., re-stage only
the intended files, and retry.--no-verify; fix the root cause.