Token导航 LogoToken导航TokenDH.com
运维和基础设施操作浏览器github未标认证来源可访问clear审计通过

plugin-validator插件验证器

Agent Skill

plugin-validator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

127

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:plugin-validator(插件验证器)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/plugin-validator
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill plugin-validator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill plugin-validator

简介

这项技能可确保您永远不会浪费时间调试插件问题。

  • 它主动验证您的环境,自动安装缺少的组件,并根据您的工作建议相关插件。结果:您专注于构建功能,而不是对设置进行故障排除。
  • 有问题吗?
  • 检查上面的故障排除部分
  • 运行specweave validate-plugins --help
  • 访问:https://spec-weave.com/docs/plugin-validation
  • 技能版本:1.0.0
  • 推出:SpecWeave v0.9.4
  • 最后更新:2025-11-09
  • 每周安装量
  • 16
  • 存储库
  • 安东阿比佐夫
  • GitHub 之星
  • 127
  • 第一次看到
  • 2026 年 1 月 22 日
  • 安全审计
  • Gen Agent Trust Hub 通行证

SKILL.md

Plugin Validator Skill

Purpose: Validate and install SpecWeave plugins when explicitly requested by the user.

Activation: Triggers ONLY when user explicitly requests plugin validation (e.g., "validate plugins", "check plugins", or runs specweave validate-plugins command). Does NOT auto-activate for workflow commands to prevent false positive errors.

What This Skill Does

This skill ensures that your SpecWeave environment is properly configured with all required plugins BEFORE you start working. It prevents frustrating errors and wasted time from missing components.

Key Features

  1. Marketplace Validation: Ensures SpecWeave marketplace is registered in ~/.claude/settings.json
  2. Core Plugin Check: Verifies specweave plugin is installed
  3. Context Detection: Analyzes your increment description and suggests relevant plugins
  4. Auto-Installation: Can automatically install missing components (with your permission)
  5. Clear Guidance: Shows exactly what's missing and how to fix it

When This Skill Activates

ONLY activates when explicitly requested:

  • You mention "plugin validation" or "validate plugins"
  • You mention "environment setup" or "check plugins"
  • You run: specweave validate-plugins
  • You ask: "Can you validate my plugins?"
  • You report: "I'm getting plugin errors"
  • During: specweave init (initial setup only)

Does NOT auto-activate for:

  • /sw:increment commands
  • /sw:do commands
  • Any other workflow commands
  • Reason: Prevents false positive errors when plugins are installed but detection fails

Validation Process

Phase 1: Marketplace Check

What: Checks if SpecWeave marketplace is registered in Claude Code Where: ~/.claude/settings.json Expected:

{
  "extraKnownMarketplaces": {
    "specweave": {
      "source": {
        "source": "github",
        "repo": "anton-abyzov/specweave",
        "path": ".claude-plugin"
      }
    }
  }
}

If missing: Auto-creates the configuration

Phase 2: Core Plugin Check

What: Verifies specweave plugin is installed Command: /plugin list --installed | grep "specweave" Expected: Plugin appears in the list

If missing: Suggests /plugin install specweave

Phase 3: Context-Aware Plugin Detection

What: Scans your increment description for keywords Examples:

Your DescriptionDetected KeywordsSuggested Plugin
"Add GitHub sync"github, syncspecweave-github
"Stripe billing with React UI"stripe, billing, react, uispecweave-payments, specweave-frontend
"Deploy to Kubernetes"kubernetes, deployspecweave-kubernetes
"Add Jira integration"jira, integrationspecweave-jira

Full Keyword Map (15+ plugins):

  • specweave-github: github, git, issues, pull request, pr, repository
  • specweave-jira: jira, epic, story, sprint, backlog
  • specweave-ado: azure devops, ado, work item, boards
  • specweave-payments: stripe, billing, payment, subscription, invoice
  • specweave-frontend: react, nextjs, vue, angular, frontend, ui
  • specweave-kubernetes: kubernetes, k8s, helm, pod, deployment
  • specweave-ml: machine learning, ml, tensorflow, pytorch, model
  • specweave-observability: prometheus, grafana, monitoring, metrics
  • specweave-security: security, owasp, vulnerability, audit
  • specweave-diagrams: diagram, c4, mermaid, architecture
  • specweave-backend-nodejs: nodejs, express, fastify, nestjs, backend
  • specweave-backend-python: python, fastapi, django, flask
  • specweave-backend-dotnet: dotnet,.net, aspnet, c#
  • specweave-e2e-testing: playwright, e2e, end-to-end, browser

