Objective
Create an agentic workflow (.github/workflows/spec-kit-execute.md) that automates the spec-kit implementation process, reading specifications from .specify/specs/ and executing pending work.
Context
The workflow should mimic the spec-kit /speckit.implement command but run as an automated GitHub Actions workflow. It needs to:
- Detect pending specifications that haven't been implemented
- Execute the task breakdown systematically
- Handle dependencies and parallel execution
- Report progress and errors
Implementation Steps
Create workflow file .github/workflows/spec-kit-execute.md:
---name: Spec-Kit Executedescription: Execute pending spec-kit specificationson:
schedule:
- cron: '0 */6 * * *'# Every 6 hoursworkflow_dispatch:
engine: copilottools:
github:
mode: remotetoolsets: [default]---# Execute Spec-Kit Specifications
Your task is to find and execute pending specifications in the `.specify/specs/` directory.
## Process1. Check `.specify/specs/` for feature directories
2. For each feature directory:
- Check if `spec.md` exists
- Check if `plan.md` exists
- Check if `tasks.md` exists
- Check if implementation is complete (look for completion markers)
3. For features with complete spec/plan/tasks but incomplete implementation:
- Read the constitution from `.specify/memory/constitution.md`- Read the specification from `spec.md`- Read the implementation plan from `plan.md`- Read the task breakdown from `tasks.md`- Execute tasks in order, respecting dependencies
- Mark parallel tasks with [P] for concurrent execution where possible
- Create implementation files according to the plan
- Run tests and validation after each user story
4. Report on what was implemented
5. Create a pull request with the implementation
## Guidelines- Follow the constitution principles strictly
- Respect task dependencies and ordering
- Test incrementally after each user story
- Handle errors gracefully and report issues
- Create clear commit messages for each logical unit of work
Compile the workflow:
Test the workflow:
- Create a test specification in
.specify/specs/001-test-feature/ - Run the workflow manually via
workflow_dispatch - Verify it detects and processes the specification
Files to Create/Modify
- Create:
.github/workflows/spec-kit-execute.md - Create:
.github/workflows/spec-kit-execute.lock.yml (via make recompile)
Acceptance Criteria
References
AI generated by Plan Command for #5761
Objective
Create an agentic workflow (
.github/workflows/spec-kit-execute.md) that automates the spec-kit implementation process, reading specifications from.specify/specs/and executing pending work.Context
The workflow should mimic the spec-kit
/speckit.implementcommand but run as an automated GitHub Actions workflow. It needs to:Implementation Steps
Create workflow file
.github/workflows/spec-kit-execute.md:Compile the workflow:
Test the workflow:
.specify/specs/001-test-feature/workflow_dispatchFiles to Create/Modify
.github/workflows/spec-kit-execute.md.github/workflows/spec-kit-execute.lock.yml(viamake recompile)Acceptance Criteria
workflow_dispatchReferences
.github/workflows/Related to [plan] Integrate GitHub spec-kit for Spec-Driven Development workflow #5767