Skip to content

mxyhi/ok-skills / planning-with-files

planning-with-files

Verified

Persistent file-based planning for multi-step AI-agent work. Keeps task_plan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and emits aggregate counts only; --replay may emit bounded nonce-framed excerpts. Optional gated mode can request continuation only when the host supports it and never runs commands declared in Markdown. The skill has no network upload path. Use for research or work needing 5+ tool calls.

FileKindSize
SKILL.mdskill md12.6 KB
references/examples.mdmarkdown4.4 KB
references/reference.mdmarkdown8.3 KB
scripts/attest-plan.ps1script21.1 KB
scripts/attest-plan.shscript13.3 KB
scripts/check-complete.ps1script12.6 KB
scripts/check-complete.shexecutablescript13.4 KB
scripts/gate-stop.shexecutablescript1.4 KB
scripts/init-session.ps1script18.0 KB
scripts/init-session.shexecutablescript15.3 KB
scripts/inject-plan.pyscript66.0 KB
scripts/inject-plan.shexecutablescript61.6 KB
scripts/ledger-summary.shexecutablescript6.5 KB
scripts/plan-doctor.shexecutablescript9.0 KB
scripts/resolve-plan-dir.ps1script10.8 KB
scripts/resolve-plan-dir.shexecutablescript15.3 KB
scripts/session-catchup.pyexecutablescript36.4 KB
scripts/set-active-plan.ps1executablescript17.9 KB
scripts/set-active-plan.shexecutablescript15.5 KB
scripts/skill-hook.shexecutablescript19.3 KB
templates/analytics_findings.mdmarkdown1.8 KB
templates/analytics_task_plan.mdmarkdown2.5 KB
templates/findings.mdmarkdown1.1 KB
templates/loop.mdmarkdown2.1 KB
templates/progress.mdmarkdown1.5 KB
templates/task_plan.mdmarkdown2.2 KB

scripts/gate-stop.sh

View on GitHub
#!/bin/sh
# planning-with-files: Stop-hook dispatcher for the v3 completion gate.
#
# Thin wrapper: discover check-complete.sh (sibling first, then the known
# install paths) and run it with --gate, passing the Stop hook's stdin JSON
# through so check-complete can read stop_hook_active and apply the gate
# decision table. check-complete in --gate mode is the host-aware termination
# oracle (W1A); without --gate it keeps the legacy advisory echo behavior.
#
# Always exits with check-complete's exit code. In legacy mode (no .mode file)
# check-complete --gate never blocks, so the Stop event proceeds exactly as v2.

set -u

# 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.
[ "${PLANNING_DISABLED:-}" = "1" ] && exit 0

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd 2>/dev/null)" || SCRIPT_DIR="."

TARGET="${SCRIPT_DIR}/check-complete.sh"
if [ ! -f "$TARGET" ] && [ -n "${HOME:-}" ]; then
    # ${HOME:-} keeps set -u from aborting the substitution in CI/Docker images
    # where HOME is unset; without the guard the shell exits before the gate runs.
    TARGET=$(ls "${HOME}/.claude/skills/planning-with-files/scripts/check-complete.sh" \
                "${HOME}/.claude/plugins/marketplaces/planning-with-files/scripts/check-complete.sh" \
                2>/dev/null | head -1)
fi

[ -n "${TARGET:-}" ] && [ -f "$TARGET" ] || exit 0

sh "$TARGET" --gate
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall