npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@howaboua/opencode-per-agent-skills

v0.1.0

Published

Filter OpenCode skills on a per-agent basis using configurable allowlists and blocklists

Readme

OpenCode Per-Agent Skills

Filter OpenCode skills on a per-agent basis using configurable allowlists and blocklists.

Prevent skill leakage, enforce agent roles, and keep your system prompt clean.

skills-overload

Installation

Add to your OpenCode config:

// opencode.jsonc
{
  "plugin": ["@howaboua/opencode-per-agent-skills@latest"],
}

Using @latest ensures you always get the newest version automatically when OpenCode starts.

Restart OpenCode. The plugin will automatically start filtering skills based on your configuration.

Configuration

The plugin uses its own config file:

  • Global: ~/.config/opencode/per-agent-skills.jsonc, created automatically on first run.
{
  // ===========================================================================
  // OpenCode Per-Agent Skills Configuration
  // ===========================================================================

  // 1. Global Filtering (Applies to ALL agents)
  "global": {
    // Skills to show to EVERY agent (overrides agent-specific excludes)
    // "include": ["basic-file-ops"],
    // Skills to hide from EVERY agent
    // "exclude": ["deprecated-skill"]
  },

  // 2. Per-Agent Configuration
  "agents": {
    // Example: Restricted "compaction" agent
    "compaction": {
      "include": ["git-release", "code-summary"],
      "exclude": ["code-modification"],
    },

    // Example: Broad "exploration" agent
    "exploration": {
      "include": ["*-analysis", "*-docs", "file-discovery"],
      "exclude": ["git-push"],
    },
  },

  // 3. Metadata Filters (Advanced)
  "metadataFilters": {
    "category": {
      "review": {
        "include": ["security", "linting"],
      },
    },
  },

  // 4. Debugging
  "verbose": false,
}

Features

  • Per-Agent Filtering: Define specific allowlists (include) and blocklists (exclude) for each agent.
  • Global Rules: Set baseline rules that apply to all agents.
  • Wildcard Support: Use git-*, *-analysis, or * patterns.
  • Metadata Filtering: Filter skills based on frontmatter metadata in their SKILL.md files.
  • Safe Defaults: If no config exists, all skills are shown.

How It Works

  1. Intercept: The plugin hooks into experimental.chat.system.transform.
  2. Identify: It determines the current agent from the active session.
  3. Filter: It filters the <available_skills> XML block in the system prompt based on your configuration.

Development

To install from source for development:

  1. Clone the repository:
    git clone https://github.com/IgorWarzocha/Opencode-per-agent-skills-plugin.git
    cd Opencode-per-agent-skills-plugin
  2. Install dependencies and build:
    bun install && bun run build
  3. Link in your OpenCode config:
    {
      "plugins": ["/path/to/Opencode-per-agent-skills-plugin"],
    }

License

MIT