teaceo-debug/DEEP6 / .claude/skills/nt8-build-verify
nt8-build-verify
Verified| File | Kind | Size |
|---|---|---|
| README.md | markdown | 13.6 KB |
| SKILL.md | skill md | 1.5 KB |
| fixes/BRACE_MISMATCH.md | markdown | 5.1 KB |
| fixes/CS0019.md | markdown | 4.7 KB |
| fixes/CS0101.md | markdown | 4.9 KB |
| fixes/CS0103.md | markdown | 4.0 KB |
| fixes/CS0246.md | markdown | 5.4 KB |
| fixes/CS0535.md | markdown | 3.6 KB |
| fixes/CS1061.md | markdown | 5.0 KB |
| fixes/MISSING_ATTRIBUTE.md | markdown | 5.9 KB |
| knowledge.md | markdown | 3.5 KB |
| lib/__init__.py | script | 0 B |
| lib/diagnostics.py | script | 2.3 KB |
| lib/nt8_paths.py | script | 3.8 KB |
| scripts/compile_editor.ps1 | script | 5.1 KB |
| scripts/compile_headless.ps1 | script | 9.2 KB |
| scripts/deploy.ps1 | script | 2.6 KB |
| scripts/fix_loop.ps1 | script | 19.7 KB |
| scripts/fix_router.py | script | 15.8 KB |
| scripts/install_indicator.ps1 | script | 16.0 KB |
| scripts/modal_detect.ps1 | script | 10.9 KB |
| scripts/orchestrator.ps1 | script | 19.8 KB |
| scripts/parse_errors.py | script | 4.6 KB |
| scripts/runtime_check.ps1 | script | 2.9 KB |
| scripts/screenshot_chart.ps1 | script | 7.5 KB |
| scripts/verify_visual.py | script | 8.0 KB |
| scripts/workspace_mutator.py | script | 17.6 KB |
scripts/deploy.ps1
View on GitHub[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[string]$SourceFile,
[switch]$DryRun
)
$ErrorActionPreference = 'Stop'
function Fail {
param([string]$Message)
Write-Error $Message
exit 1
}
try {
$sourceResolved = (Resolve-Path -LiteralPath $SourceFile -ErrorAction Stop).Path
$sourceName = Split-Path -Path $sourceResolved -Leaf
if ($sourceName -ieq 'FootprintBar.cs') {
Fail "Refusing to deploy excluded file: $sourceName"
}
$content = Get-Content -LiteralPath $sourceResolved -Raw
$targetSubdir = 'Indicators'
if ($content -match 'namespace\s+NinjaTrader\.NinjaScript\.Strategies\b') {
$targetSubdir = 'Strategies'
}
elseif ($content -match 'namespace\s+NinjaTrader\.NinjaScript\.AddOns\b') {
$targetSubdir = 'AddOns'
}
$deep6Suffix = ''
if ($content -match 'namespace\s+NinjaTrader\.NinjaScript\.[A-Za-z0-9_]+\.DEEP6\b') {
$deep6Suffix = '\DEEP6'
}
$nt8Custom = Join-Path $env:USERPROFILE 'Documents\NinjaTrader 8\bin\Custom'
$targetDir = Join-Path $nt8Custom ($targetSubdir + $deep6Suffix)
$targetFile = Join-Path $targetDir $sourceName
$sourceHash = (Get-FileHash -LiteralPath $sourceResolved -Algorithm SHA256).Hash
$alreadyDeployed = $false
$hashMatch = $true
if (Test-Path -LiteralPath $targetFile) {
$deployedHash = (Get-FileHash -LiteralPath $targetFile -Algorithm SHA256).Hash
if ($sourceHash -eq $deployedHash) {
$alreadyDeployed = $true
}
}
if (-not $DryRun -and -not $alreadyDeployed) {
if (-not (Test-Path -LiteralPath $targetDir)) {
New-Item -ItemType Directory -Path $targetDir -Force | Out-Null
}
$tmpFile = "$targetFile.tmp"
if (Test-Path -LiteralPath $tmpFile) {
Remove-Item -LiteralPath $tmpFile -Force
}
Copy-Item -LiteralPath $sourceResolved -Destination $tmpFile -Force
Move-Item -LiteralPath $tmpFile -Destination $targetFile -Force
$verifyHash = (Get-FileHash -LiteralPath $targetFile -Algorithm SHA256).Hash
$hashMatch = ($sourceHash -eq $verifyHash)
if (-not $hashMatch) {
Fail "Hash verification failed after deploy: $targetFile"
}
}
$result = [ordered]@{
source = $sourceResolved
target = $targetFile
hash_match = if ($DryRun -or $alreadyDeployed) { $true } else { $hashMatch }
already_deployed = $alreadyDeployed
target_subdir = $targetSubdir
}
Write-Output ($result | ConvertTo-Json -Compress)
exit 0
}
catch {
Fail $_.Exception.Message
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |