Skip to content

teaceo-debug/DEEP6 / .claude/skills/nt8-build-verify

nt8-build-verify

Verified

FileKindSize
README.mdmarkdown13.6 KB
SKILL.mdskill md1.5 KB
fixes/BRACE_MISMATCH.mdmarkdown5.1 KB
fixes/CS0019.mdmarkdown4.7 KB
fixes/CS0101.mdmarkdown4.9 KB
fixes/CS0103.mdmarkdown4.0 KB
fixes/CS0246.mdmarkdown5.4 KB
fixes/CS0535.mdmarkdown3.6 KB
fixes/CS1061.mdmarkdown5.0 KB
fixes/MISSING_ATTRIBUTE.mdmarkdown5.9 KB
knowledge.mdmarkdown3.5 KB
lib/__init__.pyscript0 B
lib/diagnostics.pyscript2.3 KB
lib/nt8_paths.pyscript3.8 KB
scripts/compile_editor.ps1script5.1 KB
scripts/compile_headless.ps1script9.2 KB
scripts/deploy.ps1script2.6 KB
scripts/fix_loop.ps1script19.7 KB
scripts/fix_router.pyscript15.8 KB
scripts/install_indicator.ps1script16.0 KB
scripts/modal_detect.ps1script10.9 KB
scripts/orchestrator.ps1script19.8 KB
scripts/parse_errors.pyscript4.6 KB
scripts/runtime_check.ps1script2.9 KB
scripts/screenshot_chart.ps1script7.5 KB
scripts/verify_visual.pyscript8.0 KB
scripts/workspace_mutator.pyscript17.6 KB

lib/diagnostics.py

View on GitHub
import dataclasses
import datetime
import json
import pathlib
import shutil
import time
import uuid


@dataclasses.dataclass
class CompileError:
    code: str
    message: str
    file: str
    line: int
    col: int
    severity: str


@dataclasses.dataclass
class FixResult:
    error: CompileError
    fix_applied: str
    diff: str
    success: bool
    rollback_needed: bool


def generate_run_id() -> str:
    now = datetime.datetime.now()
    hex_suffix = uuid.uuid4().hex[:4]
    return f"bv-{now.strftime('%Y%m%d')}-{now.strftime('%H%M%S')}-{hex_suffix}"


def parse_sentinel(line: str):
    prefix = "[COMPILE-RESULT] "
    if not line.startswith(prefix):
        return None

    payload = line[len(prefix) :].strip()
    if not payload:
        return None

    parts = payload.split(maxsplit=1)
    status = parts[0]
    if len(parts) == 1:
        return {"status": status}

    detail = parts[1]
    if status == "SUCCESS":
        return {"status": "SUCCESS", "timestamp": detail}
    if status == "FAILED":
        return {"status": "FAILED", "reason": detail}
    return {"status": status, "detail": detail}


class RunArtifacts:
    def __init__(self, base_dir: str = "./artifacts"):
        self.run_id = generate_run_id()
        self.run_dir = pathlib.Path(base_dir) / self.run_id
        self.run_dir.mkdir(parents=True, exist_ok=True)

    def save_json(self, name: str, data: dict) -> pathlib.Path:
        path = self.run_dir / f"{name}.json"
        path.write_text(json.dumps(data, indent=2, default=str))
        return path

    def save_text(self, name: str, text: str) -> pathlib.Path:
        path = self.run_dir / name
        path.write_text(text)
        return path

    def save_screenshot(self, name: str, source_path: str) -> pathlib.Path:
        dest = self.run_dir / name
        shutil.copy2(source_path, dest)
        return dest

    def get_run_dir(self) -> pathlib.Path:
        return self.run_dir


class Timer:
    def __init__(self, phase_name: str):
        self.phase_name = phase_name
        self.elapsed_ms = 0

    def __enter__(self):
        self._start = time.time()
        return self

    def __exit__(self, *args):
        self.elapsed_ms = int((time.time() - self._start) * 1000)


EXIT_CODES = {
    "SUCCESS": 0,
    "ERRORS": 1,
    "INFRASTRUCTURE": 2,
    "MAX_ITERATIONS": 3,
}
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: 197kUpdated 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