원클릭으로
happytrails-stop
Stop the active HappyTrails session and shut down the server
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Stop the active HappyTrails session and shut down the server
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | happytrails-stop |
| description | Stop the active HappyTrails session and shut down the server |
| invocable_by | ["user"] |
Read <CWD>/.happytrails/.active to get the log file path.
If the file does not exist, tell the user there is no active HappyTrails session.
Derive the session directory as the parent of the log file path
(e.g., if .active contains /project/.happytrails/12345/log.jsonl,
the session directory is /project/.happytrails/12345).
Read <SESSION_DIR>/.server.pid to get the server process ID.
If the file does not exist, or the PID is not running (kill -0 <PID> fails),
tell the user the server is already stopped and remove the stale .active file:
rm -f <CWD>/.happytrails/.active
Send SIGTERM to stop the server (it handles cleanup automatically):
kill <PID>
Do NOT remove the hook — it is managed by the plugin and reused across sessions.
Confirm to the user that capture has stopped.