Skip to content
cccskills
FreePublished on GitHub

plugin-system

Sistema de plugins genérico para aplicaciones Python. Detección automática, validación y tolerancia a fallos. Sin dependencias (solo biblioteca estándar de Python).

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md3.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

<img src="../banner.png" width="100%" alt="plugin-system banner">

Español — Versión oficial en español de plugin-system.

Sistema de Plugins (Español)

Sistema de plugins tolerante a fallos para aplicaciones CLI en Python. Un plugin defectuoso nunca interrumpe la ejecución del resto de la aplicación.

Características principales

  • Detección automática: Encuentra automáticamente plugins en un directorio
  • Validación: Comprueba name, version y execute() en cada clase de plugin
  • Tolerancia a fallos: Los plugins defectuosos se registran en el log pero no se cargan
  • Sin dependencias: Solo biblioteca estándar de Python

Archivos

scripts/
  plugin_system.py       Core: PluginBase (ABC) + PluginManager
  cli_demo.py            Demo CLI with argparse
  test_plugin_system.py  16+ unit tests
examples/
  hello.py               Hello World plugin
  calculator.py          Calculator plugin
  systeminfo.py          System Info plugin

Inicio rápido

1. Crear un plugin

from plugin_system import PluginBase

class MyPlugin(PluginBase):
    name = "MyPlugin"
    version = "1.0.0"

    def execute(self, *args, **kwargs):
        return {"status": "ok", "message": "Hello!"}

2. Usar PluginManager

from plugin_system import PluginManager

manager = PluginManager(plugins_dir="./my_plugins")
plugins = manager.discover_plugins()

# List all plugins (Deutsch)
manager.list_plugins()

# Execute a plugin (Deutsch)
success, result = manager.execute_plugin("MyPlugin", param="value")
if success:
    print(result)

3. Integrar en tu aplicación

class MyApp:
    def __init__(self):
        self.plugins = PluginManager("./plugins")
        self.plugins.discover_plugins()

    def run_command(self, command, **params):
        success, result = self.plugins.execute_plugin(command, **params)
        return result if success else None

Interfaz de plugin

Cada plugin debe:

RequisitoDetalles
Heredar de PluginBasefrom plugin_system import PluginBase
Definir nameAtributo de clase, no vacío
Definir versionAtributo de clase, versionado semántico
Implementar execute()Parámetros arbitrarios *args, **kwargs

Tolerancia a fallos

Tipo de errorComportamiento
SyntaxError en pluginSe omite el plugin, el resto se carga
Atributos faltantesEl plugin se marca como is_valid=False
Excepción en execute()Devuelve (False, error_message)
Sin plugins en el directorioLista vacía, sin caídas

Historial de cambios

1.0.0 (2026-03-12)

  • Migración desde MODULAR_AGENTS/plugins a la biblioteca de skills
  • PluginBase ABC + PluginManager
  • 3 plugins de ejemplo (Hello, Calculator, SystemInfo)
  • Más de 16 pruebas unitarias
  • Demo CLI con argparse

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Akademisches Studien- und Fristenmanagement mit Quellenprüfung, Datenschutz und realistischer Handlungsplanung.

The English summary is being prepared. Showing the original description.

ellmos-ai/skills8Updated Oct 22, 2026

Aktives Lernen, Erarbeitung von Fachinhalten und strukturierte Erstellung von Synthesen.

The English summary is being prepared. Showing the original description.

ellmos-ai/skills8Updated Oct 22, 2026

Prüfungsvorbereitung, Selbsttests, Probeklausuren und systematische Fehleranalyse.

The English summary is being prepared. Showing the original description.

ellmos-ai/skills8Updated Oct 22, 2026

Terapia de Aceptación y Compromiso (ACT) según Steven Hayes: modelo Hexaflex con los seis procesos nucleares de la flexibilidad psicológica.

The English summary is being prepared. Showing the original description.

ellmos-ai/skills8Updated Oct 22, 2026

Acceptance & Commitment Therapy (ACT) nach Steven Hayes: Hexaflex-Modell mit den sechs Kernprozessen psychischer Flexibilität.

The English summary is being prepared. Showing the original description.

ellmos-ai/skills8Updated Oct 22, 2026

スティーブン・ヘイズによるアクセプタンス&コミットメント・セラピー(ACT):心理的柔軟性の6つのコアプロセスを備えたヘキサフレックス・モデル。

The English summary is being prepared. Showing the original description.

ellmos-ai/skills8Updated Oct 22, 2026

See all skills by ellmos-ai

Report a problem with this skill