agentleFS
otavioserraotavioserra/conn2flow/.claude/skills/c2f-database-testing/SKILL.md

c2f-database-testing

Skill5 starsChanged 2 months agoMITView on GitHub

LEIA ANTES de rodar ou criar testes automatizados de banco de dados (PHPUnit / SQLite / MySQL). Se não ler: testes poluem o banco principal, falham por funções MySQL não suportadas em SQLite ou mascaram regressões.

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use guards de autorun para incluir controladores diretamente e injete PDO/configuração em vez de depender do bootstrap completo.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Testes isolados de banco Conn2Flow

⚡ Gatilho Obrigatório

  • TRIGGER: Escrever, executar ou debugar testes automatizados unitários ou de integração que acessam tabelas de banco de dados.
  • SKIP APENAS SE: Testes de unidade puros (com mocking completo) ou testes exclusivos de JavaScript (Vitest/happy-dom).
  • CONSEQUÊNCIA DE IGNORAR: Testes falham no CI/CD por incompatibilidade SQLite/MySQL ou poluem indevidamente a base de desenvolvimento local conn2flow_test.

  1. Prefira SQLite em memória para funções puras, CRUD isolado e fluxos com transporte/resolvers injetáveis.
  2. Quando a semântica MySQL for indispensável, use somente o banco dedicado conn2flow_test no container local.
  3. Nunca rode testes destrutivos contra o banco de desenvolvimento conn2flow.
  4. Crie o schema mínimo necessário, isole fixtures e remova o banco/tabelas de teste ao final.
  5. Use guards de autorun para incluir controladores diretamente e injete PDO/configuração em vez de depender do bootstrap completo.
  6. Se um teste modificar manifestos ou data files versionados, restaure apenas esses efeitos colaterais fora do escopo e confirme o diff.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.