python-dual-mode
CommunityTurn Python scripts into dual-mode data workflows
AuthorVictory-Hugo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers convert existing or new Python scripts into a robust dual-mode module that can run as a CLI tool and be imported as a library, enabling stable, maintainable data processing pipelines.
Core Features & Use Cases
- Dual-mode architecture: A single module that works both as a library and as a standalone CLI.
- Structured interface: Exposes a run(...) function with explicit, fully overridable inputs.
- Safe, parameterized operations: All hard-coded paths and environment dependencies are avoided in favor of configurable arguments.
- Use Case: Convert a long-running ETL script into a reusable module that can be integrated into job schedulers and used by other projects via import.
Quick Start
To begin, place your Python script into the project, run the scaffolder to generate the dual-mode module, and then execute or import the resulting module. Example: python -m dual_mode_wrapper --input input.py --output output_module
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: python-dual-mode Download link: https://github.com/Victory-Hugo/S2-Agent-Skill/archive/main.zip#python-dual-mode Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.