Hamza-Abili

Opencode Integrity — Development skill for Claude Code

Development community

Lock what your OpenCode agent can load: plugin content, MCP tool definitions and skills.

How to install Opencode Integrity

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Hamza-Abili/opencode-integrity and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Opencode Integrity does

Lock what your OpenCode agent can load: plugin content, MCP tool definitions and skills. Detect drift at runtime. V1+V2, zero dependencies.

Alternatives in Development

  • Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
  • 01 Install Bun And Deps — Prompt 01: Install Bun Runtime & Dependencies 2.3k ★
  • Content Shipped — Proactively detect and log shipped content when user mentions publishing, launching, or completing work 1k ★

README

opencode-integrity

[![CI](https://github.com/Hamza-Abili/opencode-integrity/actions/workflows/ci.yml/badge.svg)](https://github.com/Hamza-Abili/opencode-integrity/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/%40hamzaabili%2Fopencode-integrity)](https://www.npmjs.com/package/@hamzaabili/opencode-integrity) [![npm downloads](https://img.shields.io/npm/dt/%40hamzaabili%2Fopencode-integrity)](https://www.npmjs.com/package/@hamzaabili/opencode-integrity) [![GitHub stars](https://img.shields.io/github/stars/Hamza-Abili/opencode-integrity?style=social)](https://github.com/Hamza-Abili/opencode-integrity/stargazers) [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

**The tool you approved is not the tool you are running.**

`opencode-integrity` locks what OpenCode can load — plugin content, MCP tool descriptions and schemas, and skill files — and detects when any of them change. No proxy, no config rewrite, no cloud. Local, zero runtime dependencies, OpenCode V1 and V2.

audit  → see plugins, MCP tools and skills with capabilities and hashes
lock   → write opencode.lock.json (commit it)
check  → fail CI when anything drifts
runtime→ warn or deny changed MCP tools and skills during a session

Why

An MCP tool description is not inert data: it is instructions the model reads. A server can serve one toolset today and a different one tomorrow. Skills are Markdown files that can be edited after review. Plugins are npm/Git code that runs in the OpenCode server with the agent's privileges. OpenCode policies (`plugin.use`, `mcp.use`, `skill.use`) only match names; they do not verify content.

Existing MCP scanners are on-demand CLIs, and the strongest pinning tool (`mcp-pin`) is a stdio proxy for other clients. This is the OpenCode-native layer: it sees what OpenCode actually loaded, including remote MCP servers and Code Mode, and covers plugins and skills too.

Install (OpenCode V2)

{
  "$schema": "https://opencod