tree-sitter-analyzer: Skill for Claude Code

.claude/skills/tsa-edit-then-verify/SKILL.md

tsa-edit-then-verify is a skill for Claude Code from aimasteracc/tree-sitter-analyzer. It costs 267 tokens per session (3,720 once invoked), scanned A, original, MIT.

An edit-and-check workflow for making changes to existing code files. It performs safety and health checks before editing, then checks the diff, assesses impact, and runs a focused verification command.

In plain words
What is it for?
Use it for multi-line code changes when you need pre-edit safety checks, post-edit impact analysis, and scoped tests or other verification.
Why use it?
It catches likely problems without automatically running the full test suite for every change. The focused checks are intended to be quicker while still examining affected code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is aimasteracc/tree-sitter-analyzer's own configuration. It tells Claude Code how to work on tree-sitter-analyzer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tree-sitter-analyzer configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/codemap-sync-check.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to aimasteracc/tree-sitter-analyzer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aimasteracc/tree-sitter-analyzer/main/.claude/skills/tsa-edit-then-verify/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/aimasteracc/tree-sitter-analyzer

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tsa-edit-then-verify

README.md
[![agentmods](https://agentmods.dev/badge/skills/aimasteracc/tree-sitter-analyzer/tsa-edit-then-verify/github.svg)](https://agentmods.dev/skills/aimasteracc/tree-sitter-analyzer/tsa-edit-then-verify)
Your own site
<a href="https://agentmods.dev/skills/aimasteracc/tree-sitter-analyzer/tsa-edit-then-verify"><img src="https://agentmods.dev/badge/skills/aimasteracc/tree-sitter-analyzer/tsa-edit-then-verify/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tsa-edit-then-verify

Your own site · 80×15
<a href="https://agentmods.dev/skills/aimasteracc/tree-sitter-analyzer/tsa-edit-then-verify"><img src="https://agentmods.dev/badge/skills/aimasteracc/tree-sitter-analyzer/tsa-edit-then-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 267 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,720 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00267 $0.03720
Opus 5.5 $0.00107 $0.01488
Sonnet 5.5 $0.00053 $0.00744
Haiku 4.5 $0.00027 $0.00372

Measured 1mo ago against content hash 8bd8641e2ae9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tsa-edit-then-verify scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/tsa-edit-then-verify/SKILL.md · 337 lines

How it starts

The opening of the file, as written. The whole thing — 337 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tsa-edit-then-verify — The full edit loop, scoped not full-suite

Source of authority. From docs/agent-tooling-gap-report.md line 58:

Every feature update must run the self-hosted workflow: edit action=safe before risky edits, health action=file on changed files, edit action=impact after edits, its reported verification_command, then the full default suite when risk remains.

This skill is the executable form of that rule. tsa-edit-safety only covers Phase A (the pre-edit gate). This skill covers A + B + C end-to-end and is the canonical replacement for the global verify skill (which runs the full ~5-minute suite every time).

When to use vs. not

Use when you're about to edit (or just edited) a real code file in this repo and the change is more than a 1-line cosmetic fix. The smaller the diff, the bigger the win — full pytest is ~5 min, scoped verification is typically 30-60s.

Don't use for:

  • One-line typo in a doc/comment (no Python AST impact)
  • Pure markdown / README edits (no symbol-level risk)
  • File you're creating from scratch with no callers yet
  • Read-only exploration

Why this exists (vs. verify skill)

Skill What it runs Time When right
verify (global) uv run pytest -q (15k tests) ~5 min Pre-commit gate, large refactor
tsa-edit-then-verify scoped verification_command from edit action=impact 30-60s Every feature update (the mandate)
tsa-edit-safety Pre-edit verdict only ~3s "Is this safe to touch?" — no edit yet

The scoped command targets only the tests reachable from the changed symbols, via the AST call-graph. That's the whole point — edit action=impact returns a verification_command that's narrower than pytest -q but still covers the blast radius the AST sees.

Read the full file on GitHub · 337 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 8bd8641e2ae9
  2. 2mo ago First seen · 337 lines · 267 tokens per session scan A ba76fab3e35d

Subscribe to this mod's changes

tsa-edit-then-verify is a skill published in the GitHub repository aimasteracc/tree-sitter-analyzer (61 stars, last pushed today), licensed MIT. It adds 267 tokens to every session and 3,720 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

context7-docs

Fetch up-to-date documentation and code examples for any library, framework, SDK, CLI tool, or cloud service. Use whenever the user asks about a specific library — even well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot — because training data may not reflect recent API changes or…

upstash/context7 · 157 tokens

memstack-security-owasp-top10

Use this skill when the user says 'OWASP audit', 'OWASP top 10', 'security audit', 'vulnerability assessment', 'full security check', or needs a comprehensive web application security review against OWASP Top 10 categories. Do NOT use for dependency audits or secret scanning alone.

cwinvestments/memstack · 69 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

memstack-business-scope-of-work

Use this skill when the user says 'scope of work', 'SOW', 'define scope', 'project scope', 'write SOW', 'scope document', or is defining project boundaries, deliverables, and acceptance criteria for a formal engagement. Do NOT use for proposals, contracts, or invoicing.

cwinvestments/memstack · 70 tokens

memstack-deployment-ci-cd-pipeline

Use this skill when the user says 'CI/CD', 'GitHub Actions', 'pipeline', 'continuous integration', 'continuous deployment', 'ci-cd-pipeline', 'automate deploys', or needs to set up automated build, test, and deployment pipelines. Do NOT use for one-time manual deployments.

cwinvestments/memstack · 73 tokens

memstack-deployment-docker-setup

Use this skill when the user says 'Docker', 'Dockerfile', 'docker-compose', 'containerize', 'docker-setup', or needs to containerize an application with optimized Docker images and compose configurations. Do NOT use for serverless or static site deployments.

cwinvestments/memstack · 62 tokens