用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/tomes --skill tsa-structure命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-structure |
| description | | Use when this capability is needed. |
| Question | Tool |
|---|---|
| Outline / table of classes + methods | structure action=analyze |
Run a tree-sitter query (e.g., all def nodes) | search action=query |
| Detect design patterns (singleton, factory, …) | health action=patterns |
| Classify a diff (refactor vs feature vs fix) | edit action=classify |
structure action=analyze file_path="tree_sitter_analyzer/health_scorer.py"
# returns: {classes: [...], functions: [...], imports: [...]}
For a markdown-formatted table:
uv run tree-sitter-analyzer <file> --table full
When you need something the built-in tools don't surface:
search action=query file_path="..." query_key="class"
# OR
search action=query file_path="..." query_string="(decorated_definition) @decorated"
--list-queries (CLI) shows all built-in queries available per language.
edit action=classify file_path="..." before_hash="abc" after_hash="def"
# returns: {classification: "refactor|feature|bugfix|test|docs|chore", confidence: 0.92}
Useful for PR descriptions and CHANGELOG categorization.
health action=patterns file_path="..." patterns=["singleton", "factory", "observer"]
uv run tree-sitter-analyzer <file> --table full # outline
uv run tree-sitter-analyzer <file> --query-key class # built-in query
uv run tree-sitter-analyzer <file> --query-string "(...)" # custom query
uv run tree-sitter-analyzer <file> --code-patterns
uv run tree-sitter-analyzer --semantic-classify # edit action=classify
structure action=analyze covers itedit action=classify on huge multi-purpose commits — split them firstSource: aimasteracc/tree-sitter-analyzer — distributed by TomeVault.