Communitygithub.com

bg-szy/TOP-SKILLS

CI com problema? Chame os bombeiros do pipeline. Use quando o usuário mencionar falhas de CI, erros de build, testes quebrados ou problemas no pipeline. NÃO carregue para: builds locais, trabalho de implementação padrão, revisões ou configuração.

O que é TOP-SKILLS?

Este skill, chamado CI/CD Skills, é uma ferramenta especializada para assistentes de IA resolverem problemas em pipelines de CI/CD. Ele é acionado automaticamente quando o usuário menciona falhas como “CI caiu”, “GitHub Actions falhou”, “erro de build” ou “teste não passa”. A funcionalidade principal inclui análise de falhas e correção de testes, cada uma amarrada a documentos de referência específicos. O fluxo de execução começa com uma etapa de julgamento (Step 0) que classifica se o erro está no código de implementação, nos testes (desatualizados) ou no ambiente, e impõe regras rígidas contra adulteração de testes (como pular ou deletar asserções). Para casos complexos ou loops de correção, o skill pode delegar a um subagente chamado ci-cd-fixer. Ele também fornece comandos Git avançados para rastrear o commit causador da falha. O skill é compatível com plataformas como Claude Code e Cursor, e seu design prioriza a correção correta da causa raiz, nunca a manipulação dos testes para “passar” artificialmente.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bg-szy/TOP-SKILLS/tree/HEAD/skills/marketplace/ci

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

CI/CD Skills

Habilidades para resolver problemas relacionados a pipelines de CI/CD.


Condições de Ativação

  • "CI caiu" / "GitHub Actions falhou"
  • "Erro de build" / "Teste não passa"
  • "Conserte o pipeline"

Detalhes das Funcionalidades

FuncionalidadeDetalhesGatilho
Análise de falhasVeja references/analyzing-failures.md"Olhe os logs", "Descubra a causa"
Correção de testesVeja references/fixing-tests.md"Corrija o teste", "Dê uma sugestão de correção"

Procedimento de Execução

  1. Julgamento: teste vs. implementação (Etapa 0)
  2. Classificar a intenção do usuário (análise ou correção)
  3. Determinar a complexidade (veja abaixo)
  4. Ler o arquivo de referência apropriado dos "Detalhes das Funcionalidades" acima ou iniciar o subagente ci-cd-fixer
  5. Verificar o resultado e, se necessário, reexecutar

Etapa 0: Julgamento: teste vs. implementação (Portão de Qualidade)

Ao falhar no CI, primeiro isole a causa:

Relatório de falha de CI
    ↓
┌─────────────────────────────────────────┐
│     Julgamento: teste vs. implementação  │
├─────────────────────────────────────────┤
│  Analise a causa do erro:              │
│  ├── Implementação incorreta → Corrigir implementação  │
│  ├── Teste desatualizado → Confirmar com o usuário      │
│  └── Problema de ambiente → Corrigir ambiente           │
└─────────────────────────────────────────┘

Itens Proibidos (Prevenção de Adulteração)

⚠️ Itens proibidos ao falhar no CI

As seguintes "soluções" são proibidas:

| Proibido | Exemplo | Ação Correta |
|----------|---------|--------------|
| Pular teste | `it.skip(...)` | Corrigir implementação |
| Remover asserção | Deletar `expect()` | Verificar valor esperado |
| Ignorar verificação de CI | `continue-on-error` | Corrigir causa raiz |
| Relaxar regra de lint | `eslint-disable` | Corrigir código |

Fluxo de Julgamento

🔴 O CI está falhando

**É necessário julgar**:

1. **Implementação incorreta** → Corrigir implementação ✅
2. **Valor esperado do teste desatualizado** → Pedir confirmação ao usuário
3. **Problema de ambiente** → Corrigir configuração do ambiente

⚠️ Adulteração de teste (pular, remover asserção) é proibida

Qual se aplica?

Quando Aprovação é Necessária

Se a alteração no teste/configuração for inevitável:

## 🚨 Solicitação de Aprovação para Alteração de Teste/Configuração

### Motivo
[Por que esta alteração é necessária]

### Conteúdo da Alteração
[Diff]

### Consideração de Alternativas
- [ ] Verifiquei se a correção da implementação não resolve o problema

Aguardar aprovação explícita do usuário

Uso de Flags Estendidas do Git Log (CC 2.1.49+)

Use logs estruturados para identificar o commit causador da falha de CI.

Identificação do Commit Causador

# Análise de commits em formato estruturado
git log --format="%h|%s|%an|%ad" --date=short -10

# Análise de linha do tempo com ordem topológica
git log --topo-order --oneline -20

# Associação de arquivos alterados com a causa
git log --raw --oneline -5

Principais Cenários de Uso

UsoFlagEfeito
Identificar causa da falha`--format="%h%s"`
Rastrear na linha do tempo--topo-orderRastrear considerando ordem de merge
Entender impacto das alterações--rawExibir detalhes das alterações de arquivos
Análise excluindo merges--cherry-pick --no-mergesExtrair apenas commits reais

Exemplo de Saída

🔍 Análise de causa de falha de CI

Commits recentes (estruturados):
| Hash | Assunto | Autor | Data |
|------|---------|-------|------|
| a1b2c3d | feat: atualizar API | Alice | 2026-02-04 |
| e4f5g6h | test: adicionar testes | Bob | 2026-02-03 |

Arquivos alterados (--raw):
├── src/api/endpoint.ts (Modificado) ← Erro de tipo ocorreu
├── tests/api.test.ts (Modificado)
└── package.json (Modificado)

