Skip to content

hoatv2211/GameStudio-CodexKIT / skills/cpp-server-crash-triage

cpp-server-crash-triage

Verified

Use when triaging a C++ game server crash, dump, access violation, segmentation fault, stack trace, symbols, or build identity into a stable signature and ranked root-cause plan.

FileKindSize
SKILL.mdskill md3.5 KB
agents/openai.yamlconfig259 B
references/commands.mdmarkdown1.5 KB
scripts/crash_triage.pyscript1.5 KB

scripts/crash_triage.py

View on GitHub
# Generated by scripts/sync_skill_resources.py. Do not edit manually.

from __future__ import annotations

import hashlib
import re
from typing import Any


ADDRESS_PREFIX = re.compile(r"^\s*0x[0-9a-fA-F]+\s+")


def triage_crash(payload: dict[str, Any]) -> dict[str, Any]:
    frames = payload.get("frames") if isinstance(payload.get("frames"), list) else []
    normalized_frames = [ADDRESS_PREFIX.sub("", str(frame)).strip() for frame in frames]
    signature_source = "\n".join(
        [str(payload.get("build_id", "")), str(payload.get("exception", "")), *normalized_frames]
    )
    signature = hashlib.sha256(signature_source.encode("utf-8")).hexdigest()
    hypotheses: list[str] = []
    exception = str(payload.get("exception", "")).casefold()
    if "access_violation" in exception or "segmentation" in exception:
        hypotheses.append("invalid memory access near the first application frame")
    if not payload.get("symbols_loaded", False):
        hypotheses.append("load matching symbols before assigning source-line blame")
    if not hypotheses:
        hypotheses.append("inspect the first application-owned frame and preceding state")
    return {
        "status": "PASS" if normalized_frames else "BLOCKED",
        "signature": signature,
        "build_id": payload.get("build_id"),
        "exception": payload.get("exception"),
        "normalized_frames": normalized_frames,
        "symbols_loaded": bool(payload.get("symbols_loaded", False)),
        "ranked_hypotheses": hypotheses,
    }
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall