Add read-only db-debug agent skill wrapping scripts/db-debug.sh#3957
Open
TaprootFreak wants to merge 4 commits into
Open
Add read-only db-debug agent skill wrapping scripts/db-debug.sh#3957TaprootFreak wants to merge 4 commits into
TaprootFreak wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a read-only
db-debugagent skill that wraps the existingscripts/db-debug.shCLI, so anyagent (and any teammate) gets the documented query modes and database schema without re-explaining
them each session. The script itself is unchanged and stays usable directly on the shell.
The skill follows the open Agent Skills
SKILL.mdstandard and istool-neutral: frontmatter is limited to the portable core (
name,description), and the bodyuses repository-relative paths only.
It also documents three companion balance-forensics scripts (
compare-balance-logs.sh,inspect-asset-balance.sh,sum-asset-balances.sh) as part of the same skill.Why fold them in rather than make a second skill: all three use the byte-identical
DEBUG_ADDRESS/DEBUG_SIGNATURE/.envauth and the same/gs/debugendpoint asdb-debug.sh,and operate on the same
log/ FinancialDataLogbalancesTotalsnapshot structure thatreference.mdalready documents. A separate "balance-forensics" skill would split the sameinterpretation rules across two places; documenting them as modes of
db-debugkeeps the knowledgein one location. This directly serves the recurring total-balance-step investigations.
Why this location
.claude/andCLAUDE.mdare git-ignored in this repo, so shared, version-controlled skills livein a neutral top-level
skills/directory instead. Each developer points their own agent at it(per-developer agent config stays local). This is documented in a new Agent skills section in
CONTRIBUTING.md.Files
skills/db-debug/SKILL.md— modes, invocation, and theliquidity_balancesnapshot queryskills/db-debug/reference.md—/gs/debugsemantics, FinancialDataLog /balancesTotal, andthe
liquidity_balanceschema (loaded on demand)CONTRIBUTING.md— new Agent skills sectionNotes
/gs/debugalready enforces thisserver-side through SQL AST validation.
.env.(defense in depth).
PR completeness
Closes #3955. Related: #3956 (db-debug.sh efficiency improvements).