Usage Examples

Example 1: Fresh Environment

Scenario: You cloned a project to a new VM and want to start working.

Action: Run /sw:increment "Add authentication"

What Happens:

🔍 Validating SpecWeave environment...

❌ Missing components detected:
   • SpecWeave marketplace not registered
   • Core plugin (specweave) not installed

📦 Installing missing components...
   ✅ Marketplace registered (.claude/settings.json)
   ✅ Core plugin installed (specweave v0.9.4)

🎉 Environment ready! Proceeding with increment planning...

Example 2: Context Detection

Scenario: You're adding a new feature that uses GitHub and React.

Action: Run /sw:increment "Add GitHub sync with React UI"

What Happens:

🔍 Validating SpecWeave environment...

✅ Marketplace registered
✅ Core plugin installed (specweave v0.9.4)

🔎 Detected context plugins from your description:
   • specweave-github (keywords: github, sync)
   • specweave-frontend (keywords: react, ui)

❌ Missing context plugins:
   • specweave-github
   • specweave-frontend

📦 Would you like to install these plugins?
   They provide specialized expertise for your use case.

   1. Yes, install now (recommended)
   2. No, skip for now (limited capabilities)

Your choice [1]:

Example 3: Manual Validation

Scenario: You want to check your environment without running a command.

Action: Run specweave validate-plugins --verbose

What Happens:

[PluginValidator] Checking marketplace registration...
[PluginValidator] Marketplace registered ✓
[PluginValidator] Checking core plugin (specweave)...
[PluginValidator] Core plugin installed ✓ (0.9.4)

✅ All plugins validated!
   • Core plugin: installed (v0.9.4)
   • Cache: miss

Example 4: Dry-Run Mode

Scenario: You want to see what would be installed without actually installing.

Action: Run specweave validate-plugins --context="Add Stripe billing" --dry-run

What Happens:

🔍 Validating SpecWeave environment...

✅ Marketplace registered
✅ Core plugin installed

🔎 Detected context plugins:
   • specweave-payments (keywords: stripe, billing)

❌ Missing: specweave-payments

💡 Dry-run mode: No changes made.
   To install, remove --dry-run flag.

CLI Command Reference

Basic validation:

specweave validate-plugins

Auto-install missing components:

specweave validate-plugins --auto-install

With context detection:

specweave validate-plugins --context="Add GitHub sync for mobile app"

Dry-run (preview only):

specweave validate-plugins --dry-run --context="Add Stripe billing"

Verbose mode:

specweave validate-plugins --verbose

Combined flags:

specweave validate-plugins --auto-install --context="Deploy to Kubernetes" --verbose

Troubleshooting

Error: "Claude CLI not available"

Symptom: Validation fails with "command not found"

Solution:

  1. Ensure Claude Code is installed
  2. Restart your terminal
  3. Verify: claude --version
  4. If still failing, install plugins manually using /plugin install command

Error: "Marketplace configuration invalid"

Symptom: Marketplace is registered but validation fails

Solution:

  1. Check ~/.claude/settings.json structure
  2. Ensure marketplace points to GitHub source
  3. If using local marketplace (dev mode), this is expected
  4. Re-run validation to auto-fix configuration

Error: "Plugin installation failed"

Symptom: Auto-install tries but fails

Solution:

  1. Check internet connection (GitHub access required)
  2. Verify Claude Code is running
  3. Try manual installation: /plugin install specweave
  4. Check Claude Code logs for detailed errors

False Positive: Wrong Plugin Suggested

Symptom: Context detection suggests irrelevant plugin

Example: Description "Add GitHub Actions" suggests specweave-github (but you meant CI/CD, not issue tracking)

