用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/tomes --skill tsa-edit-safety命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
> Use when this capability is needed.
Use when writing kernel, account, or note MASM code that reads from or writes to the advice provider (advice stack / advice map) — validate advice data.
Use when writing a Rust test that exercises a failure path or a MASM test that expects a `panic` / `assert` — assert on the specific expected error variant or error code.
基于 SOC 职业分类
正在显示 SKILL.md
| name | tsa-edit-safety |
| description | | Use when this capability is needed. |
Replaces grep/read/git-diff/blame exploration with 2-3 MCP calls returning verdict + exact command to verify. 80% token reduction vs. manual recon.
git diff shows pending changes you want to evaluateDon't use when:
Call these 3 tools in ONE message:
edit action=safe with file_path: "<the file>" and edit_type: "<refactor|add_feature|fix_bug|rename>"edit action=impact with mode: "staged" (or "branch" if pre-stage), scope to the filehealth action=file with file_path: "<the file>"Verdict precedence (worst wins):
UNSAFE (from constraints or impact) → STOP, explain why, do not editCAUTION (high impact / dependencies / hot zone) → narrow scope, write tests firstREVIEW (moderate, often "no tests nearby") → write tests before editSAFE → proceed; still run the returned verification_commandverification_commandThe tools return a verification_command and stop_condition. Surface them
verbatim to the user before editing. Example:
verdict: REVIEW verification_command:
uv run pytest tests/unit/test_health_scorer.py -qstop_condition: tests exit successfully next_step: write a failing test for the new behaviour first
No tests nearby → escalate to REVIEW + recommend tdd workflow
__init__.py edit → REVIEW automatically (re-exports)
mod_count_30d >= 5 → CAUTION (hot zone — extra review attention)
Constraint violation → UNSAFE (architectural rule — forbidden edge)
uv run tree-sitter-analyzer <file> --safe-to-edit --edit-type refactor --output-format json
uv run tree-sitter-analyzer --change-impact --change-impact-mode staged --agent-summary-only --output-format json
uv run tree-sitter-analyzer <file> --file-health --output-format json
__init__.py, conftest.py).verdict: SAFE | REVIEW | CAUTION | UNSAFE
file_path: <abs>
risk_level: safe | caution | high
edit_strategy: focused_edit_with_tests | narrow_then_widen | freeze_and_redesign
verification_command: <copy-paste exact pytest line>
stop_condition: <when to declare done>
risk_factors: [{factor, detail, severity}, ...]
health_grade: A | B | C | D | F
constraint_violations: [] # non-empty triggers UNSAFE
hot_zone: bool # mod_count_30d >= 5 → true
Source: aimasteracc/tree-sitter-analyzer — distributed by TomeVault.