model-documentation
Skill2 starsChanged 3 months agoMITView on GitHub
Authors and reviews business-facing documentation for analytical models and columns. Use when adding or improving model or column descriptions, documenting grain, keys, measures, dimensions, null semantics, lineage, or docs blocks; when resolving stale or copied descriptions; or when build-model needs documentation for a model.
In this repository24 other files it gives its agents.
- analytics-requirementsSkill
- api-pipelineSkill
- bi-modelSkill
- build-modelSkill
- data-model-reviewSkill
- data-profileSkill
- data-quality-investigationSkill
- dbt-healthSkill
- explain-data-codeSkill
- freshness-investigationSkill
- incremental-modelSkill
- metric-definitionSkill
- migration-planSkill
- model-testsSkill
- project-profileSkill
- pr-reviewSkill
- refactor-modelSkill
- rename-modelSkill
- semantic-layerSkill
- source-setupSkill
- sql-reviewSkill
- trace-lineageSkill
- validate-dbtSkill
- yaml-maintenanceSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Document what a model means and how it may be used, without restating its SQL or inventing business semantics.
- Distinctive: line 12
Add or review model descriptions, column descriptions, and reusable docs blocks.
- Distinctive: line 13
Document grain, keys, measures, dimensions, time anchors, null meaning, and safe aggregation behavior.
- Very specific: line 15
When build-model reaches its documentation step, perform this discovery automatically.
- Distinctive: line 16
Do not use for source declarations, test design, or YAML-only restructuring unless those domains are independently triggered.
- Very specific: line 20
Read .ae/exercise.json when present and honor its mode, constraints, rubric, allowed tools, and artifacts.
- Distinctive: line 32
Write the model description in business terms: one row per what, why the model exists, and material scope or exclusions.
- Distinctive: line 36
Place documentation according to the repository's model-level, grouped-YAML, or docs-block pattern.
- Very specific: line 38
If composing with build-model, return the documentation, evidence, target path, and any unresolved semantic gate.
- Distinctive: line 63
Search project-owned documentation for conflicting definitions of named metrics or fields.
- Distinctive: line 70
Do not place credentials, connection strings, PII, raw row values, or unreleased sensitive metrics in documentation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Model Documentation
Document what a model means and how it may be used, without restating its SQL or inventing business semantics.
When to use
- Add or review model descriptions, column descriptions, and reusable docs blocks.
- Document grain, keys, measures, dimensions, time anchors, null meaning, and safe aggregation behavior.
- Repair stale, copied, contradictory, or implementation-only model documentation.
- When
build-modelreaches its documentation step, perform this discovery automatically; users do not need to invoke another skill. - Do not use for source declarations, test design, or YAML-only restructuring unless those domains are independently triggered.
Mode and conventions
Read .ae/exercise.json when present and honor its mode, constraints, rubric, allowed tools, and artifacts. Otherwise use a user-requested mode; if none is requested, silently use Work.
- Work: author evidence-backed documentation and authorized changes.
- Learn: teach with a hint ladder and leave the learner's wording to them.
- Assessment: grade submitted documentation against stated criteria without rewriting or editing it.
Read .ae/project.yml first and treat human edits as authoritative. If absent, run python3 "${CURSOR_PLUGIN_ROOT}/scripts/infer_conventions.py" <project-root> --json, then inspect representative model SQL, YAML, and docs blocks. Infer YAML strategy, file naming, prose style, and documentation depth from the repository. Apply strong conventions silently, state weak assumptions, ask about real splits, and label defaults where evidence is absent.
Procedure
- Establish the model's grain, purpose, key, upstream inputs, downstream consumers, and selected columns from local artifacts.
- Trace each documented field to SQL, contracts, tests, requirements, or existing authoritative prose. A name alone is not a definition.
- Write the model description in business terms: one row per what, why the model exists, and material scope or exclusions.
- Describe keys by role and measures by unit, time anchor, aggregation behavior, filters, and known non-additivity. Explain meaningful nulls.
- Describe transformations only when they change interpretation. Do not narrate CTEs, casts, aliases, or obvious implementation.
- Reconcile contradictions explicitly. Never silently choose among different business definitions for the same metric.
- Place documentation according to the repository's model-level, grouped-YAML, or docs-block pattern.
- Apply explicitly requested, reversible documentation edits to project-owned YAML or Markdown without asking for a second approval. Preview and ask before deleting or moving files, changing business meaning, or expanding beyond the requested models.
- If composing with
build-model, return the documentation, evidence, target path, and any unresolved semantic gate; do not redo source setup, SQL construction, or model-test design.
Evidence required
Cite the SQL expression or authoritative local requirement behind every material semantic claim. Cite tests or contracts supporting keys and accepted values, plus downstream artifacts supporting usage claims. Separate observed meaning from hypotheses and identify undocumented columns rather than guessing.
Failure modes
- Restating SQL, aliases, or column names instead of explaining business meaning.
- Claiming uniqueness, freshness, additivity, or completeness without evidence.
- Hiding grain, time anchors, exclusions, or null semantics that change interpretation.
- Copying descriptions between models whose grain or filters differ.
- Resolving contradictory metric definitions without stakeholder evidence.
- Treating YAML formatting as documentation work when semantics are unchanged.
- Changing shared business meaning or documentation outside the requested models without preview and approval.
Output contract
For ordinary creation or editing, return # Model Documentation with: Changed; Why; Verified; Remaining uncertainty. Name the model grain and any semantic claim that could not be established. Use formal severity and evidence findings only when reviewing documentation quality or reporting a material risk.
Verification
- Confirm every documented model and column exists locally.
- Compare descriptions against SQL filters, joins, aggregations, and time logic.
- Confirm grain and key language agrees with contracts and tests without overstating them.
- Search project-owned documentation for conflicting definitions of named metrics or fields.
- Parse affected YAML or validate docs-block references with local static tools.
- Propose the smallest documentation-generation or parse command without running dbt.
Safety/privacy
- Local Basic only: use repository files and static local tools; never call MCP, execute dbt, or contact a warehouse.
- Do not place credentials, connection strings, PII, raw row values, or unreleased sensitive metrics in documentation.
- New files may be created and must be listed.
- Explicitly requested reversible documentation edits may proceed; deletions, moves, semantic changes, and scope expansion require preview, blast radius, and approval.
- In Assessment mode, make no repository changes.
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.

