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:
- Anchor paths with
^json\.so text inside descriptions or comments does not false-match. - 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$. - 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 incmd.exeuse double quotes.