بنقرة واحدة
gse-task
Execute a task outside standard lifecycle. Triggered by /gse:task.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Execute a task outside standard lifecycle. Triggered by /gse:task.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Deploy the current project to a Hetzner server via Coolify. Adapts to the user's situation: from zero infrastructure (solo) to a pre-configured shared server (training). Triggered by /gse:deploy.
Reload checkpoint, verify worktrees, brief user. Triggered by /gse:resume.
Deploy the current project to a Hetzner server via Coolify. Adapts to the user's situation: from zero infrastructure (solo) to a pre-configured shared server (training). Triggered by /gse:deploy.
Reload checkpoint, verify worktrees, brief user. Triggered by /gse:resume.
Route capitalized solutions to their targets. Triggered by /gse:integrate after compound.
Full GSE-One orchestrator methodology — load when you need the complete invariant text, failure modes, and edge cases beyond the condensed AGENTS.md summary.
| name | gse-task |
| description | Execute a task outside standard lifecycle. Triggered by /gse:task. |
Arguments: $ARGUMENTS
| Flag / Sub-command | Description |
|---|---|
<description> | Free-text description of the task to execute |
--type TYPE | Force artefact type (canonical enum per spec §P6 — Artefact ID allocation): code | requirement | design | test | doc | config | import | spike. Default: inferred from description (see Step 1). |
--complexity N | Override complexity estimate (1-5) |
--no-review | Mark task as not requiring review (for trivial tasks) |
--spike | Create a spike (exploratory experiment). Complexity-boxed (max 3 points), non-deliverable, bypasses REQS/TESTS guardrails, must produce a DEC- |
--help | Show this command's usage summary |
Before executing, read:
.gse/status.yaml — current sprint and lifecycle state.gse/config.yaml — git strategy, complexity budget.gse/backlog.yaml — current sprint backlog (to add the task).gse/profile.yaml — user expertise levelBefore any other work, verify the current sprint is writeable. This preflight implements the Sprint Freeze invariant defined in the orchestrator and the spec.
Read .gse/plan.yaml. If absent (Micro mode or pre-v0.20 projects), skip this step — proceed to Step 1.
If plan.yaml.status == active, proceed to Step 1.
If plan.yaml.status ∈ {completed, abandoned}, the current sprint is frozen. Do NOT write anything to backlog.yaml or status.yaml. Present the Sprint Freeze Gate:
Question: The current sprint (S{NN}) plan status is
{completed|abandoned}— it is frozen. New ad-hoc tasks cannot be added to a frozen sprint.Options:
- Start next sprint now (recommended, default) — I'll run the next-sprint opening sequence: in Lightweight mode
/gse:plan --strategic; in Full mode/gse:collect>/gse:assess>/gse:plan --strategic. Once Sprint S{NN+1} is active, I'll execute your task there.- Cancel — Abort this
/gse:taskinvocation. No changes will be made.- Discuss — Explore the trade-offs of opening a new sprint vs. cancelling.
On option 1:
config.yaml → lifecycle.mode to decide)./gse:plan --strategic completes, re-read .gse/status.yaml → current_sprint (it now holds {NN+1}) and re-read .gse/plan.yaml → status (it now holds active).On option 2: stop execution. No state change.
On option 3: explain the Sprint Freeze invariant briefly ("A delivered sprint is immutable — complementary work goes into a successor sprint, often named 'Sprint N+1 — Complementary tasks'."), then re-present the Gate (options 1-3 only).
$ARGUMENTS--type not provided. The inferred value MUST belong to the canonical enum defined in spec §P6 — Artefact ID allocation: code | requirement | design | test | doc | config | import | spike. Note: the enum describes the class of artefact produced by the TASK, not the type of modification (no feat/fix/refactor — those describe git commit intent, not artefact class; a fix and a feature both produce the code artefact class).
--spike flag → spikecodedoctestspikeconfigimportrequirementdesigncode (the majority case for ad-hoc TASKs that modify production code)--complexity not provided:
.gse/plan.yaml → budget (total / consumed / remaining). In Micro mode (no plan.yaml — already detected in Step 0), skip this step with an Inform note: complexity budget does not apply.Create a new TASK entry in backlog.yaml:
- id: TASK-{next_id}
title: "{description}"
artefact_type: {inferred_type}
complexity: {estimated}
sprint: {current_NN} # integer (not "S{NN}")
status: planned
priority: should # default — ad-hoc tasks rarely 'must'
origin: ad-hoc # aligned with backlog.yaml template `origin` enum
requires_review: {true unless --no-review or complexity <= 1}
traces:
derives_from: []
implements: []
git:
branch: null
branch_status: null
github_issue: null
created: {ISO-8601 timestamp}
updated: {ISO-8601 timestamp}
If artefact_type: spike:
- id: TASK-{next_id}
title: "{description}"
artefact_type: spike
# Spike-specific fields (spec §12.3 — Unified Backlog, artefact_type=spike extensions):
question: "{the technical question to answer}"
complexity_cap: {estimated, max 3}
deliverable: false # cannot be merged to main
outcome: pending # pending | yes | no | partial (after completion)
complexity: {estimated}
sprint: {current_NN}
status: planned
priority: should
origin: ad-hoc
requires_review: false
traces:
derives_from: []
git:
branch: null
branch_status: null
github_issue: null
created: {ISO-8601 timestamp}
updated: {ISO-8601 timestamp}
Spike rules:
it_expertise: beginner, present a Gate before starting: "This is an experiment — the code won't be kept. It's useful to test an idea before committing to it. Should I proceed?"Create a dedicated branch and worktree following the same logic as /gse:produce Step 2:
gse/sprint-{NN}/task/{slug}.worktrees/sprint-{NN}-task-{slug}The git strategy (worktree/branch-only/none) is read from config.yaml.
Config Application Transparency (Inform, spec P7): before creating the first branch or worktree of this ad-hoc task, emit a one-line Inform note labelling the applied git.strategy value and its origin (methodology default vs. user choice), using the same format as /gse:produce Step 2 Config Application Transparency block. Emit ONCE per task invocation — do not repeat if /gse:task was already invoked earlier in the same sprint (deduplicate via status.yaml → last_activity trail).
Record activity start SHA — after the branch/worktree is ready, run git rev-parse HEAD and save the result to .gse/status.yaml → activity_start_sha. This will be used in Step 5.5 (Scope Reconciliation) to compute the task's file-level contribution. Skip in Micro mode or git.strategy: none with empty history.
gse(sprint-{NN}/task): {description}
Sprint: S{NN}
Task: TASK-{ID}
Source: ad-hoc
Before Finalize, compare what was delivered to what was planned for this ad-hoc task. Deterministic, based on version-control history.
Precondition: status.yaml → activity_start_sha was recorded in Step 4. If missing (Micro mode, git.strategy: none with empty history, or session interrupted), skip this step with an Inform note.
For ad-hoc tasks, the "plan" is the task's own description in backlog.yaml (the TASK title, artefact_type, and any Traces: specified at creation). The reconciliation applies the same protocol as /gse:produce Step 4.5:
git diff --name-status {activity_start_sha}..HEAD.Traces: trailers via git log --pretty=format:"%H%n%B%n---".planned_ids from the task's own traces. If the task has no traces (common for spikes and quick fixes), planned_ids = {TASK-{ID}} and any file commit with Task: TASK-{ID} in the trailer is considered aligned.activity_start_sha to empty string after reconciliation.backlog.yaml — the final status depends on requires_review (per the status enum: review = produced, awaiting /gse:review; done = reviewed + fixed):
requires_review: true: status: review, completed_at left empty (set later when the review/fix flow reaches done or reviewed)requires_review: false (complexity <= 1 or --no-review): status: done, completed_at: {timestamp}.gse/plan.yaml → budget.consumed and recompute budget.remaining (skip in Micro mode — no plan.yaml)last_activity, last_activity_timestamp) are maintained centrally by the orchestrator after the activity closes — see plugin/agents/gse-orchestrator.md — section "Sprint Plan Maintenance", and gse-one-implementation-design.md §10.1 — Sprint Plan Lifecycle. No direct status.yaml write from this activity.requires_review: true: task stays at status: review and will be included in next /gse:review (visible in /gse:status → Pending Reviews)requires_review: false: task is ready for deliveryClose the activity with a retrospective list of the Inform-tier decisions made during task execution (per P7 risk classification).