hidden-contract-investigator

Community

Reveal reuse risks by extracting real behavior contracts.

Authortakusaotome
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents costly integration failures by uncovering the implicit behavioral contracts hidden in legacy code, so you can reuse existing functions or modules with clear, evidence-based guardrails.

Core Features & Use Cases

  • Name vs. behavior contract extraction: Identify what the code actually returns, mutates, throws, and assumes, rather than trusting identifiers, comments, or type annotations.
  • Mismatch classification for reuse risk: Systematically compare stated vs. observed contracts and categorize discrepancies (naming, types, state, environment dependency, hidden side effects).
  • Reuse decision support: Produce a reuse feasibility verdict (A–E) and generate wrapper/adapter recommendations plus prerequisites and safety constraints.
  • Verification planning with contract tests: Design minimal contract test ideas that lock down return/side-effect/exception/environment boundaries to stop contract drift.

Quick Start

Use the hidden-contract-investigator skill to analyze a specific legacy function or module for hidden return types, side effects, preconditions, exception behavior, and environment-sensitive differences before you reuse it in a new feature.

Dependency Matrix

Required Modules

None required

Components

referencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hidden-contract-investigator
Download link: https://github.com/takusaotome/claude-skills-library/archive/main.zip#hidden-contract-investigator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.