One-click install
npx skills add https://github.com/g-zenr/relay-api --skill add-device
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-device
Source: https://github.com/g-zenr/relay-api/tree/main/.claude/skills/add-device
Command: npx skills add https://github.com/g-zenr/relay-api --skill add-device

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of integrating new hardware devices by providing a standardized workflow for implementing their protocols and interfaces.

Core Features & Use Cases

  • Protocol Implementation: Guides the creation of new device implementations adhering to core interface standards.
  • Configuration Management: Ensures new settings are correctly added and documented.
  • Testing & Verification: Mandates comprehensive testing for reliability and correctness.
  • Use Case: A developer needs to add support for a new USB relay board. This skill provides the exact steps to implement its control protocol, update configuration, and ensure it works seamlessly with the existing system.

Quick Start

Follow the steps outlined in this skill to add a new hardware device implementation.

Frequently Asked Questions about add-device

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate new hardware protocols into an existing software system?

Hardware protocol integration is streamlined by providing a standardized workflow for studying the protocol, implementing the class with type annotations, updating configuration, and writing comprehensive tests. This standardized process ensures reliable device communication and system stability.

What is the standard process for implementing a device driver for a new hardware interface?

Device driver implementation involves studying the protocol, creating a class with type annotations and error handling, updating configuration, mirroring behavior in mock implementations, and wiring the device into system lifecycles. This structured approach guarantees correct hardware control and interface compliance.

How do I add support for a new hardware device like a USB relay board?

Adding support for a new hardware device requires implementing its control protocol, updating configuration settings, and ensuring seamless integration through comprehensive testing. This workflow guides the exact steps needed for reliable hardware control and system compatibility.

Do I need to update configuration and write tests when implementing a new hardware interface?

Configuration updates and comprehensive testing are mandatory when implementing a new hardware interface to ensure reliability and correctness. The standardized workflow also requires mirroring behavior in mock implementations and wiring the interface into system lifecycles for complete integration.

What's the best way to manage configuration when adding a new device implementation?

Configuration management for new device implementations is handled by ensuring settings are correctly added and documented within the standardized integration workflow. This process works alongside protocol implementation and comprehensive testing to maintain system reliability across hardware integrations.

Why does hardware integration require mock implementations and system lifecycle wiring?

Mock implementations and system lifecycle wiring are required during hardware integration to mirror device behavior accurately and ensure the new protocol functions correctly within the existing software architecture. This structured approach prevents runtime errors and guarantees seamless hardware communication.