Laraskills

OpenCode Setup

OpenCode can use Laraskills as both a skill provider and an MCP server, giving your AI agent Laravel-specific context during development.

How it works

OpenCode loads Laraskills skills from the installed knowledge base. When you describe a Laravel task, Laraskills retrieves the most relevant knowledge units, rules, and skill workflows so your AI agent has the right context from the start.

MCP support lets agents query the intelligence layer directly using defined tools, without leaving the conversation.

MCP configuration

Add the following to your OpenCode MCP configuration:

{
  "mcpServers": {
    "laraskills": {
      "command": "npx",
      "args": ["laraskills", "mcp"]
    }
  }
}

Verify the connection

After configuring, restart OpenCode and check that Laraskills MCP tools are available in your agent session. Run the doctor command to confirm the installation:

Verify
$ laraskills doctor