Borrowing it
Nothing to install: this file belongs to ionide/tree-sitter-fsharp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ionide/tree-sitter-fsharp/main/.opencode/skills/tree-sitter-parse-testing/SKILL.mdgit clone --depth 1 https://github.com/ionide/tree-sitter-fsharpWrote 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.
[](https://agentmods.dev/skills/ionide/tree-sitter-fsharp/tree-sitter-parse-testing)<a href="https://agentmods.dev/skills/ionide/tree-sitter-fsharp/tree-sitter-parse-testing"><img src="https://agentmods.dev/badge/skills/ionide/tree-sitter-fsharp/tree-sitter-parse-testing/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.
<a href="https://agentmods.dev/skills/ionide/tree-sitter-fsharp/tree-sitter-parse-testing"><img src="https://agentmods.dev/badge/skills/ionide/tree-sitter-fsharp/tree-sitter-parse-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 16 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 85 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 88 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00729 |
| Opus 5.5 | $0.00008 | $0.00292 |
| Sonnet 5.5 | $0.00004 | $0.00146 |
| Haiku 4.5 | $0.00002 | $0.00073 |
Grade A, and why
tree-sitter-parse-testing 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tree-Sitter Parse Testing
Overview
Use tree-sitter parse -d to debug parsing issues. The debug output shows the state machine transitions, helping identify where parsing fails.
Parsing a Code Snippet
Run from the parser directory (fsharp/ or fsharp_signature/):
echo 'let x = 1' | npx tree-sitter parse -d
Interpreting Output
Successful Parse
(file [0, 0] - [1, 0]
(declaration_expression [0, 0] - [0, 9]
...))
- Node format:
(nodename [start_row, start_col] - [end_row, end_col]) - Children indented inside parent nodes
Parse Errors
(ERROR [0, 0] - [0, 7]
...)
- ERROR nodes indicate parsing failure at that location
Missing Tokens
(MISSING identifier [0, 8] - [0, 8])
- MISSING indicates expected token that wasn't found
Debug Output Analysis
Key patterns to look for:
| Pattern | Meaning |
|---|---|
detect_error |
Parser encountered unexpected token |
recover_with_missing |
Parser inserted placeholder to recover |
recover_with_error |
Parser skipped tokens to recover |
shift state:N |
Parser shifted to state N |
reduce sym:X |
Parser reduced using rule X |
accept |
Parse completed successfully |
Debugging Workflow
- Run parse without
-dto see the tree - If tree looks wrong (ERROR nodes, unexpected structure):
- Run with
-dto see the debug output - Look for
detect_errornear the problem location - Check which state the parser was in when error occurred
- Compare expected tokens at that state against actual input
Infinite Loops
If the debug output repeatedly emits the same token or state indefinitely, the parser has entered an infinite loop. This typically happens when:
- A grammar rule injects tokens without consuming any input
- The scanner (
src/scanner.c) is returning tokens that don't advance the parse position
** Symptoms:**
- Debug output shows the same token being processed repeatedly
- The parser never reaches
acceptor an error state - Command appears to hang
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.
- 2mo ago First seen · 98 lines · 21 tokens per session scan A 28aec311d583
tree-sitter-parse-testing is a skill published in the GitHub repository ionide/tree-sitter-fsharp (98 stars, last pushed 16d ago), licensed MIT. It adds 21 tokens to every session and 729 once invoked, about $0.0001 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.
Other skills, from other repositories
test-master
Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
principle-test-behavior-not-implementation
Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.
dart-test
DART Test: unit tests, integration tests, CI validation, and debugging.
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.