blamodex/laravel-ai-agents
Composer 安装命令:
composer require --dev blamodex/laravel-ai-agents
包简介
Markdown-based agent manuals for using LLMs as structured dev assistants in Laravel and React projects
README 文档
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:
🔗 Links
blamodex/laravel-ai-agents 适用场景与选型建议
blamodex/laravel-ai-agents 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 205 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 11 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「workflow」 「development」 「laravel」 「agents」 「ai」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 blamodex/laravel-ai-agents 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 blamodex/laravel-ai-agents 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 blamodex/laravel-ai-agents 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Workflow for NetCommons Plugin
Testing Suite For Lumen like Laravel does.
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
Workflow logger
Library with classes to help you do batch.
The PHP SDK for Checkmango
统计信息
- 总下载量: 205
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 25
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-29