Software engineering workflow skill

From AutoByteus/autobyteus-skills · View interactive version

Software engineering workflow skill is an AI agent skill from the GitHub repository AutoByteus/autobyteus-skills. Run a staged software-engineering delivery feedback loop from bootstrap through investigation, requirements, design, runtime review, implementation, API/E2E and executable validation, code review, docs sync, and final handoff with durable artifacts and explicit re-entry.

How to use this skill

Skill file

Software Engineering Workflow Skill

Overview

Run a staged software-engineering delivery workflow for software changes: bootstrap ticket context, investigate and refine requirements, build design and future-state runtime artifacts, drive implementation with one implementation artifact that carries both a stable baseline and live progress tracking, validate behavior with API/E2E and other executable validation evidence appropriate to the system, apply independent code review, synchronize long-lived docs, and finish with explicit user-verified handoff and repository finalization. For medium/large scope, include a full proposed design document organized by data-flow spine inventory, ownership, off-spine concerns, and derived separation of concerns.

This workflow is stage-gated. Do not batch-generate all artifacts by default.

In this skill, future-state runtime call stacks are future-state (to-be) execution models. They are not traces of current (as-is) implementation behavior.

Skill Layout

Terminology

Workflow

Ticket Folder Convention (Project-Local)

Ticket + Worktree Bootstrap (Mandatory First Action)

Workflow State File (Mandatory Enforcement Artifact)

Audible Notifications (Speak Tool, Required)

Execution Model (Strict Stage Gates)

Canonical Stage Sequence (Quick Map)

| Stage | Name | Core Deliverable/Gate | Code Edit Permission |

| --- | --- | --- | --- |

| 0 | Bootstrap + Draft Requirement | Ticket/worktree bootstrap complete (ticket path + if git repo: base branch resolved from tracked remote, remote freshness handled for new bootstrap, dedicated ticket worktree/branch created or reused) + requirements.md = Draft | Locked |

| 1 | Investigation + Triage | investigation-notes.md current + scope triage complete | Locked |

| 2 | Requirements Refinement | requirements.md reaches Design-ready/Refined | Locked |

| 3 | Design Basis | implementation.md solution sketch (Small) or proposed-design.md (Medium/Large) | Locked |

| 4 | Future-State Runtime Call Stack | future-state-runtime-call-stack.md current | Locked |

| 5 | Future-State Runtime Call Stack Review | Go Confirmed (two consecutive clean rounds with no blockers/persisted updates/new use cases) | Locked |

| 6 | Source Implementation + Unit/Integration | Source code + required unit/integration checks complete + no backward-compat/legacy retention + ownership-driven dependency quality preserved + Authoritative Boundary Rule preserved + touched files correctly placed | Unlocked |

| 7 | API/E2E + Executable Validation Gate | executable validation scenarios implemented and acceptance-criteria + spine coverage closure complete | Unlocked |

| 8 | Code Review Gate | Code review decision recorded (Pass/Fail) with <=500 effective-line hard-limit on changed source files only + required >220 delta-gate assessments on changed source files only + data-flow spine inventory/ownership/off-spine concern checks + existing-capability reuse + reusable-owned-structure extraction + shared-structure/data-model tightness + shared-base coherence + repeated-coordination ownership + empty-indirection + scope-appropriate separation of concerns + ownership-driven dependency quality + Authoritative Boundary Rule preservation + file placement within the correct subsystem and folder, with any optional module grouping justified + flat-vs-over-split layout judgment + interface-boundary clarity + naming quality across files/folders/APIs/types/functions/parameters/variables + naming-to-responsibility alignment + no unjustified duplication of code/repeated structures in changed scope + patch-on-patch complexity control + test quality + test maintainability + validation-evidence sufficiency + no-backward-compat/no-legacy checks | Locked |

| 9 | Docs Sync | docs-sync.md current + docs/ updates complete or no-impact rationale recorded | Locked |

| 10 | Final Handoff | Delivery summary ready + explicit user verification -> move ticket to done -> repository finalization into resolved target branch (when git repo) + any applicable release/publication/deployment step completed or explicitly recorded as not required + required post-finalization worktree/branch cleanup complete when applicable + ticket state decision recorded | Locked |

Stage Transition Contract (Enforcement)

| Stage | Exit Condition (Must Be True To Transition) | On Fail/Blocked | Next Stage On Pass |

| --- | --- | --- | --- |

| 0 Bootstrap + Draft Requirement | Ticket/worktree bootstrap is complete, the base branch/worktree decision is recorded, and requirements.md status is Draft | Stay in 0 until bootstrap is complete | 1 |

