Logo de Qa

Qa

Comunidade
austintgriffith
qa

Use when a Scaffold-ETH 2 frontend is about to ship or needs a second look: "is this ready", "check my dApp", a teammate's patch. The checks people forget: wallet flow, wrong-network gating, contract registration, theme and loading states, branding, RPC posture, mobile wallets. Best from a fresh reviewer context. Not for how the frontend behaves for its users in general, such as approvals, decimals and address parsing (`/frontend-ux`).

Visão geral

Publicado poraustintgriffith
Repositórioethskills
Nome da habilidadeqa
Estrelas
298
Forks
64
Arquivos incluídos
Somente instruções
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

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

  • Completa em si mesma

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

  • Código aberto

    Publicada por austintgriffith no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Qa 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 da pasta da habilidade exibida abaixo e confirme.
    https://github.com/austintgriffith/ethskills/tree/master/qa
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL 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/austintgriffith/ethskills.git /tmp/ethskills
mkdir -p .claude/skills
cp -r /tmp/ethskills/qa .claude/skills/qa
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Qa 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 Qa 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, Qa 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á.

dApp QA — pre-ship audit for Scaffold-ETH 2

Read the code, then click through every flow — with no wallet, with a wallet on the wrong chain, and with a wallet on the target chain. Report each finding with severity, file, line, and the concrete fix. Only change code if the task asks you to fix rather than review.

Wallet and action flow

  • Disconnected state renders a Connect Wallet button (RainbowKitCustomConnectButton), never a paragraph telling the user to connect. This is the single most common miss.
  • Wrong network turns the primary CTA itself into a "Switch to [chain]" button. The header's WrongNetworkDropdown is not enough — without a branch in the action slot, the user clicks Approve on the wrong chain and eats a silent wagmi error.
  • One primary action at a time: Connect → Switch → Approve → Action. Approve and Action are never both live; which one renders is driven by the current allowance.
  • Writes go through useScaffoldWriteContract. Raw wagmi useWriteContract outside scaffold internals resolves at the wallet signature, not at confirmation.
  • Lock the button on isMining — the flag useScaffoldWriteContract sets around writeContractAsync, not the isPending it passes through from wagmi. (isMining tracks the async path only; the hook's synchronous writeContract never sets it, so a button gated on it there never locks.) isMining is held across waitForTransactionReceipt and clears in the hook's finally on both confirmation and rejection; isPending drops when the wallet returns the hash, re-enabling the button mid-flight. If the allowance or balance refetch needs its own hold after confirmation, keep it in local state and clear it in finally too — never on a fixed timer.
  • Failed and rejected transactions surface a human-readable message next to the action (notification + getParsedError). A catch that only calls console.error is a silent failure.

Contracts and addresses

  • External contracts (tokens, protocols) belong in packages/nextjs/contracts/externalContracts.ts. Entries hand-added to deployedContracts.ts are wiped on the next deploy, and scaffold hooks silently return nothing for anything unregistered. Migrate rather than flag:

    typescript
    // packages/nextjs/contracts/externalContracts.ts
    import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract";
    
    const externalContracts = {
      8453: {
        USDC: { address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", abi: [...] },
      },
    } as const;
    
    export default externalContracts satisfies GenericContractsDeclaration;

    Then revert deployedContracts.ts to its generated state and confirm yarn next:check-types passes.

  • Every input that accepts an address uses <AddressInput/>, not <input type="text"> — a raw input drops ENS resolution and validation, so vitalik.eth never reaches the contract.

  • Addresses render through <Address/> (blockie, ENS, copy, explorer link), not a hand-rolled shorten().

  • The contract the user transacts with is shown on the page. Agents display the connected wallet address and forget the contract itself.

Theme and loading states

  • No hardcoded dark wrapper (bg-black, bg-[#0a0a0a], bg-zinc-900) on a page or layout root. It bypasses DaisyUI, gives light-mode users a black page, and breaks the header's SwitchTheme. Use bg-base-200 text-base-content. Forcing data-theme="dark" is acceptable only if <SwitchTheme/> is also removed.
  • DaisyUI's loading class on a btn replaces the whole button with a spinner and swallows the label. Use an inline <span className="loading loading-spinner loading-sm" /> inside the button, next to visible text.

Branding

The scaffold's defaults are template scaffolding, not product decisions. Check all five: tab title in layout.tsx (not "Scaffold-ETH 2 App"), the metadata description, the footer (BuidlGuidl / fork-me / support links), the README, and the default favicon. The OG image in layout.tsx metadata is an absolute URL (https://yourdomain.com/thumbnail.jpg); a relative path breaks link previews everywhere.

Config

  • pollingInterval in scaffold.config.ts is 3000 in current SE-2. A raised value (older templates used 30000) makes an L2 app feel broken; keep ~3s, or use event-driven and post-confirmation refresh.
  • Production RPC: shipping on SE-2's default Alchemy key, or on the bare http() fallback transport in wagmiConfig, means silently hitting rate-limited public endpoints. Route through rpcOverrides with a NEXT_PUBLIC_* key — and verify the variable is actually set on the host, not just referenced in code.

Mobile

  • On WalletConnect, tapping a transaction button must get the user to their wallet app with something to sign. Test it on a phone: if nothing happens and the user has to switch apps by hand, that is a finding. Any redirect fires the write first, since navigating away before the write call means the transaction never fires. It targets the wallet the user actually connected with, and it is skipped inside a wallet's in-app browser (window.ethereum present). wagmi's connector.id only says "walletConnect" — find the real wallet in the wc@2:client session in localStorage. Use bare schemes (rainbow://, metamask://); rainbow://dapp/... reloads the page.
  • Phantom is not in SE-2's default RainbowKit wallet list, so Phantom users cannot connect at all. Add phantomWallet to wagmiConnectors.tsx.

If it is deployed

Every deployed contract is verified on the block explorer (yarn verify --network <chain>). Unverified bytecode reads as something to hide. yarn deploy succeeding is not the finish line.

CROPS

The report includes a CROPS Review: the chosen default, accepted compromises, who can block users, what data leaks, who controls funds/upgrades/recovery, and the user's escape path. Missing, or a one-liner on an app holding funds or user data, is a finding. Use crops/SKILL.md for the full template.

References

Perguntas frequentes

O que a habilidade de IA Qa faz?

Use when a Scaffold-ETH 2 frontend is about to ship or needs a second look: "is this ready", "check my dApp", a teammate's patch. The checks people forget: wallet flow, wrong-network gating, contract registration, theme and loading states, branding, RPC posture, mobile wallets. Best from a fresh reviewer context. Not for how the frontend behaves for its users in general, such as approvals, decimals and address parsing (`/frontend-ux`).

Por que usar Qa no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Qa é escrito 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. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Qa no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/austintgriffith/ethskills/tree/master/qa. 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 Qa?

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 Qa?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Qa 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 Qa é gratuita?

A habilidade é publicada no GitHub por austintgriffith. Consulte os termos de licenciamento no repositório. 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, modelos de documento 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 para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: 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 todos

Crie seu próprio espaço de IA agora

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