Skip to content
Projects

About

Skills for AI coding agents: Laravel (PHP, Rust and Go), Inertia + React, TypeScript, Tailwind, testing, security, and code quality.

Developer Tools

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Agent Skills

Release Stars License

A collection of skills for AI coding agents. Works with Claude Code, Cursor, Codex, and 70+ agents.

Skills follow the Agent Skills specification. Discover more at skills.sh.

Skills at a glance

Area Skills
Laravel & PHP laravel-best-practices · php-best-practices · laravel-inertia-react · laravel-owasp-security · laravel-database-optimization · laravel-testing · laravel-queues · laravel-ai-sdk · laravel-mcp
Laravel for Rust laravel-rust-best-practices · laravel-rust-testing · laravel-php-to-rust · laravel-rust-audit · rust-for-laravel-developers
Laravel for Go laravel-go-best-practices · laravel-go-testing · laravel-php-to-go · laravel-go-audit · go-for-laravel-developers
React & Frontend typescript-react-patterns · react-vite-best-practices · state-management · tailwind-best-practices · web-design-guidelines
Testing testing-best-practices · e2e-playwright-testing · test-slop
Code Quality code-slop · technical-debt · clean-code-principles
API, SEO & Workflow api-design-patterns · seo-best-practices · git-workflow · project-docs · prd-writing

35 skills. Install all with npx skills add AsyrafHussin/agent-skills, or pick one with --skill <name>.

Installation

Using npx (recommended)

# Install all skills
npx skills add AsyrafHussin/agent-skills

# Install a specific skill
npx skills add AsyrafHussin/agent-skills --skill laravel-best-practices

# Install multiple skills
npx skills add AsyrafHussin/agent-skills --skill laravel-best-practices --skill seo-best-practices

# Install globally (available across all projects)
npx skills add AsyrafHussin/agent-skills -g

# Install to a specific agent
npx skills add AsyrafHussin/agent-skills -a claude-code

# List available skills without installing
npx skills add AsyrafHussin/agent-skills --list
Scope Flag Location (Claude Code) Use Case
Project (default) .claude/skills/ Shared with team via git
Global -g ~/.claude/skills/ Available across all projects

