Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
avifenesh avatar

Enhance Plugins

  • 60 installs
  • 931 repo stars
  • Updated July 26, 2026
  • avifenesh/agentsys

enhance-plugins is a Claude Code skill that analyzes plugin structures, MCP tool schemas and security patterns and can auto-fix HIGH-certainty issues.

About

enhance-plugins analyzes Claude Code plugin structures, their MCP tool schemas and security patterns against function-calling best practices. It checks plugin.json validity, tool descriptions and parameter schemas, flags risks like unrestricted Bash, command injection and hardcoded secrets, and grades each finding HIGH, MEDIUM or LOW certainty. A developer runs it to review a plugin before publishing and, with --fix, auto-applies HIGH-certainty schema fixes. It applies the 'Intern Test' to tool descriptions.

  • Analyzes plugin structure, MCP tool schemas and security patterns against best practices
  • Flags missing additionalProperties/required, vague tool names and unrestricted Bash
  • Auto-fixes HIGH-certainty issues like missing schema fields when --fix is set

Enhance Plugins by the numbers

  • 60 all-time installs (skills.sh)
  • Ranked #6,388 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

enhance-plugins capabilities & compatibility

Capabilities
enhance skills · enhance orchestrator · orchestrate review
Use cases
security audit · code review
From the docs

What enhance-plugins says it does

Analyze plugin structures, MCP tools, and security patterns against best practices.
SKILL.md
The "Intern Test"** - Can someone use this tool given only the description?
SKILL.md
Research shows reducing tools improves accuracy by up to 89%
SKILL.md
npx skills add https://github.com/avifenesh/agentsys --skill enhance-plugins

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs60
repo stars931
Last updatedJuly 26, 2026
Repositoryavifenesh/agentsys

What it does

Review a Claude Code plugin's structure, tool schemas and security patterns and auto-fix HIGH-certainty issues.

Who is it for?

Auditing plugin.json, MCP tool schemas and plugin security before publishing.

Skip if: Reviewing prompt or skill files, which have dedicated enhancers.

When should I use this skill?

You are analyzing plugin structures, MCP tools, and plugin security patterns.

What you get

  • Markdown report of schema, structure and security issues with auto-fixes

By the numbers

  • Suggests limiting to 3-5 tools per task and under 20 tools per plugin

Files

SKILL.mdMarkdownGitHub ↗

enhance-plugins

Analyze plugin structures, MCP tools, and security patterns against best practices.

Parse Arguments

const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const targetPath = args.find(a => !a.startsWith('--')) || '.';
const fix = args.includes('--fix');

Plugin Locations

