Logo de Ripwire Before You Build

Ripwire Before You Build

OrganizaçãoPopular
redhat-et
ripwire-before-you-build

Starting a FEATURE (multi-symbol work): the plan, the API boundary, the scope — how big does this change get — from the codebase's real structure. Implementing an EXISTING interface? --lego=Iface lists its contract and current implementors. ONE standalone symbol → reuse-first. A small feature with an obvious home needs none of this.

Visão geral

Publicado porredhat-et
Repositórioripwire
Nome da habilidaderipwire-before-you-build
Estrelas
2.2K
Forks
141
Arquivos incluídos
Somente instruções
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por redhat-et no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Ripwire Before You Build no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/redhat-et/ripwire/tree/main/skills/ripwire-before-you-build
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/redhat-et/ripwire.git /tmp/ripwire
mkdir -p .claude/skills
cp -r /tmp/ripwire/skills/ripwire-before-you-build .claude/skills/ripwire-before-you-build
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Ripwire Before You Build em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Ripwire Before You Build automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Ripwire Before You Build não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Before you build — with ripwire

Routing: • Writing ONE symbol (fn/class/helper) and want to reuse rather than reinvent → ripwire-reuse-first. • You've already written the change and want the pre-submit check → ripwire-change-check. • You want to judge whether the code you wrote got better/worse → ripwire-quality-bar. • Restructuring EXISTING code (not new work) → ripwire-fresh-eyes. • Not sure which skill? → ripwire-router.

<dir> = repo root. FEATURE/APPROACH = your task in 2–4 plain words; SYM = a representative symbol. Run only the sections your question needs — they share the same building blocks.

Common first move — recall + reusable blocks