| 1 Investigation + Triage | investigation-notes.md is current and scope triage (Small/Medium/Large) is recorded | Stay in 1 until investigation evidence is complete | 2 |

| 2 Requirements | requirements.md is Design-ready (or Refined) with requirement/acceptance-criteria coverage maps | Stay in 2 until requirements are design-ready | 3 |

| 3 Design Basis | Design basis artifact is current (implementation.md solution sketch for Small, proposed-design.md for Medium/Large) | Stay in 3 and revise design basis | 4 |

| 4 Future-State Runtime Call Stack | future-state-runtime-call-stack.md is current for in-scope use cases | Stay in 4 and regenerate the future-state runtime call stack | 5 |

| 5 Future-State Runtime Call Stack Review | Future-state runtime call stack review reaches Go Confirmed (two consecutive clean rounds with no blockers, no required persisted artifact updates, and no newly discovered use cases) | Classified re-entry before next review round (Design Impact: 3 -> 4 -> 5, Requirement Gap: 2 -> 3 -> 4 -> 5, Unclear: 1 -> 2 -> 3 -> 4 -> 5) | 6 |

| 6 Source + Unit/Integration | Source implementation complete, required unit/integration checks pass, no backward-compatibility/legacy-retention paths remain in scope, ownership-driven dependencies remain valid (no new unjustified cycles/tight coupling), the Authoritative Boundary Rule remains valid (no new bypass of authoritative boundaries), and touched files sit in the correct folder under the correct owning subsystem | Local issues: stay in 6; classified re-entry for non-local issues (Design Impact: 1 -> 3 -> 4 -> 5 -> 6, Requirement Gap: 2 -> 3 -> 4 -> 5 -> 6, Unclear: 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6) | 7 |

| 7 API/E2E + Executable Validation Gate | executable validation scenarios are implemented and all executable mapped acceptance criteria are Passed (or explicitly Waived by user for infeasible cases), and all relevant executable spines have passing scenario evidence (or explicit N/A rationale) | Blocked on infeasible/no waiver; otherwise re-enter by classification (Local Fix: 6 -> 7, Design Impact: 1 -> 3 -> 4 -> 5 -> 6 -> 7, Requirement Gap: 2 -> 3 -> 4 -> 5 -> 6 -> 7, Unclear: 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7) | 8 |

| 8 Code Review Gate | Code review decision is Pass with all mandatory review checks satisfied (including <=500 effective-line hard-limit on changed source files only + required >220 delta-gate assessments on changed source files only + data-flow spine inventory/ownership/off-spine concern checks + existing-capability reuse + reusable-owned-structure extraction + shared-structure/data-model tightness + shared-base coherence + repeated-coordination ownership + empty-indirection + scope-appropriate separation of concerns + ownership-driven dependency quality + Authoritative Boundary Rule preservation + file placement within the correct subsystem and folder, with any optional module grouping justified + flat-vs-over-split layout judgment + interface/API/query/command/service-method boundary clarity + naming quality across files/folders/APIs/types/functions/parameters/variables + naming-to-responsibility alignment + no unjustified duplication of code/repeated structures in changed scope + patch-on-patch complexity control + test quality + test maintainability + validation-evidence sufficiency + no-backward-compat/no-legacy) | Re-enter by classification (Local Fix: 6 -> 7 -> 8, Validation Gap: 7 -> 8, Design Impact: 1 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8, Requirement Gap: 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8, Unclear: 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8) | 9 |

| 9 Docs Sync | docs-sync.md is current and docs updates are completed, or explicit no-impact rationale is recorded | If docs cannot yet be made truthful, classify and re-enter (Local Fix: 6 -> 7 -> 8 -> 9, Requirement Gap: 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9, Unclear: 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9); stay in 9 (Blocked) only for external docs blockers that do not require upstream artifact changes | 10 |

| 10 Final Handoff | Handoff summary is complete, explicit user completion/verification instruction is received, the ticket has been moved to tickets/done/<ticket-name>/, and, when in a git repository, repository finalization is complete, any applicable release/publication/deployment step is complete or explicitly recorded as not required, and required post-finalization worktree/branch cleanup is complete when applicable | Stay in Stage 10 until the user verifies completion and Stage 10 archival/finalization/cleanup is complete | End |

Transition Matrix (Pass/Fail/Blocked)

| Trigger | Required Transition Path | Notes |

| --- | --- | --- |

| Normal forward pass | 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10 | Use only when each stage gate is Pass. |

| Stage 5 blocker classified Design Impact | 3 -> 4 -> 5 | Use when issue is clearly in spine/ownership/off-spine concern/boundary/naming decisions. |

