Skip to content
Conduit

skill

gof-patterns

Agent Skill that finds Gang of Four design patterns in a codebase and judges whether each one fits. Works in Claude Code, Codex, Gemini CLI, Cursor, Copilot.

jaeleeps/gof-patternscommunitylistedunreviewed

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/jaeleeps/gof-patterns itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 26, 2026

gof-patterns

An Agent Skill that finds Gang of Four design patterns in a codebase and judges whether each one is a good fit.

  • Detect: reports which files and directories implement which of the 23 GoF patterns, mapping each pattern participant to file:line. Every finding gets a confidence level: Confirmed, Partial, Idiomatic, or Name-only.
  • Evaluate: gives each pattern a verdict of Appropriate, Over-engineered, Misapplied, or Degraded, based on whether the problem the pattern solves is actually present in the code.

It follows the open Agent Skills format, so it works with Claude Code, OpenAI Codex, Gemini CLI, Cursor, GitHub Copilot, OpenCode, and any other agent that reads SKILL.md.

Install

Any agent (Codex, Gemini CLI, Cursor, GitHub Copilot, OpenCode, Claude Code, …), using the skills installer:

npx skills add jaeleeps/gof-patterns              # this project: .agents/skills/gof-patterns
npx skills add jaeleeps/gof-patterns -g           # every project (user scope)
npx skills add jaeleeps/gof-patterns -a codex     # a specific agent only

Claude Code plugin:

/plugin marketplace add jaeleeps/gof-patterns
/plugin install gof-patterns@gof-patterns

Manual: copy skills/gof-patterns/ into your agent's skills directory. Keep the folder name gof-patterns, because the spec requires it to match the skill name.

AgentProject scopeUser scope
Codex, Gemini CLI, Cursor, GitHub Copilot, OpenCode, Amp.agents/skills/gof-patterns/~/.agents/skills/gof-patterns/
Claude Code.claude/skills/gof-patterns/~/.claude/skills/gof-patterns/

Usage

Ask in plain language, for example "What design patterns does src/payments use?" or "Is this Singleton appropriate?" The agent loads the skill when the request matches. You can also invoke it explicitly: $gof-patterns in Codex, or /gof-patterns:gof-patterns with the Claude Code plugin.

Agents without skill support (chat UIs, the raw API): paste skills/gof-patterns/SKILL.md as instructions and attach skills/gof-patterns/references/patterns.md together with the code.

What it runs and accesses

gof-patterns is instructions only: Markdown in SKILL.md plus the reference catalog. It has no scripts, hooks, MCP servers, or binaries, and it makes no network requests. When it's active, your agent reads files in your project with its own tools and permissions, and then reports. The skill never asks the agent to modify, upload, or delete anything. See PRIVACY.md.

The evals/ test suite isn't part of normal use. It runs only when you start it by hand, and its runner launches claude -p or codex exec (Codex through npx @openai/codex@0.160.0).

Layout

  • skills/gof-patterns/: the skill. Installers copy only this folder.
    • SKILL.md: the workflow and report format.
    • references/patterns.md: a catalog of all 23 patterns. Each entry covers intent, canonical examples, the participants to confirm, search signals, idiomatic forms, when the pattern fits, smells, and lookalike patterns.
  • .claude-plugin/: the Claude Code plugin and marketplace manifests.
  • assets/: the plugin icon (PNG for the listing, SVG source).
  • PRIVACY.md: privacy policy.
  • evals/: test fixtures, the runner, and results. These aren't installed.

Evals

evals/ holds test prompts with checkable expectations (evals.json) and fixture codebases with planted patterns (files/: TypeScript, Python, Java). It also includes a runner that runs each prompt headlessly, with and without the skill, under Claude Code (claude -p) or OpenAI Codex (codex exec, run through npx; needs codex login):

python3 evals/run_evals.py /tmp/gof-evals                    # Claude Code, all evals, both configs
python3 evals/run_evals.py /tmp/gof-evals --agent codex      # the same under Codex
python3 evals/run_evals.py /tmp/gof-evals --ids 5,6          # a subset

Graded results for each iteration are in evals/results/.

Sources

The pattern catalog is based on the GoF book, and was checked against these sources:

See the Sources section of references/patterns.md for how these sources are used and where they disagree.

License

MIT

↑↓ navigate openesc close