Almost every section starts here; do it once. One-call shortcut: ripwire <dir> --pack-task="FEATURE" --legend=compact assembles the recall + --for ranking + top bodies + caller signatures + notes + tests_to_run into ONE bundle under one token budget — reach for it first instead of firing the calls below one at a time; drop to the individual calls only when you need a specific section's full output.

  • Recall prior decisions — ripwire <dir> --recall="FEATURE" → full bodies of the most relevant markdown docs (planning/design notes, READMEs) ranked by relevance. If a doc already covers this, read it fully — the decision may be made. Look for explicit "rejected" / "future work" language.
  • Reusable building blocks — the one-call write-mode bundle — ripwire <dir> --for="FEATURE" → <sigs> ranked by task-relevance, each carrying the quality lens in the same call: cx/ccx (complexity), in/amp (reuse count / change-amplification), churn (recent-commits), clone="1" (duplicated), tested="1", plus the inline <doc> block. That's read-context-and-quality-signal in ONE call — you learn what to reuse AND what's fragile (high-churn, high-amp, cloned, or untested) before you write a line, not after. High-in symbols are already widely composed — prefer extending them over reimplementing; treat a high-churn/high-amp one as something to touch carefully and test around.
  • The shape to imitate for each new symbol — ripwire <dir> --exemplar=fn|method|class|struct|iface|var --legend=compact or --exemplar="<the sub-task in words>" (top match's kind inferred) → the repo's single best-in-class instance of that shape — cognitive complexity must clear an eligibility ceiling first (a blob can never win no matter how reused/tested), then among eligible candidates it's ranked tested=1 first, highest fan-in second, lowest cognitive-cx as the final tie-break — full body under <bodies>. Run it per new symbol the feature adds so each one copies a proven shape (structure, error handling, naming) instead of being invented from memory. (Deep-dive on exemplar-by-ROLE → ripwire-reuse-first.)
  • Implementing against an interface? — ripwire <dir> --lego=I --legend=compact (or --lego=file:I to disambiguate a same-named type) → the interface's method contract (the exact signatures you must satisfy) plus every existing implementor, own-language only. Read one existing impl as the template so your new one matches the house pattern (method order, error handling, registration) instead of guessing the shape from the interface alone. The single highest-value call when the thing you're building has to satisfy an I.

Feasibility spike — "is this approach even viable?"

After the recall + --for above:

  1. If highly-relevant symbols already exist with in > 0, the approach is partially implemented — build on it. If --recall shows it was decided against, stop.
  2. Integration seams — ripwire <dir> --seams --legend=compact → <seams> (untested cross-module edges). If your approach must connect two modules with no test-covered seam between them, that's an integration cost.
  3. Coupling cost — ripwire <dir> --deps --legend=compact (skim <godfiles> + shape=). Adding a dependency on a god-file adds coupling cost for every future change — flag it. → Verdict: "build on existing" / "greenfield but seams exist" / "needs new seam, flag risk".

Plan — "give me the ordered implementation steps"

  1. Recall + --for (above) — check whether any existing symbol already solves part of the problem. Low in= = an underused candidate to extend or replace; high in= = load-bearing, extend cautiously.
  2. Integration seams — ripwire <dir> --seams --legend=compact. Each seam is a wiring point; your plan should name which seam(s) the new code wires through, and add a test at each new seam it creates.
  3. Impact of anything you'll modify — ripwire <dir> --impact=SYM --legend=compact. Large reaches= → plan a staged rollout or a compatibility shim. → Plan: ordered steps (recall → design → wire seams → write tests → implement), each naming the specific file+symbol to touch, the blast radius of any modification, and its test gate (from --affected). Flag any step that creates a new seam without a test.

Interface — "what should the boundary / API look like?"

  1. Neighborhood of the subsystem — ripwire <dir> --around=SYM --legend=compact --metrics [--around-depth=2] → the ego graph with ranks + call edges. --metrics is what adds the in= fan-in annotation (bare --around emits none); high-in= symbols are already acting as the de-facto API surface.
  2. The seam it lives on — ripwire <dir> --seams --legend=compact. If your subsystem straddles a <seam from="X" to="Y">, that's where the interface belongs.
  3. Who currently crosses the boundary — ripwire <dir> --callers=SYM --legend=compact for the top 2–3 in the ego graph. Callers from outside the subsystem's directory are the external clients the interface must serve.
  4. What to hide — ripwire <dir> --deps --legend=compact, skim instab=. High-instability internal files (leaves) stay behind the interface; stable (low-instability) files may be safe to expose. → Proposal: the 3–5 high-fan-in, called-from-outside symbols that form the natural API surface, the seam they live on, and the internal symbols to hide. Write it in terms of callers' needs, not internals.

Sizing rubric — "how big is this change?"

  1. Blast radius — ripwire <dir> --impact=SYM --legend=compact → reaches="N" is the blast-radius symbol count (count distinct p= files for the file count); defs="D">1 means overloads, each a separate blast root.
  2. Affected tests — ripwire <dir> --affected=fileA.cpp,fileB.h --legend=compact (the files defining SYM, from --impact). tests="0" = no test cover — flag it.
  3. Caller-stack depth — ripwire <dir> --callers=SYM --legend=compact, then spot-check --callers=<top-caller> one level up. A 2-hop caller graph is a tactical change; 5+ hops is architectural.
  4. Hidden coupling — ripwire <dir> --cochange=fileA.cpp --legend=compact; surprising="1" partners must be verified manually even if not in the blast radius. → Classify: local (≤5 blast, tests exist) / moderate (5–20) / wide (>20 or no tests).

Honesty

ripwire maps structure, not data flow; seams/impact are name-based (dynamic dispatch/callbacks/macros can be missing). Compose from what exists; note what's genuinely missing rather than reinventing it.

Perguntas frequentes

O que a habilidade de IA Ripwire Before You Build faz?

Starting a FEATURE (multi-symbol work): the plan, the API boundary, the scope — how big does this change get — from the codebase's real structure. Implementing an EXISTING interface? --lego=Iface lists its contract and current implementors. ONE standalone symbol → reuse-first. A small feature with an obvious home needs none of this.

Por que usar Ripwire Before You Build no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Ripwire Before You Build é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Ripwire Before You Build no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/redhat-et/ripwire/tree/main/skills/ripwire-before-you-build. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Ripwire Before You Build?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Ripwire Before You Build?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Ripwire Before You Build com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Ripwire Before You Build é gratuita?

Sim. A habilidade é publicada no GitHub por redhat-et sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