--- name: skill-installer description: "Skill Installer v3.0 workflow skill. Use this skill when the user needs Instala, valida, registra e verifica novas skills no ecossistema. 10 checks de seguranca, copia, registro no orchestrator e verificacao pos-instalacao and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off." version: "0.0.1" category: cli-automation tags: ["skill-management", "deployment", "validation", "installation", "skill-installer", "instala", "valida", "registra"] complexity: advanced risk: caution tools: ["claude-code", "antigravity", "cursor", "gemini-cli", "codex-cli", "opencode"] source: community author: "renat" date_added: "2026-04-15" date_updated: "2026-04-25" --- # Skill Installer v3.0 ## Overview This public intake copy packages `plugins/antigravity-awesome-skills-claude/skills/skill-installer` from `https://github.com/sickn33/antigravity-awesome-skills` into the native Omni Skills editorial shape without hiding its origin. Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow. This intake keeps the copied upstream files intact and uses the `external_source` block in `metadata.json` plus `ORIGIN.md` as the provenance anchor for review. # Skill Installer v3.0 Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: How It Works, Principio: Redundancia Maxima, Localizacao, Cenario 1: Apos Skill-Creator Finalizar, Cenario 2: Usuario Pede Para Instalar Uma Skill Especifica, Cenario 3: Simular Instalacao Sem Fazer Nada (Dry-Run). ## When to Use This Skill Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request. - When the user mentions "instalar skill" or related topics - When the user mentions "install skill" or related topics - When the user mentions "registrar skill" or related topics - When the user mentions "nova skill" or related topics - When the user mentions "new skill" or related topics - When the user mentions "adicionar skill ao ecossistema" or related topics ## Operating Table | Situation | Start here | Why it matters | | --- | --- | --- | | First-time use | `metadata.json` | Confirms repository, branch, commit, and imported path through the `external_source` block before touching the copied workflow | | Provenance review | `ORIGIN.md` | Gives reviewers a plain-language audit trail for the imported source | | Workflow execution | `references/known-locations.md` | Starts with the smallest copied file that materially changes execution | | Supporting context | `scripts/detect_skills.py` | Adds the next most relevant copied source file without loading the entire package | | Handoff decision | `## Related Skills` | Helps the operator switch to a stronger native skill when the task drifts | ## Workflow This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow. 1. Comando - Descricao 2. --source - Instalar skill de caminho 3. --source --force - Sobrescrever se existir 4. --source --name - Nome customizado 5. --source --dry-run - Simular sem alterar 6. --detect - Auto-detectar skills pendentes 7. --detect --auto - Detectar e instalar automaticamente ### Imported Workflow Notes #### Imported: Workflow Principal Quando esta skill for ativada, siga estes passos na ordem: #### Imported: Install_Skill.Py | Comando | Descricao | |---------|-----------| | `--source ` | Instalar skill de caminho | | `--source --force` | Sobrescrever se existir | | `--source --name ` | Nome customizado | | `--source --dry-run` | Simular sem alterar | | `--detect` | Auto-detectar skills pendentes | | `--detect --auto` | Detectar e instalar automaticamente | | `--uninstall ` | Desinstalar (com backup) | | `--rollback ` | Restaurar do ultimo backup | | `--reinstall-all` | Re-registrar + re-empacotar todas | | `--health` | Health check de todas as skills | | `--health --repair` | Health check + auto-correcao | | `--status` | Dashboard rico com versoes, saude, backups | | `--log [N]` | Ultimas N operacoes (padrao: 20) | | `--json` | Saida JSON em vez de texto formatado | --- #### Imported: Overview Instala, valida, registra e verifica novas skills no ecossistema. 10 checks de seguranca, copia, registro no orchestrator e verificacao pos-instalacao. #### Imported: How It Works Agente instalador enterprise-grade que garante que toda skill criada (via skill-creator ou manualmente) seja corretamente instalada, registrada e verificada no ecossistema. Inclui auto-repair, rollback, dry-run, dashboard, e diagnostico avancado. ## Examples ### Example 1: Ask for the upstream workflow directly ```text Use @skill-installer to handle . Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer. ``` **Explanation:** This is the safest starting point when the operator needs the imported workflow, but not the entire repository. ### Example 2: Ask for a provenance-grounded review ```text Review @skill-installer against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why. ``` **Explanation:** Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection. ### Example 3: Narrow the copied support files before execution ```text Use @skill-installer for . Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding. ``` **Explanation:** This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default. ### Example 4: Build a reviewer packet ```text Review @skill-installer using the copied upstream files plus provenance, then summarize any gaps before merge. ``` **Explanation:** This is useful when the PR is waiting for human review and you want a repeatable audit packet. ## Best Practices Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution. - Provide clear, specific context about your project and requirements - Review all suggestions before applying them to production code - Combine with other complementary skills for comprehensive analysis - Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support. - Prefer the smallest useful set of support files so the workflow stays auditable and fast to review. - Keep provenance, source commit, and imported file paths visible in notes and PR descriptions. - Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate. ### Imported Operating Notes #### Imported: Best Practices - Provide clear, specific context about your project and requirements - Review all suggestions before applying them to production code - Combine with other complementary skills for comprehensive analysis ## Troubleshooting ### Problem: The operator skipped the imported context and answered too generically **Symptoms:** The result ignores the upstream workflow in `plugins/antigravity-awesome-skills-claude/skills/skill-installer`, fails to mention provenance, or does not use any copied source files at all. **Solution:** Re-open `metadata.json`, `ORIGIN.md`, and the most relevant copied upstream files. Check the `external_source` block first, then restate the provenance before continuing. ### Problem: The imported workflow feels incomplete during review **Symptoms:** Reviewers can see the generated `SKILL.md`, but they cannot quickly tell which references, examples, or scripts matter for the current task. **Solution:** Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it. ### Problem: The task drifted into a different specialization **Symptoms:** The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. **Solution:** Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind. ### Imported Troubleshooting Notes #### Imported: Cenario 6: Health Check + Auto-Repair ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --health python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --health --repair ``` `--health` verifica TODAS as skills: frontmatter, registro, registry, duplicatas. `--health --repair` encontra problemas E os corrige automaticamente: - Skills nao registradas -> registra - Skills faltando no registry -> atualiza - Duplicatas -> remove ## Related Skills - `@00-andruia-consultant` - Use when the work is better handled by that native specialization after this imported skill establishes context. - `@00-andruia-consultant-v2` - Use when the work is better handled by that native specialization after this imported skill establishes context. - `@10-andruia-skill-smith` - Use when the work is better handled by that native specialization after this imported skill establishes context. - `@10-andruia-skill-smith-v2` - Use when the work is better handled by that native specialization after this imported skill establishes context. ## Additional Resources Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding. | Resource family | What it gives the reviewer | Example path | | --- | --- | --- | | `references` | copied reference notes, guides, or background material from upstream | `references/known-locations.md` | | `examples` | worked examples or reusable prompts copied from upstream | `examples/n/a` | | `scripts` | upstream helper scripts that change execution or validation | `scripts/detect_skills.py` | | `agents` | routing or delegation notes that are genuinely part of the imported package | `agents/n/a` | | `assets` | supporting assets or schemas copied from the source package | `assets/n/a` | - [known-locations.md](references/known-locations.md) - [detect_skills.py](scripts/detect_skills.py) - [install_skill.py](scripts/install_skill.py) - [package_skill.py](scripts/package_skill.py) - [requirements.txt](scripts/requirements.txt) - [known-locations.md](references/known-locations.md) ### Imported Reference Notes #### Imported: Principio: Redundancia Maxima Seis camadas de validacao garantem que nenhuma skill fique mal-instalada: | Camada | Script | O que valida | |--------|--------|-------------| | 1 | detect_skills.py | SKILL.md existe + tem frontmatter | | 2 | validate_skill.py | 10 checks profundos | | 3 | install_skill.py (pre) | Conflitos, permissoes, espaco, versao | | 4 | install_skill.py (pos) | Arquivos copiados corretamente | | 5 | scan_registry.py | Skill aparece no registry (com deduplicacao) | | 6 | package_skill.py | ZIP valido sem backslashes, nao-vazio, integrity check | --- #### Imported: Localizacao ``` C:\Users\renat\skills\skill-installer\ ├── SKILL.md <- este arquivo ├── scripts/ │ ├── install_skill.py <- instalador principal (11 passos) + todos os comandos │ ├── detect_skills.py <- scanner de skills nao-instaladas │ ├── validate_skill.py <- validacao profunda (10 checks) │ ├── package_skill.py <- empacotador ZIP + verificador de integridade │ └── requirements.txt ├── references/ │ └── known-locations.md └── data/ ├── install_log.json <- log de operacoes (auto-gerado, com rotacao) ├── backups/ <- backups antes de sobrescrever └── staging/ <- area temporaria para copias seguras ``` --- #### Imported: Cenario 1: Apos Skill-Creator Finalizar O skill-creator acabou de criar uma skill em algum diretorio. Execute: ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --source "" --force ``` Substitua `` pelo diretorio onde o skill-creator salvou a skill. #### Imported: Cenario 2: Usuario Pede Para Instalar Uma Skill Especifica ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --source "" [--name "nome-override"] [--force] ``` #### Imported: Cenario 3: Simular Instalacao Sem Fazer Nada (Dry-Run) ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --source "" --dry-run ``` Mostra exatamente o que seria feito em cada um dos 11 passos, sem alterar nenhum arquivo. #### Imported: Cenario 4: Detectar E Instalar Skills Pendentes ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --detect python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --detect --auto ``` Escaneia locais conhecidos (Desktop, Downloads, Temp, workspaces) e apresenta candidatos com timestamps e tamanho. Com --auto instala todos automaticamente. #### Imported: Cenario 5: Desinstalar Uma Skill ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --uninstall "nome-da-skill" ``` Remove de `skills/`, `.claude/skills/`, atualiza o registry e remove ZIP do Desktop. Backup automatico e feito antes da remocao. #### Imported: Cenario 7: Rollback (Restaurar De Backup) ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --rollback "nome-da-skill" ``` Encontra o backup mais recente da skill e restaura para o estado anterior. Re-registra e atualiza o registry automaticamente. #### Imported: Cenario 8: Reinstalar Todas As Skills ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --reinstall-all ``` Re-registra TODAS as skills em `.claude/skills/`, re-empacota todos os ZIPs, e atualiza o registry. Util apos mudancas em massa ou migracao. #### Imported: Cenario 9: Dashboard De Status ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --status ``` Exibe dashboard rico com: nome, versao, saude, registro, backups de cada skill, estatisticas de operacoes (installs, uninstalls, rollbacks). #### Imported: Cenario 10: Ver Historico De Operacoes ```bash python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --log python C:\Users\renat\skills\skill-installer\scripts\install_skill.py --log 50 ``` Mostra as ultimas N operacoes com timestamp, tipo, skill e resultado. --- #### Imported: Validar Uma Skill ```bash python C:\Users\renat\skills\skill-installer\scripts\validate_skill.py "C:\caminho\para\skill" python C:\Users\renat\skills\skill-installer\scripts\validate_skill.py "C:\caminho\para\skill" --strict ``` Retorna JSON com `valid` (bool), `checks`, `warnings`, `errors`. #### Imported: Detectar Skills Nao-Instaladas ```bash python C:\Users\renat\skills\skill-installer\scripts\detect_skills.py python C:\Users\renat\skills\skill-installer\scripts\detect_skills.py --path "C:\diretorio\especifico" python C:\Users\renat\skills\skill-installer\scripts\detect_skills.py --all ``` Retorna JSON com candidatos incluindo: `name`, `source_path`, `already_installed`, `valid_frontmatter`, `last_modified`, `size_kb`, `file_count`. #### Imported: Empacotar Zip Para Claude.Ai ```bash python C:\Users\renat\skills\skill-installer\scripts\package_skill.py --source "C:\caminho" python C:\Users\renat\skills\skill-installer\scripts\package_skill.py --all python C:\Users\renat\skills\skill-installer\scripts\package_skill.py --all --output "C:\Users\renat\Desktop" ``` #### Imported: Verificar Integridade De Zips Existentes ```bash python C:\Users\renat\skills\skill-installer\scripts\package_skill.py --verify python C:\Users\renat\skills\skill-installer\scripts\package_skill.py --verify --output "C:\Users\renat\Desktop" ``` --- #### Imported: O Que O Instalador Faz (11 Passos) 1. **Resolver fonte** - identifica o diretorio da skill 2. **Validar** - roda 10 checks no SKILL.md e estrutura 3. **Determinar nome** - extrai do frontmatter ou usa --name, compara versoes 4. **Verificar conflitos** - checa se ja existe no destino 5. **Backup** - se sobrescrevendo, faz backup timestamped (exclui backups/ e staging/) 6. **Copiar via staging** - copia para area temp, valida hash, depois move 7. **Registrar no Claude Code CLI** - copia SKILL.md para .claude/skills// 8. **Atualizar registry** - roda scan_registry.py --force (com deduplicacao por nome) 9. **Verificar instalacao** - confirma arquivos, registry, registro (5 checks) 10. **Empacotar ZIP** - cria ZIP para upload no Claude.ai web/desktop (validado) 11. **Logar operacao** - append em install_log.json (com rotacao automatica) **IMPORTANTE**: Skills no Claude Code (CLI) e Claude.ai (web/desktop) sao SEPARADAS. O instalador cobre ambas superficies automaticamente. --- #### Imported: Seguranca - **Backups automaticos**: antes de qualquer sobrescrita, backup em `data/backups/_/` - **Staging area**: copia para temp primeiro, valida hash, depois move (minimiza corrupcao) - **Idempotencia**: rodar 2x com mesma source detecta hashes identicos, nao duplica - **Arquivos proibidos**: bloqueia instalacao se encontrar .env, *.key, *.pem, credentials.* - **Log com rotacao**: toda operacao logada; mantem ultimas 500 entradas - **Limite de backups**: mantem ultimos 5 por skill, limpa automaticamente - **Anti-recursao**: backup e staging excluem seus proprios subdiretorios - **Deduplicacao no registry**: scan_registry.py deduplica por nome (case-insensitive) - **ZIP validado**: verifica ausencia de backslashes, conteudo nao-vazio, integridade - **Dry-run**: simula instalacao completa sem tocar nenhum arquivo - **Rollback**: restaura de backup com re-registro automatico - **Comparacao de versao**: detecta upgrade/downgrade/same antes de sobrescrever - **Hash normalizado**: md5_dir usa forward slashes e exclui dirs de sistema --- #### Imported: Integracao Com Orchestrator Esta skill e auto-detectada pelo `scan_registry.py` e matchada pelo `match_skills.py` quando o usuario menciona keywords de instalacao. Nenhuma configuracao manual necessaria. Alem disso, o CLAUDE.md global contem instrucao para rodar o instalador automaticamente apos o skill-creator finalizar uma skill. #### Imported: Common Pitfalls - Using this skill for tasks outside its domain expertise - Applying recommendations without understanding your specific context - Not providing enough project context for accurate analysis #### Imported: Limitations - Use this skill only when the task clearly matches the scope described above. - Do not treat the output as a substitute for environment-specific validation, testing, or expert review. - Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.