Files
bortstack-forge/skills/bortstack-context/SKILL.md
T

6.6 KiB

name, description
name description
bortstack-context Manage project context, task lifecycle, isolated worktrees, design approvals, and safe handoffs in new or existing repositories.

Bortstack Context

Use this skill to bootstrap, reconcile, or operate a project context. It applies to business and personal projects across frameworks. The human project authority is Captain; Codex is Chief of Engineering. Contributor-specific authority belongs to bortstack-contributor when that skill is active. Existing roborto-* skills remain usable during migration; never remove or rewrite them as part of context adoption.

Orientation and authority

Read repository AGENTS.md, docs/PROJECT_OVERVIEW.md, docs/CURRENT_STATE.md, docs/DECISIONS.md, docs/TASKS.md, and docs/HANDOFF.md before task work. Inspect actual code, Git status, branch, and worktrees. Code/configuration proves present behavior; maintained documents record intent; the human's latest explicit instruction controls changes. Report conflicts. Preserve existing context and uncommitted work.

Bootstrap missing records minimally and reconcile existing records without destructive replacement. Overview holds stable purpose and boundaries; current state holds verified facts and limitations; decisions hold accepted durable policy; tasks hold scope, acceptance, dependencies, and status; handoff holds the concise next action and exact candidate state. Never put secrets in these records.

Task IDs and reconciliation

Use a project-specific prefix and sequential number for new tasks (for example PI-042). A repository may specify a historical convention such as FORGE-F###; retain it. Historical identifiers including TASK-001 stay valid. Before importing or merging task records, inventory IDs in both sources with scripts/context_audit.py or an equivalent check, report any repeated identifier with its source locations, and pause that merge until the human resolves the collision. Do not silently renumber historical records. This is a local collision check, not a global allocator.

Task lifecycle

Use the repository's accepted scope and authority. The shared states are In Progress, Ready to Finalise, Ready for Review, Merged, Closed, and Blocked / Suspended. A planned task is not authorised merely because its dependencies are ready. lock on briefs objective, scope, acceptance, dependencies, risks, validation, and unresolved decisions; engage implements the briefed accepted task. Use the repository's current branch policy. For a simple scoped task, direct integration-branch work is valid when the Captain or repository explicitly authorises it, the checkout is clean or explained, no other console is changing that branch, and the task can be kept as a reviewable commit. Use a dedicated branch and separate worktree when required by repository policy, concurrent work, unresolved changes, or risk of mixing tasks. Do not check the same branch out twice or switch another console's worktree.

Before starting another implementation task, audit active worktrees, changes, and handoffs. Previous work must be committed and submitted for review, integrated, or explicitly suspended with its exact state documented. Detect and report unfinished worktrees, uncommitted or untracked files, and missing or incomplete handoffs. Never automatically delete an unfinished worktree. A dedicated branch/worktree is the default unless the repository's current AGENTS.md or Captain's explicit direction authorises direct integration-branch work; preserve task scope and status gates in either mode. An implementation passing automated tests is at most Ready to Finalise. Ready for Review requires the repository's review submission; Merged requires verified integration; Closed requires human acceptance and recorded cleanup. Blocked / Suspended preserves the branch, worktree, and resumption instructions. Commit, push, merge, rebase, reset, and deployment require repository-defined authority; do not infer it from engage.

For authorised direct-branch work, record the active task and starting commit, inspect status before editing, keep unrelated changes untouched, and finish with a scoped diff and validation before committing. Record the resulting commit and pending acceptance in the task and handoff. Do not create a test worktree merely for branch ceremony; use the repository's manual-test adapter only when the task actually needs it. If another task or console changes the checkout, stop and reconcile before continuing. Direct commits do not bypass review, design approval, or human completion gates.

Profiles and design

Record business or personal profile explicitly for new and existing projects. Profile, ownership, branding, contributor access, testing expectations, and deployment expectations are independent choices; business does not imply Bortstack ownership. Do not classify existing repositories automatically. In Forge-managed projects, inspect .bortstack/profile.yaml if present; for a new selection, collect all five project-specific values and use scripts/configure-profile.py from a Forge checkout, or create the same flat record under project rules. Never overwrite an existing profile silently. The record describes policy but grants no access or deployment authority. bortstack-new delegates initial context to this skill; bortstack-contributor consumes this lifecycle.

For design-dependent implementation, record the design reference, version, approval authority/date, and affected task in decisions or task records. An explicit override records who authorised it, when, its scope and rationale. Proceed only with an approved design or recorded explicit override. bortstack-design owns Penpot operations and visual handoffs; Penpot is optional and its absence does not block unrelated context work.

Snapshots and validation

Context owns provisioning and maintenance of scripts/create-chatgpt-snapshot.sh and scripts/testtask.sh in enrolled repositories. Preserve functioning project-specific scripts. Read references/snapshot-commands.md before invoking, provisioning, or changing either. The ZIP shares the current working tree; testtask prepares an isolated exact-state manual-test candidate. They are distinct. A repository without an application runtime may provide a validated source snapshot but must report manual runtime testing as unavailable. Do not claim operational testtask based on a wrapper alone.

Run relevant checks, refresh a test candidate after edits, and document the exact branch/worktree, validation, limitations, and next human action in HANDOFF.md. Never mark a task Closed solely from tests, a snapshot, or a commit.