This repository is a Backstage scaffolder template that uses Spec Kit and the GitHub Copilot cloud agent to take a new feature for an existing software component from a description to a set of tasks, and optionally to an implementation.
Unlike the project templates, it does not create a new repository. It runs a series of Copilot agent tasks against a component's existing GitHub repository.
The template runs these Spec Kit commands in order. Each one runs as a Copilot agent task, and the template waits for each task to complete before starting the next:
specify: writes a feature specification from the description you enterplan: creates a technical implementation plan for the featurechecklist: generates a quality checklist for the specificationtasks: breaks the plan into tasksanalyze: checks the specification, plan, and tasks for consistency and coverage
If you choose to implement the feature, two more commands run:
implement: implements the tasksconverge: brings the feature artifacts together; the template does not wait for this task to finish
Each task starts from the branch that the previous task worked on, so every step builds on the output of the step before it.
- The Backstage instance has the
scaffolder-backend-module-github-speckitmodule installed, which provides thegithub:speckit:*actions. - The Backstage instance has
@backstage/plugin-scaffolder-backend-module-githubinstalled, which provides thegithub:issues:createaction. - The component's repository already exists on GitHub and has Spec Kit initialized for Copilot.
- The user running the template has a GitHub Copilot Business or Copilot Enterprise subscription. The template asks the user to sign in to GitHub so it can launch Copilot tasks on their behalf.
The spec template asks for, on one page:
- the existing component to add the feature to
- the spec type (feature, bug or doc), a title and a story ("As a ____, I can ____")
- the proposed solution and the acceptance criteria (the
- [ ] ...placeholder must be replaced) - optionally, scope boundaries, dependencies and additional context
Each submission first creates an open GitHub issue in the component's repository, as the requesting user, using github:issues:create. If that fails, the template stops before anything is cloned or generated. The issue URL is passed to /speckit-specify, so the spec is written from the issue. The issue number and link appear in the template outputs.
The spec, plan and work pull requests reference the issue with Refs #N. The template never uses closing keywords and never closes the issue; a person closes it. If a spec has no valid issue number, the plan and work pull requests are still opened and note that issue linkage was not applied.
The other templates ask for:
- optional technical guidance, such as technology choices or constraints, which is sent to
plan - whether Copilot should implement the feature after the tasks are created
The template finds the component's repository by its name in the ServerlessOpsIO GitHub organization, so the repository name must match the component name.
The template can take a long time to run, because each step waits for a Copilot task to finish. If any task ends in a state other than completed, the template stops at that step.
template.yaml: the Backstage scaffolder template definition