Receber por email
← Voltar para o catálogo

refactor

Propose better object-oriented architecture for complex, procedural code

0estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add broneq/bdk

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/refactor-broneq/svg)](https://www.skillteca.com.br/skills/refactor-broneq)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Refactor

Relies on BDK foundation (STARTUP_INSTRUCTIONS.md) for project context and MCP tool preference.

For each <!-- INJECT: <name> --> marker below, run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/inject-rules.py <name> and substitute its stdout in place of the marker before acting on it.

Complex refactor needed. Code messy, needs clean class separation.

Workflow:

  1. Architecture survey:

!python3 ${CLAUDE_PLUGIN_ROOT}/scripts/inject.py --chain ${CLAUDE_PLUGIN_ROOT}/fragments/tool-tiers/explore.chain.json

Using the exploration tools above: understand current community structure, identify tightly-coupled communities, detect cross-cutting concerns, and identify dead code with refactor_tool(mode="dead_code") if graph is available.

  1. Launch explorer subagent with architecture findings as context (not blind). For follow-up questions on the same exploration, prefer SendMessage(to: "<agentId>", ...) over re-spawning. See STARTUP "Continuing a Spawned Agent".
  2. Propose OO architecture with well-separated classes — reference community boundaries, address surprising connections
  3. Identify applicable design patterns and explain fit — see rules below
  4. Create docs in .bdk/refactor/:
  5. Architecture overview
  6. Applicable patterns with rationale
  7. Implementation plan

Problem description:

$ARGUMENTS

<!-- INJECT: design-patterns -->

Compartilhar X LinkedIn