What problem does it solve?
This Skill reduces the friction of adding or refactoring agentpay integrations by giving a reusable, consistent path for wiring a new plugin into the existing CLI/daemon flow.
Core Features & Use Cases
- Reusable Plugin Architecture: Guides you to create a dedicated
src/plugins/<plugin>.ts, register it in src/plugins/index.ts, and keep plugin business logic isolated.
- Correct Shared Daemon Integration: Recommends reusing
CliPluginContext for signing, policy checks, approvals, and transaction broadcast rather than duplicating core wallet plumbing.
- Remote Client Isolation: Encourages placing scraping, HTTP calls, cookies, and any browser bootstrap behavior under
src/lib/<plugin>* so shared CLI code stays clean.
- Deterministic Testing Focus: Promotes mocked CLI tests and coverage for
--help, happy paths, unsupported modes, and --broadcast preview vs live behavior.
- Reference-Driven Implementation: Uses
src/plugins/bitrefill.ts as the canonical example of command style and plugin boundaries.
Quick Start
Ask the AI to help you add a new agentpay <plugin> integration by following the shared plugin registration pattern in src/plugins, placing plugin-specific API or scraping code in src/lib/<plugin>, reusing CliPluginContext for signing and policy, and adding focused CLI tests for the new command tree.