gts-analyze
SkillDev toolsAnalyze how the GTS (Global Type System) is used in a Gear, defined types, declared instances, and references across sdk / main / plugin / docs. Thin wrapper around the `gts-analyze` CLI under tools/.
Use gts-analyze in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add gts-analyze and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the gts-analyze skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by constructorfabric/gears-rust in .claude/skills/gts-analyze/SKILL.md and read by Ahel’s review.
Thin wrapper around the workspace binary at tools/gts-analyze/. Source code, full docs, and human-readable usage live there: tools/gts-analyze/README.md.
How to invoke
- Parse the user's invocation for a gear path (absolute or repo-relative). If absent, ask once.
- Run from the workspace root:
First invocation in a fresh checkout compiles the crate (~30s withcargo run --release -p gts-analyze -- <MODULE_PATH> [flags]syn); subsequent runs are instant. - Show the markdown report verbatim — don't summarise away the per-type detail.
Flags
--format json— machine-readable JSON instead of markdown.--out FILE— write report to file instead of stdout.--include-tests— include Rust test files (default skips integration tests, benches,*_test(s).rs, and items behind#[test]/#[cfg(test)]).--skip-docs— drop every*.mdand any file underdocs/. Note: type definitions sourced fromdocs/schemas/*.schema.jsondisappear too — use only for code-only audits.-v/--verbose— expand reference lists to per-linefile:line — context. Default is compact (file + count).
Report sections
- Summary — file counts and totals.
- GTS Types Defined Here — per defined type: schema source (
#[gts_type_schema]/*.schema.json/struct_to_gts_schema!), location, struct name when applicable, and usage breakdown acrosssdk/main/plugin/doc. - GTS Instances Defined Here — per declared instance: macro form, inferred typed struct, base type, location, and usage breakdown.
- Other GTS IDs Referenced — table of IDs not defined here, plus a collapsible per-ID file breakdown.
Tips
- A GTS ID ending with
~is a Type, otherwise an Instance (gts-spec §8.1). - For doc-heavy gears with hundreds of
.mdreferences, suggest--skip-docsif the user only cares about code usage. cargo runbuilds on first invocation; if the user is running this often,cargo build --release -p gts-analyzeonce up front avoids latency.
Signals
- GitHub stars
- 44
- Forks
- 51
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
gts-analyze- Source
- github.com/constructorfabric/gears-rust
github.com/constructorfabric/gears-rust