
Html Skills Stop
- 124 installs
- 43 repo stars
- Updated July 13, 2026
- f-labs-io/agent-html-skills
Tear down html-skills server mode for the current session: kill the receiver, stop the armed Monitor, and clean up temp files.
About
Pairs with html-skills-listen, running a bundled bash script that kills this session's receiver and removes its temp files, then stops the saved Monitor task. A developer invokes it when done with interactive html-skills artifacts or at session-end cleanup; parallel sessions are unaffected.
- Stops the Monitor by saved MONITOR_ID and cleans temp files
- Safe when nothing is active; reports WEB, INACTIVE, or STOPPED
Html Skills Stop by the numbers
- 124 all-time installs (skills.sh)
- Ranked #239 of 782 Skill Development skills by installs in the Skillselion catalog
- Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/f-labs-io/agent-html-skills --skill html-skills-stopAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 124 |
|---|---|
| repo stars | ★ 43 |
| Last updated | July 13, 2026 |
| Repository | f-labs-io/agent-html-skills ↗ |
What it does
Tear down html-skills server mode for the current session: kill the receiver, stop the armed Monitor, and clean up temp files.
Files
html-skills-stop — tear down server mode
Pairs with html-skills-listen. Runs a bundled bash script that kills this session's receiver and removes its temp files, then stops the Monitor task whose ID was saved by html-skills-listen.
Steps
1. Run the teardown script:
bash scripts/stop.shOutput: KEY=VALUE lines. Always: SID, STATUS. When a Monitor was armed by html-skills-listen and saved, also: MONITOR_ID.
2. If `MONITOR_ID` is printed, stop the Monitor task:
Call TaskStop(task_id: "<MONITOR_ID>"). If it fails because the task is already gone, that's fine — continue.
3. Branch on `STATUS`:
- `STATUS=WEB` — Tell the user:
✓ html-skills server was inactive (web mode). - `STATUS=INACTIVE` — Tell the user:
✓ html-skills server was already inactive — nothing to stop. - `STATUS=STOPPED` — Tell the user:
✓ html-skills server stopped for this session.
#!/usr/bin/env bash
# html-skills-stop — kills this session's html-skills receiver and cleans up
# its temp files. The Monitor task ID lives in /tmp/html-skills-$SID.monitor-id
# and must be stopped by the agent via TaskStop, since Monitor is a
# Claude Code tool, not a shell concept — the script prints the ID and the
# parent SKILL.md does the TaskStop call.
#
# Output: KEY=VALUE lines.
# STATUS=WEB — nothing was running here; web session.
# STATUS=INACTIVE — no PID file; nothing to kill.
# STATUS=STOPPED — receiver killed, files cleaned. MONITOR_ID printed if
# there was one saved (parent skill should TaskStop it).
set -u
SID="${CLAUDE_CODE_SESSION_ID:-no-session}"
PIDF=/tmp/html-skills-$SID.pid
LOGF=/tmp/html-skills-$SID.log
URLF=/tmp/html-skills-$SID.url
MIDF=/tmp/html-skills-$SID.monitor-id
echo "SID=$SID"
if [ -n "${CLAUDE_CODE_REMOTE_SESSION_ID:-}" ]; then
echo "STATUS=WEB"
exit 0
fi
if [ ! -f "$PIDF" ]; then
echo "STATUS=INACTIVE"
exit 0
fi
# Print the Monitor task ID first (parent SKILL.md will TaskStop it).
if [ -s "$MIDF" ]; then
echo "MONITOR_ID=$(cat "$MIDF")"
fi
# Kill the receiver.
PID=$(cat "$PIDF")
kill "$PID" 2>/dev/null || true
# Clean up files.
rm -f "$PIDF" "$LOGF" "$URLF" "$MIDF"
echo "STATUS=STOPPED"