→ O commit a1b2c3d é provavelmente a causa
  Erro de tipo: src/api/endpoint.ts:42

Integração com Subagente

Inicie o ci-cd-fixer com a ferramenta Task quando as seguintes condições forem atendidas:

  • O loop de correção → reexecução → falha ocorre 2 vezes ou mais
  • Ou, o erro abrange vários arquivos em um caso complexo

Padrão de Inicialização:

Task tool:
  subagent_type="ci-cd-fixer"
  prompt="Diagnostique e corrija a falha de CI. Log de erro: {error_log}"

O ci-cd-fixer opera com segurança em primeiro lugar (modo dry-run padrão). Consulte agents/ci-cd-fixer.md para detalhes.


Para VibeCoders

🔧 Como dizer quando o CI quebrar

1. **"O CI caiu" / "Ficou vermelho"**
   - Os testes automatizados estão falhando

2. **"Por que está falhando?"**
   - Quer que eu descubra a causa

3. **"Conserte"**
   - Tentarei corrigir automaticamente

💡 Importante: Correções que "enganam" os testes são proibidas
   - ❌ Deletar ou pular testes
   - ⭕ Corrigir o código corretamente

Se você acha que "o teste está errado",
primeiro confirme antes de decidir a ação

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

bg-szy/TOP-SKILLS

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

bg-szy/TOP-SKILLS

Fill out Microsoft Azure Landing Zone (ALZ) Accelerator checklists by interviewing the user, mapping their Azure subscriptions, integrating IP addressing documentation, and applying Microsoft Cloud Adoption Framework best practices. Produces a completed Excel checklist (.xlsx) ready for ALZ deployment. Use this skill whenever the user mentions Azure Landing Zone, ALZ checklist, landing zone accelerator, platform landing zone configuration, ALZ bootstrap, hub-and-spoke setup, Azure network topology planning, or wants to fill out any ALZ-related checklist or configuration file. Also trigger when the user uploads an Excel file that contains tabs like "Accelerator - Bootstrap", "Accelerator - Bicep", or "Accelerator - Terraform".

bg-szy/TOP-SKILLS

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

bg-szy/TOP-SKILLS

Write high-converting landing page copy using proven frameworks like PAS (Problem-Agitate-Solution), AIDA, and StoryBrand. Creates headlines, value propositions, CTAs, and full page sections optimized for conversion. Use when users need landing page copy, sales page content, or marketing website text.

bg-szy/TOP-SKILLS

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

bg-szy/TOP-SKILLS

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

bg-szy/TOP-SKILLS

Beads Viewer - Graph-aware triage engine for Beads projects. Computes PageRank, betweenness, critical path, and cycles. Use --robot-* flags for AI agents.

bg-szy/TOP-SKILLS

CASS Memory System - procedural memory for AI coding agents. Three-layer cognitive architecture with confidence decay, anti-pattern learning, cross-agent knowledge transfer, trauma guard safety system. Bun/TypeScript CLI.

bg-szy/TOP-SKILLS

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

bg-szy/TOP-SKILLS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

bg-szy/TOP-SKILLS

Use when the user asks to "pre-launch check the landing page", "run a Quality-Score preflight", or "verify ad-to-page message match before launch"; produces an ad↔page continuity report — message-match gaps, above-the-fold check, page-speed read, form-friction count, mobile-render flags — as a pass/fix punch list. Not for redesigning or rewriting the page — use landing-optimizer; not for scoring the account or the RQS — use ad-account-auditor. 落地页体验预检/广告落地页一致性检查

bg-szy/TOP-SKILLS

Use when the user asks to "optimize our landing page for influencer traffic", "fix our promo-code landing page", or "improve conversion from a creator campaign"; produces a message-match audit, page-structure and social-proof recommendations, a promo-code/CTA conversion plan, and an A/B test roadmap. Not for measuring campaign results after launch — use performance-analyzer.

bg-szy/TOP-SKILLS

Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, critique or improve a landing page, sales page, opt-in page, product page or checkout flow, when conversion rate is low, when paid traffic is not converting, or when someone asks "why isn't this page converting" or wants a CRO / landing page review.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Account assets, equity and fund positions, P&L, cash flow records, account statements, margin ratios, buy-power estimates, order management, and DCA recurring investments via Longbridge (most require Trade permission). Frameworks: portfolio diagnosis, rebalancing, asset allocation, risk analysis (VaR/CVaR), performance attribution, and tax-loss harvesting. Triggers: "持仓", "账户", "盈亏", "资产", "对账单", "下单", "买入", "卖出", "撤单", "定投", "组合诊断", "再平衡", "资产配置", "风险分析", "绩效归因", "税损收割", "持倉", "賬戶", "盈虧", "對賬單", "下單", "買入", "賣出", "組合診斷", "再平衡", "稅損收割", "positions", "portfolio", "P&L", "order", "buy", "sell", "DCA", "statement", "risk analysis", "rebalancing", "tax harvesting", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

bg-szy/TOP-SKILLS

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

bg-szy/TOP-SKILLS

Process video files with audio extraction, format conversion (mp4, webm), and Whisper transcription. Use when user mentions video conversion, audio extraction, transcription, mp4, webm, ffmpeg, or whisper transcription.

bg-szy/TOP-SKILLS

Using the Wonda CLI to generate images, videos, music, and audio from the terminal — plus LinkedIn, Reddit, and X/Twitter research and automation

Habilidades Relacionadas