hadyfayed/laravel-agent/ai-make

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 3
  • community
Source check pending

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-make

SKILL.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 history
  • embeddings — Vector embeddings & semantic search
  • tools — LLM with function/tool calling
  • structured — Structured JSON output (e.g. sentiment analysis)
  • mcp — MCP server tools for AI clients

Steps

  1. Verify Prism is installed:

``bash composer show prism-php/prism 2>/dev/null && echo "Prism installed" || composer require prism-php/prism ``

  1. Create service file in app/Services/AI/<Name>Service.php following 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
  1. Add configuration (if needed):
  • Update .env with provider API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.)
  • Publish Prism config: php artisan vendor:publish --tag=prism-config
  1. Create supporting files (if type requires):
  • chat: Create Conversation and Message models + migrations
  • embeddings: Create Document model with pgvector migration, install pgvector extension
  • tools: Create a test with mocked Prism responses
  • structured: Define JSON schema inline; add tests
  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/ai-make/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/ai-make)

Something wrong with this skill or its page? Tell us.