agentleFS
aaaa-zhenaaaa-zhen/claude-home-agent/.agents/skills/home-assistant-local/SKILL.md

home-assistant-local

Skill11 starsChanged 51 days agoMITView on GitHub

Query or control Zhen's Home Assistant devices, including air conditioners, lights, presence, doors, media players, temperatures, and device status. Prefer the local LAN HA API/MCP.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for smart home status or control requests: air conditioners, lights, door sensor, presence, room temperature, media players, …

    line 8
  2. Distinctive:

    Prefer Codex MCP tools if available:

    line 12
  3. Very specific:

    Use --noproxy 192.168.1.100 with curl.

    line 18
  4. Very specific:

    Do not use https://your-ha-domain.example.com or ha_run.sh for normal status/control while this Mac is at home.

    line 19
  5. Very specific:

    Use human-friendly names from config.json and memory/devices.md.

    line 23
  6. Distinctive:

    After controlling a device, verify the final state before replying.

    line 35
  7. Distinctive:

    Ask for confirmation before high-impact or sensitive actions.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Home Assistant Local

Use this skill for smart home status or control requests: air conditioners, lights, door sensor, presence, room temperature, media players, curtains, and HA automations.

Routing

  1. Prefer Codex MCP tools if available:
    • ha_get_state
    • ha_list_entities
    • ha_call_service
  2. Otherwise use .env:
    • HA_URL should point to local LAN HA, normally http://192.168.1.100:8123/api.
    • Use --noproxy 192.168.1.100 with curl.
  3. Do not use https://your-ha-domain.example.com or ha_run.sh for normal status/control while this Mac is at home. Use those only as explicit fallback if the local LAN API fails.

Device Names

Use human-friendly names from config.json and memory/devices.md.

Common climate entities:

  • climate.gree — 客厅空调
  • climate.gree_e6d9 — 主卧空调
  • climate.studioroom — 书房空调

Control Rules

  • For AC on + set temperature, call climate.turn_on first, then climate.set_temperature.
  • For AC off, prefer climate.set_hvac_mode with {"hvac_mode":"off"}.
  • After controlling a device, verify the final state before replying.
  • Ask for confirmation before high-impact or sensitive actions.

Reply Style

Reply briefly in Chinese. Do not mention curl, API URLs, tokens, scripts, MCP, retries, or internal files unless the user asks how it works.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.