blamodex / laravel-ai-agents
Markdown-based agent manuals for using LLMs as structured dev assistants in Laravel and React projects
Installs: 18
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/blamodex/laravel-ai-agents
README
A set of Markdown-based "agent manuals" for using LLMs (like Claude Code, GitHub Copilot, or ChatGPT) as structured development assistants.
These agents provide a systematic workflow for building, testing, debugging, and maintaining code with AI assistance.
🎯 Designed For
- Laravel 12 (PHP 8.2+)
- React / TypeScript (Vite)
- PSR-12 coding standards
- Test-first / test-friendly workflows
📦 Installation
Option 1: Composer (Recommended)
composer require --dev blamodex/laravel-ai-agents
Optional: Create a symlink to access agents from your project root
ln -s vendor/blamodex/laravel-ai-agents/agents agents
This allows you to reference agents as /agents/DevAgent.md instead of /vendor/blamodex/laravel-ai-agents/agents/DevAgent.md.
Option 2: Manual Installation
Copy the agents/ folder into the root of your project:
mkdir -p agents
cp -r vendor/blamodex/laravel-ai-agents/agents/* ./agents/
Option 3: Git Submodule
git submodule add https://github.com/blamodex/laravel-ai-agents.git agents
Included Agents
All agent definitions live under ./agents/:
DevAgent.md– multi-file feature and refactor agentBugAgent.md– diagnostic and debugging agentTestAgent.md– test design and generation agentCleanupAgent.md– non-behavioral cleanup and documentation agentWORKFLOW.md– how to combine them in a Request → Agent → Test → Refine loop
How to Use (Claude Code / VS Code)
-
Install the package (see Installation above)
-
Reference agents in your prompts:
Use DevAgent. Follow the instructions in /agents/DevAgent.md. Goal: Implement rate limiting on all /api/* routes in a safe, incremental way. -
Follow the workflow in
agents/WORKFLOW.md:- Start with DevAgent (plan + first step)
- Use TestAgent to generate tests if needed
- Use BugAgent when tests fail or errors appear
- Use CleanupAgent at the end for polish and documentation
📚 Documentation
- Workflow Guide - Complete agent workflow loop
- Laravel Usage Examples - Concrete Laravel examples
- React Usage Examples - React + TypeScript examples
- Contributing - How to contribute
- Changelog - Version history
Recommended Project Conventions
These agents assume (and work best with):
- Laravel:
- Feature tests in
tests/Feature - Unit tests in
tests/Unit - Prefer factories and seeders over ad-hoc model creation
- Feature tests in
- Frontend:
- React + TypeScript under something like
resources/js - Jest + React Testing Library for component tests
- React + TypeScript under something like
- Tooling:
-
Composer scripts such as:
composer test composer test:coverage composer lint composer lint:fix composer analyze
-
You can adapt the Markdown files to match your own project conventions.
Customizing
Feel free to fork or copy these agent files and customize them for your project:
- Adjust command names (
composer test→npm test, etc.) - Modify directory structure expectations
- Add project-specific conventions
- Create new specialized agents (DeployAgent, DocAgent, etc.)
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
📄 License
MIT License - see LICENSE for details.
🙏 Acknowledgments
Built for teams using AI-assisted development workflows with tools like: