test-writer

Como escrever testes pytest para módulos neste workspace. Carregue sempre que estiver prestes a escrever ou estender testes.

npx skills add https://github.com/firebase/genkit --skill test-writer

Test writer

When writing pytest tests in this workspace:

  • One test file per module. foo.py lives next to foo_test.py (suffix, not prefix).
  • Cover the happy path AND at least one edge case. Empty input, duplicates, boundary values — pick what matters for the unit under test.
  • Use pytest.mark.parametrize when the same assertion runs over a small table of inputs. Keep IDs descriptive.
  • Name tests test_<unit>_<scenario>_<expected>. Examples: test_total_empty_cart_returns_zero, test_add_duplicate_item_merges_quantities.
  • Arrange / Act / Assert. Three clear blocks. No setup hidden in fixtures unless it's reused across at least two tests.
  • Assert behavior, not implementation. Don't reach into private attributes or count function calls; check the observable result.
  • Imports at module top. Don't import inside test functions.

Mais skills de firebase

resolve-docker-vulnerabilities
firebase
Habilidade para resolver vulnerabilidades do Docker na imagem firebase-cli. Use esta habilidade quando precisar verificar vulnerabilidades na imagem Docker do firebase-cli…
official
python-expert
firebase
Convenções para Python limpo e idiomático. Carregue sempre que ler, editar ou escrever arquivos fonte Python.
official
developing-genkit-dart
firebase
SDK de IA unificado para Dart que permite geração de código, saídas estruturadas, ferramentas, fluxos e agentes. Fornece APIs principais para geração, definição de ferramentas, orquestração de fluxos, embeddings e streaming com uma única interface. Inclui mais de 8 plugins para provedores de LLM (Google Gemini, Anthropic Claude, OpenAI GPT), Firebase AI, Model Context Protocol, integração com navegador Chrome e hospedagem de servidor HTTP via Shelf. CLI integrado com interface de desenvolvimento local para execução de fluxos, rastreamento, experimentação de modelos e...
official
developing-genkit-js
firebase
Crie aplicativos Node.js/TypeScript com tecnologia de IA usando flows, ferramentas e suporte a múltiplos modelos do Genkit. O Genkit é independente de provedor; suporta Google AI, OpenAI, Anthropic, Ollama e outros provedores de LLM por meio de plugins. Defina flows com esquemas type-safe usando Zod, execute solicitações de geração e componha workflows de IA de várias etapas em TypeScript. Requer Genkit CLI v1.29.0+; mudanças recentes na API significam que você deve consultar genkit docs:read e common-errors.md para padrões atuais, e não conhecimento prévio...
official
developing-genkit-python
firebase
Desenvolva aplicações com tecnologia de IA usando Genkit em Python. Use quando o usuário perguntar sobre Genkit, agentes de IA, fluxos ou ferramentas em Python, ou ao encontrar Genkit…
official
firebase-ai-logic
firebase
We need to translate the given text from English to Brazilian Portuguese. The text describes a client-side Gemini integration for web apps. We must preserve the name "firebase-ai-logic" but it's not in the text, so we ignore. We must not add any labels or extra commentary. Just translate the text. The text: "Client-side Gemini integration for web apps with multimodal inference, streaming, and on-device hybrid execution. Supports text-only and multimodal inputs (images, audio, video, PDFs); files over 20 MB route through Cloud Storage Includes chat sessions with automatic history, streaming responses for real-time display, and structured JSON output enforcement Offers hybrid on-device inference via Gemini Nano in Chrome, with automatic fallback to cloud execution Requires App Check for production..." We need to translate accurately, preserving technical terms like "Gemini", "Cloud Storage", "Gemini Nano", "Chrome", "App Check", "JSON", "MB". Also "multimodal inference", "streaming", "on-device hybrid execution", etc. Let's translate:
official
firebase-ai-logic-basics
firebase
Habilidade oficial para integrar o Firebase AI Logic (API Gemini) em aplicações web. Aborda configuração, inferência multimodal, saída estruturada e segurança.
official
firebase-app-hosting-basics
firebase
We need to translate the given text from English to Brazilian Portuguese. The text describes a skill for deploying and managing web apps with Firebase App Hosting. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "firebase-app-hosting-basics" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary. Let's translate: "Deploy and manage full-stack web apps with Firebase App Hosting using Next.js, Angular, and other supported frameworks." -> "Implante e gerencie aplicativos web full-stack com o Firebase App Hosting usando Next.js, Angular e outros frameworks compatíveis." "Requires Firebase project on Blaze pricing plan; supports Server-Side Rendering (SSR) and Incremental Static Regeneration (ISR) workflows" -> "Requer projeto Firebase no plano de preços Blaze; suporta fluxos de trabalho de Renderização no Servidor (SSR) e Regeneração Estática Incremental (ISR
official