用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/tomes --skill beutl-ai-self-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | beutl-ai-self-review |
| description | | Use when this capability is needed. |
Refresh the AI setup so it never drifts from the codebase. The skill only
touches files inside the AI surface: AGENTS.md, CLAUDE.md,
.agents/skills/beutl-* (do NOT edit .agents/skills/speckit-*),
.claude/agents/, .claude/skills/beutl-* (do NOT edit
.claude/skills/speckit-*), .claude/rules/, .claude/hooks/,
docs/ai-workflow/, .specify/memory/constitution.md. It never edits source
code, tests, CI workflows, the linter config, or anything under
.specify/scripts/ / .specify/templates/.
Decide the git range to inspect, in this order:
$ARGUMENTS starts with since=, use the value after the = directly
(e.g. since=HEAD~20, since=2026-04-01)..claude/.last-self-review exists, read its contents and use
<sha>..HEAD.--since="30 days ago".Capture the chosen window as $WINDOW for the rest of the run.
Run these in parallel where possible.
git log $WINDOW --no-merges --name-only --pretty=format:'%h %s'
Bucket changed paths:
src/<NewModule>/tests/<NewTestProject>/.github/workflows/.editorconfig, Directory.Build.props, Directory.Build.targets, Directory.Packages.props, xamlstyler.json, global.json, Beutl.slnxFor every file path, project name, or module name mentioned in the AI surface files, confirm it still exists. Concretely:
ls AGENTS.md CLAUDE.md .agents/skills/beutl-*/SKILL.md \
.agents/skills/beutl-*/references/*.md .claude/agents/*.md \
.claude/rules/*.md .claude/skills/beutl-*/SKILL.md \
.claude/skills/beutl-*/references/*.md \
docs/ai-workflow/*.md .specify/memory/constitution.md 2>/dev/null
Grep for tokens that look like paths or csproj names:
src/Beutl.<word> / src/Beutl.<word>.<word>tests/Beutl.<word> / tests/<word>Test.github/workflows/<word>.ymlBeutl.<word>.csprojGlob for the file. If the Glob returns
nothing, mark the reference as stale.gh pr list --state all --limit 10 --json number,title
For each PR number N:
gh api "repos/{owner}/{repo}/pulls/$N/comments" \
--jq '[.[] | select(.path | test("^(\\.agents/|\\.claude/|AGENTS\\.md|CLAUDE\\.md|docs/ai-workflow/)")) | {pr: '"$N"', path, line, body, user: .user.login}]'
Aggregate themes by counting how often each cluster recurs (same wording or same target path across 2+ PRs).
test -f .claude/logs/instructions-loaded.log && \
awk -F'\t' '{print $4}' .claude/logs/instructions-loaded.log | sort | uniq -c | sort -rn
Surface rules that load disproportionately often (description too loose) or
rules that never load (description too narrow or paths: too strict).
Cap at 10 findings, ordered by severity. Each finding must include:
Do not report findings whose only impact is style (linter territory) or findings that ask to modify CI workflows.
Use the runtime's user-question mechanism (AskUserQuestion in Claude Code,
request_user_input in Codex plan mode, or a concise direct question when no
question tool is available). Batch at most 4 questions per call. For every
finding, offer the same option set:
Do not group findings unless they touch the same file with mechanically identical edits (e.g. renaming the same project across 6 docs).
Use Edit (or Write only for new files in the AI surface). Group edits by
file so each file is rewritten in a single pass. Keep diffs minimal. Do not
introduce new sections, new files, or new conventions that were not part of
the approved finding.
After the run — even if zero findings were applied — write the current SHA to the marker so the next review starts from here:
git rev-parse HEAD > .claude/.last-self-review
End the turn with a short report:
file:line — fix summary<new marker SHA>..HEADDo not stage, commit, or push. The user decides when to commit the changes.
src/, tests/, .github/workflows/,
.specify/scripts/, .specify/templates/, .specify/integrations/,
.specify/workflows/, the linter config, .agents/skills/speckit-*, or
.claude/skills/speckit-*..editorconfig, xamlstyler.json,
and dotnet format own that.gh or git is unavailable, degrade: skip that signal and proceed with
the others; do not abort.Source: b-editor/beutl — distributed by TomeVault.