By wolffyx
Always-on Gang of Four design-pattern catalog (22 patterns, refactoring.guru) plus Pattern Check (Rule 0) hook enforcement on every TypeScript edit.
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Always-on Gang of Four design-pattern catalog plus Pattern Check (Rule 0) hook enforcement for Claude Code.
skills/design-patterns/references/.PreToolUse hook that blocks Write/Edit/MultiEdit on .ts/.tsx
files until the agent emits a Pattern check: … preamble.analyze-log.js) — surfaces drift, hotspots,
per-path pattern frequency./pattern-review slash command — on-demand cross-file project audit.Tier 1 (preferred first): Factory Method, Abstract Factory, Builder, Singleton, Adapter, Facade, Strategy, Observer, Iterator, Template Method.
npm install needed)./plugin marketplace add wolffyx/design-patterns
/plugin install design-patterns@design-patterns
Restart Claude Code. The plugin's hooks resolve via ${CLAUDE_PLUGIN_ROOT},
so no path patching or symlinks are needed. Update with
/plugin update design-patterns.
git clone https://github.com/wolffyx/design-patterns.git ~/design-patterns
cd ~/design-patterns
./install.sh
What it does:
~/.claude/skills/design-patterns and ~/.claude/hooks
to ~/.claude/backups/design-patterns-<ts>/,skills/design-patterns/ and hooks/ into ~/.claude/,settings.example.json into
~/.claude/settings.json (substituting $HOME with the user's home).Restart Claude Code afterwards.
curl | bash one-linercurl -fsSL https://raw.githubusercontent.com/wolffyx/design-patterns/main/install.sh \
| bash -s -- --auto-clone
The --auto-clone flag lets install.sh git-clone itself into
~/design-patterns before running the rest of the steps.
Security note: piping a remote script into
bashruns whatever the upstream serves at that moment. Audit the script first if you don't trust the source: open the URL in a browser before running.
Hooks are Claude Code-specific (the PreToolUse / PostToolUse API only
exists there). The catalog is plain markdown and works anywhere:
cat dist/skill-bundle.md # 113 KB, self-contained
Drop the contents into:
.cursor/rules/design-patterns.mdc (or paste into Cursor settings → Rules)aider --read dist/skill-bundle.md~/design-patterns/uninstall.sh
Removes the symlinks, restores any backed-up real directories, strips
pattern-related entries from ~/.claude/settings.json hooks block.
For plugin installs use:
/plugin uninstall design-patterns@design-patterns
The hooks work without per-project config, but you'll get the most value by adding three things to your repo:
# 1. paste Rule 0 at the top of CLAUDE.md
cat ~/design-patterns/docs/CLAUDE.rule0.md >> CLAUDE.md
# 2. project pattern catalogue (template — fill in as families stabilise)
mkdir -p .claude
cp ~/design-patterns/docs/design-patterns-project-usage.md .claude/
# 3. tunable config (optional)
cp ~/design-patterns/pattern-check.config.example.json .claude/pattern-check.config.json
The config file's $schema ref gives editor autocomplete for every tunable
in pattern-check.schema.json.
| Event | Hook | Blocking? | Purpose |
|---|---|---|---|
| SessionStart | session-start-reminder.js | no | Inject Rule 0 banner once per session |
| UserPromptSubmit | user-prompt-reminder.js | no | Brief reminder on each prompt |
| PreToolUse | pattern-context-prep.js | no | Sibling-class hint, recent decisions |
| PreToolUse | check-pattern-preamble.js | yes | Reject Write/Edit/MultiEdit without Pattern check: … preamble |
| PostToolUse | pattern-smell-detector.js | no | Emit smell suggestions to stderr |
| PostToolUse | log-pattern-decision.js | no | Append decision to pattern-decision-log.jsonl |
npx claudepluginhub wolffyx/design-patterns --plugin design-patternsMulti-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.