syarif-laravel-ai-skills
AGENTS.md4 starsChanged 5 months agoMITView on GitHub
This repository packages reusable Laravel AI skills. Skills are packaged instructions, workflows, scripts, and references that extend coding agent capabilities for Laravel projects. Before creating a skill, search canonical names, descriptions, triggers, and workflows under skills/. Merge substantially overlapping guidance into the strongest canonical skill and update aliases/mappings instead of adding a competing trigger. Keep frontmatter to name and description only. Put trigger context in description, because the body is loaded only after the skill is selected. Note: public Laravel…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository75 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- actions-and-servicesSkill
- ai-sdkSkill
- api-resources-and-paginationSkill
- api-surface-evolutionSkill
- architectureSkill
- blade-components-and-layoutsSkill
- brainstormingSkill
- code-review-requestsSkill
- complexity-guardrailsSkill
- config-env-storageSkill
- constants-and-configurationSkill
- controller-cleanupSkill
- controller-testsSkill
- custom-helpersSkill
- daily-workflowSkill
- database-transactionsSkill
- data-chunking-large-datasetsSkill
- debugging-promptsSkill
- dependencies-trim-packagesSkill
- documentation-best-practicesSkill
- e2e-playwrightSkill
- effective-contextSkill
- eloquent-patternsSkill
- eloquent-relationshipsSkill
- exception-handling-and-loggingSkill
- executing-plansSkill
- extract-laravel-standardsSkill
- filesystem-uploadsSkill
- form-requestsSkill
- horizon-metrics-and-dashboardsSkill
- http-client-resilienceSkill
- integrate-whatsapp-baileys-laravelSkill
- interfaces-and-diSkill
- internationalization-and-translationSkill
- iterating-on-codeSkill
- laravel-11-12-app-guidelinesSkill
- laravel-database-optimizationSkill
- laravel-prompting-patternsSkill
- laravel-specialistSkill
- least-codeSkill
- livewire-developmentSkill
- memory-managementSkill
- migrations-and-factoriesSkill
- module-per-menuSkill
- nova-resource-patternsSkill
- performance-cachingSkill
- performance-eager-loadingSkill
- performance-select-columnsSkill
- php-attributesSkill
- policies-and-authorizationSkill
- ports-and-adaptersSkill
- prompt-structureSkill
- quality-checksSkill
- queues-and-jobsSkill
- rate-limitingSkill
- request-forgery-protectionSkill
- responsive-ui-testingSkill
- The first 60 shown.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
22 rules. About 1 is common, 9 are distinctive, and 12 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 13
Every skill must be assigned to exactly one skills.sh group in skills.sh.json.
- Very specific: line 14
Every skill must be assigned to exactly one plugin in plugin-groups.json.
- Very specific: line 21
Do not edit generated plugin skill copies directly.
- Very specific: line 25
Before creating a skill, search canonical names, descriptions, triggers, and workflows under skills/.
- Very specific: line 58
Keep frontmatter to name and description only.
- Distinctive: line 75
Verify proportionally to risk.
- Distinctive: line 83
All other skills are on-demand execution skills.
- Distinctive: line 95
Do not load HIGH-risk guidance for LOW tasks.
- Distinctive: line 99
Keep the permanent control plane thin: Memory → Decision/minimization → Framework orchestration.
- Distinctive: line 101
Treat Laravel, Livewire, Database, Testing, Security, and API skills as on-demand execution skills, not permanent layers.
- Very specific: line 105
Keep the always-loaded orchestrator (using-laravel-standards) under 300 tokens.
- Very specific: line 106
Keep specialist skill SKILL.md bodies under 500 lines.
- Distinctive: line 109
Prefer scripts for repeatable or fragile operations.
- Common: line 110
Keep skill bodies concise, action-oriented, and free of client names, secrets, private URLs, personal data, and one-off business rules.
- Very specific: line 114
Document skills.sh installation for public skills:
- Very specific: line 126
Start with skills/using-laravel-standards/SKILL.md.
- Very specific: line 127
Use agent-skills.json for machine-readable entry points, install commands, and canonical paths.
- Very specific: line 128
Read docs/UNIVERSAL_USAGE.md for assistant-specific usage patterns.
- Very specific: line 133
After changing skills, skills.sh grouping, or plugin grouping, run:
- Distinctive: line 143
After pushing, verify GitHub discovery:
- Distinctive: line 151
Do not delete specialist skills to reduce orchestration token usage.
- Distinctive: line 153
Before considering any orchestrator change complete:
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to AI coding agents when working in this repository.
Repository Overview
This repository packages reusable Laravel AI skills. Skills are packaged instructions, workflows, scripts, and references that extend coding agent capabilities for Laravel projects.
Source Of Truth
- Canonical skills live only under
skills/<skill-name>/SKILL.md. - Skill folder names and frontmatter
namevalues must match exactly. - Every skill must be assigned to exactly one skills.sh group in
skills.sh.json. - Every skill must be assigned to exactly one plugin in
plugin-groups.json. - Universal assistant metadata is generated at
agent-skills.json. - Codex marketplace artifact metadata lives at
.codex-plugin/plugin.jsonand points directly to canonicalskills/. - Claude Code root plugin metadata lives at
.claude-plugin/plugin.jsonand points directly to canonicalskills/through.claude-plugin/marketplace.json. - Generated marketplace/plugin output lives in
.agents/plugins/marketplace.json,.claude-plugin/, andplugins/. - Local generated Claude Code plugin manifests also live at
plugins/<plugin-name>/.claude-plugin/plugin.jsonafternpm run sync. - Generated plugin skill copies under
plugins/<plugin-name>/skills/are local build output and are ignored to keep marketplace artifacts under the 128-file scan limit. - Do not edit generated plugin skill copies directly; edit
skills/and runnpm run sync.
Creating Or Updating A Skill
Before creating a skill, search canonical names, descriptions, triggers, and workflows under skills/. Merge substantially overlapping guidance into the strongest canonical skill and update aliases/mappings instead of adding a competing trigger.
Directory Structure
skills/
skill-name/
SKILL.md
scripts/ # Optional executable scripts
references/ # Optional docs loaded on demand
assets/ # Optional templates or output assetsNaming Conventions
- Skill directories use lowercase kebab-case, for example
form-requests. SKILL.mdis always uppercase and uses this exact filename.- Frontmatter
namemust match the directory name. - Scripts should use kebab-case names such as
collect-signals.mjs.
SKILL.md Format
---
name: skill-name
description: One concise sentence describing what the skill does and when to use it.
---
# Skill Title
Use imperative instructions that help the next agent do the work.Keep frontmatter to name and description only. Put trigger context in description, because the body is loaded only after the skill is selected.
Note: public Laravel discovery also expects tags containing laravel and php when present in existing skills. Preserve those tags when editing current skills.
Layered Protocol
This repository uses a thin orchestrator with selective specialist activation. The always-loaded core is intentionally small; detailed knowledge stays in specialist skills loaded on demand.
Core: Tiny Orchestrator
using-laravel-standards is the always-loaded entrypoint. It should remain approximately 150–300 tokens. Its job is routing, not knowledge delivery:
- Apply silently. Output only the minimal solution.
- Make the smallest safe change.
- Infer risk: LOW / MEDIUM / HIGH.
- Preserve unrelated behavior.
- Select only relevant specialist guidance.
- Verify proportionally to risk.
- Stop when complete.
Specialist Activation
Load specialist skills only when the task domain requires them. Default to one primary skill and at most two supporting skills unless HIGH risk requires more.
least-code: load for focused implementation, review, or refactor work when minimization discipline is needed.- All other skills are on-demand execution skills.
Conditional Memory Infrastructure
memory-management is not a specialist slot. The entrypoint may run a sparse memory preflight before broad exploration when prior project, session, workflow, or decision context could materially affect correctness. Skip it for clearly self-contained tasks. Prefer the active syarif-memory-management MCP server, fall back to skills/memory-management/scripts/memory.mjs auto --cwd <project-root> --query "<task intent>" --limit 5 when file and Node access exist, and continue normally when memory is unavailable. Current code/config overrides memory.
Risk Depth
- LOW: minimal local change. No new abstraction/dependency. No memory lookup unless prior context is necessary. One minimal targeted verification. No protocol narration.
- MEDIUM: trace affected execution path. Identify likely/confirmed root cause. Preserve affected contracts. Targeted regression verification. Load relevant specialist guidance.
- HIGH: inspect applicable security/data/concurrency/auth/migration/financial concerns. Failure paths. Affected regression surface. Explicit remaining uncertainty when meaningful. Load only relevant high-risk specialist guidance.
Do not load HIGH-risk guidance for LOW tasks.
Architecture Note
Keep the permanent control plane thin: Memory → Decision/minimization → Framework orchestration.
Treat Laravel, Livewire, Database, Testing, Security, and API skills as on-demand execution skills, not permanent layers. This keeps the framework scalable and avoids context overhead.
Context Efficiency
- Keep the always-loaded orchestrator (
using-laravel-standards) under 300 tokens. - Keep specialist skill
SKILL.mdbodies under 500 lines. - Move detailed tables, examples, and long guidance into
references/. - Link reference files directly from
SKILL.md; avoid nested reference chasing. - Prefer scripts for repeatable or fragile operations.
- Keep skill bodies concise, action-oriented, and free of client names, secrets, private URLs, personal data, and one-off business rules.
Public Discovery
Document skills.sh installation for public skills:
npx skills add soden46/syarif-laravel-ai-skills --skill skill-nameThe skills.sh repository page is grouped by skills.sh.json. Update it whenever adding, removing, or renaming a skill.
Universal Assistant Usage
This repo is designed for any AI assistant that can read files, not only assistants with native skill/plugin support.
- Start with
skills/using-laravel-standards/SKILL.md. It is intentionally small; load specialist skills only when the task requires them. - Use
agent-skills.jsonfor machine-readable entry points, install commands, and canonical paths. - Read docs/UNIVERSAL_USAGE.md for assistant-specific usage patterns.
- For generic assistants, prompt them to read
AGENTS.md, then load only the focusedskills/<skill-name>/SKILL.mdfiles needed for the task.
Workflow
After changing skills, skills.sh grouping, or plugin grouping, run:
npm run sync
npm run validate
npx skills add . --listnpm run validate also checks that tracked files stay within the codex-marketplace.com 128-file scan limit.
After pushing, verify GitHub discovery:
npx skills add soden46/syarif-laravel-ai-skills --listCapability Preservation
Do not delete specialist skills to reduce orchestration token usage. The framework's value is its knowledge library. Optimize routing and activation, not content.
Before considering any orchestrator change complete:
- confirm no specialist skill was accidentally removed
- confirm project-derived knowledge remains
- confirm routing still exposes specialist knowledge when relevant
- confirm trivial tasks can avoid loading specialist guidance
- confirm MEDIUM/HIGH tasks can still reach their relevant specialist skills
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

