johnnystefan/test-saas-business/imcomplete-library-class

Claude Code and agent skill by johnnystefan/test-saas-business

Trust tier 3
  • community
Source check pending

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

Extend third-party libraries safely without modifying their source using Foreign Methods or Local Extensions. Trigger: When a library class lacks a needed method and cannot be modified directly.

Install

npx vskill@latest install johnnystefan/test-saas-business/imcomplete-library-class

SKILL.md

The same SKILL.md was published earlier as johnnystefan/test-saas-business/imcomplete-library-class.

Skill: Detect and Resolve Incomplete Library Class

Purpose

This skill enables the agent to identify when a third-party library or framework no longer meets the project's needs and provides strategies to extend it without access to the original source code.

Procedural Instructions

1. Detection Phase
  • Identify Read-Only Limitations: Spot scenarios where a library class lacks a necessary method but cannot be modified directly.
  • Audit Repetitive Client Logic: Look for utility methods created by developers that should ideally live inside the library class itself.
2. Treatment Phase
  • Introduce Foreign Method: If you only need one or two methods, add them to your client class and pass the library object as an argument.
  • Introduce Local Extension: If you need many new methods, create a new class (subclass or wrapper) that houses the additional functionality.

TypeScript Example

typescript
// THIRD-PARTY LIBRARY (Read-Only)
class ExternalDate {
getYear() {
return 2024;
}
getMonth() {
return 10;
}
}
// FOREIGN METHOD — solution for 1-2 missing methods
class DateUtil {
static nextDay(date: ExternalDate): ExternalDate {
// Logic to calculate next day without modifying ExternalDate
return date;
}
}
// LOCAL EXTENSION — solution for many missing methods
class ExtendedDate extends ExternalDate {
isWeekend(): boolean {
/* ... */
}
addDays(n: number): ExtendedDate {
/* ... */
}
format(pattern: string): string {
/* ... */
}
}

Payoff

  • Reduced Duplication: Avoids re-implementing library logic from scratch.
  • Clean API: Provides a more intuitive interface for the team even when libraries are limited.
  • Non-Invasive: The original library is never modified, so upgrades remain safe.

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
5

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/johnnystefan/test-saas-business/imcomplete-library-class/badge)](https://verified-skill.com/skills/johnnystefan/test-saas-business/imcomplete-library-class)

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