stub-generator

Community

Generate code stubs for TDD

AuthordjpTester44
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the creation of placeholder code (stubs) for classes, functions, and protocols, enabling developers to focus on writing tests first, even when the implementation code doesn't exist yet.

Core Features & Use Cases

  • Protocol-driven Stub Generation: Create implementation skeletons directly from .pyi interface definitions.
  • Test Import Analysis: Automatically identify and generate stubs for missing imports found during test collection, resolving ImportError issues in TDD workflows.
  • Use Case: When starting a new feature, write your tests first. If a test fails because the function or class it needs hasn't been written, use this Skill to generate a basic stub, allowing the test to run and fail on an assertion rather than an import error.

Quick Start

Generate stubs for the missing imports in the file 'tests/test_user_service.py'.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: stub-generator
Download link: https://github.com/djpTester44/iocane/archive/main.zip#stub-generator

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 223,000+ vetted skills library on demand.