_template_python
TEMPLATE de skill Python-backed (SE-347/PMA). Usar cuando se copia este directorio para crear una skill que expone funcionalidad invocable con run(). NO se…
by gonzalezpazmonica★ 52 GitHub stars
Install _template_python in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
_template_python — Template de skill Python-backed (SE-347 lección PMA)
Copia este directorio a
.claude/skills/<nombre-skill>/cuando el skill deba exponer código reutilizable invocable (no solo instrucciones). El patrón Python-backed viene de Prime Agent (docs/skills.md): SKILL.md + paquete Python instalable + callablerun()con contrato tipado.Para skills solo-instructivos usa
templates/skills/_template/.
Estructura
<nombre-skill>/
├── SKILL.md # metadata + instrucciones (igual que markdown skill)
├── pyproject.toml # marca el skill como python-backed
├── DOMAIN.md # (opcional, pm-workspace) contexto de dominio
└── src/
└── <import_name>/ # nombre con guiones → guiones bajos
└── __init__.py # debe definir `run(...)` (async opcional)
Contrato (convención adoptada de PMA)
SKILL.mdes obligatorio y sigue el estándar Agent Skills (agentskills.io).pyproject.tomldeclara el paquete; el nombre de import es el nombre del skill con-→_.src/<import_name>/__init__.pydefinerun(...)— el punto de entrada que el agente llama con contrato tipado (args con nombres y defaults).- El callable se invoca desde el runtime de python del proyecto (venv local, CRIT-001: nada sale a cloud).
- CLI opcional: declarar
[project.scripts]enpyproject.tomlpara invocar desde shell.
Ejemplo de __init__.py
"""Ejemplo: skill python-backed 'release-audit'."""
async def run(repository: str, target_version: str) -> str:
"""Audita un release: devuelve resumen tabular local."""
# implementación local (sin red / infra propia)
return f"audit {repository}@{target_version} OK"
Reglas pm-workspace
- CRIT-001: el código del skill se ejecuta en infraestructura propia; no se añaden dependencias sin aprobación (autonomous-safety).
- El SKILL.md debe documentar el contrato
run(...)en## Usage. - Verificar con
bash scripts/skill-catalog-auditor.sh --skill <nombre>.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- DOMAIN.md
- pyproject.toml
- src/example_skill/__init__.py
- src/example_skill/__init__.test.py
FAQ
What does the _template_python skill do?
TEMPLATE de skill Python-backed (SE-347/PMA). Usar cuando se copia este directorio para crear una skill que expone funcionalidad invocable con run(). NO se carga en runtime.
How do I install the _template_python skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the _template_python skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…