Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add parisgroup-ai/imersao-ia-setup --skill usecase-designgit clone --depth 1 https://github.com/parisgroup-ai/imersao-ia-setupWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/usecase-design)<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/usecase-design"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/usecase-design/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/usecase-design"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/usecase-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.03091 |
| Opus 5.5 | $0.00026 | $0.01236 |
| Sonnet 5.5 | $0.00013 | $0.00618 |
| Haiku 4.5 | $0.00006 | $0.00309 |
Grade A, and why
usecase-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 399 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use Case Design (tRPC + Modules)
Overview
Use cases encapsulam lógica de negócio na camada application. tRPC routers são thin - apenas validam input e chamam use cases.
Estrutura: packages/api/src/modules/{module}/application/use-cases/
The Iron Law
ZERO LÓGICA DE NEGÓCIO NO TRPC ROUTER
O critério NÃO é contagem de linhas. É: pode um dev júnior entender o router em 5 segundos sem conhecer Prisma ou regras de negócio?
Se a resposta é não, refatore.
Quick Reference
| Camada | Responsabilidade | Exemplo |
|---|---|---|
| Router (tRPC) | Validar input, chamar use case | orderRouter.ts |
| Use Case | Orquestrar lógica de negócio | CreateOrderUseCase.ts |
| Repository Interface | Contrato de acesso a dados | IOrderRepository.ts |
| Repository Impl | Implementação (Prisma, etc) | PrismaOrderRepository.ts |
Estrutura de Módulo
packages/api/src/modules/orders/
├── application/
│ ├── use-cases/
│ │ ├── CreateOrderUseCase.ts
│ │ └── GetOrderUseCase.ts
│ ├── dtos/
│ │ ├── CreateOrderInput.ts
│ │ └── CreateOrderOutput.ts
│ └── ports/
│ └── IOrderRepository.ts
├── domain/
│ └── Order.ts
├── infrastructure/
│ └── PrismaOrderRepository.ts
└── presentation/
└── order.router.ts
Padrão de Use Case
// application/use-cases/CreateOrderUseCase.ts
export class CreateOrderUseCase {
constructor(
private readonly orderRepository: IOrderRepository,
private readonly productRepository: IProductRepository,
private readonly userRepository: IUserRepository
) {}
async execute(input: CreateOrderInput): Promise<CreateOrderOutput> {
// 1. Validar usuário
const user = await this.userRepository.findById(input.userId);
if (!user) throw new UserNotFoundError(input.userId);
// 2. Validar produtos e calcular
const products = await this.productRepository.findByIds(input.productIds);
const total = this.calculateTotal(products, input.items);
// 3. Criar pedido
const order = Order.create({ userId: user.id, items: input.items, total });
await this.orderRepository.save(order);
return { orderId: order.id, total };
}
private calculateTotal(products: Product[], items: OrderItem[]): number {
// lógica de cálculo
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 21d ago First seen · 399 lines · 64 tokens per session scan A 316c80aae93d
usecase-design is a skill published in the GitHub repository parisgroup-ai/imersao-ia-setup (1 stars, last pushed 20d ago), licensed MIT. It adds 64 tokens to every session and 3,091 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.
Other skills, from other repositories
design-code-architecture
Guided journey from an app idea to a deliberate architecture: boundaries, domain model, data decisions, and resilience, making only the expensive-to-reverse decisions and deferring the rest. Orchestrates eight skills phase by phase - clean-architecture, domain-driven-design, system-design, ddia-systems…
system-design
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues. Use when the user mentions "system design", "scale this", "high availability", "rate limiter", "design a URL shortener", "design Twitter", "design Uber", "design a news feed", "system…
add-request-protection
Deprecated: use the arcjet skill instead. Adds security protection to a server-side route or endpoint — rate limiting, bot detection, email validation, and abuse prevention.
list-connections
Lists Power Platform connections in the current environment. Use when you need a connection ID before adding a connector to a code app.
top-design
Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…
traction-eos
Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions "EOS", "Entrepreneurial Operating System", "V/TO", "quarterly rocks", "Level 10 meetings", "accountability chart", "IDS process", "my company feels chaotic", "we keep having the same…