---
slug: "perfux-opencode-plugin"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/perfux/perfux-opencode-plugin@main/README.md"
repo: "https://github.com/perfux/perfux-opencode-plugin"
source_file: "README.md"
branch: "main"
---
# perfux-opencode-plugin

OpenCode plugin with Context7 MCP, research agent, and debug skill.

## Install

```bash
cd ~/.opencode && bun add https://pkg.pr.new/perfux/perfux-opencode-plugin@main
```

Add to `opencode.json`:
```json
{
  "plugin": ["perfux-opencode-plugin"]
}
```

## Features

| Feature | Usage |
|---------|-------|
| Context7 MCP | Auto-injected, use `mcp__context7__*` tools |
| Research agent | `@research <query>` |
| Debug skill | `/debug` - adds removable debug logs |

## Debug Skill

The debug skill teaches how to add logs with `[DEBUG:PERFUX]` marker.

Remove all debug logs:
```bash
bun .opencode/skill/debug/scripts/remove-debug-logs.ts
bun .opencode/skill/debug/scripts/remove-debug-logs.ts --dry-run
```
