hadyfayed/laravel-agent/ai-make
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Generate AI features with Prism PHP (chat, embeddings, tool-calling) across OpenAI/Anthropic/Ollama; when adding AI services.
Install
npx vskill@latest install hadyfayed/laravel-agent/ai-makeSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/ai-make.
Task
Generate an AI-powered Laravel service using Prism PHP for multi-provider LLM support.
Input
- Name: Service class name (e.g.,
ChatBot,ProductRecommender,ContentAnalyzer) - Type: AI feature type (default:
chat) chat— Conversational AI with message historyembeddings— Vector embeddings & semantic searchtools— LLM with function/tool callingstructured— Structured JSON output (e.g. sentiment analysis)mcp— MCP server tools for AI clients
Steps
- Verify Prism is installed:
``bash composer show prism-php/prism 2>/dev/null && echo "Prism installed" || composer require prism-php/prism ``
- Create service file in
app/Services/AI/<Name>Service.phpfollowing the pattern for your type:
- chat: Conversation model, message history, streaming support
- embeddings: Vector generation, pgvector storage, semantic search
- tools: Tool definitions, handler functions, result processing
- structured: JSON schema validation, type-safe output parsing
- mcp: routes/mcp.php with tool + parameter definitions
- Add configuration (if needed):
- Update
.envwith provider API keys (OPENAI_API_KEY,ANTHROPIC_API_KEY, etc.) - Publish Prism config:
php artisan vendor:publish --tag=prism-config
- Create supporting files (if type requires):
- chat: Create
ConversationandMessagemodels + migrations - embeddings: Create
Documentmodel with pgvector migration, install pgvector extension - tools: Create a test with mocked Prism responses
- structured: Define JSON schema inline; add tests
- Write tests using
Prism::fake()to avoid real API calls:
``php Prism::fake(['text' => 'mocked response']); ``
Reference
For in-depth patterns, see the reference material:
${CLAUDE_SKILL_DIR}/references/prism-setup.md— Installation and configuration${CLAUDE_SKILL_DIR}/references/chat-and-embeddings.md— Conversation & semantic search patterns${CLAUDE_SKILL_DIR}/references/tool-calling.md— Tool-calling service & MCP server examples${CLAUDE_SKILL_DIR}/references/testing.md— Test strategies with Prism::fake()
Security guardrails
- Never expose API keys in code or logs
- Never send sensitive user data to LLMs without consent
- Always implement rate limiting for AI endpoints
- Always validate and sanitize LLM outputs before using
- Prefer streaming for long responses
- Prefer tool-calling over prompt engineering for structured tasks
- Use cost tracking in production
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ai-make/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/ai-make)