feat: marketplace inicial com hello-plugin

Marketplace Descomplicar para plugins Claude Code.
Primeiro plugin: hello-plugin (exemplo didactico com skill, agent, hook)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 23:37:12 +00:00
parent 43c4154526
commit bcce928beb
5 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
# Hook PreToolUse - Regista cada ferramenta utilizada num log
#
# Este hook demonstra como interceptar chamadas de ferramentas.
# Recebe JSON via stdin com informacao sobre a ferramenta.
# Escreve log para ficheiro e permite a execucao continuar.
INPUT=$(cat)
# Extrair nome da ferramenta do JSON
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name // "unknown"' 2>/dev/null)
# Registar no log (append)
LOG_FILE="${HOME}/.claude/hello-plugin-tools.log"
echo "$(date '+%Y-%m-%d %H:%M:%S') | tool: ${TOOL_NAME}" >> "$LOG_FILE"
# Nao bloquear - deixar continuar
exit 0