launch-game
Launch or relaunch the CopperHead server and client locally for testing and development.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Launch or relaunch the CopperHead server and client locally for testing and development.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Redeploy the CopperHead server to Azure Container Apps using server-settings.azure.json as the config file.
Launch CopperHead bots with tools\launch_bots.py, including count, bot type, and difficulty.
Review and edit all status messages shown in the CopperHead client Play and Observe screens. Extracts messages to a markdown file for editing, then applies changes back to the code.
| name | launch-game |
| description | Launch or relaunch the CopperHead server and client locally for testing and development. |
Use this skill when the user asks to launch, start, run, relaunch, or restart CopperHead locally.
Examples:
Start the CopperHead server and client locally, verify that both are running, and report the correct local URLs to the user.
copperhead-server\main.py, runs on port 8765copperhead-client\, served with python -m http.server 3000copperhead-server\server-settings.json is the default config. copperhead-server\server-settings.local.json is a gitignored local override for development.8765 or 3000 before starting new ones.server-settings.local.json exists, prefer it over server-settings.json.Check for existing listeners on ports 8765 and 3000.
Get-NetTCPConnection -LocalPort 8765,3000 -State Listen -ErrorAction SilentlyContinue |
Select-Object LocalPort, OwningProcess
If the user asked to restart or relaunch, stop those specific process IDs with:
Stop-Process -Id <PID> -Force
Start the server from copperhead-server in detached mode.
Set-Location <project_root>\copperhead-server
if (Test-Path server-settings.local.json) {
python main.py server-settings.local.json
} else {
python main.py
}
Verify the server is listening on port 8765.
Start-Sleep -Seconds 5
Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue
If needed, read the admin token from the detached log output.
Get-ChildItem $env:TEMP\copilot-detached-<shellId>-* -Filter *.log |
ForEach-Object { Get-Content $_.FullName } |
Select-String "admin token"
Start the client from copperhead-client in detached mode.
Set-Location <project_root>\copperhead-client
python -m http.server 3000
Verify the client is listening on port 3000.
Report the local URLs:
http://localhost:3000/?server=ws://localhost:8765/ws/http://localhost:3000/?server=ws://localhost:8765/ws/&admin=<TOKEN> when lobby mode is enabledcopperhead-server\ and copperhead-client\.