agentsclimarketplace

Document model

Skill DATA-AI-XYZ/Atelier/skills/document-model

This skill should be used when the user asks to "document this model", "produce a data dictionary", "explain this semantic model", "what is in this model", "hand over this model to someone", inherits or reviews an unfamiliar TMDL model, or invokes /AtelierBID:document-model. Generates a regenerable data dictionary of tables, columns, measures and relationships, with undocumented elements flagged rather than invented. Read-only, so it is safe to run at any time including in CI.From its SKILL.md

Install
npx -y skills add DATA-AI-XYZ/Atelier --skill document-model

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.9 KB, as published. Nobody here has run it

Document a semantic model

Turns a TMDL model into a readable, regenerable data dictionary. Entirely deterministic — scripts/document-model.js parses the TMDL and renders the markdown. No AI step, and no writes to the model.

Plain-English: point it at a model and get a document explaining what's in it, with the undocumented parts clearly marked instead of quietly glossed over.

This skill is read-only, so it has no confirmation gate and is safe to run repeatedly — including in CI, to keep a committed dictionary in step with the model.

Step 1 — Resolve the model (hard gate)

--model is a directory of *.tmdl files. Establish which directory holds the model.

If the user has not said, look for a *.SemanticModel folder or a directory containing *.tmdl. If none resolves, ask. Never document a directory arrived at by guesswork.

Step 2 — Generate the dictionary

node scripts/document-model.js --model <model-dir> --out <path>/data-dictionary.md

To use a specific marker for undocumented elements:

node scripts/document-model.js --model <model-dir> --out <path>/data-dictionary.md \
  --gap-marker "TODO — undocumented"

--out refuses .. path traversal, so write inside the project.

For a machine-readable pass — useful when diffing model versions or feeding another tool:

node scripts/document-model.js --model <model-dir> --emit-json <path>/model.json

Step 3 — Report the gaps

The dictionary marks every element with no description. Count them and tell the user directly:

data-dictionary.md written — 14 tables, 96 columns, 23 measures

31 elements have no description:
  Sales           12 columns
  Customer         9 columns
  Date             6 columns
  (measures)       4

Do not offer to invent the missing descriptions here. Filling them is a write to the model and belongs to /AtelierBID:update-metadata, which proposes real prose, shows a diff and asks before writing. Point the user there.

That separation is deliberate: it keeps this command safe to run anywhere, at any time, without a confirmation prompt.

Step 4 — Note regenerability

The output is deterministic — re-running against an unchanged model produces byte-identical markdown. Tell the user they can commit the dictionary alongside the model and regenerate it as part of a build, so it cannot silently drift out of date.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.