first-plan-lens-php

first-plan-lens-php is a skill for Claude Code, Codex from vynazevedo/first-plan. It costs 51 tokens per session (913 once invoked), scanned A, original, MIT.

A PHP project-analysis guide that identifies the framework, dependencies, folder structure, coding standards, and common patterns in a PHP codebase.

In plain words
What is it for?
Use it during discovery for Laravel, Symfony, Slim, Hyperf, Laminas, WordPress, or framework-free PHP projects.
Why use it?
It gives planning tools the PHP-specific context needed to understand how the project is organized.

Skill for Claude CodeCodex

Part of the fp plugin — 19 skills, 19 commands, 4 agents, 1 hook shipped together

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.

agentmods
npx agentmods add skills/vynazevedo/first-plan/lens-php
Any agent
npx skills add vynazevedo/first-plan --skill lens-php
Clone the repo
git clone --depth 1 https://github.com/vynazevedo/first-plan

Made for: Claude Code, Codex.

Or install fp, the plugin that ships this one along with the rest of its 19 skills, 19 commands, 4 agents, 1 hook.

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 first-plan-lens-php

README.md
[![agentmods](https://agentmods.dev/badge/skills/vynazevedo/first-plan/lens-php.svg)](https://agentmods.dev/skills/vynazevedo/first-plan/lens-php)
Your own site
<a href="https://agentmods.dev/skills/vynazevedo/first-plan/lens-php"><img src="https://agentmods.dev/badge/skills/vynazevedo/first-plan/lens-php.svg" alt="Measured on agentmods" 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 913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00913
Opus 5 $0.00026 $0.00456
Sonnet 5 $0.00010 $0.00183
Haiku 4.5 $0.00005 $0.00091

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

Security

Grade A, and why

first-plan-lens-php 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/lens-php/SKILL.md · 124 lines

How it starts

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

Lens PHP

Detecção fina

Sinal Variante
artisan na raiz Laravel
bin/console + symfony/framework-bundle em deps Symfony
slim/slim em deps Slim
hyperf/hyperf em deps Hyperf
laminas/laminas-mvc em deps Laminas (Zend)
index.php em public/ sem framework Legacy / vanilla
wp-config.php WordPress

Extração de padrões

Composer

  • PSR-4 autoload mappings (qual namespace -> qual pasta)
  • Versão min de PHP (require.php)
  • Dev dependencies relevantes (phpunit, phpstan, psalm, php-cs-fixer, rector)

Estrutura

Laravel:

  • app/Http/Controllers, app/Models, app/Services, app/Repositories
  • routes/{web,api,console,channels}.php
  • database/migrations, database/seeders, database/factories
  • config/, resources/, bootstrap/

Symfony:

  • src/Controller, src/Entity, src/Repository, src/Service
  • config/services.yaml, config/routes.yaml
  • migrations/

Dependency Injection

  • Laravel: container service, providers em app/Providers/, binding em register()
  • Symfony: services.yaml, autowire, autoconfigure
  • Manual em vanilla

Errors

  • Exceptions customizadas (extends Exception ou DomainException)
  • Handler global (Laravel: app/Exceptions/Handler.php; Symfony: ExceptionListener)
  • HTTP error mapping

Validação

  • Laravel: Form Requests em app/Http/Requests/, rules
  • Symfony: Validator constraints / annotations
  • Manual via if's

ORM

  • Eloquent (Laravel)
  • Doctrine (Symfony)
  • Query Builder direto
  • PDO raw

Testing

  • PHPUnit (mais comum)
  • Pest (alternativa moderna)
  • Pasta tests/ com Unit, Feature, Integration
  • Factories Laravel / fixtures Doctrine
  • Mocks com Mockery

Filas / Mensageria

  • Laravel: Horizon, jobs em app/Jobs/
  • Symfony: Messenger
  • Hyperf: AMQP, Kafka

Static analysis

  • PHPStan level configurado (8 = strict)
  • Psalm
  • PHP-CS-Fixer rules
  • Rector rules

PSR compliance

  • PSR-12 (style) - verificar via php-cs-fixer config
  • PSR-7 (HTTP messages) - check em libs como slim/psr7, nyholm/psr7
  • PSR-15 (HTTP middleware)
  • PSR-3 (logger interface)

Read the full file on GitHub · 124 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 · 124 lines · 51 tokens per session scan A ebc9bf8fc43e

Subscribe to this mod's changes

first-plan-lens-php is a skill published in the GitHub repository vynazevedo/first-plan (23 stars, last pushed 11d ago), licensed MIT. It adds 51 tokens to every session and 913 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-08-30.