본문으로 건너뛰기
cccskills
무료GitHub에 공개

source-command-server-stop

Stop the ActualChat server

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

source-command-server-stop

Use this skill when the user asks to run the migrated source command server-stop.

Command Template

Stop Server

Stop the ActualChat App.Server for current worktree.

Bash Implementation

#!/bin/bash
PROJECT_PATH="${AC_ProjectPath:-$(pwd)}"

pwsh -NoProfile -c "
    . '$PROJECT_PATH/scripts/Common.ps1'

    \$envFile = Join-Path '$PROJECT_PATH' '.env'
    \$instance = 'dev'; \$port = 7080
    if (Test-Path \$envFile) {
        Get-Content \$envFile | ForEach-Object {
            if (\$_ -match '^urls=.*?(\d+)$') { \$port = [int]\$Matches[1] }
            if (\$_ -match '^CoreSettings__Instance=(.+)$') { \$instance = \$Matches[1] }
        }
    }

    \$pidFile = Join-Path '$PROJECT_PATH' 'tmp' \"server-\$instance.pid\"
    \$proc = \$null

    # Try PID file first
    if (Test-Path \$pidFile) {
        try {
            \$savedPid = [int](Get-Content \$pidFile -Raw).Trim()
            \$proc = [System.Diagnostics.Process]::GetProcessById(\$savedPid)
            if (\$proc.HasExited) { \$proc = \$null }
        } catch { \$proc = \$null }
    }

    # Fallback: find process listening on port
    if (-not \$proc) {
        \$lsof = bash -c \"lsof -i :\$port 2>/dev/null | grep LISTEN | head -1\" 2>\$null
        if (\$lsof) {
            try {
                \$foundPid = [int]((\$lsof -split '\s+')[1])
                \$proc = [System.Diagnostics.Process]::GetProcessById(\$foundPid)
                if (\$proc.HasExited) { \$proc = \$null }
            } catch { \$proc = \$null }
        }
    }

    if (-not \$proc) {
        Write-Host 'No running server found'
        exit 0
    }

    \$procId = \$proc.Id
    Write-Host \"Stopping server \$instance (PID: \$procId)...\"

    # Kill process tree
    function Kill-Tree([int]\$pid) {
        \$children = bash -c \"pgrep -P \$pid 2>/dev/null\" 2>\$null
        if (\$children) {
            foreach (\$c in (\$children -split \"\`n\" | Where-Object { \$_ })) {
                Kill-Tree([int]\$c)
            }
        }
        try {
            \$p = [System.Diagnostics.Process]::GetProcessById(\$pid)
            if (-not \$p.HasExited) { \$p.Kill(); \$p.WaitForExit(3000) | Out-Null }
        } catch {}
    }
    Kill-Tree \$procId
    Remove-Item \$pidFile -ErrorAction SilentlyContinue
    Write-Host \"Stopped (was PID: \$procId)\"
"

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Delete the `-bak` backup branches that `/prepare-merge` leaves behind, local and on origin, once the work they back up has merged. Use when the user says "remove my bak branches", "clean up bak branches", "delete the backups", or "/clean-bak-branches".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Actual-Chat/actual-chat562026년 10월 19일 업데이트

create-pr

무료

Use when work on a branch is finished and the next step is a pull request — "create a PR", "open a PR", "push and PR this", "/create-pr" — when a draft PR should be marked ready for review — "mark the PR ready", "undraft it", "it's ready for review" — or right after either has happened and the team has not been told about it yet.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Actual-Chat/actual-chat562026년 10월 19일 업데이트

Search Google Cloud (GKE) server logs of the DEV environment (dev.voxt.ai). Use when troubleshooting anything that needs the server side of the story — stream stalls, RPC peer changes / reconnects, watchdog closures, mesh/node churn, pod restarts — or when the user says "check GCP logs", "check server logs on dev", or gives a dev.voxt.ai timeline from a client console log.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Actual-Chat/actual-chat562026년 10월 19일 업데이트

Search Google Cloud (GKE) server logs of the PROD environment. Use when troubleshooting a production incident that needs the server side of the story — stream stalls, RPC peer changes / reconnects, watchdog closures, mesh/node churn, pod restarts — or when the user says "check PROD logs", "check production server logs", or gives a production timeline from a client console log.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Actual-Chat/actual-chat562026년 10월 19일 업데이트

memories

무료

What this project has already learned the hard way, and where any new such fact belongs. Two jobs. (1) Routing: this project keeps NO per-project Claude memories — read this before writing anything down, and pick a durable home from the list here. (2) An index, by area, of non-obvious facts worth knowing before you guess: debugging rigs and measurements that lie, iOS/WebKit and the tethered iPhone, the Windows app, production and deployment, and general codebase traps. Use before setting up a browser- or server-driven debugging session, when a bug reproduces only on iPhone, in Safari or in the Windows app, before changing deployment configuration or reading store/crash data, when something behaves unexpectedly and you are about to guess why, and whenever you are tempted to record a fact for later.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Actual-Chat/actual-chat562026년 10월 19일 업데이트

Review the EF Core migrations a release (or a PR) carries against how Voxt is deployed: a rolling update whose new pods wait for the migration Job, while old pods keep serving. Use before cutting a release branch, before merging a PR that adds a migration, or when the user says "check the migrations", "are the migrations safe to ship", "expand/contract check", "/migration-release-check". Reports risks; never blocks, edits or runs anything on prod.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Actual-Chat/actual-chat562026년 10월 19일 업데이트

Actual-Chat의 스킬 모두 보기

이 스킬의 문제 신고