From Mental Model Auditor Skill
Audit, update, and create mental model documents by comparing them against a live prototype or its source code. Use this skill whenever the user asks to sync, audit, update, review, or validate a mental model (YAML, Markdown, or any structured doc that describes how a system works) against a running prototype or staging environment. Also trigger when the user says things like "the prototype changed, update the model", "check if the mental model matches what we built", "diff the spec against the app", or "we need a new model for this feature". This skill inspects local context first, asks only for missing inputs, and always produces an approval-ready audit plan before doing the deeper audit work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mental-model-auditor:mental-model-auditorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Keeps mental model documents faithful to what is implemented in a prototype, and identifies
Keeps mental model documents faithful to what is implemented in a prototype, and identifies when an entirely new mental model should be created.
Grounding rule:
Inspect whatever can be learned locally before asking for help. Read the target mental model files or directories, read any explicit conventions the user referenced, and otherwise infer format from the existing models. Read prototype source files when the user supplied a repo path or when nearby source paths are discoverable. Build an internal coverage map of entities, relationships, flows, permissions, UI surfaces, and scope boundaries. Do not ask questions that can be answered from local files.
Ask only for unresolved information that materially affects the audit, one round at a time. Keep questions generic and grounded; do not mention product areas, roles, pages, or model names unless the user supplied them or local inspection confirmed them. Resolve scope first, then prototype URL, credentials, and target sections, and only then ask feasibility or gap-handling questions.
When a parent models directory contains multiple immediate child folders, present those discovered folders as the scope options before asking anything else. List discovered folders neutrally without recommendations or pre-filtering. Do not invent rollups such as "all folder-a models" or "modified only" unless the user asked for that filter. Let the user choose one or more folders, then ask follow-up questions only after scope is confirmed.
If the user says "all affected models" or points to a large directory, list the candidate files or folders you found and state which ones you plan to include. If the user already gave enough information to proceed, do not ask redundant confirmation questions.
Before using Playwright for a full audit and before proposing exact file edits, produce an
approval-ready Markdown plan using references/prompt-template.md. This is the first
substantial deliverable. Use the required title format, section order, and findings table
columns from the template exactly. Populate the initial findings table from local model or
prototype source inspection whenever possible; do not wait for browser verification to form
the initial hypothesis. Do not include YAML edits, unified diffs, final replacement text, or
full new-model drafts before approval. Use Execution Plan to describe how live prototype
navigation will verify and refine those findings. Stop here. Ask the user to approve or
request changes.
After approval, navigate the prototype with Playwright, authenticate for each role the user wants tested, and verify the findings table against the live UI. Capture screenshots when they materially support a non-obvious finding. Note role-specific differences, state-dependent behavior, and anything discovered in the live prototype that was not obvious from source inspection. Be thorough across modals, filters, tabs, search, empty states, detail views, wizard steps, sort order, and conditional UI.
After the live audit, produce a change proposal rather than editing model files directly.
Include a summary table, diffs for existing models, new-model drafts only when warranted, and
rationale tied to concrete observations from the prototype or source. Preserve existing
structure and conventions, prefer surgical edits over rewrites, and use
NEEDS_CLARIFICATION when ambiguity remains.
Use these statuses exactly:
| Status | Meaning |
|---|---|
ACCURATE | Mental model matches the implementation. |
OUTDATED | Exists in both, but the mental model is inaccurate. |
MISSING | Exists in the prototype but not in the mental model. |
REMOVED | In the mental model but no longer in the prototype. |
NEEDS_CLARIFICATION | Ambiguous, incomplete, or suspicious in the prototype. |
NEW_MODEL | A separate mental model should likely be created. |
Use confidence levels high, medium, or low.
Bias toward updating existing models. Only propose NEW_MODEL when the uncovered area is a
self-contained domain with its own navigation, data, and workflows, rather than a missing
section in an existing model.
NEEDS_CLARIFICATION; do not guess.references/prompt-template.md~/.claude/skills/mental-model-ymlMinimal trigger
User: "Update the mental models, the prototype changed a lot."
Skill: inspects local files first, asks only for missing URL, credentials, or scope, then
returns the approval-ready audit plan.
Partial trigger
User: "Audit [model-file] against [prototype-url], focus on [section]."
Skill: reads the referenced model, infers conventions, asks only for missing credentials or
scope details if needed, then returns the approval-ready audit plan.
Full trigger
User: "Audit [model-path] against [prototype-url].
Credentials: [role-a] ([username] / [password]), [role-b] ([username] / [password]).
Focus on [section-name]. Conventions in [style-guide-path]."
Skill: inspects the files, produces the approval-ready audit plan, waits for approval, then
executes the deeper audit.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub rafaeelricco/dotfiles --plugin mental-model-auditor