/metalayer:reflectionfrom metalayer
Post-execution quality checks for SQL queries: validates row counts, value ranges, date bounds, grain, magnitude vs past queries, and null rates. Also checks field-level and lore-level validation rules.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /metalayer:reflection still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Post-execution quality checks. Run these after every execute_sql call.
Check each of these against the result set. If any check fails, flag it.
If any check fails, adjust the query and re-execute. You may re-execute up to 2 times. After 2 retries, present the best result with caveats.
Check for validation fields on both lore files and field files that were used in this query. These are domain-specific rules that catch errors generic checks miss.
validation key. Example: a revenue field with validation: "should always be positive" — check the revenue column in the result set.validation key. Example: lore with validation: "login counts should exclude internal workspaces" — check the WHERE clause.If any validation rule is violated, flag it prominently before presenting results. This is a stronger signal than a generic plausibility check — someone wrote this rule because they knew this specific mistake happens.
Maintain a scratchpad throughout the entire ask_data flow. Accumulate notes about:
Always propose changes when any of these are true — this is not optional:
The threshold for proposing is low: if the query needed it and it worked, it belongs in the vault. The user can always reject proposals.
Do NOT propose a change when:
Before drafting any proposal, read the propose-checklist skill and answer every question. This is the most common source of mistakes — the checklist catches them.
After presenting the query results, batch all proposals together. For each:
Never write vault files without explicit user approval. Never interrupt the answer to propose — always batch proposals at the end.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
None: SKILL.md is the whole skill.
Generated from the plugin's indexed repository (ryanjanssen/metalayer) — no native marketplace selected
npx claudepluginhub p/ryanjanssen-metalayer9 skills in this plugin
/ask-dataAsk DataMaster workflow for answering data questions. Follow each phase in order./context-auditContext AuditSemantic checks the LLM performs on vault content. Static validation (duplicate filenames, dangling refs, circular extends, missing type) is handled by Python. This skill covers the checks that require understanding meaning./learnYou are a learning subagent. Your only job is to review what just happened in a data query and propose updates to the vault. You cannot skip this — it is your entire task./propose-checklistPropose ChecklistRead this BEFORE drafting any vault change proposal. Answer each question for every proposed file./setupInitialization workflow for a new Metalayer vault. Run this when starting from scratch or verifying an existing installation./sql-consensusSQL Consensus5-sub-agent SQL generation protocol. Do not skip this — every data question goes through consensus.Other plugins' skills for the same job