drupal-mental-model

drupal-mental-model is a skill for Claude Code from jerseycheese/agent-skills. It costs 74 tokens per session (321 once invoked), scanned A, original, MIT.

A teaching aid for explaining programming ideas through concepts familiar to experienced Drupal developers. It uses Drupal's architecture as the comparison point.

In plain words
What is it for?
Use it during code reviews, debugging explanations, architecture discussions, implementation work, and inline code comments when the audience knows Drupal.
Why use it?
It helps Drupal developers understand unfamiliar frameworks and programming patterns without starting from an entirely new mental model.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workflow-skills plugin — 36 skills shipped together

Good fit Use it during code reviews, debugging explanations, architecture discussions, implementation work, and inline code comments when the audience knows Drupal.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerseycheese/agent-skills/drupal-mental-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jerseycheese/agent-skills --skill drupal-mental-model
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/agent-skills

Made for: Claude Code.

Or install workflow-skills, the plugin that ships this one along with the rest of its 36 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drupal-mental-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerseycheese/agent-skills/drupal-mental-model/github.svg)](https://agentmods.dev/skills/jerseycheese/agent-skills/drupal-mental-model)
Your own site
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/drupal-mental-model"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/drupal-mental-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for drupal-mental-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/drupal-mental-model"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/drupal-mental-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00321
Opus 5.5 $0.00030 $0.00128
Sonnet 5.5 $0.00015 $0.00064
Haiku 4.5 $0.00007 $0.00032

Measured 1mo ago against content hash 8cc995a477a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drupal-mental-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/drupal-mental-model/SKILL.md · 30 lines

What it actually says

Drupal Mental Model

Jack is a long-time Drupal developer and themer. When explaining code or programming concepts, map them to Drupal equivalents he already understands. Use Drupal's architecture as the baseline mental model.

Apply only in programming contexts — code reviews, debugging walkthroughs, architecture discussions, implementation work, inline code explanations. Do not use Drupal comparisons for non-programming topics.

Concept mappings

  • React components → Twig templates + preprocess functions
  • Props → template variables passed via preprocess
  • State management (Zustand/Redux) → Drupal's form state API / cache contexts / cache tags
  • Middleware/interceptors → hook system / event subscribers
  • Component composition → block/region/template hierarchy
  • Build pipelines (Vite/webpack) → Drupal's asset library system
  • API routes → Drupal's routing + controllers
  • Context providers → Drupal's dependency injection container
  • CSS-in-JS / Tailwind utility classes → Drupal's theme layer + libraries
  • TypeScript interfaces → Drupal's plugin annotations / entity field definitions
  • Package managers (npm) → Composer
  • Environment variables → Drupal's settings.php / config system
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines · +3 tokens per session 8cc995a477a4
  2. 3mo ago First seen · 26 lines · 71 tokens per session scan A d1f43f391777

Subscribe to this mod's changes

drupal-mental-model is a skill published in the GitHub repository jerseycheese/agent-skills (4 stars, last pushed 4d ago), licensed MIT. It adds 74 tokens to every session and 321 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

drupal-mental-model compared with skills from other repositories

drupal-mental-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drupal-mental-modeljerseycheese/agent-skillsSkill44d agoMITA74Claude Code
omh-codebase-umlrlaope/oh-my-hermesSkill6.4kyesterdayMITA20Claude Code
startAlpacaLabsLLC/skills-for-architectsSkill45410d agoMITA71Claude Code
Teach From Sourcesjuspay/xyne-spacesSkill837todayApache-2.0A39Claude Code, Codex
learning-assistantcafe3310/public-agent-skillsSkill26220d agoApache-2.0A26Claude Code, Codex
case-interview-practicetravisjneuman/.claudeSkill116yesterdayMITA39Claude Code
project-learnercafe3310/public-agent-skillsSkill26220d agoApache-2.0A46Claude Code, Codex