hackbrasil-2026-bora/OiTenta / .agents/skills/module-use-case
module-use-case
UnverifiedCria casos de uso padronizados para agregados dos módulos de negócio, com contratos de entrada e saída consistentes, implementação inicial simples, testes unitários completos e estrutura pronta para evolução pelo time.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.3 KB |
| agents/openai.yaml | config | 400 B |
| references/few-shots/crud-delete-user.usecase.example.ts | script | 378 B |
| references/few-shots/crud-delete-user.usecase.test.example.ts | script | 1022 B |
| references/few-shots/crud-find-user-by-id.usecase.example.ts | script | 548 B |
| references/few-shots/crud-find-user-by-id.usecase.test.example.ts | script | 934 B |
| references/few-shots/custom-register-user.usecase.example.ts | script | 938 B |
| references/few-shots/custom-register-user.usecase.test.example.ts | script | 1.5 KB |
| references/mandatory-readings.md | markdown | 1.0 KB |
references/mandatory-readings.md
View on GitHub# Mandatory Readings
Leia estes arquivos do projeto antes de criar ou atualizar qualquer caso de uso com esta skill:
1. `modules/auth/src/user/usecase/register-user.usecase.ts`
2. `modules/auth/src/user/usecase/index.ts`
3. `modules/auth/test/user/usecase/register-user.usecase.test.ts`
4. `modules/auth/test/mock/fake-user.repository.ts`
5. `modules/auth/test/mock/fake-crypto.provider.ts`
6. `modules/auth/test/mock/index.ts`
7. `packages/shared/src/usecase/use-case.ts`
8. `packages/shared/src/usecase/index.ts`
Objetivo de cada bloco:
- `register-user.usecase.ts`: referencia principal de estrutura, contratos e orquestracao.
- `usecase/index.ts`: padrao de export do agregado.
- `register-user.usecase.test.ts`: estilo de teste e observacao de efeitos colaterais.
- `test/mock/*.ts`: estilo das fakes concretas do modulo.
- `packages/shared/src/usecase/*`: contrato base `UseCase<In, Out>`.
Depois das leituras acima, consulte os few-shots locais desta skill para acelerar a materializacao dos casos mais comuns sem fugir do padrao do projeto.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |