Claude-code-skills ln-015-hex-line-uninstaller
Use when removing Claude-side hex-line integration surfaces such as MCP registration, permissions, hooks, and output style.
install
source · Clone the upstream repo
git clone https://github.com/levnikolaevich/claude-code-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/levnikolaevich/claude-code-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills-catalog/ln-015-hex-line-uninstaller" ~/.claude/skills/levnikolaevich-claude-code-skills-ln-015-hex-line-uninstaller && rm -rf "$T"
manifest:
skills-catalog/ln-015-hex-line-uninstaller/SKILL.mdsource content
Paths: File paths are relative to skills repo root. Locate this SKILL.md directory and go up one level for repo root.
Hex-Line Uninstaller
Type: L3 Worker Category: 0XX Shared
Removes Claude-side hex-line integration surfaces. This worker is standalone-capable but also supports managed
ln-010 family transport.
MANDATORY READ: Load
shared/references/coordinator_summary_contract.md, shared/references/environment_worker_runtime_contract.md, and shared/references/worker_runtime_contract.md
Input / Output
| Direction | Content |
|---|---|
| Input | optional , optional , optional |
| Output | Structured summary envelope with , = / / , plus cleanup outcomes in / |
Transport inputs:
- standalone: omit
andrunIdsummaryArtifactPath - managed: pass both
andrunIdsummaryArtifactPath
Runtime
Runtime family:
environment-worker-runtime
Phase profile:
PHASE_0_CONFIGPHASE_1_RESOLVE_CLAUDE_STATEPHASE_2_REMOVE_HEXLINE_REGISTRATIONPHASE_3_REMOVE_HEXLINE_ARTIFACTSPHASE_4_VERIFY_CLEANUPPHASE_5_WRITE_SUMMARYPHASE_6_SELF_CHECK
Runtime rules:
- emit
summary_kind=env-cleanup - standalone runs generate their own
and write the default worker-family artifact pathrun_id - managed runs require both
andrunId
and must write the summary to the exact provided pathsummaryArtifactPath - always write the validated summary artifact before terminal outcome
Output Contract
Always build a structured
env-cleanup summary envelope per:
shared/references/coordinator_summary_contract.mdshared/references/environment_worker_runtime_contract.md
Payload fields:
mcp_removedpermissions_cleanedhooks_removedoutput_style_removedverificationstatus
What It Removes
| Surface | Location | Action |
|---|---|---|
| MCP registration | / user scope | Remove registration via when present |
| Permission entries | and | Remove entries that target |
| Hook entries | and | Remove hook entries matching the current hex-line hook signature |
| Output style file | | Delete file |
| Output style setting | and | Clear only if value is |
| Hook directory | | Delete only if empty after artifact cleanup |
Workflow
Phase 1: Resolve Claude State
- Read
if present~/.claude/settings.json - Read
if present~/.claude/settings.local.json - Detect:
MCP registration in user scopehex-line
entries forpermissions.allowmcp__hex-line__*- hook entries whose command points to the installed hex-line hook
outputStyle = "hex-line"- installed style file and hook directory
- Record exactly which owned surfaces exist before mutating anything
Phase 2: Remove Hex-Line Registration
- If user-scope
registration exists, run:hex-line
claude mcp remove -s user hex-line
- If registration is already absent, report
already removed - Do not uninstall the npm package here. This worker owns Claude-side integration surfaces only
Phase 3: Remove Hex-Line Artifacts
- Update Claude settings surfaces:
- remove
entries forpermissions.allowmcp__hex-line__* - remove hook entries whose command contains the active hex-line hook path
- remove empty hook event arrays and remove
only when emptyhooks - clear
only when it is exactlyoutputStyle"hex-line"
- remove
- Delete
if present~/.claude/output-styles/hex-line.md - Delete
if present~/.claude/hex-line/hook.mjs - Delete
only when it is empty after file removal~/.claude/hex-line/
Rules:
- preserve all non-hex-line settings
- never claim cache cleanup unless a concrete cache deletion step exists
- do not touch unrelated MCP registrations or permission entries
Phase 4: Verify Cleanup
Confirm:
- no user-scope
MCP registration remainshex-line - no
entry targetspermissions.allowmcp__hex-line__* - no hex-line hook entry remains in managed Claude settings files
is notoutputStyle"hex-line"
does not exist~/.claude/output-styles/hex-line.md
does not exist~/.claude/hex-line/hook.mjs
Notes
- This worker removes Claude-side hex-line integration only
- It does not remove the npm package itself
- It is safe to run multiple times
Definition of Done
- Claude user-scope
MCP registration removed or confirmed absenthex-line -
no longer containspermissions.allowmcp__hex-line__* - No hex-line hook entries remain in managed Claude settings files
-
cleared where ownedoutputStyle: "hex-line" - Installed style and hook artifacts removed
- Structured summary returned
- Summary artifact written to the managed or standalone runtime path
Version: 1.0.0 Last Updated: 2026-03-27