openapi-lockfile-json-search

Installation
SKILL.md

Search OpenAPI Specs, package-lock.json, and Cloud/K8s JSON

OpenAPI descriptions (often 8–15 MB), package-lock.json, and kubectl get -o json dumps are too big to read whole and too deeply nested for plain grep. Use path-anchored gronify --no-color search --regex patterns to answer exact questions in one pass.

Prerequisites & path-anchoring rules

Check command -v gronify (or use npx gronify). Always pass --no-color, check --count first, and cap exploratory runs with -m.

Remember three Gronify formatting rules when writing JavaScript regexes:

  1. Anchor paths with ^json\. so text inside descriptions or comments does not false-match.
  2. Non-identifier keys (URLs, npm paths, hyphenated schemas) print in brackets: json.paths["/repos/{owner}/{repo}/pulls"]. Match any bracketed key with \["[^"]+"\] and escape literal [, ], {, }, ., and $.
  3. Pin to the value side with = true$ or = "value"$. In bash/zsh and PowerShell 7+, wrap patterns containing $ or " in single quotes ('\$ref'); in Windows PowerShell 5.1 escape inner double quotes (\"), and in cmd.exe use double quotes.

OpenAPI and Swagger specs

Installs
1
First Seen
1 day ago