mvc-expert

mvc-expert is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 51 tokens per session (3,109 once invoked), scanned A, original, MIT.

A guide to reorganising old PHP applications around Model-View-Controller, a structure that separates data access, page output, and application control. It also covers modern PHP and common PHP coding standards.

In plain words
What is it for?
Use it to audit legacy PHP files, separate routes and responsibilities, replace inline SQL and global state, and plan a safer modernisation.
Why use it?
It helps make tangled PHP code easier to understand and maintain while identifying unsafe database queries, session handling, and unchecked user input.

Skill for Claude CodeCodex

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

Good fit Use it to audit legacy PHP files, separate routes and responsibilities, replace inline SQL and global state, and plan a safer modernisation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/mvc-expert
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 roedyrustam/vibes-plug --skill mvc-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

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 mvc-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/mvc-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/mvc-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/mvc-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/mvc-expert/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 mvc-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/mvc-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/mvc-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,109 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.00051 $0.03109
Opus 5 $0.00026 $0.01554
Sonnet 5 $0.00010 $0.00622
Haiku 4.5 $0.00005 $0.00311

Measured 5d ago against content hash 7855f2308b8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mvc-expert 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 5d 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/mvc-expert/SKILL.md · 238 lines

How it starts

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

PHP MVC Expert & Modernization

English | Bahasa Indonesia


English

Orchestration & Integration

Connects and orchestrates with relevant domain skills like brainstorming, zero-to-prod-orchestrator, and project-context-mapper to ensure cohesive execution.

Description

This skill provides the agent with structured protocols, coding patterns, and architectural guidelines to audit, refactor, and modernize legacy/obsolete PHP codebases (plain spaghetti PHP) into a clean, modern, secure, and scalable Model-View-Controller (MVC) structure adhering to PSR standards and modern PHP (v8.2+) capabilities.

Instructions

1. Audit Protocol for Legacy PHP

Before writing new structures, run a detailed audit on the legacy files to map out:

  • Routing & Entry Points: Identify raw .php files acting as endpoints (e.g., about.php, contact.php, process.php).
  • Data Access & SQL: Find inline SQL queries, string-concatenated queries (SQL Injection risks), and direct mysqli or mysql_* usages.
  • Session & Global State: Identify direct session mutations ($_SESSION), raw cookies, and unchecked global variables ($_GET, $_POST, $_REQUEST).
  • Spaghetti Mixing: Locate files where database connection, business logic, session validation, and HTML rendering are in a single script.
  • Hardcoded Secrets: Identify database credentials, API keys, and configurations defined inside individual files.
2. Modernization Strategy & Composer Setup

Apply a standard project directory structure and initialize dependency management:

  • PSR-4 Autoloading: Create a composer.json file and define namespace mappings:
    {
      "autoload": {
        "psr-4": {
          "App\\": "src/"
        }
      }
    }
    
  • Standard Directory Structure:
    • public/: Single entry point containing index.php (Front Controller), assets (CSS, JS), and uploaded files.
    • src/: Root namespace for MVC structure (src/Models/, src/Controllers/, src/Views/, src/Core/).
    • config/: Database configurations, router configurations, and app configurations.
    • .env & .env.example: Store environment configurations.

Read the full file on GitHub · 238 lines

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. 5d ago First seen · 238 lines · 51 tokens per session scan A 7855f2308b8b

Subscribe to this mod's changes

mvc-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (50 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 3,109 once invoked, about $0.0003 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-09-03.