Files
bortstack-forge/skills/bortstack-context/references/snapshot-commands.md
T

1.5 KiB

Snapshot command contract

Inspect repository scripts and AGENTS.md before use. Preserve a working local implementation.

scripts/create-chatgpt-snapshot.sh creates a portable ZIP from the intended source worktree, including staged, unstaged, and permitted untracked changes. It excludes Git metadata, test worktrees, old snapshots, dependencies, caches, builds, local databases, .env*, keys, and credentials. Audit archive contents before sharing. Report path, source branch, and uncommitted state.

scripts/testtask.sh <repository-task-id|branch-name> prepares or invokes a disposable manual-test candidate for the given task when the repository supports both forms. Determine supported arguments from the repository's script or --help; historical task IDs remain valid. Resolve the identifier to one task, branch, and existing worktree; report unknown, ambiguous, or missing-worktree cases without guessing. Its candidate must match the source branch's tracked changes and permitted untracked files without forcing a commit or checking the same branch out twice. A stale candidate must be refreshed after edits. Runtime startup, readiness, ports, and cleanup are project-specific. Missing engine or runtime means provisioned but blocked, not operational. Never delete unfinished work or unrelated containers.

For new projects, provision both entry points and adapt testtask to the actual stack. For retrofits, inspect and retain working scripts. Keep test artifacts out of Git. Record actual validation and remaining dependencies in handoff.