ha-pyscript

Patch generated stubs and deploy pyscript automations to Home Assistant.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/gauravmm/HomeAssistant-pyscript-Conversion-Skill --skill ha-pyscript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ha-pyscript
Source: https://github.com/gauravmm/HomeAssistant-pyscript-Conversion-Skill/tree/main/.agent/skills/ha-pyscript
Command: npx skills add https://github.com/gauravmm/HomeAssistant-pyscript-Conversion-Skill --skill ha-pyscript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Work with Home Assistant pyscript automation files. Use when asked to add, modify, debug, or refactor automations in the pyscript/ directory. Also use when asked to sync or patch stubs from HA.

Core Features & Use Cases

  • Manage pyscript files in the pyscript/ directory and coordinate deployment to HA.
  • Sync and patch stubs from Home Assistant to ensure IDE autocompletion and correct syntax.
  • Deploy updated pyscript code to the Home Assistant instance and reload pyscript as needed.
  • Use when debugging or refactoring automations across rooms and devices.

Quick Start

Sync stubs from Home Assistant, patch the generated pyscript stubs if needed, and deploy the pyscript directory to your HA instance.

Frequently Asked Questions about ha-pyscript

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

FAQPage Schema
How do I patch Home Assistant pyscript stubs for IDE autocompletion?

To patch Home Assistant pyscript stubs, you sync stubs from your HA instance and apply patches to the generated files. This ensures correct syntax and enables IDE autocompletion for your pyscript automations.

What is the best way to deploy pyscript automations to Home Assistant?

The best way to deploy pyscript automations is to sync your pyscript directory to your Home Assistant instance and reload the pyscript integration. This ensures your updated automation files are active across all rooms and devices.

How do I debug pyscript automations across multiple rooms and devices?

Debug pyscript automations by refactoring the files in your pyscript directory and verifying the patched stubs. Manual verification is required during debugging to ensure correct integration with Home Assistant.

Do I need to manually verify pyscript files after patching stubs?

Yes, you need to manually verify pyscript files after patching stubs. The process prompts for manual verification when required to ensure safe usage and correct integration with your Home Assistant setup.

Why does my pyscript automation fail to sync with Home Assistant?

Pyscript automation syncing can fail due to unpatched stubs or incorrect directory configuration. Ensure you patch generated pyscript stubs and properly coordinate the deployment of the pyscript directory to your HA instance.