Git Query Tools

git_history and json_query tools for structured git log exploration and jq-style JSON querying.

rcarmo 13a4b39 858 B Updated

File contents

Git Query Tools

Two workspace tools for structured data queries.

git_history

Prefer over raw git log commands. Returns structured JSON with truncation.

git_history({ mode: "log", max_count: 10 })                  # recent commits
git_history({ mode: "message_search", query: "fix bug" })    # search commit messages
git_history({ mode: "content_search", query: "TODO" })       # search code history
git_history({ mode: "blame", file: "path/to/file" })         # file blame

json_query

Prefer over shell jq piping. Validates expressions and returns structured output.

json_query({ file: "data.json", expression: ".items[] | .name" })
json_query({ input: '{"a":1}', expression: ".a" })

rcarmo/piclaw-addons/tree/main/addons/git-query-tools/skills/git-query-tools commit 13a4b39db4

Frequently asked questions

npx skillmds@latest add rcarmo/git-query-tools