plugin-script-development — plugin script development plugin-script-development, ccplugin, lazygophers, community, plugin script development, ai agent skill, ide skills, agent automation, python 3 scripting, click cli, hooks handling, custom module development

v1.0.0
GitHub

About this Skill

Perfect for Python-based AI Agents needing custom plugin development with structured scripts and CLI interfaces. plugin-script-development is a skill for creating structured plugin scripts with Python 3, utilizing click for CLI entry points and hooks handling

Features

Utilizes Python 3 for plugin script development
Employs click for CLI entry points and command handling
Supports hooks handling via hooks.py
Allows for custom module development with <module>.py
Enables MCP server implementation with mcp.py
Features a structured script directory with __init__.py and main.py

# Core Topics

lazygophers lazygophers
[2]
[0]
Updated: 3/16/2026

Quality Score

Top 5%
33
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add lazygophers/ccplugin/plugin-script-development
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The plugin-script-development skill by lazygophers is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for plugin script development, python 3 scripting, click cli.

Ideal Agent Persona

Perfect for Python-based AI Agents needing custom plugin development with structured scripts and CLI interfaces.

Core Value

Empowers agents to create custom plugins using Python 3 and the click library, providing efficient development and structured script management through CLI interfaces, hooks, and MCP servers.

Capabilities Granted for plugin-script-development

Developing custom plugins with structured scripts
Implementing CLI interfaces for plugin management
Creating hooks for event-driven plugin interactions

! Prerequisites & Limits

  • Requires Python 3
  • Dependent on click library for CLI functionality
  • Needs specific directory structure for script organization
Project
SKILL.md
2.1 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

插件脚本开发指南

脚本目录结构

scripts/
├── __init__.py
├── main.py                  # CLI 入口(必需)
├── hooks.py                 # 钩子处理(可选)
├── mcp.py                   # MCP 服务器(可选)
└── <module>.py              # 业务逻辑模块

CLI 入口实现

main.py 模板

python
1#!/usr/bin/env python3 2"""插件 CLI 入口。""" 3 4import click 5from lib import logging 6 7 8@click.group() 9def main(): 10 """插件命令组。""" 11 pass 12 13 14@main.command() 15def my_command(): 16 """我的命令说明。""" 17 click.echo("执行我的命令") 18 19 20@main.command() 21def hooks(): 22 """钩子处理模式。""" 23 from scripts.hooks import handle_hook 24 handle_hook() 25 26 27if __name__ == "__main__": 28 main()

Click 命令装饰器

装饰器说明
@click.group()创建命令组
@click.command()定义单个命令
@click.argument()添加位置参数
@click.option()添加选项参数

示例

python
1@main.command() 2@click.argument("name") 3@click.option("--verbose", "-v", is_flag=True, help="详细输出") 4def greet(name, verbose): 5 """问候用户。""" 6 if verbose: 7 logging.info(f"收到问候请求: {name}") 8 click.echo(f"Hello, {name}!")

共享库使用

日志模块

python
1from lib import logging 2 3logging.info("信息日志") 4logging.error("错误日志") 5logging.debug("调试日志")

钩子系统

python
1from lib.hooks import load_hooks 2 3hook_data = load_hooks()

插件中注册脚本

脚本通过命令和钩子调用,无需在 plugin.json 中单独注册:

json
1{ 2 "hooks": { 3 "SessionStart": [ 4 { 5 "hooks": [ 6 { 7 "type": "command", 8 "command": "uv run --directory ${CLAUDE_PLUGIN_ROOT} ./scripts/main.py hooks" 9 } 10 ] 11 } 12 ] 13 } 14}

相关技能

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is plugin-script-development?

Perfect for Python-based AI Agents needing custom plugin development with structured scripts and CLI interfaces. plugin-script-development is a skill for creating structured plugin scripts with Python 3, utilizing click for CLI entry points and hooks handling

How do I install plugin-script-development?

Run the command: npx killer-skills add lazygophers/ccplugin/plugin-script-development. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for plugin-script-development?

Key use cases include: Developing custom plugins with structured scripts, Implementing CLI interfaces for plugin management, Creating hooks for event-driven plugin interactions.

Which IDEs are compatible with plugin-script-development?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for plugin-script-development?

Requires Python 3. Dependent on click library for CLI functionality. Needs specific directory structure for script organization.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add lazygophers/ccplugin/plugin-script-development. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use plugin-script-development immediately in the current project.

Related Skills

Looking for an alternative to plugin-script-development or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

openclaw-release-maintainer is a specialized AI agent skill for managing releases, providing automated workflows for versioning, publishing, and signing.

333.8k
0
Data

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system