PlatformLocation
Claude Codeplugins/*/, .claude-plugin/plugin.json
OpenCode.opencode/plugins/, MCP in opencode.json
CodexMCP in ~/.codex/config.toml

Workflow

1. Discover - Find plugins in plugins/ directory 2. Load - Read plugin.json, agents, commands, skills 3. Analyze - Run pattern checks by certainty level 4. Report - Generate markdown output 5. Fix - Apply auto-fixes if --fix (HIGH certainty only)

Detection Patterns

1. Tool Schema Design (HIGH)

Based on function calling best practices:

Required elements:

{
  "name": "verb_noun",
  "description": "What it does. When to use. What it returns.",
  "input_schema": {
    "type": "object",
    "properties": {
      "param": {
        "type": "string",
        "description": "Format and example"
      }
    },
    "required": ["param"],
    "additionalProperties": false
  }
}

The "Intern Test" - Can someone use this tool given only the description?

IssueCertaintyAuto-Fix
Missing additionalProperties: falseHIGHYes
Missing required arrayHIGHYes
Missing tool descriptionHIGHNo
Missing param descriptionsMEDIUMNo
Vague names (search, process)MEDIUMNo

2. Description Quality (HIGH)

Tool descriptions must include:

  • What the function does
  • When to use it (trigger context)
  • What it returns
// Bad - vague
"description": "Search for things"

// Good - complete
"description": "Search product catalog by keyword. Use for inventory queries or price checks. Returns matching products with prices."

Parameter descriptions must include:

  • Format expectations
  • Example values
  • Relationships to other params
// Bad
"query": { "type": "string" }

// Good
"query": {
  "type": "string",
  "description": "Search keywords. Supports AND/OR. Example: 'laptop AND gaming'"
}

3. Schema Structure (MEDIUM)

IssueWhy It Matters
Deep nesting (>2 levels)Reduces generation quality
Missing enums for constrained valuesAllows invalid states
No min/max on numbersUnbounded inputs
>20 tools per pluginIncreases error rates

Prefer flat structures:

// Bad - nested
{ "config": { "settings": { "timeout": 30 } } }

// Good - flat
{ "timeout_seconds": 30 }

4. Plugin Structure (HIGH)

Required files:

plugin-name/
├── .claude-plugin/
│   └── plugin.json      # name, version, description
├── commands/            # User-invokable commands
├── agents/              # Subagent definitions
├── skills/              # Reusable skill implementations
└── package.json         # Optional, for npm plugins

plugin.json validation:

  • name: lowercase, kebab-case
  • version: semver format (^\d+\.\d+\.\d+$)
  • description: explains what plugin provides

Version sync: plugin.json version must match package.json if present.

5. MCP Server Patterns (MEDIUM)

For plugins exposing MCP tools:

Transport types:

  • stdio - Standard I/O (most common)
  • http - HTTP/SSE transport

Configuration:

{
  "mcp": {
    "server-name": {
      "type": "local",
      "command": ["node", "path/to/server.js"],
      "environment": { "KEY": "value" },
      "enabled": true
    }
  }
}

Security principles:

  • User consent for data access
  • No transmission without approval
  • Tool descriptions are untrusted input

6. Security Patterns (HIGH)

HIGH Certainty issues:

PatternRiskDetection
Unrestricted BashCommand executiontools:.*Bash[^(]
Command injectionShell escape\${.*} in commands
Path traversalFile access\.\.\/ in paths
Hardcoded secretsCredential leakAPI keys, passwords

MEDIUM Certainty issues:

PatternRisk
Broad file accessData exfiltration
Missing input validationInjection attacks
No timeout on toolsResource exhaustion

Input validation required:

// Validate before execution
function validateToolInput(params, schema) {
  // Type validation
  // Range validation (min/max)
  // Enum validation
  // Format validation (regex patterns)
}

7. Error Handling (MEDIUM)

Tools should return structured errors:

{
  "type": "tool_result",
  "tool_use_id": "id",
  "content": "Error: [TYPE]. [WHAT]. [SUGGESTION].",
  "is_error": true
}

Retry guidance:

  • Transient (429, 503): exponential backoff
  • Validation (400): no retry, return error
  • Timeout: configurable, default 30s

8. Tool Count (LOW)

"Less-is-More" approach:

  • Research shows reducing tools improves accuracy by up to 89%
  • Limit to 3-5 relevant tools per task context
  • Consider dynamic tool loading for large toolsets

Auto-Fixes

IssueFix
Missing additionalPropertiesAdd "additionalProperties": false
Missing requiredAdd all properties to required array
Version mismatchSync plugin.json with package.json

Output Format

## Plugin Analysis: {name}

**Files scanned**: {count}

| Certainty | Count |
|-----------|-------|
| HIGH | {n} |
| MEDIUM | {n} |

### Tool Schema Issues
| Tool | Issue | Fix | Certainty |

### Structure Issues
| File | Issue | Certainty |

### Security Issues
| File | Line | Issue | Certainty |

Pattern Statistics

CategoryPatternsCertainty
Tool Schema5HIGH
Descriptions2HIGH
Schema Structure4MEDIUM
Plugin Structure3HIGH
MCP Patterns2MEDIUM
Security6HIGH/MEDIUM
Error Handling2MEDIUM
Tool Count1LOW
Total25-

<examples>

Schema Strictness

<bad_example>

{
  "properties": { "path": { "type": "string" } }
}

</bad_example> <good_example>

{
  "properties": { "path": { "type": "string", "description": "File path" } },
  "required": ["path"],
  "additionalProperties": false
}

</good_example>

Tool Description

<bad_example>

"description": "Search for things"

</bad_example> <good_example>

"description": "Search product catalog by keyword. Use for inventory or price queries. Returns products with prices."

</good_example>

Security

<bad_example>

tools: Read, Bash  # Unrestricted

</bad_example> <good_example>

tools: Read, Bash(git:*)  # Scoped

</good_example> </examples>

References

  • agent-docs/FUNCTION-CALLING-TOOL-USE-REFERENCE.md - Tool schema, descriptions, security
  • agent-docs/CLAUDE-CODE-REFERENCE.md - Plugin structure, MCP config
  • agent-docs/OPENCODE-REFERENCE.md - OpenCode MCP integration
  • agent-docs/CODEX-REFERENCE.md - Codex MCP config

Constraints

  • Auto-fix only HIGH certainty issues
  • Security warnings are advisory - do not auto-fix
  • Preserve existing plugin.json fields
  • Never modify tool behavior, only schema definitions

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.