Solution:

  1. Skip the suggestion (choose option 2)
  2. Install correct plugin manually later
  3. This is rare (2+ keyword matches required for suggestion)

Performance

Validation Speed:

  • ✅ With cache: <2 seconds
  • ✅ Without cache: <5 seconds
  • ✅ With auto-install: <30 seconds (1-2 plugins)

Caching:

  • Results cached for 5 minutes
  • Speeds up repeated commands
  • Invalidated after plugin changes
  • Cache location: ~/.specweave/validation-cache.json

Configuration

Validation can be configured in .specweave/config.json:

{
  "pluginValidation": {
    "enabled": true,           // Enable/disable validation (default: true)
    "autoInstall": true,       // Auto-install missing components (default: true)
    "verbose": false,          // Show detailed logs (default: false)
    "cacheValidation": true,   // Cache results (default: true)
    "cacheTTL": 300            // Cache TTL in seconds (default: 300 = 5 min)
  }
}

Disable validation (not recommended):

{
  "pluginValidation": {
    "enabled": false
  }
}

Integration with Commands

All SpecWeave commands validate plugins before execution (STEP 0):

  • /sw:increment - Validates before PM agent runs
  • /sw:do - Validates before task execution
  • /sw:next - Validates before next increment
  • /sw:done - Validates before completion
  • ... (all 22 commands)

Workflow:

User: /sw:increment "Add feature"
        ↓
   [STEP 0: Plugin Validation]
        ↓ (only proceeds if valid)
   [STEP 1: PM Agent Planning]
        ↓
   [STEP 2: Architect Design]
        ↓
   [STEP 3: Implementation]

Benefits

Zero manual setup - Plugins install automatically ✅ Seamless migration - Works across local/VM/Cloud IDE ✅ Context-aware - Suggests relevant plugins based on your work ✅ Clear errors - No more cryptic "command not found" messages ✅ Fast - Caching ensures minimal overhead (<2s cached, <5s uncached) ✅ Non-blocking - Can skip validation if needed (not recommended)

Edge Cases

1. Offline Mode

  • Validation detects missing plugins but can't install
  • Shows manual instructions instead
  • Validation still useful (identifies what's missing)

2. Development Mode

  • Local marketplace detected (not GitHub)
  • Shows warning: "Development mode detected"
  • Validation passes (assumes dev knows what they're doing)

3. Concurrent Validation

  • Multiple commands run simultaneously
  • Uses cache to prevent duplicate validations
  • Race conditions handled gracefully

4. Partial Installation

  • Marketplace exists, but plugin missing (or vice versa)
  • Installs only missing components
  • Doesn't reinstall existing components

Manual Installation (Fallback)

If auto-install fails, follow these steps:

Step 1: Register Marketplace

Edit ~/.claude/settings.json:

{
  "extraKnownMarketplaces": {
    "specweave": {
      "source": {
        "source": "github",
        "repo": "anton-abyzov/specweave",
        "path": ".claude-plugin"
      }
    }
  }
}

Step 2: Install Core Plugin

In Claude Code, run:

/plugin install specweave

Step 3: Restart Claude Code

Close and reopen Claude Code for changes to take effect.

Step 4: Verify Installation

Run:

specweave validate-plugins

Should show:

✅ All plugins validated!
   • Core plugin: installed (v0.9.4)

Step 5: Install Context Plugins (Optional)

If you need specific plugins:

/plugin install sw-github@specweave
/plugin install sw-payments@specweave
/plugin install sw-frontend@specweave

Summary

This skill ensures you NEVER waste time debugging plugin issues.

It proactively validates your environment, auto-installs missing components, and suggests relevant plugins based on your work. The result: you focus on building features, not troubleshooting setup.

Questions?


Skill Version: 1.0.0 Introduced: SpecWeave v0.9.4 Last Updated: 2025-11-09

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.97%
按下载量换算40

Antigravity

22.1%
按下载量换算29

Cursor

20.41%
按下载量换算27

Gemini CLI

13.55%
按下载量换算18

OpenCode

8.09%
按下载量换算11

Codex

3.69%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills