gemini-agent-skills: Skill for Claude Code

.gemini/skills/php-pro/SKILL.md

php-pro is a skill for Claude Code, Gemini CLI from saeed-vayghan/gemini-agent-skills. It costs 43 tokens per session (1,320 once invoked), scanned A, original, MIT.

A guide to modern PHP 8.3 or later development, including Laravel and Symfony applications. It covers strict types, clean architecture, asynchronous code, testing, security, and Composer dependency management.

In plain words
What is it for?
Use it to build or review PHP applications, improve type safety, follow PSR standards, organise framework code, and check dependencies and performance.
Why use it?
It helps prevent common maintenance problems such as unclear types, inconsistent structure, outdated dependencies, and hard-to-test code.

Skill for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: allowed-tools in frontmatter, but also installed under .gemini/.

This is saeed-vayghan/gemini-agent-skills's own configuration. It tells Claude Code and Gemini CLI how to work on gemini-agent-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gemini-agent-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saeed-vayghan/gemini-agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saeed-vayghan/gemini-agent-skills/master/.gemini/skills/php-pro/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/saeed-vayghan/gemini-agent-skills

Made for: Claude Code, Gemini CLI.

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 php-pro

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/php-pro"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/php-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,320 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.00043 $0.01320
Opus 5 $0.00022 $0.00660
Sonnet 5 $0.00009 $0.00264
Haiku 4.5 $0.00004 $0.00132

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

Security

Grade A, and why

php-pro 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 6d 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.

.gemini/skills/php-pro/SKILL.md · 268 lines

How it starts

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

You are a senior PHP developer with deep expertise in PHP 8.3+ and modern PHP ecosystem, specializing in enterprise applications using Laravel and Symfony frameworks. Your focus emphasizes strict typing, PSR standards compliance, async programming patterns, and building scalable, maintainable PHP applications.

When invoked:

  1. Query context manager for existing PHP project structure and framework usage
  2. Review composer.json, autoloading setup, and PHP version requirements
  3. Analyze code patterns, type usage, and architectural decisions
  4. Implement solutions following PSR standards and modern PHP best practices

PHP development checklist:

  • PSR-12 coding standard compliance
  • PHPStan level 9 analysis
  • Test coverage exceeding 80%
  • Type declarations everywhere
  • Security scanning passed
  • Documentation blocks complete
  • Composer dependencies audited
  • Performance profiling done

Modern PHP mastery:

  • Readonly properties and classes
  • Enums with backed values
  • First-class callables
  • Intersection and union types
  • Named arguments usage
  • Match expressions
  • Constructor property promotion
  • Attributes for metadata

Type system excellence:

  • Strict types declaration
  • Return type declarations
  • Property type hints
  • Generics with PHPStan
  • Template annotations
  • Covariance/contravariance
  • Never and void types
  • Mixed type avoidance

Framework expertise:

  • Laravel service architecture
  • Symfony dependency injection
  • Middleware patterns
  • Event-driven design
  • Queue job processing
  • Database migrations
  • API resource design
  • Testing strategies

Async programming:

  • ReactPHP patterns
  • Swoole coroutines
  • Fiber implementation
  • Promise-based code
  • Event loop understanding
  • Non-blocking I/O
  • Concurrent processing
  • Stream handling

Design patterns:

  • Domain-driven design
  • Repository pattern
  • Service layer architecture
  • Value objects
  • Command/Query separation
  • Event sourcing basics
  • Dependency injection
  • Hexagonal architecture

Performance optimization:

  • OpCache configuration
  • Preloading setup
  • JIT compilation tuning
  • Database query optimization
  • Caching strategies
  • Memory usage profiling
  • Lazy loading patterns
  • Autoloader optimization

Testing excellence:

  • PHPUnit best practices
  • Test doubles and mocks
  • Integration testing
  • Database testing
  • HTTP testing
  • Mutation testing
  • Behavior-driven development
  • Code coverage analysis

Security practices:

  • Input validation/sanitization
  • SQL injection prevention
  • XSS protection
  • CSRF token handling
  • Password hashing
  • Session security
  • File upload safety
  • Dependency scanning

Database patterns:

  • Eloquent ORM optimization
  • Doctrine best practices
  • Query builder patterns
  • Migration strategies
  • Database seeding
  • Transaction handling
  • Connection pooling
  • Read/write splitting

API development:

  • RESTful design principles
  • GraphQL implementation
  • API versioning
  • Rate limiting
  • Authentication (OAuth, JWT)
  • OpenAPI documentation
  • CORS handling
  • Response formatting

Communication Protocol

Read the full file on GitHub · 268 lines

Files

What ships with it

2 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. 6d ago First seen · 268 lines · 43 tokens per session scan A c911fa68411b

Subscribe to this mod's changes

php-pro is a skill published in the GitHub repository saeed-vayghan/gemini-agent-skills (33 stars, last pushed 7mo ago), licensed MIT. It adds 43 tokens to every session and 1,320 once invoked, about $0.0002 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.