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

scripts/runtime_check.ps1

View on GitHub
[CmdletBinding()]
param(
    [Parameter(Mandatory = $true)]
    [string]$ClassName,

    [int]$WindowSeconds = 10,

    [string]$LogFile
)

$ErrorActionPreference = "Stop"

$logDir = Join-Path $env:USERPROFILE "Documents\NinjaTrader 8\log"

if (-not $LogFile) {
    $today = Get-Date -Format "yyyyMMdd"
    if (Test-Path $logDir) {
        $logFiles = Get-ChildItem $logDir -Filter "log.$today.*.txt" -ErrorAction SilentlyContinue |
            Sort-Object LastWriteTime -Descending
        if ($logFiles.Count -gt 0) {
            $LogFile = $logFiles[0].FullName
        }
    }
}

if (-not $LogFile -or -not (Test-Path -LiteralPath $LogFile)) {
    $result = @{
        runtime_errors_found = 0
        errors               = @()
        check_window_seconds = $WindowSeconds
        log_status           = "log_not_found"
    }
    Write-Output ($result | ConvertTo-Json -Depth 5 -Compress)
    exit 0
}

$cutoff = (Get-Date).AddSeconds(-$WindowSeconds)
$errors = @()
$lines = Get-Content -LiteralPath $LogFile -Tail 500 -ErrorAction SilentlyContinue

function Get-LogTimestamp {
    param([string]$Line)

    if ($Line -match '^(\d{4}-\d{2}-\d{2})\s+(\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?)') {
        $timestampText = "$($Matches[1]) $($Matches[2])"
        foreach ($format in @('yyyy-MM-dd HH:mm:ss.fff', 'yyyy-MM-dd HH:mm:ss')) {
            try {
                return [datetime]::ParseExact($timestampText, $format, $null)
            } catch {
            }
        }
    }

    return $null
}

$currentException = $null

foreach ($line in $lines) {
    $lineTime = Get-LogTimestamp -Line $line
    $isWithinWindow = $true

    if ($lineTime) {
        $isWithinWindow = $lineTime -ge $cutoff
    }

    if ($currentException -and $lineTime -and $line -notmatch '^\s') {
        $errors += [pscustomobject]$currentException
        $currentException = $null
    }

    if (-not $currentException -and $isWithinWindow) {
        if ($line -match [regex]::Escape($ClassName) -and ($line -match 'Exception|Error|OnBarUpdate|OnStateChange|NullReference|IndexOutOfRange')) {
            $currentException = [ordered]@{
                timestamp  = $lineTime
                exception  = $line.Trim()
                stacktrace = ""
            }
            continue
        }
    }

    if ($currentException) {
        if ($line -match '^\s+at\s' -or $line -match '^\s+---' -or $line -match '^\s+in\s') {
            $currentException.stacktrace += $line.TrimEnd() + "`n"
            continue
        }

        if ($line -notmatch '^\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}') {
            $currentException.stacktrace += $line.TrimEnd() + "`n"
            continue
        }
    }
}

if ($currentException) {
    $errors += [pscustomobject]$currentException
}

$result = @{
    runtime_errors_found = $errors.Count
    errors               = $errors
    check_window_seconds = $WindowSeconds
    log_file             = $LogFile
}

Write-Output ($result | ConvertTo-Json -Depth 5 -Compress)
exit 0
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