4.6 KiB
Skill distribution and migration
Canonical source is skills/ in this repository. Only directories with valid SKILL.md are installable. The current version identifier is the Forge Git commit or task branch revision; there is no independent package version yet. Record the source commit when installing or updating. Installer defaults to $CODEX_HOME/skills or ~/.codex/skills, on Linux and Windows. It copies packages by default, requires no administrator rights for a writable user directory, and never overwrites an existing path. --link requests a development symlink and may fail where Windows symlink privileges are unavailable.
Linux: python3 scripts/install-skills.py --list, --dry-run, --install NAME, or --all; sh scripts/install-skills.sh forwards the same arguments. Windows PowerShell: py -3 scripts/install-skills.py --list or ./scripts/install-skills.ps1 --list. Use --dest "path with spaces" for an isolated skills directory. --dry-run plans all implemented skills. Missing and invalid skills fail cleanly. An existing installation conflicts; no force switch exists.
Update procedure: identify and record the target Forge commit, validate and test that revision, inspect the installed package, move its destination to a user-controlled backup, install the selected new package, restart Codex if needed, test activation and compatibility, then delete the backup only after acceptance. On failure, remove the new package and restore the backup. The installer itself never removes old packages.
Migration plan: inventory actual installed roborto-* directories and internal references on each machine; map roborto-project-context to bortstack-context, roborto-new-project to bortstack-new, and roborto-contributor to bortstack-contributor. bortstack-design is new. Preserve context, task, handoff, snapshot, contributor permission, Captain/Commander, and Docker manual-testing behavior. Update internal cross-skill references only after matching implementations exist. Test legacy/new interaction in isolation before exposing both as active, then test Linux installation and JJ's Windows installation separately. Keep old installations until consumer references and user workflows pass; roll back by restoring backups and references. Retire old names only by separate accepted task. FORGE-F001 performs none of this migration.
Existing-project testtask entry point
From a validated Forge checkout, run python3 scripts/install-testtask.py /path/to/existing/repository --dry-run, then omit --dry-run to install. This copies scripts/testtask.sh and scripts/testtask_runner.py into the existing repository; it does not run a generator or change application code. Commit these files in the application repository only under that project's authority. Repeatable updates use --update after inspecting the Forge revision and target diff. The installer refuses an existing script, an altered prior installation, or a missing prior installation for --update. It records file hashes in scripts/.forge-testtask-install.json. Keep a backup and restore it if an update fails application validation.
If scripts/testtask.sh already exists, inspect its behavior and test commands. Retain it if it works. To adopt the Forge runner, agree on a reconciliation that preserves its custom commands in .bortstack/testtask.json, save the old entry point outside the install destinations, then install and validate in a disposable checkout before applying to the real repository. The installer never overwrites the old script automatically.
Each branch worktree must provide .bortstack/testtask.json with an explicit argument array, for example {"command": ["make", "test"]}. The command runs from that worktree root with its existing environment and exit code. Choose the command from the application's documented test workflow; configure required services, dependencies, and environment there. The runner never infers a test command from framework files. It reports unavailable testing when configuration is absent. Task IDs use docs/TASKS.md headings and branch references; exact local branch names work without task records. An existing worktree is required, and the runner never creates one or changes branches. This command executes automated tests; project-specific interactive/manual runtime preparation remains separately documented.
Linux requires Git, Python 3, and a POSIX shell. On Windows use Git Bash or WSL for scripts/testtask.sh, with Python 3 on that shell's PATH; PowerShell alone does not execute the shell entry point. Windows behavior remains to be validated on an actual Windows machine.