The StackQL query library: curated, parameterized, known-good StackQL queries
for cloud inventory, security and operations, published at
stackql.io/docs/query-library and
consumed by the stackql MCP server's query_library_search /
query_library_get tools.
This repo builds and deploys as its own Netlify site, but is served to the
public through the main stackql.io site's proxy rewrite at
https://stackql.io/docs/query-library/*. The Docusaurus url + baseUrl in
docusaurus.config.js and the redirect in the stackql.io
repo's netlify.toml must agree - see the comments in both files. Browsing
the raw subdomain directly shows broken asset paths; that is expected, the
canonical URLs live on stackql.io.
query-library/- the library sources: Markdown entries with YAML front matter underqueries/<family>/<service>/<slug>.md(provider family directories - e.g.awscovers both theawsandawsccproviders,databrickscoversdatabricks_accountanddatabricks_workspace), plus schema, scripts and templates. See CONTRIBUTING.md.static/docs/query-library/- committed, script-generated artifacts (manifest.json,index.json,index.md, per-query.json/.md). Never hand-edit; regenerate with the build script. The path is a frozen contract surface (raw-GitHub fallback tier for MCP servers).src/- the minimal Docusaurus shell: query library React components, theDocItem/Contenttheme wrapper and global CSS..github/workflows/- per-PR validation and artifact freshness gate (query-library-ci.yml) and nightly live verification (query-library-nightly.yml).
python query-library/scripts/validate.py
python query-library/scripts/build-artifacts.pyCommit regenerated static/docs/query-library/ files together with the source
change - CI fails the PR if they are stale.
yarn # install
yarn start # dev server (renders at localhost:3000/docs/query-library/)
yarn build # production build into build/
yarn serve # serve the production buildNo environment variables are required to build.