create-module

create-module is a skill for Claude Code from marko-php/marko. It costs 120 tokens per session (2,243 once invoked), scanned A, original, MIT.

A scaffold for a new Marko module, which is a self-contained PHP Composer package that Marko can discover automatically. It creates the package configuration, namespaced source folder, and Pest tests.

In plain words
What is it for?
Use it to create application modules or distributable Composer packages in a Marko project or framework monorepo.
Why use it?
It removes the need to remember the required folders, naming rules, and configuration when starting a Marko package.

Skill for Claude Code

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

Part of the marko-skills plugin — 2 skills shipped together

Good fit Use it to create application modules or distributable Composer packages in a Marko project or framework monorepo.

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

Made for: Claude Code.

Or install marko-skills, the plugin that ships this one along with the rest of its 2 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 create-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/marko-php/marko/create-module/github.svg)](https://agentmods.dev/skills/marko-php/marko/create-module)
Your own site
<a href="https://agentmods.dev/skills/marko-php/marko/create-module"><img src="https://agentmods.dev/badge/skills/marko-php/marko/create-module/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 create-module

Your own site · 80×15
<a href="https://agentmods.dev/skills/marko-php/marko/create-module"><img src="https://agentmods.dev/badge/skills/marko-php/marko/create-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,243 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00120 $0.02243
Opus 5.5 $0.00048 $0.00897
Sonnet 5.5 $0.00024 $0.00449
Haiku 4.5 $0.00012 $0.00224

Measured 18d ago against content hash 20d004a7e308, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-module 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 18d 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.

packages/claude-plugins/plugins/marko-skills/skills/create-module/SKILL.md · 129 lines

How it starts

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

Create a Marko module

A Marko module is a Composer package that the framework auto-discovers via the extra.marko.module flag. Modules can live anywhere — app/{name}/ for application code, modules/{vendor}/{name}/ for a distributable package dropped into a host project, packages/{name}/ in the framework monorepo, or vendor/{vendor}/{name}/ once installed from Packagist. The layout is identical in every case. Directory and Composer-name segments are always lowercase; only the PHP namespace is StudlyCase.

This skill is the canonical specification for a Marko module. Do not inspect existing modules in this project to infer layout — siblings may have drifted from spec. Copy the templates from assets/ verbatim, substitute placeholders, and stop.

Step 1 — Confirm the name, then pick a location

If the user did not give the module a name, ask for one before scaffolding anything. Do not invent a name, reuse a vendor as the name, or proceed with a placeholder.

Casing rule — read this before creating any directory

A module's identity has two forms that must stay in sync:

  • Directory and Composer name → always lowercase. They are identical segment-for-segment, so a module can move between tiers (e.g. modules/ → vendor/) or be symlinked with zero path rewrites.
  • PHP namespace → always StudlyCase. blog → Blog, my-payment → MyPayment.

So the name blog yields directory blog/, Composer name …/blog, and namespace …\Blog. Lowercase module directories are correct — do not capitalize them. The casing only flips to StudlyCase in the PHP namespace and the psr-4 autoload key. (If you have seen "lowercase module names" before and assumed it was a bug, it was not: the directory is supposed to be lowercase; only the namespace is StudlyCase.)

Pick the tier by where the module lives

Tier Directory Composer name Namespace When
App-local app/{name}/ app/{name} App\{Name} Application code, not distributed. The vendor segment is always the literal app — there is no project-derived vendor.
Distributable modules/{vendor}/{name}/ {vendor}/{name} {Vendor}\{Name} A package you intend to publish or share, dropped into a host project. Two-segment, vendor-scoped.
Framework monorepo packages/{name}/ marko/{name} Marko\{Name} Only when working inside the Marko monorepo itself (root contains packages/core/).

Read the full file on GitHub · 129 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. 18d ago Changed 20d004a7e308
  2. 27d ago Changed · +4 lines 83309ab7f270
  3. 3mo ago First seen · 125 lines · 120 tokens per session scan A f4eced9985f8

Subscribe to this mod's changes

create-module is a skill published in the GitHub repository marko-php/marko (415 stars, last pushed today), licensed MIT. It adds 120 tokens to every session and 2,243 once invoked, about $0.0005 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-30.

Related

create-module compared with skills from other repositories

create-module next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-modulemarko-php/markoSkill415todayMITA120Claude Code
phpericrisco/rsc-harnessSkill6915d agoMITA97Claude Code, Codex
system-events-serverwebdevelopers-eu/zolingaSkill516d agononeA47Claude Code
system-php-coding-stylewebdevelopers-eu/zolingaSkill516d agononeA52Claude Code
laravel-specialistJeffallan/claude-skillsSkill13ktodayMITA86Claude Code
laravel-securityhashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A34Claude Code, Codex
integration-fixturephel-lang/phel-langSkill53714d agoMITA10Claude Code