Skip to content
Back to skills

Design Pattern Selection

ASecurity

`analysis-agent`/`task-agent`/`review-agent`: use when a current variation, lifecycle, protocol, or concurrency force may justify a pattern; skip pattern-name or placement work.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
code-qualitygorefactoringapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add machenjie/rd-skills --skill design-pattern-selection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design Pattern Selection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Design Pattern Selection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machenjie-design-pattern-selection/badge)](https://www.skillsdirectory.com/skills/machenjie-design-pattern-selection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: design-pattern-selection
description: "`analysis-agent`/`task-agent`/`review-agent`: use when a current variation, lifecycle, protocol, or concurrency force may justify a pattern; skip pattern-name or placement work."
---

# design-pattern-selection

## Registry Trigger

**Use when**

- Current construction variants, algorithm choices, state transitions, event fan-out, protocol translation, lifecycle, or extension forces need a relationship decision.
- A proposed abstraction can hide I/O, global state, concurrency, teardown, compatibility, or invariant enforcement.

**Do not use when**

- A pattern name merely appears, or direct local structure resolves the force with no unresolved object relationship.
- The decision is placement, behavior-preserving movement, language semantics, performance, or public API shape without a pattern choice.

## Skill Role

Select one relationship for an accepted variation, lifecycle, protocol, concurrency, or extension force; exclude placement, refactoring, public contracts, and language rules.

## High-Value Rules

- Define the current force, reachable consumers, and direct alternative.
- Define construction, lifecycle, effect, concurrency, and failure ownership.
- Preserve visible I/O, latency, failure, cancellation, cleanup, and results; sharing is not a force.
- Route public/cross-module surfaces and specialist proof.

## Anti-Patterns

- Local success substituted for evidence of the design pattern selection contract.

## Stop Conditions

- Consume accepted structure; hand relationship placement/movement and specialist proof to their owners.

## Output Contract

- pattern decision with current forces, selected or rejected relationship, simpler direct alternative, construction/lifecycle/effect obligations, evidence and proof limits, specialist handoffs, and residual risk

## Targeted References

| Path | Type | Load when | Do not load when | Required by | Required output |
|---|---|---|---|---|---|
| [pattern evidence record](references/pattern-evidence-record.md) | evidence-pattern | A design-pattern candidate needs current-force repository-fit lifecycle IO concurrency or compatibility evidence | No design pattern is selected or direct local structure already resolves the current force | analysis-agent, task-agent, review-agent | evidence-record, proof-limit, residual-risk |

Files in this skill

  • SKILL.md4.1 KB
  • references/pattern-evidence-record.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…