padroes-de-projeto
Catálogo de padrões de projeto usados na empresa com C# — Chain of Responsibility, Strategy, Factory, Decorator, Specification, Outbox, Mediator e outros — quando usar, quando não usar e exemplo. Use ao estruturar regras que variam, pipelines de validação ou integrações.
Install / Use
npx skills add fer-freitas/medha-brain --skill padroes-de-projetoInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Tags
Our assessment of padroes-de-projeto
padroes-de-projeto scores 72/100 on our quality scale, 2625th of 2,882 Automation skills we index.
Its SKILL.md is 2.8 KB long, well organised into 10 sections with 1 code example: a solid amount of guidance for an agent.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- The repository was last updated 5 days ago, so padroes-de-projeto is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-23. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
padroes-de-projeto compared with similar skills
All 4 of these similar skills score higher than padroes-de-projeto; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| padroes-de-projeto (this skill)by fer-freitas | 72 | 0 | 5d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 101.0k | 2d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 89.2k | today | MCP Server |
| rufloby ruvnet | 100 | 78.4k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 30d ago | SKILL.md |
Frequently asked questions
- How do I install padroes-de-projeto?
- Run
npx skills add fer-freitas/medha-brain --skill padroes-de-projeto. The install tabs above show the steps for each supported agent. - Which AI agents does padroes-de-projeto work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is padroes-de-projeto safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is padroes-de-projeto still maintained?
- The repository was last updated 5 days ago, so padroes-de-projeto is actively maintained.
Skill content
View source on GitHubname: padroes-de-projeto description: Catálogo de padrões de projeto usados na empresa com C# — Chain of Responsibility, Strategy, Factory, Decorator, Specification, Outbox, Mediator e outros — quando usar, quando não usar e exemplo. Use ao estruturar regras que variam, pipelines de validação ou integrações.
Padrões de projeto
Use padrão para resolver um problema presente, não um futuro imaginado. Se um if resolve e não vai crescer, use o if.
Chain of Responsibility
Quando: sequência de validações ou etapas independentes que podem parar o fluxo (ex.: validações de um estorno: prazo, saldo, antifraude, limite diário).
public interface IValidacaoEstorno
{
Task<ResultadoValidacao> ValidarAsync(PedidoEstorno pedido, CancellationToken ct);
}
public sealed class PipelineValidacaoEstorno(IEnumerable<IValidacaoEstorno> etapas)
{
public async Task<ResultadoValidacao> ExecutarAsync(PedidoEstorno pedido, CancellationToken ct)
{
foreach (var etapa in etapas) // ordem definida no registro de DI
{
var r = await etapa.ValidarAsync(pedido, ct);
if (!r.Valido) return r; // interrompe a cadeia
}
return ResultadoValidacao.Ok();
}
}
// services.AddScoped<IValidacaoEstorno, PrazoValidacao>(); … na ordem desejada
Regras: cada elo testado isoladamente; ordem explícita e testada; elo não conhece o próximo. Não use quando as etapas dependem umas das outras de forma complexa (use um caso de uso explícito).
Strategy
Quando: algoritmo que varia por tipo (cálculo de tarifa por produto). Registre estratégias por chave; nunca switch crescente.
Factory
Quando: criação com regra (escolher a estratégia, montar agregado válido). Métodos Criar estáticos no domínio para entidades.
Decorator
Quando: somar comportamento transversal sem mexer na classe (cache, métrica, retry, log). Em .NET, Scrutor ou registro manual.
Specification
Quando: regra de negócio reutilizável e combinável (EstornavelSpecification), inclusive para consultas.
Mediator (MediatR ou similar)
Quando: desacoplar transporte de casos de uso e aplicar comportamentos de pipeline (validação, transação). Não use só para "ter mediator"; um handler chamado direto também é válido.
Transactional Outbox
Quando: gravar no banco e publicar evento sem perder consistência. Grava o evento numa tabela na mesma transação; um publicador envia e marca como enviado. Obrigatório quando o evento não pode se perder.
Adapter / Anti-corruption layer
Quando: integrar sistema externo ou legado: traduz o modelo deles para o nosso na Infrastructure; o domínio nunca vê o modelo externo.
Checklist
- [ ] O padrão resolve um problema real e presente
- [ ] Nome da classe revela o papel no padrão
- [ ] Cada peça testável isoladamente
Related Skills
Agent-Reach
101.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Scrapling
89.2k🕷️ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
ruflo
78.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
