ggsql / doc
CLAUDE.md566 starsChanged 52 days agoMITView on GitHub
Source for the public ggsql documentation at <https://ggsql.org>. This directory is the authoritative reference for ggsql syntax and semantics. Other CLAUDE.md files in the repo link here rather than restate. If you are about to document a clause, layer type, scale, or aesthetic anywhere else: stop and put it here instead. Generated artefacts not to edit by hand: sh cd doc quarto preview # local server with hot reload quarto render # full site build → _site/
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
If you are about to document a clause, layer type, scale, or aesthetic anywhere else: stop and put it here instead.
- Very specific: line 75
If you find clause/layer/scale syntax described in any CLAUDE.md file, that is a duplication bug — move it here and link from there.
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
doc/ — Quarto documentation site
Source for the public ggsql documentation at https://ggsql.org. This directory is the authoritative reference for ggsql syntax and semantics. Other CLAUDE.md files in the repo link here rather than restate.
If you are about to document a clause, layer type, scale, or aesthetic anywhere else: stop and put it here instead.
Layout
doc/
├── _quarto.yml Quarto project config (navbar, sidebar, theme, llms-txt)
├── _brand.yml, styles.scss, ggsql.xml Branding + the ggsql syntax-highlight definition
├── index.qmd Landing page
├── faq.qmd
├── get_started/
│ ├── installation.qmd Platform-specific install + CLI quick reference
│ ├── first_plot.qmd Tutorial: first visualization
│ ├── grammar.qmd Grammar of Graphics conceptual foundation
│ ├── anatomy.qmd Anatomy of a ggsql query
│ ├── tooling/ VS Code / Positron / Jupyter / Python / R / CLI / Wasm
│ └── the_rest.qmd Advanced features
├── syntax/
│ ├── index.qmd
│ ├── clause/ draw, facet, label, place, project, scale, visualise
│ ├── layer/
│ │ ├── type/ one .qmd per layer type (point, line, bar, …)
│ │ └── position/ identity, stack, dodge, jitter
│ ├── scale/
│ │ ├── type/ binned, continuous, discrete, identity, ordinal
│ │ └── aesthetic/ position, color, opacity, size, linewidth, shape, linetype, faceting
│ └── coord/ cartesian, polar
├── gallery/
│ ├── index.qmd
│ └── examples/ Runnable example queries
├── assets/, vendor/ Static resources
├── data/CSVs Sample datasets used by examples (data.csv, sales.csv, …)
└── wasm/ Built playground (copied from /ggsql-wasm/demo/dist by build-wasm.sh)Generated artefacts not to edit by hand:
_site/— Quarto build output. Not committed (see.gitignore).*.quarto_ipynb*— Quarto's intermediate notebook files for.qmdpages with executable cells. Regenerated on build.wasm/— produced by/ggsql-wasm/build-wasm.sh.
Authoring conventions
- Pages are Quarto markdown (
.qmd) — markdown plus YAML front-matter. - Code blocks tagged
```ggsqluse the syntax definition inggsql.xml(referenced from_quarto.ymlundersyntax-definitions). Use that fence for runnable / illustrative ggsql snippets. - Each clause page under
syntax/clause/follows the same shape: short narrative, a "Clause syntax" code block listing all subclauses, then sections per subclause with examples. Mirror that shape when adding pages. - Examples that need data reference the CSV files at the top of
doc/(e.g.data.csv,sales.csv,metrics.csv,timeseries.csv). - The site has
llms-txt: truein_quarto.yml, so anllms.txtis generated for AI tooling — keep page titles and descriptions clean.
Site structure (from _quarto.yml)
- Navbar: Get started · Syntax (drop-down per clause) · Gallery · FAQ · News · Playground · Python · R.
- Syntax sidebar: clauses → layers (type + position) → scales (type + aesthetic) → coordinate systems. New
.qmdfiles in those folders are picked up automatically viaauto:glob entries. - Get-started sidebar: hand-ordered list (
installation→first_plot→grammar→anatomy→tooling→the_rest).
Build & preview
cd doc
quarto preview # local server with hot reload
quarto render # full site build → _site/The site is published from the gh-pages branch (see _quarto.yml's repo-branch). Quarto extensions live in _extensions/.
What goes here vs. CLAUDE.md
- Here: anything a ggsql user might want to read — clause syntax, layer types, scales, aesthetics, examples, CLI usage, installation.
- In CLAUDE.md files: implementation details for contributors — module layouts, build pipelines, where to add a new geom, internal types.
If you find clause/layer/scale syntax described in any CLAUDE.md file, that is a duplication bug — move it here and link from there.
See also
/CLAUDE.md— workspace overview./ggsql-wasm/CLAUDE.md— how the embedded playground atwasm/is built.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ggsql-cli/CLAUDE.mdCLAUDE.md
- ggsql-jupyter/CLAUDE.mdCLAUDE.md
- ggsql-vscode/CLAUDE.mdCLAUDE.md
- ggsql-wasm/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- tree-sitter-ggsql/CLAUDE.mdCLAUDE.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

