tree-sitter-al: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from SShadowS/tree-sitter-al. It costs 0 tokens per session (2,814 once invoked), scanned A, original, MIT.

A release command for tree-sitter-al, a parser project for AL code. It checks tests and production parsing, then publishes releases to GitHub, npm, PyPI, and crates.io.

In plain words
What is it for?
Use it when preparing and publishing a new version across the project's supported package registries.
Why use it?
It collects the project's release checks and publishing steps so an incomplete or invalid parser is less likely to be distributed.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is SShadowS/tree-sitter-al's own configuration. It tells Claude Code how to work on tree-sitter-al 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-al configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SShadowS/tree-sitter-al. 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/SShadowS/tree-sitter-al/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/SShadowS/tree-sitter-al

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 release

README.md
[![agentmods](https://agentmods.dev/badge/commands/sshadows/tree-sitter-al/release/github.svg)](https://agentmods.dev/commands/sshadows/tree-sitter-al/release)
Your own site
<a href="https://agentmods.dev/commands/sshadows/tree-sitter-al/release"><img src="https://agentmods.dev/badge/commands/sshadows/tree-sitter-al/release/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 release

Your own site · 80×15
<a href="https://agentmods.dev/commands/sshadows/tree-sitter-al/release"><img src="https://agentmods.dev/badge/commands/sshadows/tree-sitter-al/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,814 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.
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.00000 $0.02814
Opus 5.5 $0.00000 $0.01126
Sonnet 5.5 $0.00000 $0.00563
Haiku 4.5 $0.00000 $0.00281

Measured 25d ago against content hash 03703a17f772, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

release 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 25d 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/commands/release.md · 218 lines

How it starts

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

Release tree-sitter-al

Execute the full release process for tree-sitter-al. This publishes to GitHub Releases, npm, PyPI, and crates.io.

All three registries authenticate with OIDC trusted publishing. There are no publish tokens stored in the repository.

Pre-flight Checks

Before starting, verify:

  1. All tests pass: tree-sitter test

  2. Production validation: ./parse-al-parallel.sh ./BC.History/ . (0 errors)

  3. No unexpected ERROR/MISSING nodes in any test — this must print nothing:

    grep -rn "(ERROR\b\|(MISSING\b" test/corpus/ --include="*.txt" \
      | grep -v "ERROR(" \
      | grep -vE "(^|/)($(grep -v '^#' tools/deliberate-negatives.txt | grep . | sed 's/\.txt$//' | paste -sd'|' -))\.txt:"
    

    The (^|/)…\.txt: anchoring is load-bearing. grep -rn emits path:lineno:content, so an unanchored name matches anywhere in the line — including the matched source text — and would silently exempt any future fixture whose content happens to mention one of these names. Anchored, the name must be the file's own basename, which is exactly the comparison validate-grammar.sh makes.

    Both alternatives need the opening paren. This search previously read MISSING\b without it, while ERROR required (ERROR\b. Expected trees write these as (MISSING xyz) and (ERROR), so the bare form matched the word anywhere on a line — a fixture title or a prose comment containing "MISSING" failed the release. validate-grammar.sh Step 3 anchors its equivalent search to line starts and was never affected, so the two gates disagreed on what counts as a hit. Found by writing a fixture titled with the bare word.

    The exempt files are deliberate negatives — their ERROR nodes are the assertion. Any hit OUTSIDE them is a real problem. They are listed, each with its reason, in ONE file: tools/deliberate-negatives.txt. validate-grammar.sh Step 3 reads the same file (exact basename match) and so does tools/has_error_sweep.py --corpus-fixtures, so the gates cannot exempt different sets. Until that file existed, this command and Step 3 each kept a hand copy and the prose count here drifted from the list twice. Add a new negative there, never here.

  4. Working directory is clean (no uncommitted grammar/scanner changes)

  5. src/parser.c is current: run tree-sitter generate and confirm no diff. CI fails otherwise, because parser-test-action regenerates and runs git diff --exit-code.

Read the full file on GitHub · 218 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. 25d ago Changed · -31 lines 03703a17f772
  2. 2mo ago First seen · 249 lines · 0 tokens per session scan A 576f4fd7d0d9

Subscribe to this mod's changes

release is a command published in the GitHub repository SShadowS/tree-sitter-al (24 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,814 tokens. 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.