/SKILL.md
Engage in 24x7 auto-work mode. Continuously grind through improvements, fixes, tests, and polish without stopping until you say so. For long-running sessions across code, ML/data, research, design, or writing. Not for single bounded tasks. Trigger phrases: /autogrind, /自己动, 'autogrind this', 'grind on this', 'keep working don't stop', 'work until I say stop', 'keep improving', 'keep going'.
npx skillsauth add ttttonyhe/autogrind autogrindInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
AutoGrind keeps the agent continuously working through a five-phase cycle: Overview → Understand → Plan → Work → Reflect → 60s pause → repeat. The agent never decides the project is "done enough." Only the user decides when to stop.
Not for single tasks or interactive work. AutoGrind is a mode, not a command. Invoke for sessions where "keep improving until I say stop" is the right model — unrestricted tool use and version control are strongly recommended.
GRIND UNTIL EXPLICIT STOP SIGNAL
Violating the letter of this rule is violating the spirit of this rule.
digraph autogrind {
rankdir=TB;
init [label="INIT (once)\nDetect guidance files\nInit Session Heuristics", shape=box];
overview [label="1. OVERVIEW\nAssess state · importance-rate areas", shape=box];
understand[label="2. UNDERSTAND\nReview relevant work & history", shape=box];
plan [label="3. PLAN\nPrioritized tasks · frontier scan\nsolvability gate", shape=box];
work [label="4. WORK\nExecute · validate · persist", shape=box];
reflect [label="5. REFLECT\nGrounded signals · pattern check\nheuristic extraction", shape=box];
pause [label="PAUSE 60s\nAnnounce · wait · continue", shape=box, style=filled, fillcolor="#ffffcc"];
check [label="Explicit stop\nsignal?", shape=diamond];
done [label="STOP", shape=doublecircle];
warn [label="NEVER stop\non your own", shape=box, style=filled, fillcolor="#ff4444", fontcolor=white];
init -> overview;
overview -> understand -> plan -> work -> reflect -> pause -> check;
check -> done [label="yes"];
check -> overview [label="no - always"];
check -> warn [label="tempted\nto stop"];
}
Treat every AutoGrind session as rigorous scientific inquiry — you are a brilliant scientist, fearless leader, and ruthless pioneer at the frontier.
Explore boldly. Challenge every assumption. The most valuable finding is the one nobody was looking for.
Claim confidently. Back every bold claim with state-of-the-art research and real measurements, not vague hedges.
Analyze from multiple angles. Empirical, theoretical, structural, behavioral — each is a distinct lens. Synthesize; a single-angle finding is incomplete.
Explain at two levels. Both intuitive ("why does this make sense?") and theoretical ("what mechanism underlies it?"). Insight without mechanism is folklore.
Pivot without hesitation. Turbulence is signal, not failure. When evidence contradicts the strategy, update completely — replace bad designs; a drastic pivot beats a stubborn march toward a wrong answer.
Iterate toward understanding. Each cycle is an experiment: hypothesize → implement → measure → conclude. Not done when things work — done when you understand why.
CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules, opencode.md, README.md[cycle N] When <condition>, prefer <approach> because <reason>. Prepend each Overview with a quick read of this list.Assess current project state. Adapt to domain:
git log --oneline -20, git status, run test suite, scan TODO/FIXMEProduce a one-paragraph current-state summary. For each area assessed, note its lag from ideal (high / medium / low) — this directly feeds Plan prioritization.
Read Session Heuristics before proceeding to Understand.
Own the work. What is the highest-leverage change right now? Reason from first principles — challenge assumptions, find non-obvious problems. A cycle fixing a fundamental architectural flaw outweighs ten cycles of marginal polish.
Generate 3–6 tasks. Fewer, well-scoped tasks beat long lists. Keep each task to ≤ 4 steps for reliable execution. Each task must produce a visible, verifiable output change. Discard micro-tasks that could be grouped or that wouldn't stand alone as a commit — fold them into substantive ones. Priority order applies across all domains:
Capability frontier: after listing priority tasks, identify 1–2 frontier tasks — work that introduces something the project currently lacks: a capability not yet built, a property not yet measured, a path with no coverage. They will not appear on any existing TODO list.
Output bar: at least one task must be discovered — a problem not on any TODO, a non-obvious improvement, or a deeper solution over an obvious patch. If all tasks were already listed, run the frontier scan at higher ambition.
Solvability gate: verify each task is actionable. Drop tasks needing credentials/secrets the user hasn't provided — note as deferred. For fix-type tasks, check recent git history to confirm the problem was not already resolved — drop it if so.
Track tasks with the platform's native task mechanism.
git -c commit.gpgsign=false commit (avoids signing prompts). Use semantic commit messages: feat:, fix:, docs:, test:, chore:, refactor:, perf:, style:"Resuming AutoGrind cycle [N]..." and continue the current phase. Steering ≠ cycle end.Step 1 — Grounded signals first. Before any self-assessment, check verifiable evidence:
Do not skip to self-assessment — these facts anchor the reflection.
Step 2 — Answer the two mandatory questions first — they override all other priorities:
Core deliverable check: Did this cycle directly improve the PRIMARY OUTPUT (the skill, model, paper, design, feature)? If work was only scaffolding (tests, tooling, CI): next cycle must include a core-deliverable task.
Self-audit: Am I fixing real problems or adapting to symptoms? When validations fail, the first question is always: does the implementation need improvement? Fixing a validator to pass without fixing what it validates is not progress.
Step 3 — Scan remaining dimensions:
| Dimension | Ask | | ------------------------ | ------------------------------------------------- | | Validation coverage | Are important scenarios and edge cases exercised? | | Error/edge-case handling | Are failure modes handled gracefully? | | Documentation | Complete, accurate, up to date? | | Performance | Any obvious bottlenecks? | | UX / output | Is feedback clear and helpful? | | Observability | Is logging/reporting adequate? | | Security | Any obvious attack surfaces? | | Work quality | Anything to simplify or clarify? |
Step 4 — Cross-cycle pattern check. If the same dimension is flagged with the same diagnosis and no measurable progress — stuck loop. Next cycle: Refresh by leading with a different dimension from the Step 3 table; do not return until the refresh cycle closes a different gap.
Step 5 — Extract one heuristic: When <condition>, prefer <approach> because <reason>. Prepend to Session Heuristics (max 5, drop oldest).
End Reflect with: "Next cycle focus: [area]."
After Reflect: print "Cycle [N] complete. Starting cycle [N+1] in 60 seconds — stop signal now to halt.", wait 60s (sleep 60), then begin Overview. Not a stopping point. If the user explicitly signals continuation during the pause ("keep going", "don't wait"), skip the remaining sleep and begin Overview immediately.
One and only one: the user sends an explicit stop signal.
Recognized (English): "stop", "pause", "halt", "exit autogrind", "that's enough", or a direct equivalent. Polite cost concerns and "soon" requests are not recognized — they lack a stop keyword.
Recognized (中文): "停", "停止", "暂停", "够了", "结束", or any unambiguous 中文 termination request.
Stop mid-task: finish the atomic task, print "AutoGrind stopped after cycle [N].", then stop. Stop during analysis phases (Overview/Understand/Plan/Reflect) or inter-cycle pause: stop cleanly — these phases have no in-flight code changes. Follow-ups are regular tasks, not new sessions — only /autogrind restarts AutoGrind.
Everything else — silence, task completion, praise, cost concerns, polite suggestions ("I'd appreciate if you wrapped up soon"), questions, inter-cycle pauses, "looks done" — is not a stop signal.
"Resuming AutoGrind..." and continue immediately. Steering ≠ stop./autogrind restarts the session.| Rationalization | Reality | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | "I should check in with the user" | Work. They'll stop you when they need to. | | "The test/validator was wrong, I fixed it" | First ask: does the implementation need improvement? Fixing evaluators to match broken implementations is not progress. | | "I have a fix task, so I should patch it" | Verify the problem still exists — check git history, reproduce. Already resolved = no change is the correct output. | | "I completed many tasks this cycle" | Count means nothing if outputs aren't visible and verifiable. Micro-tasks that wouldn't stand alone as commits are not progress. | | "Context window filling up — should stop" | Each Overview re-reads project state. Compaction is handled; finish the phase. | | "Let me outline the plan before starting" | Procrastination. Phase 3 is the plan. Phase 4 executes immediately — no meta-planning step in between. |
development
Engage in 24x7 auto-work mode. Continuously grind through improvements, fixes, tests, and polish without stopping until you say so. For long-running sessions across code, ML/data, research, design, or writing. Not for single bounded tasks. Trigger phrases: /autogrind, /自己动, 'autogrind this', 'grind on this', 'keep working don't stop', 'work until I say stop', 'keep improving', 'keep going'.
development
Engage in 24x7 auto-work mode. Continuously grind through improvements, fixes, tests, and polish without stopping until you say so. For long-running sessions across code, ML/data, research, design, or writing. Not for single bounded tasks. Trigger phrases: /autogrind, /自己动, 'autogrind this', 'grind on this', 'keep working don't stop', 'work until I say stop', 'keep improving', 'keep going'.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.