OthmanAdi/planning-with-files / skills/i18n/planning-with-files-de
planning-with-files-de
VerifiedPersistente dateibasierte Planung für mehrstufige Arbeit mit KI-Agenten. Hält task_plan.md, findings.md und progress.md auf dem Datenträger; Lebenszyklus-Hooks speisen ausgewählten Planungskontext des Projekts ein. Die automatische Wiederherstellung liest nur die Planungsdateien des Projekts. Nur ein ausdrücklicher Aufruf von session-catchup.py --metadata darf lokale Sitzungsmetadaten desselben Projekts prüfen; --replay darf begrenzte, nonce-gerahmte Auszüge ausgeben. Der optionale Gate-Modus kann nur bei Unterstützung durch den Host eine Fortsetzung anfordern und führt niemals in Markdown angegebene Befehle aus. Der Skill hat keinen Netzwerk-Uploadpfad. Verwenden für Forschung oder Arbeit mit mehr als 5 Tool-Aufrufen.
scripts/check-complete.ps1
View on GitHub# Prüft, ob alle Phasen in task_plan.md abgeschlossen sind
# Immer mit Exit-Code 0 beenden — Status über stdout melden
# Wird vom Stop-Hook aufgerufen, um Aufgabenabschlussstatus zu melden
param(
[string]$PlanFile = "task_plan.md",
[switch]$Validate
)
if ($Validate) {
if (-not (Test-Path -LiteralPath $PlanFile -PathType Leaf)) { Write-Output '[planning-with-files] Plan format invalid: task_plan.md was not found.'; exit 1 }
}
# issue #195: per-invocation opt-out (PLANNING_DISABLED=1) for one-shot/CI
# sessions that share a cwd with a plan but never opted into it.
if ($env:PLANNING_DISABLED -eq '1' -and -not $Validate) { exit 0 }
if (-not $Validate -and -not (Test-Path -LiteralPath $PlanFile)) {
# Automatic gate checks have nothing to report without a plan; the explicit report keeps its notice.
if ($Gate) { exit 0 }
Write-Host '[planning-with-files-de] task_plan.md nicht gefunden — keine aktive Planungssitzung.'
exit 0
}
# Dateiinhalt lesen
try {
$content = Get-Content -LiteralPath $PlanFile -Raw -Encoding UTF8 -ErrorAction Stop
} catch {
Write-Output '[planning-with-files] Plan read error: phase completion unavailable.'
if ($Validate) { exit 1 }
exit 0
}
# Gesamtzahl der Phasen zählen
# Count native statuses inside real phases, excluding fenced examples (#377).
$counts = @{ total = 0; complete = 0; in_progress = 0; pending = 0 }
$phase = $null
$invalid = $false
$activeHeading = ""
$fence = ""
$fenceLength = 0
$malformedHeading = $false
function Complete-Phase {
if ($null -ne $script:phase) {
if ($script:phase.Statuses.Count -ne 1) { $script:invalid = $true }
else {
$state = $script:phase.Statuses[0]
if ($state -ne 'in_progress') { $script:counts[$state]++ }
}
if ($script:phase.Statuses -contains 'in_progress') {
$script:counts.in_progress++
if (-not $script:activeHeading) { $script:activeHeading = $script:phase.Heading }
}
}
$script:phase = $null
}
foreach ($line in (($content -creplace '^\uFEFF', '') -split '\r?\n')) {
if ($fence) {
if ($line -match ('^ {0,3}' + [regex]::Escape($fence) + '{' + $fenceLength + ',}[ \t]*$')) { $fence = "" }
continue
}
if ($line -match '^ {0,3}(`{3,}|~{3,})' -and
($Matches[1][0] -eq '~' -or -not $line.Substring($Matches[0].Length).Contains('`'))) {
$fence = $Matches[1].Substring(0, 1); $fenceLength = $Matches[1].Length
continue
}
if ($line -match '^ {0,3}>') { continue }
if ($line -cmatch '^ {0,3}### Phase(?:[0-9:]|-[0-9])') {
Complete-Phase
$malformedHeading = $true
continue
}
if ($line -cmatch '^ {0,3}### Phase(?:[ \t]|$)') {
Complete-Phase
$counts.total++
$phase = @{ Heading = $line; Statuses = @() }
} elseif ($line -match '^ {0,3}#{1,3}(?:[ \t]|$)') {
Complete-Phase
}
if ($null -ne $phase) {
foreach ($match in [regex]::Matches($line, '\*\*Status:\*\*[ \t]+(pending|in_progress|complete)(?![A-Za-z0-9_])|\[(pending|in_progress|complete)\]')) {
$state = $match.Groups[1].Value
if (-not $state) { $state = $match.Groups[2].Value }
$phase.Statuses += $state
}
}
}
Complete-Phase
$TOTAL = $counts.total
$COMPLETE = $counts.complete
$IN_PROGRESS = $counts.in_progress
$PENDING = $counts.pending
if ($Validate) {
if ($TOTAL -eq 0 -or $invalid -or $fence -or $malformedHeading) {
Write-Output '[planning-with-files] Plan format invalid: use ### Phase headings with exactly one native status per phase.'
exit 1
}
Write-Output ('[planning-with-files] Plan format valid (' + $TOTAL + ' phases).')
exit 0
}
if ($fence -or $malformedHeading) {
Write-Output '[planning-with-files] Plan format error: phase completion unavailable.'
} elseif ($TOTAL -eq 0) {
exit 0
} elseif ($COMPLETE -eq $TOTAL) {
Write-Host ('[planning-with-files-de] Alle Phasen abgeschlossen (' + $COMPLETE + '/' + $TOTAL + '). Wenn der Benutzer zusätzliche Arbeit hat, neue Phasen in task_plan.md hinzufügen, bevor du beginnst.')
} else {
Write-Host ('[planning-with-files-de] Aufgabe läuft (' + $COMPLETE + '/' + $TOTAL + ' Phasen abgeschlossen). progress.md vor dem Stoppen aktualisieren.')
if ($IN_PROGRESS -gt 0) {
Write-Host ('[planning-with-files-de] ' + $IN_PROGRESS + ' Phasen noch in Bearbeitung.')
}
if ($PENDING -gt 0) {
Write-Host ('[planning-with-files-de] ' + $PENDING + ' Phasen ausstehend.')
}
}
exit 0
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |