一键导入
code-check
Triggers on /code-check. Structural code review - file splits, DRY, dead code. Writes findings to ai_todos. Callable standalone or from /close.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Triggers on /code-check. Structural code review - file splits, DRY, dead code. Writes findings to ai_todos. Callable standalone or from /close.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-check |
| description | Triggers on /code-check. Structural code review - file splits, DRY, dead code. Writes findings to ai_todos. Callable standalone or from /close. |
| argument-hint | [uncommitted|unpushed|<path>|<hash>] |
Structural review: file splits, DRY, dead code. Writes findings to ai_todos.
Determine what to review based on args:
| Arg | What to run |
|---|---|
uncommitted | git diff HEAD --name-only --diff-filter=ACM |
unpushed | git log @{u}..HEAD --name-only --diff-filter=ACM --format= |
| Looks like a file path | treat as single-file list |
Looks like a hash or range (abc1234, HEAD~3..HEAD) | git diff <arg> --name-only |
| No args | ask using AskUserQuestion (see below) |
When asking, options:
After resolving, filter to code files only. Drop: .md, .json, .toml, .yaml, .yml, .gitignore, anything under .for_bepy/ or memory/.
If the filtered list is empty: print "No code files in scope." and stop.
For each file in scope, get line count: wc -l "path" via Bash tool.
If > 400 lines AND has an obvious split seam (separate concerns, reusable unit, clear module boundary), record:
{ "title": "[file] should be split", "files": ["path"], "problem": "[file] is N lines, mixes [X] and [Y]", "fix": "split at [boundary] into [new-file]" }
If no obvious seam, skip that file.
For each new top-level symbol in scope (function, const, class, interface, type, export, def, func, local function - language-dependent): Grep the repo for equivalents by name, shape, and purpose. For each duplicate found, record:
{ "title": "Duplicate: [symbol]", "files": ["path:line (new)", "path:line (existing)"], "problem": "what duplicates what (one sentence)", "fix": "delete X and import Y / extract shared util to Z" }
Cap: ~3 Grep calls per symbol. Use only Grep, Read, and Glob - no shell pipelines. If scope has zero new top-level symbols (body-only edits), skip this step.
For each new top-level symbol: Grep pattern: "\\b<symbol>\\b", output_mode: "count". Count <= 1 (definition only) = never called. Also flag: unreachable branches, commented-out blocks left in, imports never read.
{ "title": "Dead code: [symbol]", "files": ["path:line"], "problem": "one sentence", "fix": "delete / uncomment / wire up at X" }
Merge findings from Steps 1-3.
If .for_bepy/ai_todos/ exists: write each finding as a .md file. Filename: zero-padded numeric prefix (scan existing files for max id, add 1) + kebab-case slug. Format:
# [title]
## Goal
[what needs to happen]
## Context
[problem. Cite files as path:line.]
## Approach
[fix]
## Acceptance
[how to verify it is done]
If no .for_bepy/ exists: print all findings inline, one block per finding.
Print a summary line:
code-check: N findings (A size, B DRY, C dead code). M written to ai_todos.
If zero findings: code-check: No structural issues found.
Triggers on /clockify-reconciliator <project> only. Adds descriptions to description-less Clockify entries for a configured project, splitting large blocks into 1-3h chunks using git commits from configured repos.
Triggers on /work-recap only. Dispatches to a named recap variant (e.g. zirtue weekly, zirtue daily). Each variant lives in a subfolder under this skill.
Triggers on /schedule-once only. Schedules a SINGLE future run of a Claude prompt (or a raw shell command) on THIS machine via Windows Task Scheduler, as a self-deleting one-time task. The local, one-shot counterpart to the cloud /schedule and the recurring /cron-run. PC must be on and logged in at fire time; Claude Code itself need not be open. Also supports list and cancel.
Triggers on /create-pr only. Drafts a human-light PR for the current branch, scales the body to the diff, suggests visuals, previews locally, and creates it on approval.
Triggers on /autopilot only. Dev is AFK and wants maximum autonomous progress with heavy but purposeful token use. Never block - delegate aggressively to subagents to keep main context lean, resolve real judgment calls via a BOUNDED /iterate-it (capped per run), auto-answer any nested skill's question instead of hanging, log decisions, park true hard-stops, and grind the task to a verified finish.
Triggers on /batch-todos only. Dedupes ai_todos, classifies survivors as EASY (auto-execute) or HARD (dev picks), shows dry-run confirmation, batches all EASY todos, then surfaces the HARD queue.