Implement FORGE-F002 context skill and snapshot commands
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
---
|
||||
name: bortstack-context
|
||||
description: 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. One accepted implementation task uses its own branch and separate worktree. 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. 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`.
|
||||
|
||||
## 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. `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.
|
||||
Reference in New Issue
Block a user