alo-exp/silver-bullet/extensibility

Claude Code and agent skill by alo-exp/silver-bullet

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when designing, planning, implementing, or reviewing any non-trivial change, or when the user asks to "add plugin point", "make this pluggable", "add hooks for X" — enforces open-closed design, plugin architectures, stable interfaces, and versioning so systems grow without breaking existing consumers

Install

npx vskill@latest install alo-exp/silver-bullet/extensibility

SKILL.md

The same SKILL.md was published earlier as alo-exp/silver-bullet/extensibility.

/extensibility — Extensible Design Enforcement

Every design, plan, and implementation MUST allow new functionality to be added without modifying existing code. The system should be open for extension but closed for modification.

Why this matters: Software that requires modifying core code for every new feature becomes brittle, risky, and slow to evolve. Extensible design lets you add capabilities by writing NEW code — not editing existing, tested, working code. This is the difference between systems that scale with the team and systems that bottleneck at every change.

When to invoke: During PLANNING (after /sb:context, before /sb:plan) and during REVIEW (as part of code review criteria). This skill applies to both new code and modifications to existing code.


The Rules

Rule 1: Open-Closed Principle

Modules MUST be open for extension but closed for modification:

Closed for modificationOpen for extension
Core processing pipelineNew processors via registration
Validation engineNew validators via interface
Authentication systemNew auth providers via adapter pattern
Report generatorNew report formats via strategy pattern
Event systemNew event handlers via subscription

The test: Can you add a new [feature type] without editing any existing file? If yes, the design is extensible. If no, find the extension point and create it.

Rule 2: Extension Points

Every system MUST define explicit extension points:

PatternUse when
Hooks/EventsOthers need to react to your system's actions
Plugin interfaceThird parties add completely new capabilities
Strategy patternMultiple algorithms for the same operation
Middleware chainCross-cutting concerns (logging, auth, caching)
ConfigurationBehavior changes without code changes
Registry patternNew types registered at startup, discovered at runtime

Every extension point MUST have:

  • A documented interface/contract
  • At least one reference implementation
  • A way to discover available extensions
  • Error handling for malformed extensions
Rule 3: Stable Interfaces

Public interfaces MUST be stable. Once published, an interface is a promise:

RuleImplementation
Never remove a public methodDeprecate first, remove in next major version
Never change a method's signatureAdd a new method with the new signature
Never change return typesUse generics or union types for flexibility
Never change error typesAdd new error types, don't modify existing ones
Never change default behaviorNew defaults only in major versions

Interface evolution rules:

  • Adding a new optional method/field — safe in any version.
  • Adding a new required method/field — major version bump.
  • Removing anything — deprecate for 1 major version, remove in the next.
  • Changing behavior — major version bump with migration guide.
Rule 4: Configuration Over Code

Behavior that might change MUST be configurable:

Hard-coded (inflexible)Configurable (extensible)
if (country === 'US')config.supportedCountries.includes(country)
const MAX_RETRIES = 3config.maxRetries ?? 3
sendEmail(...) hard-codednotificationChannels.forEach(ch => ch.send(...))
switch (type) { case 'pdf': ... }formatters.get(type).render(data)

Not everything should be configurable. Only extract configuration for values that:

  • Differ between environments (dev/staging/prod)
  • Might change without a code deploy
  • Vary by customer/tenant
  • Are explicitly requested as configurable
Rule 5: Versioned APIs

Every public API MUST be versioned from day one:

LayerVersioning strategy
REST APIsURL path (/v1/users) or header (Accept: application/vnd.api.v1+json)
Libraries/packagesSemantic versioning (MAJOR.MINOR.PATCH)
Database schemasMigration numbering with up/down
Configuration filesVersion field + migration path
Message formatsSchema registry with compatibility checks

Semantic versioning rules:

  • PATCH: bug fixes only, no behavior changes
  • MINOR: new features, backward compatible
  • MAJOR: breaking changes, with migration guide
Rule 6: Backward Compatibility

New versions MUST work with old clients:

PrincipleImplementation
Accept old input formatsParse both old and new format, normalize internally
Return backward-compatible outputAdd fields, never remove or rename
Support old configurationMigration on startup, not manual conversion
Maintain old endpointsDeprecation notice, proxy to new version
Default to old behaviorNew behavior requires explicit opt-in

Breaking change budget: Maximum 1 breaking change per quarter. Each breaking change needs a migration guide AND an automated migration tool where possible.

Rule 7: Separation of Mechanism and Policy

Separate the HOW (mechanism) from the WHAT (policy):

Mechanism (stable)Policy (changes often)
Event dispatch systemWhich events trigger which actions
Permission checking frameworkPermission rules and role definitions
Validation engineValidation rules per entity
Notification systemWhen and how to notify
Workflow engineWorkflow step definitions

The mechanism is the extensible framework. The policy is the configuration/plugins that define behavior. When policy changes (it will), no mechanism code needs to change.


Applying This Skill

During Planning (/sb:context -> /sb:plan)

Before finalizing any design or plan, run the Extensibility Checklist:

  • [ ] New feature types can be added without modifying existing code (open-closed)
  • [ ] Extension points are explicitly defined and documented
  • [ ] Public interfaces are stable with a clear evolution strategy
  • [ ] Variable behavior is configurable (not hard-coded)
  • [ ] APIs are versioned from day one with semantic versioning
  • [ ] New versions maintain backward compatibility
  • [ ] Mechanism (framework) is separated from policy (rules/config)

If any item fails: redesign before proceeding to implementation.

During Implementation (/sb:execute)

As you write code:

  • When adding a new type/format/provider, use registry/strategy pattern — don't add else if.
  • When exposing a public API, version it from the first release.
  • When adding config options, provide sensible defaults so existing users aren't affected.
  • When deprecating something, add a deprecation warning with a migration path.
  • Use interfaces/protocols for dependencies — not concrete implementations.
During Review (sb:review / sb:review-triage)

Verify these as part of every code review:

  • No switch or if/else if chains that will grow as new types are added
  • Extension points exist for foreseeable variations
  • Public interfaces haven't been broken
  • New config options have defaults
  • API versions are maintained
  • Deprecation warnings include migration paths
When Modifying Existing Code

If existing code violates these rules:

  • Not required to add extension points to all existing code.
  • Required: do not make extensibility worse.
  • If you're adding a third else if for a new type, convert to a registry/strategy.
  • If you're modifying a public interface, ensure backward compatibility.

Anti-Patterns

PatternProblemFix
Giant switch/case for typesEvery new type modifies the switchRegistry or strategy pattern
Hardcoded providersCan't swap implementationsInterface + injection
Unversioned APIsCan't evolve without breakingVersion from day one
Breaking changes without noticeConsumers break silentlyDeprecation cycle
God config fileEverything in one place, impossible to extendSplit by concern, compose
Feature flags as architecturePermanent conditionals in codePlugin/extension points

Rationalization Prevention

ExcuseReality
"We don't need plugins"You need the pattern, not necessarily a plugin system.
"YAGNI — we don't need to extend this"If 3+ types exist or are planned, you need an extension point.
"Breaking changes are fine, we control all consumers"You won't forever. And you'll forget who consumes what.
"Versioning is overhead"Versioning is cheap. Breaking consumers is expensive.
"We can just update everyone"At 10 consumers, maybe. At 100, impossible.
"This is internal, we can change it"Internal APIs have consumers too. Treat them with respect.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alo-exp/silver-bullet/extensibility/badge)](https://verified-skill.com/skills/alo-exp/silver-bullet/extensibility)

Something wrong with this skill or its page? Tell us.