[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C63TPYBTQTDN9EPC7JD4TZ":3,"skill-same:01M6C63TPYBTQTDN9EPC7JD4TZ":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":56,"linkOnly":57,"markdownContent":58,"markdownBody":59,"frontMatter":60,"refName":67,"commitSha":68,"skillDirectory":69,"forksCount":70,"repositoryHtmlUrl":71,"repositoryHomepageUrl":17,"ownerHtmlUrl":72,"ownerBlogUrl":17,"ownerDescription":73,"updatedAt":74,"install":75,"resources":88},"01M6C63TPYBTQTDN9EPC7JD4TZ","ha-validate","Home Assistant 配置校验","Validate Home Assistant YAML for syntax errors, undefined secrets, and duplicate keys. Use when validating HA config, diagnosing YAML errors, or running hass check_config.","校验 Home Assistant YAML 中的语法错误、未定义的 secret 和重复键。在验证 HA 配置、诊断 YAML 错误或运行 hass check_config 时使用。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fhome-assistant-plugin\u002Fskills\u002Fha-validate\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0CACQEP4A9MT55D9FJW","智能设备控制","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0DTCFY4XF3X3FVMX6TZ","智能设备工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],"validate","ha","ha validate","read","2026","home","running","when","for","keys","errors","2025","duplicate","use","directory","check","syntax","grep","python3","Bash","secrets","yaml","config","docker","assistant","2026-11-10 10:12:30",false,"---\ndescription: Validate Home Assistant YAML for syntax errors, undefined secrets, and duplicate keys. Use when validating HA config, diagnosing YAML errors, or running hass check_config.\nargs: \"[path]\"\nallowed-tools: Bash(python3 *), Bash(docker exec *), Bash(ha *), Read, Grep, Glob\nargument-hint: \"Optional path to config directory (defaults to current directory)\"\ncreated: 2025-02-01\nmodified: 2026-10-12\nreviewed: 2026-04-25\nname: ha-validate\n---\n\n# \u002Fha:validate\n\nValidate Home Assistant configuration files for YAML syntax errors and common issues.\n\n## When to Use This Skill\n\n| Use this skill when... | Use ha-configuration instead when... |\n|---|---|\n| Checking YAML syntax in configuration.yaml or automations.yaml | Editing configuration.yaml to add or change integrations |\n| Detecting undefined `!secret` references against secrets.yaml | Adding new entries to secrets.yaml |\n| Finding duplicate keys in scripts.yaml or scenes.yaml | Reorganizing configuration into packages |\n| Running `hass --script check_config` via Docker or HA OS | Authoring template sensors and recorder\u002Flogger config |\n\n## Context\n\n- Config path: `{{ path or '.' }}`\n- YAML files: !`find . -name \"*.yaml\" -type f`\n\n## Validation Steps\n\n### 1. YAML Syntax Validation\n\nValidate all YAML files for proper syntax:\n\n```bash\nfind {{ path or '.' }} -name \"*.yaml\" -type f -exec python3 -c \"\nimport yaml\nimport sys\ntry:\n    with open('{}', 'r') as f:\n        yaml.safe_load(f)\n    print('OK: {}')\nexcept yaml.YAMLError as e:\n    print('ERROR: {}')\n    print(str(e)[:200])\n    sys.exit(1)\n\" \\; 2>&1 | head -50\n```\n\n`yaml.safe_load` does not know Home Assistant's custom tags, so any file\nusing `!secret` or `!include` fails here with `could not determine a\nconstructor`. That is expected, not a layout fault in the file — see\n[Common Fixes](#common-fixes).\n\n### 2. Check for Common Issues\n\n**Check for undefined secrets:**\n```bash\n# Find secret references\ngrep -rh \"!secret [a-z_]*\" {{ path or '.' }} --include=\"*.yaml\" 2>\u002Fdev\u002Fnull | \\\n  sed 's\u002F.*!secret \u002F\u002F' | sort -u > \u002Ftmp\u002Fused_secrets.txt\n\n# Check if secrets.yaml exists\nif [ -f \"{{ path or '.' }}\u002Fsecrets.yaml\" ]; then\n  echo \"secrets.yaml found\"\n  # List defined secrets\n  grep \"^[a-z_]*:\" {{ path or '.' }}\u002Fsecrets.yaml | sed 's\u002F:.*\u002F\u002F' | sort -u > \u002Ftmp\u002Fdefined_secrets.txt\n  echo \"Undefined secrets:\"\n  comm -23 \u002Ftmp\u002Fused_secrets.txt \u002Ftmp\u002Fdefined_secrets.txt\nelse\n  echo \"WARNING: secrets.yaml not found\"\nfi\n```\n\n**Check for duplicate keys:**\n```bash\npython3 -c \"\nimport yaml\nimport sys\nfrom collections import Counter\n\nclass DuplicateKeyChecker(yaml.SafeLoader):\n    def construct_mapping(self, node, deep=False):\n        keys = [k.value for k, v in node.value if isinstance(k, yaml.ScalarNode)]\n        duplicates = [k for k, count in Counter(keys).items() if count > 1]\n        if duplicates:\n            print(f'Duplicate keys in {node.start_mark}: {duplicates}')\n        return super().construct_mapping(node, deep)\n\nfor f in ['configuration.yaml', 'automations.yaml', 'scripts.yaml', 'scenes.yaml']:\n    path = '{{ path or '.' }}\u002F' + f\n    try:\n        with open(path) as file:\n            yaml.load(file, Loader=DuplicateKeyChecker)\n            print(f'OK: {f}')\n    except FileNotFoundError:\n        pass\n    except yaml.YAMLError as e:\n        print(f'ERROR in {f}: {e}')\n\" 2>&1\n```\n\n### 3. Docker-based Full Validation (if available)\n\nIf Home Assistant is running in Docker:\n\n```bash\ndocker exec homeassistant hass --script check_config 2>&1 | head -100 || echo \"Docker validation not available\"\n```\n\n### 4. Home Assistant OS Validation (if available)\n\n```bash\nha core check 2>&1 || echo \"HA OS validation not available\"\n```\n\n## Post-Validation\n\nReport validation results:\n- List any YAML syntax errors with file and line numbers\n- List any undefined secret references\n- List any duplicate keys\n- Suggest fixes for common issues\n\n## Common Fixes\n\n| Issue | Fix |\n|-------|-----|\n| `found undefined alias` | Add missing entry to secrets.yaml |\n| `could not determine a constructor for the tag '!secret'` (or `!include`, `!include_dir_*`, `!input`, `!env_var`) | Not a syntax error: these are Home Assistant custom tags that a plain YAML loader (`yaml.safe_load` in Step 1) does not know. Treat the file as unverified by Step 1 and validate it with HA's own config check (Step 3 `hass --script check_config` or Step 4 `ha core check`) |\n| `duplicate key` | Remove or rename duplicate key |\n| `expected \u003Cblock end>` | Fix indentation alignment |\n| `mapping values are not allowed` | Add space after colon |\n","# \u002Fha:validate\n\nValidate Home Assistant configuration files for YAML syntax errors and common issues.\n\n## When to Use This Skill\n\n| Use this skill when... | Use ha-configuration instead when... |\n|---|---|\n| Checking YAML syntax in configuration.yaml or automations.yaml | Editing configuration.yaml to add or change integrations |\n| Detecting undefined `!secret` references against secrets.yaml | Adding new entries to secrets.yaml |\n| Finding duplicate keys in scripts.yaml or scenes.yaml | Reorganizing configuration into packages |\n| Running `hass --script check_config` via Docker or HA OS | Authoring template sensors and recorder\u002Flogger config |\n\n## Context\n\n- Config path: `{{ path or '.' }}`\n- YAML files: !`find . -name \"*.yaml\" -type f`\n\n## Validation Steps\n\n### 1. YAML Syntax Validation\n\nValidate all YAML files for proper syntax:\n\n```bash\nfind {{ path or '.' }} -name \"*.yaml\" -type f -exec python3 -c \"\nimport yaml\nimport sys\ntry:\n    with open('{}', 'r') as f:\n        yaml.safe_load(f)\n    print('OK: {}')\nexcept yaml.YAMLError as e:\n    print('ERROR: {}')\n    print(str(e)[:200])\n    sys.exit(1)\n\" \\; 2>&1 | head -50\n```\n\n`yaml.safe_load` does not know Home Assistant's custom tags, so any file\nusing `!secret` or `!include` fails here with `could not determine a\nconstructor`. That is expected, not a layout fault in the file — see\n[Common Fixes](#common-fixes).\n\n### 2. Check for Common Issues\n\n**Check for undefined secrets:**\n```bash\n# Find secret references\ngrep -rh \"!secret [a-z_]*\" {{ path or '.' }} --include=\"*.yaml\" 2>\u002Fdev\u002Fnull | \\\n  sed 's\u002F.*!secret \u002F\u002F' | sort -u > \u002Ftmp\u002Fused_secrets.txt\n\n# Check if secrets.yaml exists\nif [ -f \"{{ path or '.' }}\u002Fsecrets.yaml\" ]; then\n  echo \"secrets.yaml found\"\n  # List defined secrets\n  grep \"^[a-z_]*:\" {{ path or '.' }}\u002Fsecrets.yaml | sed 's\u002F:.*\u002F\u002F' | sort -u > \u002Ftmp\u002Fdefined_secrets.txt\n  echo \"Undefined secrets:\"\n  comm -23 \u002Ftmp\u002Fused_secrets.txt \u002Ftmp\u002Fdefined_secrets.txt\nelse\n  echo \"WARNING: secrets.yaml not found\"\nfi\n```\n\n**Check for duplicate keys:**\n```bash\npython3 -c \"\nimport yaml\nimport sys\nfrom collections import Counter\n\nclass DuplicateKeyChecker(yaml.SafeLoader):\n    def construct_mapping(self, node, deep=False):\n        keys = [k.value for k, v in node.value if isinstance(k, yaml.ScalarNode)]\n        duplicates = [k for k, count in Counter(keys).items() if count > 1]\n        if duplicates:\n            print(f'Duplicate keys in {node.start_mark}: {duplicates}')\n        return super().construct_mapping(node, deep)\n\nfor f in ['configuration.yaml', 'automations.yaml', 'scripts.yaml', 'scenes.yaml']:\n    path = '{{ path or '.' }}\u002F' + f\n    try:\n        with open(path) as file:\n            yaml.load(file, Loader=DuplicateKeyChecker)\n            print(f'OK: {f}')\n    except FileNotFoundError:\n        pass\n    except yaml.YAMLError as e:\n        print(f'ERROR in {f}: {e}')\n\" 2>&1\n```\n\n### 3. Docker-based Full Validation (if available)\n\nIf Home Assistant is running in Docker:\n\n```bash\ndocker exec homeassistant hass --script check_config 2>&1 | head -100 || echo \"Docker validation not available\"\n```\n\n### 4. Home Assistant OS Validation (if available)\n\n```bash\nha core check 2>&1 || echo \"HA OS validation not available\"\n```\n\n## Post-Validation\n\nReport validation results:\n- List any YAML syntax errors with file and line numbers\n- List any undefined secret references\n- List any duplicate keys\n- Suggest fixes for common issues\n\n## Common Fixes\n\n| Issue | Fix |\n|-------|-----|\n| `found undefined alias` | Add missing entry to secrets.yaml |\n| `could not determine a constructor for the tag '!secret'` (or `!include`, `!include_dir_*`, `!input`, `!env_var`) | Not a syntax error: these are Home Assistant custom tags that a plain YAML loader (`yaml.safe_load` in Step 1) does not know. Treat the file as unverified by Step 1 and validate it with HA's own config check (Step 3 `hass --script check_config` or Step 4 `ha core check`) |\n| `duplicate key` | Remove or rename duplicate key |\n| `expected \u003Cblock end>` | Fix indentation alignment |\n| `mapping values are not allowed` | Add space after colon |\n",{"args":61,"name":5,"created":62,"modified":63,"reviewed":64,"description":7,"allowed-tools":65,"argument-hint":66},"[path]",1738368000000,1791763200000,1777075200000,"Bash(python3 *), Bash(docker exec *), Bash(ha *), Read, Grep, Glob","Optional path to config directory (defaults to current directory)","main","bdd0582f1a2ba53d21061835bfd72d45f2f954f4","home-assistant-plugin\u002Fskills\u002Fha-validate",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":76,"prompt":86,"zipAvailable":87},[77,80,83],{"tool":78,"command":79},"npx","npx skills add laurigates\u002Fclaude-plugins --skill ha-validate",{"tool":81,"command":82},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill ha-validate",{"tool":84,"command":85},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill ha-validate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fhome-assistant-plugin\u002Fskills\u002Fha-validate\u002FSKILL.md",true,[89],{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"README.md","REFERENCE","参考文档",3030,"https:\u002F\u002Fgithub.com\u002Fjapurcell\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdefault\u002Fcaveman\u002FREADME.md",[96,104,126,147,162,183],{"skillNo":97,"name":98,"nameZh":17,"description":99,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":56},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[111,112,113,114,115,116,117,118,119,120,44,38,50,121,122,123,124,125,35,34],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","file","text","with","xdg","via",{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":56},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[114,133,134,135,136,137,38,50,138,139,140,35,34,141,142,143,144,145,146,44],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","write","edit","snapshot","macos","sessions","restore",{"skillNo":148,"name":149,"nameZh":17,"description":150,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":56},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[154,155,114,156,157,116,37,158,117,159,160,44,38,161,50,122,123,140,35,34],"kitty remote control","remote","control","remote control","never","panes","notify","query",{"skillNo":163,"name":164,"nameZh":17,"description":165,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":56},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[169,46,170,171,172,173,49,174,175,176,44,38,50,177,121,178,179,180,181,182],"docs reference check","reference check","reference","docs","links","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":184,"name":185,"nameZh":186,"description":187,"descriptionZh":188,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":189,"categories":190,"keywords":197,"publishedAt":56},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[191,194],{"categoryNo":192,"categoryName":193,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":195,"categoryName":196,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[198,199,200,201,49,202,34,203,142,204,205,206,44,50,121,207,208,38,209,210,211,125,35],"youtube upload","upload","youtube","Video","run","uv run","publishing","data","uv","api","v3","tags","id","title"]