Borrowing it
Nothing to install: this file belongs to aalpar/wile-goast. 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/aalpar/wile-goast/master/.claude/skills/goast-semiring-queries/SKILL.mdgit clone --depth 1 https://github.com/aalpar/wile-goastWrote 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/aalpar/wile-goast/goast-semiring-queries)<a href="https://agentmods.dev/skills/aalpar/wile-goast/goast-semiring-queries"><img src="https://agentmods.dev/badge/skills/aalpar/wile-goast/goast-semiring-queries/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/aalpar/wile-goast/goast-semiring-queries"><img src="https://agentmods.dev/badge/skills/aalpar/wile-goast/goast-semiring-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00094 | $0.02864 |
| Opus 5.5 | $0.00038 | $0.01146 |
| Sonnet 5.5 | $0.00019 | $0.00573 |
| Haiku 4.5 | $0.00009 | $0.00286 |
Grade A, and why
goast-semiring-queries 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 — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Semiring queries over the Go call graph
A path question over a call graph is an algebra question. Pick the semiring and the query writes itself. Do not hand-roll a traversal.
Routing: derive the semiring in three lines
- What do you accumulate along a path? A yes/no, a cost, a count.
- What is ⊕ (combine two alternative paths)? OR, min, +.
- What is ⊗ (extend a path by one edge)? AND, +, ×.
Those two operators name the semiring: OR/AND → boolean · min/+ → tropical · +/× → counting. If your answer doesn't fit, it is probably not a semiring question — see Not a semiring question.
Setup, once
(import (wile goast callgraph) ; go-callgraph
(wile goast path-algebra) ; make-path-analysis, path-query, ...
(wile goast utils) ; nf — field access on cg-node / cg-edge
(wile algebra semiring)) ; boolean-semiring, tropical-semiring, ...
(define cg (go-callgraph "«pattern»" 'vta))
Build the graph once and pass it around; name the algorithm explicitly
('static < 'cha < 'rta < 'vta in precision and cost; 'rta errors
without a main). Rebuilding per query is the dominant cost in a slow session.
Call-graph records are accessed with nf, not per-field accessors:
(nf edge 'callee), (nf edge 'caller), (nf edge 'pos), (nf node 'name).
There is no cg-edge-callee.
R1 · Reachability — boolean
Intent triggers: can X reach Y · what does X reach · what reaches Y · does this handler ever hit the DB · blast radius of changing Y
Reduction principle: accumulate reachable-or-not. ⊕ = OR (any one path suffices), ⊗ = AND (a path exists only if every edge on it does). → boolean.
Structure: (boolean-semiring), unit weights (#f).
Recipe:
(go-callgraph-reachable cg "«root»") ; forward: everything root can reach
(go-callgraph-reaching cg "«target»") ; backward: transitive callers = blast radius
(path-query (make-path-analysis (boolean-semiring) cg #f)
"«src»" "«dst»") ; point-to-point => #t / #f
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 · 283 lines · 94 tokens per session scan A e33d1a854d05
goast-semiring-queries is a skill published in the GitHub repository aalpar/wile-goast (5 stars, last pushed 8d ago), licensed Apache-2.0. It adds 94 tokens to every session and 2,864 once invoked, about $0.0004 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-31.
goast-semiring-queries compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| goast-semiring-queriesaalpar/wile-goast | Skill | 5 | 8d ago | Apache-2.0 | A | 94 | Claude Code |
| wakarupionxzh/wakaru | Skill | 1.1k | yesterday | Apache-2.0 | A | 99 | Claude Code, Codex |
| tree-sitter-language-pack-extracting-code-structurexberg-io/tree-sitter-language-pack | Skill | 483 | yesterday | MIT | A | 52 | Claude Code |
| tree-sitter-language-pack-parsing-sourcexberg-io/tree-sitter-language-pack | Skill | 483 | yesterday | MIT | A | 48 | Claude Code |
| windows-compatsdsrss/code-graph-mcp | Skill | 92 | yesterday | MIT | A | 165 | Claude Code, Codex |
| indexsdsrss/code-graph-mcp | Skill | 92 | yesterday | MIT | A | 44 | Claude Code |
| exploresdsrss/code-graph-mcp | Skill | 92 | yesterday | MIT | A | 55 | Claude Code |