habiclient: Skill for Claude Code

.claude/skills/habitat/SKILL.md

habitat is a skill for Claude Code from ssalevan/habiclient. It costs 0 tokens per session (1,444 once invoked), scanned A, original, MIT.

A guide and automation setup for running and debugging Habitat, a Commodore 64 game, through the VICE emulator.

In plain words
What is it for?
Useful for launching the game, choosing boot paths, stepping through startup code, reading memory, checking registers, and testing modem-related behavior.
Why use it?
It removes repetitive emulator setup and makes it easier to inspect registers, memory, boot stages, and communication behavior while debugging.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ssalevan/habiclient's own configuration. It tells Claude Code how to work on habiclient itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything habiclient configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ssalevan/habiclient. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ssalevan/habiclient/main/.claude/skills/habitat/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ssalevan/habiclient

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for habitat

README.md
[![agentmods](https://agentmods.dev/badge/skills/ssalevan/habiclient/habitat/github.svg)](https://agentmods.dev/skills/ssalevan/habiclient/habitat)
Your own site
<a href="https://agentmods.dev/skills/ssalevan/habiclient/habitat"><img src="https://agentmods.dev/badge/skills/ssalevan/habiclient/habitat/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for habitat

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssalevan/habiclient/habitat"><img src="https://agentmods.dev/badge/skills/ssalevan/habiclient/habitat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,444 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01444
Opus 5.5 $0.00000 $0.00578
Sonnet 5.5 $0.00000 $0.00289
Haiku 4.5 $0.00000 $0.00144

Measured 2mo ago against content hash c1fbb8f79736, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

habitat scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/habitat/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Habitat VICE Automation

Launch VICE, automate the Habitat C64 client boot sequence, and debug game memory.

Usage

Use vice_tool.py in the project root to automate VICE. Write and run Python scripts that import VICESession.

Full boot (through launcher)

from vice_tool import VICESession

with VICESession(verbose=True) as v:
    v.boot_to_game("steve")
    # Game is now running — inspect state
    regs = v.registers()
    print(f"PC=${regs['PC']:04X}")
    print(f"saved_acia_flag = ${v.read_byte(0x6DD9):02X}")

Direct boot (skip launcher + decompressor)

from vice_tool import VICESession

with VICESession(verbose=True) as v:
    v.boot_direct(acia=True, breakpoint=0x7083)
    # Stopped at rs232_open — step through
    regs = v.registers()
    v.step()
    regs = v.registers()
    print(f"A=${regs['A']:02X}")  # Should be $FF if ACIA flag propagated

Step-by-step boot (for debugging launcher stages)

from vice_tool import VICESession

with VICESession(verbose=True) as v:
    v.boot_to_splash()
    # At splash screen — inspect launcher state
    v.dismiss_splash()
    # At modem selection — default is SwiftLink
    v.switch_to_userport()  # Switch to User Port (avoids VICE hang)
    # At login prompt
    v.login("steve")
    v.wait_for_decrunch()
    # Game running

Set breakpoints and wait

from vice_tool import VICESession

with VICESession(verbose=True) as v:
    v.boot_to_splash()
    v.dismiss_splash()
    v.switch_to_userport()
    # Set a breakpoint before login triggers the boot
    v.set_breakpoint(0x0816)  # start_of_program
    v.login("a")
    # Wait for breakpoint hit (up to 120s for decrunch)
    resp = v.go_and_wait(timeout=120)
    regs = v.registers()
    print(f"Hit breakpoint at PC=${regs['PC']:04X}")

API Reference

Lifecycle

Method Description
launch(disk_image, prg, extra_args, wait) Start VICE with remote monitor
connect(retries, delay) TCP connect to monitor port
close() Close socket + terminate VICE
reconnect(retries, delay) Close and reopen monitor connection

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 147 lines · 0 tokens per session scan A c1fbb8f79736

Subscribe to this mod's changes

habitat is a skill published in the GitHub repository ssalevan/habiclient (12 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,444 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

habitat compared with skills from other repositories

habitat next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
habitatssalevan/habiclientSkill123mo agoMITA0Claude Code
minecraft-debug-mcpmoeru-ai/airiSkill51ktodayMITA68Codex
cli-anything-nsight-graphicsHKUDS/CLI-AnythingSkill58k1mo agoApache-2.0A29Claude Code, Codex
performance-optimizationgamedev-skills/awesome-gamedev-agent-skillsSkill7.8k11d agoApache-2.0A121Claude Code
unity-consoleBesty0728/Unity-SkillsSkill1.9ktodayMITA10Claude Code, Codex
diagnosing-bgs-problemshashgraph-online/awesome-codex-pluginsSkill1.5ktodayApache-2.0A72Claude Code, Codex
scenario-unreal-gameplayscenario-labs/skillsSkill3.5kyesterdayMITA121Claude Code