CtrlK
BlogDocsLog inGet started
Tessl Logo

generate-mdl

Generate a Wren MDL project by exploring a database with available tools (SQLAlchemy, database drivers, MCP connectors, or raw SQL). Guides agents through schema discovery, type normalization, and MDL YAML generation using the wren CLI. Use when: user wants to create or set up a new MDL, onboard a new data source, or scaffold a project from an existing database.

72

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

88%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-engineered CLI workflow skill: every phase is goal-stated, executable, and validated, with a genuine error-recovery loop and a useful anti-pattern list. The main improvement opportunity is moving the YAML spec and per-datasource introspection details into reference files so SKILL.md loads lighter.

Suggestions

Move the per-datasource introspection details (Phase 2 Options A–C) and the model/relationship YAML specifications into a references/ file (e.g. references/model-spec.md), keeping SKILL.md to the phase overview plus one short example, to reduce always-loaded tokens.

Consider dropping or shrinking the Quick reference table, which duplicates commands already shown in the phases, or folding it into the same reference file.

Add a short reference for common validation errors and their fixes so the Phase 5 error list can stay terse while still covering less common failures.

DimensionReasoningScore

Conciseness

The body is lean: phase goals are one-liners ("Goal: Collect table names, column names, column types, and constraints") and almost all prose is Wren-specific, non-obvious knowledge like the callout "These are Wren Engine's internal namespace — they are NOT the database's native catalog or schema". Not 5 because the Quick reference table restates commands already shown and a few driver-specific introspection bullets could be trimmed; not 3 because there is no explanation of concepts Claude already knows.

4 / 5

Actionability

Fully executable throughout: copy-paste-ready SQLAlchemy introspection code with real return shapes, runnable CLI commands ("wren utils parse-type --type \"character varying(255)\" --dialect postgres"), a complete model YAML example, and a concrete test query ("wren --sql \"SELECT * FROM <model_name> LIMIT 1\""). Not 4 because the examples already cover the common cases end-to-end with no gaps.

5 / 5

Workflow Clarity

Eight numbered phases each with an explicit goal, including a pre-flight check (Phase 0 existing-project detection with user decision), and a validate-fix-retry feedback loop: "If validation fails, fix the reported issues and re-run" with a list of common errors. This covers database and batch operations with explicit checkpoints, matching the 5 anchor; 4 would require minor validation gaps, which are absent.

5 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are absent), so the ~300-line body is self-contained: well-sectioned phases, a Quick reference table, and only one-level-deep external pointers ("wren skills get usage", a linked Cube guide). Not 5 because the detailed YAML model spec and per-datasource introspection reference material are inlined and could be split into separate files to shrink the always-loaded context; not 3 because what is inline is clearly signaled and organized, with no buried or nested references.

4 / 5

Total

18

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete capabilities, explicit tool families, and a clear 'Use when' clause with natural trigger phrases in third-person voice. The only minor gap is the absence of synonyms or file-extension variants among the trigger terms.

DimensionReasoningScore

Specificity

Quotes multiple concrete actions covering the whole capability: "exploring a database with available tools (SQLAlchemy, database drivers, MCP connectors, or raw SQL)", "schema discovery, type normalization, and MDL YAML generation using the wren CLI". Together with the named tool families, coverage is comprehensive for this skill; not below 5 because no meaningful action is missing, and 4 would require minor gaps.

5 / 5

Completeness

Explicitly answers both: what — "Generate a Wren MDL project by exploring a database... Guides agents through schema discovery, type normalization, and MDL YAML generation"; when — a full "Use when:" clause with three concrete triggers. Matches the 5 anchor exactly; 4 would require the 'when' to be less explicit.

5 / 5

Trigger Term Quality

Good natural triggers: "create or set up a new MDL", "onboard a new data source", "scaffold a project from an existing database". Not 5 because there are no synonyms or file-extension variants (e.g., wren_project.yml, MDL file), and not 3 because several genuinely natural user phrasings are present rather than only some relevant keywords.

4 / 5

Distinctiveness Conflict Risk

"Wren MDL" is a clear niche with distinct triggers; overlap with generic database skills is minimal because the tool and format are uniquely named. Not 4, since even the secondary triggers ("onboard a new data source" for Wren) are anchored to MDL/wren context.

5 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository
Canner/WrenAI
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.