Home / stbenjam / skillsaw · tests/fixtures/content/inline-tool-examples/.claude/skills/ledger-query/SKILL.md · GitHub
ledger-query skillA
ledger-query is agent-read markdown (skill) from stbenjam/skillsaw: Query the ledger replica for transfers, balances, and audit rows. Use when debugging data issues in acme-api..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Ledger Query
Use the query tool to pull rows from the ledger replica. For example:
query(sql="SELECT * FROM transfers WHERE id = 42")
Another example, limiting columns:
query(sql="SELECT amount FROM transfers WHERE id = 42")
A third example, joining audit rows:
query(sql="SELECT * FROM audit WHERE transfer_id = 42")
Never run queries against the primary; the replica lags at most 30
seconds and that is always acceptable for debugging.
Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
GET https://markdownregistry.com/api/v1/artifacts/art_r7tolg3qmayewcev
GET https://markdownregistry.com/api/v1/resolve?ref=stbenjam/skillsaw/ledger-query
GET https://markdownregistry.com/api/v1/blob/a30413fc79d92f8fb6261ff7f9036a9a154226f0364e7406298f40f40230cefc
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
stbenjam/skillsaw · .agents/skills/skillsaw-issue-solver/SKILL.md · Pick up open GitHub issues from collaborators and create PRs to solve them. Use when triaging and resolving reported…
stbenjam/skillsaw · .agents/skills/skillsaw-issue/SKILL.md · Use when skillsaw reports a likely false positive, misses an edge case, behaves incorrectly, or needs an RFE. Gather a…
stbenjam/skillsaw · .agents/skills/skillsaw-lint/SKILL.md · Use when modifying agentic contextual building blocks like skills (SKILL.md), slash commands, agents, hooks, plugins…
stbenjam/skillsaw · .agents/skills/skillsaw-onboard/SKILL.md · Onboard a repository to skillsaw — run the linter, triage the findings by rule, apply autofixes, manually fix what…
stbenjam/skillsaw · .agents/skills/skillsaw-pr-followup/SKILL.md · Follow up on open PRs in skillsaw — fix failing CI, address reviewer feedback, push updates, and validate backward…
stbenjam/skillsaw · .agents/skills/skillsaw-release-ready/SKILL.md · Audit skillsaw for release readiness — test new rules against real repositories, audit core architectural dimensions…
stbenjam/skillsaw · .agents/skills/skillsaw-release/SKILL.md · Bump the version, generate release notes, and publish a new skillsaw release to PyPI. Use when cutting a new release.