用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill audit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | audit |
| description | | Use when this capability is needed. |
Project-specific verification rules that generic linters cannot enforce.
| Skill | Checks |
|---|---|
/verify | Build, types, lint, test, security |
/audit | Business logic, architecture patterns, naming conventions |
/gap-analysis | Design doc vs implementation matchRate |
/audit → rules exist? → RUN mode (execute rules)
→ no rules? → MANAGE mode (bootstrap)
/audit manage → MANAGE mode (create/delete/sync rules)
Rules location: .claude/audit-rules/*.md
Read all .claude/audit-rules/*.md. Match each rule's scope against changed files:
BASE=$(git remote show origin 2>/dev/null | grep 'HEAD branch' | awk '{print $NF}')
BASE=${BASE:-main}
git diff "$BASE"...HEAD --name-only
Skip rules whose scope has no matching changes.
Auto-exempt files (always skip, no rule needed):
pnpm-lock.yaml, uv.lock, package-lock.json, Cargo.lockdist/, build/, .next/, __pycache__/README.md, CHANGELOG.md, LICENSEfixtures/, __fixtures__/, test-data/vendor/, node_modules/.github/, .gitlab-ci.yml, Dockerfile.claude/ internalsFor each matched rule:
## Check section (if any)## Pass CriteriaAUDIT REPORT
=============
api-response-format PASS
error-handling FAIL 2 violations
src/api/users.ts:45 bare catch without error type
src/api/posts.ts:78 empty catch block
naming-convention PASS
---------------------------------------------
Rules: 3 | Passed: 2 | Failed: 1
Status: NEEDS FIX
Status: all pass → CLEAR / any error-severity fail → NEEDS FIX / warning-only → REVIEW
Ask user via AskUserQuestion:
After fixes, re-run only failed rules and show before/after comparison.
Detect project type from config files and propose seed rules:
| Signal | Type | Suggested Rules |
|---|---|---|
next in package.json | Next.js | Server/Client separation, API response format |
fastapi in pyproject.toml | FastAPI | HTTPException usage, router naming |
express/nest in package.json | Node API | Error middleware, response wrapper |
| Any project | Universal | Naming convention |
git diff "$BASE"...HEAD --name-only --stat
Compare changed domains against existing rule scopes → propose CREATE/UPDATE/DELETE.
Always confirm before creating or deleting rules:
Proposed:
+ api-response-format (new, covers src/api/**)
- legacy-auth-check (stale, files removed)
Apply? [Y/n]
Each rule is a markdown file with YAML frontmatter (name, scope, severity) and structured sections (What, Check, Pass Criteria, Examples).
Full guide: references/rule-format.md
Example rules: references/examples/
Pre-commit flow: /verify → /audit → commit
Review loop: Implement → Spec Review → Quality Review → /verify → /audit → Complete
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类