| Stage 5 blocker classified Requirement Gap | 2 -> 3 -> 4 -> 5 | Use when missing/ambiguous requirement or acceptance criteria is discovered. |

| Stage 5 blocker classified Unclear | 1 -> 2 -> 3 -> 4 -> 5 | Use when root cause is uncertain or cross-cutting and investigation must be refreshed first. |

| Stage 6 failure classified Local Fix | stay in Stage 6 | Fix implementation/tests within Stage 6; do not advance to Stage 7. |

| Stage 6 failure classified Design Impact | 1 -> 3 -> 4 -> 5 -> 6 | Re-open investigation checkpoint, then re-enter design/runtime chain before continuing implementation. |

| Stage 6 failure classified Requirement Gap | 2 -> 3 -> 4 -> 5 -> 6 | Update requirements first, then rerun downstream chain before continuing implementation. |

| Stage 6 failure (Unclear/cross-cutting root cause) | 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 | Re-open Stage 0 controls in the same ticket context, then rerun full chain before continuing implementation. |

| Stage 7 failure classified Local Fix | 6 -> 7 | Update artifacts first, then code fix, then rerun Stage 7 scenarios. |

| Stage 7 failure classified Design Impact | 1 -> 3 -> 4 -> 5 -> 6 -> 7 | Re-open investigation, then re-enter design/runtime chain before retrying Stage 7. |

| Stage 7 failure classified Requirement Gap | 2 -> 3 -> 4 -> 5 -> 6 -> 7 | Update requirements first, then rerun downstream chain. |

| Stage 7 failure (Unclear/cross-cutting root cause) | 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 | Re-open Stage 0 controls in the same ticket context, then rerun full chain. |

| Stage 7 infeasible scenario without user waiver | stay in Stage 7 (Blocked) | Record constraints + compensating evidence; wait for explicit user waiver or environment fix. |

| Stage 8 fail classified Local Fix | 6 -> 7 -> 8 | Apply fix and rerun test gate before re-review. |

| Stage 8 fail classified Validation Gap | 7 -> 8 | Strengthen Stage 7 coverage/evidence first, then rerun code review. |

| Stage 8 fail classified Design Impact | 1 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 | Re-open investigation, then return to design chain before re-review. |

| Stage 8 fail classified Requirement Gap | 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 | Return to requirements then rerun full downstream chain. |

| Stage 8 failure (Unclear/cross-cutting root cause) | 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 | Re-open Stage 0 controls in the same ticket context, then rerun full chain before re-review. |

| Stage 9 blocked docs-sync result classified Local Fix | 6 -> 7 -> 8 -> 9 | Use when docs cannot yet be made truthful until a small concrete implementation or ticket-artifact correction is completed. |

| Stage 9 blocked docs-sync result classified Requirement Gap | 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 | Use when missing or ambiguous intended behavior prevents truthful docs. |

| Stage 9 blocked docs-sync result classified Unclear | 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 | Use when final behavior is too unclear or cross-cutting to document truthfully. |

| Stage 9 blocked by external docs/access issue only | stay in Stage 9 (Blocked) | Use when no upstream artifact changes are needed and the blocker is purely docs-environment or docs-access related. |

| Stage 10 awaiting explicit user verification | stay in Stage 10 (In Progress) | Wait for explicit user completion/verification before moving the ticket to done and starting repository finalization. |

| Stage 10 archival/repository finalization/release-publication-deployment/cleanup blocked | stay in Stage 10 (Blocked) | Record the move/commit/git/release-publication-deployment/cleanup blocker, resolve it, then finish handoff. |

0) Bootstrap Ticket + Capture Draft Requirement

1) Investigation + Understanding Pass + Triage

2) Refine Requirements Document To Design-Ready (Mandatory)

Core Modernization Policy (Mandatory)

Shared Design Principles (Design + Review, Mandatory)

3) Draft The Proposed Design Document

4) Build Future-State Runtime Call Stacks Per Use Case

5) Review Future-State Runtime Call Stacks (Future-State + Architecture + Naming + Cleanliness Gate)

6) Implement Source + Unit/Integration And Track Progress

7) Implement API/E2E And Other Executable Validation And Run Stage 7 Gate (Mandatory)

8) Run Code Review Gate (Mandatory, Post-Testing)

9) Synchronize Project Documentation (Mandatory Post-Testing + Review)

10) Final Handoff

Output Defaults

If the user does not specify file paths, write to a project-local ticket folder in stage order:

These defaults list file-producing stages; gating and handoff rules still follow the full workflow above.

Templates And References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.