Other agents use their own folder (see the CLI's agent list). A project install keeps one copy in .agents/skills/ and links each agent's folder to it.

Manual installation

git clone https://github.com/AsyrafHussin/agent-skills.git

# Copy all skills
cp -r agent-skills/skills/* .claude/skills/

# Or copy a single skill
cp -r agent-skills/skills/laravel-best-practices .claude/skills/

Each skill contains SKILL.md, AGENTS.md, README.md, metadata.json and rules/ (some also ship scripts/).

Managing skills

npx skills list              # List installed skills
npx skills find laravel      # Search for skills
npx skills remove            # Remove installed skills
npx skills update            # Update all skills to latest

Using with Laravel Boost

Laravel Boost ships two skills with the same names as skills in this repo: laravel-best-practices and testing-best-practices. Both tools write the skill to the same folder (for Claude Code, .claude/skills/<name>/), so the last one to install or update wins. The other 33 skills here do not clash.

Pick one of these (each was tested with Laravel 13 and Boost 2.10):

1. Keep both: install ours under another name. The renamed skills survive boost:update, and npx skills update keeps the new names.

npx skills add AsyrafHussin/agent-skills --skill laravel-best-practices --rename laravel-13-patterns
npx skills add AsyrafHussin/agent-skills --skill testing-best-practices --rename ts-testing-best-practices

2. Use ours instead of Boost's. Run boost:update once after excluding, before installing ours: that update deletes the excluded folders, including our copy if it is already there.

php artisan vendor:publish --tag=boost-config   # config/boost.php is not published by default
// config/boost.php
'skills' => [
    'exclude' => ['laravel-best-practices', 'testing-best-practices'],
],
php artisan boost:update        # removes Boost's copies
npx skills add AsyrafHussin/agent-skills --skill laravel-best-practices --skill testing-best-practices

3. Make ours Boost's override. Boost uses a skill in .ai/skills/<name>/ in place of its built-in one with the same name, and links .claude/skills/<name> to it.

git clone --depth 1 https://github.com/AsyrafHussin/agent-skills /tmp/agent-skills
mkdir -p .ai/skills
cp -R /tmp/agent-skills/skills/laravel-best-practices /tmp/agent-skills/skills/testing-best-practices .ai/skills/
php artisan boost:update

npx skills update does not refresh .ai/skills; copy the folders again to update them.

Using with Laravel for Rust

Laravel for Rust apps ship their own agent skills in .agents/skills/ and version-matched docs in the laravel-rust crate. Use them with:

For the frontend, use laravel-inertia-react (see its "Using with Laravel for Rust" section), plus the TypeScript, Tailwind, web design and Playwright skills. The Laravel PHP skills and test-slop do not apply; code-slop and technical-debt review the frontend only.

Using with Laravel for Go

Laravel for Go apps ship their own agent skills in .agents/skills/ and version-matched docs in the go.laravel.com module. Use them with:

For the frontend, use laravel-inertia-react (see its "Using with Laravel for Go" section), plus the TypeScript, Tailwind, web design and Playwright skills. The Laravel PHP skills and test-slop do not apply; code-slop and technical-debt review the frontend only.

Available Skills

Laravel & PHP

laravel-best-practices

Laravel 13 conventions and architecture. Contains 32 rules across 7 categories, including controller attributes, Eloquent model attributes, JSON:API resources and vector search.

Example: Review this Laravel controller for best practices

npx skills add AsyrafHussin/agent-skills --skill laravel-best-practices

Using Laravel Boost? See Using with Laravel Boost: Boost ships a skill with the same name.


php-best-practices

Modern PHP 8.0–8.6: types, PSR standards and SOLID. Contains 57 rules across 7 categories, each marked with its minimum PHP version, including PHP 8.6 features and deprecations.

Example: Review my PHP class for SOLID principles · What should change when we move this project to PHP 8.6?

npx skills add AsyrafHussin/agent-skills --skill php-best-practices

laravel-inertia-react

Laravel + Inertia.js 3 + React 19 full-stack patterns, written for Laravel 13 (Inertia 3 needs Laravel 11.35 or later). Contains 27 rules across 5 categories covering page components, deferred props, the <Form> component and useForm, useHttp, navigation, shared data, and layouts, with an Inertia v3 upgrade notes section. Also covers the React side of Laravel for Rust and Laravel for Go apps.

Example: How do I share data from Laravel to a React component with Inertia?

npx skills add AsyrafHussin/agent-skills --skill laravel-inertia-react

laravel-owasp-security

OWASP Top 10:2025 security audit and secure coding guide for Laravel + React/Inertia.js. Contains 12 rules, including Inertia data exposure and CSRF with Inertia 3. Each audit finding is proved with a Pest test and marked Confirmed, Needs validation or Hardening.

Example: Run OWASP security audit on my Laravel app

npx skills add AsyrafHussin/agent-skills --skill laravel-owasp-security

laravel-database-optimization

Laravel 13 database optimization. Contains 33 rules across 9 categories covering N+1 prevention, indexing strategies, Eloquent performance, Redis caching, cursor pagination, transactions, zero-downtime migrations, naming conventions, and query debugging.

Example: Optimize the database queries in this controller

npx skills add AsyrafHussin/agent-skills --skill laravel-database-optimization

laravel-testing

Laravel 13 testing with Pest 4 (PHP 8.3) or Pest 5 (PHP 8.4+), and PHPUnit 12 or 13. Contains 24 rules across 6 categories covering HTTP feature tests, model factories, database assertions, facade faking (Mail, Queue, Notification, Event, Storage, AI SDK), authentication testing, and test organisation patterns. Detects Pest or PHPUnit automatically from composer.json.

Example: Write feature tests for this Laravel controller

npx skills add AsyrafHussin/agent-skills --skill laravel-testing

laravel-queues

Queue patterns for Laravel 13 (MySQL + Redis). Contains 22 rules across 6 categories covering driver choice, job design, retries and failures, worker scaling, batches and chains, and when to adopt Horizon.

Example: Audit our queue setup or Review this job class

npx skills add AsyrafHussin/agent-skills --skill laravel-queues

laravel-ai-sdk

Laravel AI SDK (laravel/ai 1.x) for building AI-powered features. Contains 19 rules across 7 categories covering agents, step middleware, tools with human approval, prompt caching and usage, structured output, streaming, images, audio, embeddings, vector stores, failover, and testing with fakes.

Example: Create an AI agent that analyzes sales transcripts

npx skills add AsyrafHussin/agent-skills --skill laravel-ai-sdk

laravel-mcp

Laravel MCP server development (laravel/mcp 1.x, MCP revision 2026-07-28). Contains 8 rules across 5 categories covering server creation, tools with schemas, tool catalogs and progress, prompts, resources, authentication (OAuth/Sanctum), and testing.

Example: Create an MCP tool that exposes weather data to AI clients

npx skills add AsyrafHussin/agent-skills --skill laravel-mcp

Laravel for Rust

laravel-rust-best-practices

Best practices for Laravel for Rust apps (laravel-rust 0.2.x). Contains 30 rules across 7 categories: code that compiles but behaves wrongly, and the fix. Examples compile against 0.2.0.

Example: Review this Laravel for Rust handler module for bugs that compile

npx skills add AsyrafHussin/agent-skills --skill laravel-rust-best-practices

laravel-rust-testing

Testing Laravel for Rust apps with #[laravel::test]. Contains 20 rules across 6 categories: tests that pass while the app is broken, and the test to write. Every recommended test was run against a test app.

Example: Review these Laravel for Rust tests for ones that pass while the app is broken

npx skills add AsyrafHussin/agent-skills --skill laravel-rust-testing

laravel-php-to-rust

Port a Laravel 13 app to Laravel for Rust. Contains 28 rules across 9 categories mapping each PHP concept to Rust, with the features that have no equivalent and the behaviour that changes.

Example: Port this Laravel controller and its form request to Laravel for Rust

npx skills add AsyrafHussin/agent-skills --skill laravel-php-to-rust

laravel-rust-audit

Security and correctness audit for Laravel for Rust apps. Contains 26 rules across 9 categories, from authorization and raw SQL to uploads, configuration and background jobs. Findings are proved with a test.

Example: Audit this Laravel for Rust app for security issues

npx skills add AsyrafHussin/agent-skills --skill laravel-rust-audit

rust-for-laravel-developers

The Rust language for Laravel and PHP developers: write Rust, review it for PHP habits, and explain Rust errors in PHP terms. Contains 25 rules across 9 categories. PHP behaviour checked on PHP 8.4; Rust examples compile with rustc 1.100.

Example: Review this Rust module for PHP habits or I know Laravel; explain this Rust borrow error

npx skills add AsyrafHussin/agent-skills --skill rust-for-laravel-developers

Laravel for Go

laravel-go-best-practices

Best practices for Laravel for Go apps (go.laravel.com 0.2.x). Contains 42 rules across 7 categories: code that compiles but behaves wrongly, and the fix. Examples compile against v0.2.0.

Example: Review this Laravel for Go handler package for bugs that compile

npx skills add AsyrafHussin/agent-skills --skill laravel-go-best-practices

laravel-go-testing

Testing Laravel for Go apps with go test and laraveltest. Contains 28 rules across 6 categories: tests that pass while the app is broken, and the test to write. Examples were run against a working and a broken test app.

Example: Review these Laravel for Go tests for ones that pass while the app is broken

npx skills add AsyrafHussin/agent-skills --skill laravel-go-testing

laravel-php-to-go

Port a Laravel 13 app to Laravel for Go. Contains 32 rules across 9 categories mapping each PHP concept to Go, with the features that have no equivalent and the behaviour that changes.

Example: Port this Laravel controller and its form request to Laravel for Go

npx skills add AsyrafHussin/agent-skills --skill laravel-php-to-go

laravel-go-audit

Security and correctness audit for Laravel for Go apps. Contains 28 rules across 9 categories, with an audit method, search patterns and a report template. The main exploits were proved by tests.

Example: Audit this Laravel for Go app for security holes

npx skills add AsyrafHussin/agent-skills --skill laravel-go-audit

go-for-laravel-developers

The Go language for Laravel and PHP developers: write Go, review it for PHP habits, and explain Go errors in PHP terms. Contains 29 rules across 9 categories. PHP behaviour checked on PHP 8.4; Go examples compile with Go 1.27.

Example: Review this Go code for PHP habits

npx skills add AsyrafHussin/agent-skills --skill go-for-laravel-developers

React & Frontend

typescript-react-patterns

Type-safe React 19 with TypeScript (5.x to 7). Contains 36 rules across 7 categories covering component typing (ref as a prop), hooks (useActionState, useOptimistic, useEffectEvent), event handling, refs, generics, context, utility types, and a TypeScript 7 tsconfig.

Example: How do I properly type this React component with TypeScript?

npx skills add AsyrafHussin/agent-skills --skill typescript-react-patterns

react-vite-best-practices

React + Vite 8 performance optimization (Rolldown, Oxc, @vitejs/plugin-react 6). Contains 24 rules across 6 categories covering build config (rolldownOptions, codeSplitting groups, Oxc minification, tree shaking), code splitting (React.lazy, Suspense), asset handling, environment config, React Compiler setup, and bundle analysis.

Example: Optimize the Vite build and bundle size for this React app

npx skills add AsyrafHussin/agent-skills --skill react-vite-best-practices

state-management

Server state with TanStack Query v5 and client state with Zustand v5. Contains 27 rules across 5 categories covering queries, queryOptions and skipToken, Suspense, mutations, optimistic updates, caching, and Zustand stores.

Example: How do I manage server state with React Query?

npx skills add AsyrafHussin/agent-skills --skill state-management

tailwind-best-practices

Tailwind CSS v4 best practices (tested on 4.3), with v3.4 as legacy. Contains 30 rules across 5 categories covering responsive design, dark mode (media by default, class via @custom-variant), component patterns, configuration, v4.1–4.3 utilities, and v3-to-v4 migration.

Example: Review my Tailwind classes for best practices

npx skills add AsyrafHussin/agent-skills --skill tailwind-best-practices

web-design-guidelines

WCAG 2.2 accessibility, semantic HTML, keyboard navigation, forms, and performance. Contains 24 rules across 4 categories, including the criteria new in WCAG 2.2. Supports accessibility audit mode with PASS/FAIL checklist output.

Example: Run accessibility audit on this project or Review this component for accessibility

npx skills add AsyrafHussin/agent-skills --skill web-design-guidelines

Testing

testing-best-practices

Unit, integration, and E2E testing with TypeScript and Vitest 5 (MSW 3, Testing Library). Contains 36 rules across 7 categories covering test structure (AAA), isolation, fake timers, user-facing queries, assertions, test data factories, mocking, coverage strategy, and test performance (test.projects, maxWorkers).

Example: Write Vitest tests for this TypeScript module

npx skills add AsyrafHussin/agent-skills --skill testing-best-practices

Using Laravel Boost? See Using with Laravel Boost: Boost ships a skill with the same name.


e2e-playwright-testing

End-to-end browser testing with Playwright 1.65+ (Node 22+). Contains 10 rules across 6 categories covering locator strategies, authentication reuse (storageState per role), React form gotchas (ISO values for date inputs, sr-only checkboxes), web-first assertions, aria snapshots, flaky-test tooling, and reliability. Includes stack detection for React/Inertia/Vue projects.

Example: Write E2E tests for this login flow or Set up Playwright for this project

npx skills add AsyrafHussin/agent-skills --skill e2e-playwright-testing

test-slop

Audit and prune a bloated Laravel test suite (Pest or PHPUnit), such as one grown by AI agents. Every removal is gated on mutation testing, one folder at a time. Ships a scanner, a slowest-tests report and a mutation gate. Contains 34 rules across 9 categories.

test-slop vs code-slop vs laravel-testing — which to pick?

Use test-slop when… Use code-slop when… Use laravel-testing when…
The suite already exists and nobody trusts it Reviewing code (and its tests) for AI patterns Writing new tests
Question: "Which tests can go, and how do we prove it?" Question: "Is this clean code?" Question: "How do I test this?"
Output: ledger + gated, per-folder changes Output: diff verdicts Output: tests written the Laravel way

Example: Audit the test suite for slop or Clean up tests/Feature/Orders without losing coverage

npx skills add AsyrafHussin/agent-skills --skill test-slop

Code Quality

code-slop

Catches AI-style patterns in PHP/Laravel and TypeScript/React code that pass every metric: narration comments, generic names, premature interfaces, defensive overdose and mock-everything tests. Contains 24 rules across 6 categories.

code-slop vs technical-debt — which to pick?

Use code-slop when… Use technical-debt when…
Reviewing a PR Auditing the codebase for ranked debt to pay down
Concern is taste: comments, naming, over-engineering, defensive overdose, test quality Concern is metrics: complexity, duplication, CVEs, missing indexes, N+1 queries
Question: "Is this clean code or sloppy patterns to reject?" Question: "What should we refactor first?"
Output: classified diff verdicts (CLEAN / SUSPICIOUS / INFLATED / CRITICAL) Output: ranked debt ledger (P0–P3)

Run both for a full audit.

Example: Review this PR for code quality or Find sloppy patterns in app/Services/

npx skills add AsyrafHussin/agent-skills --skill code-slop

technical-debt

Technical debt audit and prioritization for PHP/Laravel (MySQL) and Node/TypeScript/React. Contains 42 rules across 10 categories. Produces a ranked debt ledger (effort × impact, P0–P3) and supports audit mode with PASS/FAIL/N/A output.

Example: Audit technical debt in this project or What should we refactor first?

npx skills add AsyrafHussin/agent-skills --skill technical-debt

clean-code-principles

Language-agnostic SOLID, DRY, KISS principles and the repository pattern. Contains 23 rules for maintainable software.

Example: Review this class for code smells and SOLID violations

npx skills add AsyrafHussin/agent-skills --skill clean-code-principles

API, SEO & Workflow

api-design-patterns

RESTful API design patterns. Contains 38 rules across 7 categories covering resource design, error handling, security, pagination, versioning, response format, and OpenAPI documentation.

Example: Review my API endpoints for REST best practices

npx skills add AsyrafHussin/agent-skills --skill api-design-patterns

seo-best-practices

SEO patterns for Laravel Blade and Laravel + Inertia.js + React. Contains 32 rules across 8 categories covering Core Web Vitals, meta tags, structured data (JSON-LD) including which rich results Google has retired, Open Graph, performance, and mobile-first indexing. Supports SEO audit mode with PASS/FAIL checklist output. Auto-detects project type.

Example: Run SEO audit on this project or Set up Open Graph meta tags

npx skills add AsyrafHussin/agent-skills --skill seo-best-practices

git-workflow

Git workflow conventions for commits, branching, pull requests, and history management. Contains 31 rules covering conventional commits, git hooks, workflow strategies (GitHub Flow, GitFlow, Trunk-Based), monorepo workflows, git worktree, and .gitignore best practices.

Example: Review my git workflow and suggest improvements

npx skills add AsyrafHussin/agent-skills --skill git-workflow

project-docs

Documentation lifecycle for PHP/Laravel and Node/TypeScript/React. Contains 25 rules across 6 categories. Bootstraps the docs a project needs, audits existing files, and flags AI-generated filler.

Example: Set up docs for this project or Audit the markdown files in this repo

npx skills add AsyrafHussin/agent-skills --skill project-docs

prd-writing

Writing Product Requirements Documents in six steps, from clarifying questions to a 12-section template. Contains 25 rules across 7 categories.

Example: Write a PRD for this feature

npx skills add AsyrafHussin/agent-skills --skill prd-writing

License

MIT

Explore related projects

Loading…