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

8.4 KiB

name, description
name description
bortstack-context Manage project context and mission commands for task lifecycle, worktrees, 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

Follow references/task-lifecycle.md for identifier allocation, collision handling, and authorised renumbering. 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 allocating, importing, or merging task records, inventory IDs in the relevant records with scripts/context_audit.py or an equivalent read-only check. Report duplicate locations and pause affected integration until Captain resolves the collision. Never silently renumber historical records or use a global allocator.

Task lifecycle

Use mission as the standard user-facing term for a development task. Read references/mission-commands.md when selecting, briefing, engaging, reporting, or completing missions; it defines missions, mission status, and the MISSION-ID action [options] conversation grammar. Keep technical task IDs, filenames, branch names, and historical records intact. The command interface uses the lifecycle below; it does not create a second state system.

references/task-lifecycle.md owns the states, valid transitions, evidence and approval gates. Its logical states are Created, In Progress, Implementation Complete, Testing, Ready for Review / Integration, Integrated, Verified / Closed, and Blocked / Suspended. Existing records may retain Ready to Finalise for an implementation candidate, Ready for Review for a submitted review, Merged for verified integration, and Closed for accepted completion. Do not map a passing implementation or a Git merge directly to closure. 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.

For application-feature missions, record the authoritative application destination and real-route acceptance evidence in the existing task record before advancing the corresponding gates. A standalone preview may be an accepted Prototype Complete outcome only for an explicitly approved prototype mission; it does not satisfy application-feature implementation, review, integration or closure. Keep isolated checks, real-application manual tests, review submission, Captain-authorised integration, and post-integration combined validation distinct. bortstack-contributor owns the architecture discovery and contributor guidance; this skill owns the state transitions and required records.

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. Implementation Complete or Testing remains separate from review submission and integration. A contributor's completion statement initiates ordinary finalisation under repository policy; Captain approval is required before merging that contributor's PR. Integrated requires combined-application verification, and Verified / Closed requires human acceptance. Blocked / Suspended preserves the branch, worktree, and resumption instructions. Commit, push, merge, rebase, reset, and deployment follow the authority and restrictions in the canonical reference; do not infer integration or deployment authority 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.