module-scaffold

module-scaffold is a skill for Claude Code, Codex from caravanglory/magehub. It costs 29 tokens per session (1,872 once invoked), scanned A, original, MIT.

A starter structure for a Magento 2 module, including the files Magento and Composer need to recognise it.

In plain words
What is it for?
Creating a new module in app/code or as a Composer package, declaring direct module dependencies, and repairing missing registration or module metadata files.
Why use it?
It removes the guesswork of setting up registration, module metadata, dependencies, and the correct folders before development begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating a new module in app/code or as a Composer package, declaring direct module dependencies, and repairing missing registration or module metadata files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/caravanglory/magehub/module-scaffold
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 caravanglory/magehub --skill module-scaffold
Clone the repo
git clone --depth 1 https://github.com/caravanglory/magehub

Made for: Claude Code, Codex.

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 module-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/skills/caravanglory/magehub/module-scaffold.svg)](https://agentmods.dev/skills/caravanglory/magehub/module-scaffold)
Your own site
<a href="https://agentmods.dev/skills/caravanglory/magehub/module-scaffold"><img src="https://agentmods.dev/badge/skills/caravanglory/magehub/module-scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,872 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.00029 $0.01872
Opus 5 $0.00015 $0.00936
Sonnet 5 $0.00006 $0.00374
Haiku 4.5 $0.00003 $0.00187

Measured 7d ago against content hash 2de376c17ce4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

module-scaffold 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 7d 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/module/module-scaffold/SKILL.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Module Scaffolding

Activation

Use When
  • The task is to create a new Magento module skeleton or repair missing registration.php, etc/module.xml, or composer.json metadata.
  • The task mentions app/code, module registration, module.xml sequence, Composer autoloading, or enabling a new module.
Do Not Use When
  • The module already exists and the task is about DI, plugins, setup scripts, API, or admin UI behavior.
  • The task is to package an existing module for Marketplace or Composer distribution beyond the basic skeleton.
Required Inputs
  • Vendor name, module name, install path strategy (app/code or Composer package), and direct module dependencies if any.
  • Whether the module should be enabled immediately and which environment wrapper runs Magento commands.

Workflow

  1. Inspect the repository structure and naming conventions before creating files.
  2. Create the minimal module skeleton: registration.php, etc/module.xml, composer.json, and sequence entries only for direct config/schema dependencies.
  3. Keep the scaffold free of business logic, setup scripts, DI wiring, and frontend/admin artifacts unless the task explicitly asks for them.
  4. Run the smallest command that proves Magento can discover the module.

Guardrails

  • Do not add broad module sequence dependencies just to force load order.
  • Do not run module:enable or setup:upgrade without confirming the project environment wrapper and working tree state.
  • Ask before enabling a module or running setup:upgrade because it changes generated config/database state. (approval required)

Verification

  • Run composer validate when composer.json is created or changed.
  • Run bin/magento module:status Vendor_Module through the project wrapper when Magento is available.
  • Run setup:di:compile only when scaffold includes DI-bearing classes or the project requires compile as a discovery gate.

Output Contract

  • List created scaffold files, module name, dependency sequence entries, autoload mapping, and commands run.
  • State whether module enable/setup:upgrade was executed or intentionally skipped.

Read the full file on GitHub · 225 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 225 lines · 29 tokens per session scan A 2de376c17ce4

Subscribe to this mod's changes

module-scaffold is a skill published in the GitHub repository caravanglory/magehub (2 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 1,872 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

amazon-price-tracker

Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.

nexscope-ai/Amazon-Skills · 51 tokens