Skip to content
Agentmart
Submit a tool

ocp-strategy-extractor

Identifies growing switch/if-else blocks and refactors them into Strategy patterns.

Skill by esanacore

IndexedApache-2.0★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/esanacore-ocp-strategy-extractor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Identifies growing switch/if-else blocks and refactors them into Strategy patterns.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ocp-strategy-extractor

What's inside

Skill name
ocp-strategy-extractor
Description
Identifies growing switch/if-else blocks and refactors them into Strategy patterns.
License
Apache-2.0
Instructions
6 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# OCP Strategy Extractor

Use this skill when you encounter a `switch` statement that is frequently modified to add new cases. Refactor into an interface and multiple implementations (Open/Closed Principle).

**Constitution Alignment**: This skill strictly enforces the principles laid out in Eric's Engineering Constitution. Always adhere to the established workflows when applying this skill.

From esanacore/engineering-constitution, Apache-2.0.

More from esanacore/engineering-constitution

Signals

Stars
2
Forks
1
Open issues
1
Last commit (this folder)
Jul 16, 2026 (3 months ago)
Last release
Sep 30, 2026 (29 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from esanacore

Cite this page

ocp-strategy-extractor skill. Agent Mart. https://agentmart.dev/skills/esanacore-ocp-strategy-extractor (last updated 2026-10-24)