gof-design-patterns SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

gof-design-patterns from nerviz-ai/nerviz is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add nerviz-ai/nerviz/gof-design-patterns@git:20261014.a222dba

Pins git:20261014.a222dba in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
nerviz-ai/nerviz
Path
.claude/skills/gof-design-patterns/SKILL.md
Versions recorded
4
Latest version
git:20261014.a222dba, committed Oct 14, 2026
First version recorded
Sep 30, 2026
Size
11,429 bytes
Repository stars
8
License
MIT

Chooses and implements a design pattern in Java/Spring from the symptom that justifies it. Use when the request involves a design pattern, Strategy, Factory, Decorator, Builder, Specification, "how to structure this class", a growing if/switch chain, or refactoring a class with too many responsibilities.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# GoF Design Patterns

## Why this is a skill and not a rule

A pattern is not a rule. A rule says *always*; a pattern says *when*. That's why this is
a skill and not `rules/` — it only costs context when invoked. Form 2 (manual invocation)
and not Form 1, because a catalog the model reaches on its own turns into a pattern applied
without the symptom that justifies it, which is what the entry rule below exists to stop.

**Entry rule: no pattern without a symptom observed in the code, or a force the approved
spec already names.** Applying a pattern preemptively is overengineering — a Factory for
two lines, a Strategy for a single `if`, an interface with one implementation that will
never have a second. A force named in the spec is not preemption: variants or rules the
spec enumerates, a cross-cutting concern it applies over several implementations,
construction it constrains with invariants, a predicate it uses both to decide and to
query — code written from that spec would show the symptom on its first version, and
choosing the pattern before writing it is how that first version is never written badly.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add nerviz-ai/nerviz/gof-design-patterns@sha256:72c77d5758a4c651

The line at the top of this page pins the label git:20261014.a222dba, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6w2khsa2z4jkzvg4.svg)](https://markdownregistry.com/a/art_6w2khsa2z4jkzvg4)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Sep 30, 2026 and Oct 14, 2026, about one every 5 days.

versioncommittedcommitsizeaudit
git:20261014.a222dba latest2026-10-14 a222dba 11,429 BA view · diff
git:20261014.c9ffbdd2026-10-14 c9ffbdd 10,987 BA view · diff
git:20261012.f9d91882026-10-12 f9d9188 10,993 BA view · diff
git:20260930.0fa03542026-09-30 0fa0354 10,894 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (11429 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

nerviz-ai/nerviz · 8 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6w2khsa2z4jkzvg4
GET https://markdownregistry.com/api/v1/resolve?ref=nerviz-ai/nerviz/gof-design-patterns
GET https://markdownregistry.com/api/v1/blob/72c77d5758a4c6513c5bb0f5219d1d228442735d210cb0edbf84e7f51a8a8934

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from nerviz-ai/nerviz

ai-architect SKILL.md skill
nerviz-ai/nerviz · .claude/skills/ai-architect/SKILL.md · Designs the outbound AI ports of an already-scoped use case — a language model asked for a structured answer (classify…
git:20261014.c9ffbdd · audit A · 8 stars
arch-adopt SKILL.md skill
nerviz-ai/nerviz · .claude/skills/arch-adopt/SKILL.md · Installs or updates this architecture's `.claude/` inside a Java project — norms with their globs derived for the…
git:20261019.2720210 · audit A · 8 stars
arch-doctor SKILL.md skill
nerviz-ai/nerviz · .claude/skills/arch-doctor/SKILL.md · Diagnoses the AI setup and architecture enforcement on this machine: active hooks, loaded boundary rules, build…
git:20261021.6793372 · audit A · 8 stars
audit-usage SKILL.md skill
nerviz-ai/nerviz · .claude/skills/audit-usage/SKILL.md · Reads the execution trail the `audit` hook writes into `.claude/audit-usage/` and consolidates it across runs —…
git:20261008.68d46fc · audit A · 8 stars
cache-architect SKILL.md skill
nerviz-ai/nerviz · .claude/skills/cache-architect/SKILL.md · Designs the application cache of an already-scoped use case — which reads are served from a copy, the key of each…
git:20261014.c9ffbdd · audit A · 8 stars
claude-code-architect-designer SKILL.md skill
nerviz-ai/nerviz · .claude/skills/claude-code-architect-designer/SKILL.md · Decides which Claude Code extension resolves a scenario — auto-invocable skill, manually-invoked skill, subagent, rule…
git:20261015.1303b8c · audit A · 8 stars
docker-architect SKILL.md skill
nerviz-ai/nerviz · .claude/skills/docker-architect/SKILL.md · Extends a project's docker-compose.yml and Dockerfile after project-bootstrap's base generation — adds the database or…
git:20261020.a3a3343 · audit B · 8 stars
domain-modeling SKILL.md skill
nerviz-ai/nerviz · .claude/skills/domain-modeling/SKILL.md · Details the domain and application layer of an already-designed use case — aggregate, value objects, invariants, ports…
git:20261014.7301cd9 · audit A · 8 stars
git-publish SKILL.md skill
nerviz-ai/nerviz · .claude/skills/git-publish/SKILL.md · Offers to git init/commit the current project and, optionally, create a GitHub repo (via `gh`) and push — always behind…
git:20261008.5e2a79c · audit A · 8 stars
graphql-api-architect SKILL.md skill
nerviz-ai/nerviz · .claude/skills/graphql-api-architect/SKILL.md · Designs the inbound GraphQL adapter of an already-modeled use case — schema-first, Spring for GraphQL on the servlet…
git:20261014.5f1549e · audit A · 8 stars
http-client-architect SKILL.md skill
nerviz-ai/nerviz · .claude/skills/http-client-architect/SKILL.md · Designs the outbound HTTP adapter of an already-modeled use case — which client (HTTP interface with @HttpExchange over…
git:20261014.5f1549e · audit A · 8 stars
init-project SKILL.md skill
nerviz-ai/nerviz · .claude/skills/init-project/SKILL.md · Initializes a Spring Boot project from scratch with a selectable architecture. Manual ritual — interview, validate the…
git:20261021.c4eef46 · audit A · 8 stars

Every file in nerviz-ai/nerviz

Other files named gof-design-patterns

gof-design-patterns SKILL.md skill
ice-lfernandes/claude-spring-architect · .claude/skills/gof-design-patterns/SKILL.md · Chooses and implements a design pattern in Java/Spring from the symptom that justifies it. Use when the request…
git:20261014.a222dba · audit A · 6 stars

Browse by kind, by grade A, or by owner.