agentleFS
jerseycheesejerseycheese/agent-skills/skills/drupal-mental-model/SKILL.md

drupal-mental-model

Skill4 starsChanged 15 days agoMITView on GitHub

Explains code by mapping programming concepts to the Drupal equivalents Jack knows from years of Drupal and theming work. Use in code explanations, debugging walkthroughs, code reviews, and architecture talks when a non-Drupal concept needs grounding. Trigger on: "explain this code", "walk me through this", "what's the Drupal equivalent".

The file

Files
SKILL.md

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.