spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Integration of Refinement Agent for Spec Kit -> Available and ready to use

Open pssah4 opened this issue 11 months ago โ€ข 3 comments

I created an integration of Refinement Agents to prepare the SpecKit process: https://github.com/pssah4/python-uv-speckit-template/edit/main/README.md

Problem:

User is not able to specify his problem, needs and idea for a solution. User is also not able to give details for a technical planning.

Solution:

I have created a Business Anayst, Requirements Engineer and Architect Agent and integrated them into the Spec Kit workflow. These three can be used very early stage to scope and work thru the exploration and ideation phase of any project. The Business Analyst uses a interview-style chat with the user, the requirements engineer scopes the ideated solution into features.

It could be used before the /speckit.specify to create deep basic understanding of the problem, users, and needs as staring point for the project, its scope, goals and desired maturity (simple test, PoC, MVP). The generated business-analys.md and Features can be used as context for the /specify prompt.

The Architect Agent the again chats with the user to define a target architecture, which could be used as reference for the /speckit.plan prompt. Again, the created ADRs, Arc42 can be used as context for the /plan prompt.

Feel free to use and integrate it into your workflow :-)

๐ŸŽฏ What This Is

Digital Innovation Agents transforms how software is built by providing a structured, agent-based workflow that ensures quality at every stage. Instead of jumping straight into code, projects follow a systematic path:

Business Idea โ†’ Requirements โ†’ Architecture โ†’ GithHub Spec Kit
     โ†“              โ†“              โ†“              
   BA Agent    RE Agent    Architect Agent  

Each agent specializes in one phase, has built-in quality checks, and produces standardized outputs that feed into the next phase.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     INTEGRATED WORKFLOW                             โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                     โ”‚
โ”‚  PHASE 1: Discovery                                                 โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•                                โ”‚
โ”‚                                                                     โ”‚
โ”‚    ๐Ÿ‘” BA Agent Interview                                            โ”‚
โ”‚         โ†“                                                           โ”‚
โ”‚    ๐Ÿ“„ business-analysis.md                                          โ”‚
โ”‚    ๐Ÿ“„ constitution-draft.md  โ†โ”€โ”€ for Spec Kit)                      โ”‚
โ”‚         โ†“                                                           โ”‚
โ”‚    ๐Ÿ“‹ RE Agent                                                      โ”‚
โ”‚         โ†“                                                           โ”‚
โ”‚    ๐Ÿ“„ EPIC-*.md (PoC/MVP)                                           โ”‚
โ”‚    ๐Ÿ“„ FEATURE-*.md + Success Criteria (tech-agnostic)               โ”‚
โ”‚    ๐Ÿ“„ specify-context.md  โ†โ”€โ”€ Handoff Template                      โ”‚
โ”‚                                                                     โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ”‚
โ”‚                                                                     โ”‚
โ”‚  PHASE 2: Spec Kit Specify                                          โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•                                         โ”‚
โ”‚                                                                     โ”‚
โ”‚    /speckit.constitution                                            โ”‚
โ”‚         Input: constitution-draft.md                                โ”‚
โ”‚         โ†’ constitution.md                                           โ”‚
โ”‚                                                                     โ”‚
โ”‚    /speckit.specify [specify-context.md Prompt]                     โ”‚
โ”‚         Input: specify-context.md als Prompt                        โ”‚
โ”‚         โ†’ spec.md                                                   โ”‚
โ”‚                                                                     โ”‚
โ”‚    /speckit.clarify (optional)                                      โ”‚
โ”‚         โ†’ Klรคrt offene Fragen                                       โ”‚
โ”‚                                                                     โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ”‚
โ”‚                                                                     โ”‚
โ”‚  PHASE 3: Architecture                                              โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•                                 โ”‚
โ”‚                                                                     โ”‚
โ”‚    ๐Ÿ—๏ธ Architect Agent                                               โ”‚
โ”‚         Input: spec.md + FEATURE-*.md                               โ”‚
โ”‚         โ†“                                                           โ”‚
โ”‚    ๐Ÿ“„ ADR-*.md                                                      โ”‚
โ”‚    ๐Ÿ“„ ARC42-DOCUMENTATION.md                                        โ”‚
โ”‚    ๐Ÿ“„ ISSUE-*.md (atomic, 1-3 days)                                 โ”‚
โ”‚    ๐Ÿ“„ plan-context.md  โ†โ”€โ”€ NEU (Handoff Template)                   โ”‚
โ”‚                                                                     โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ”‚
โ”‚                                                                     โ”‚
โ”‚  PHASE 4: Spec Kit Plan                                             โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•                                             โ”‚
โ”‚                                                                     โ”‚
โ”‚    /speckit.plan [plan-context.md Prompt]                           โ”‚
โ”‚         Input: ADRs + arc42 als Context                             โ”‚
โ”‚         โ†’ plan.md, research.md, data-model.md, contracts/           โ”‚
โ”‚                                                                     โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ”‚
โ”‚                                                                     โ”‚
โ”‚  PHASE 5: Implementation                                            โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•                                             โ”‚
โ”‚                                                                     โ”‚
โ”‚    OPTION A: Spec Kit                                               โ”‚
โ”‚         /speckit.tasks โ†’ tasks.md                                   โ”‚
โ”‚         /speckit.implement โ†’ Code                                   โ”‚
โ”‚                                                                     โ”‚
โ”‚    OPTION B: Own created ISSUEs (recommended)                       โ”‚
โ”‚         Skip /speckit.tasks                                         โ”‚
โ”‚         Developer Agent arbeitet ISSUE-*.md ab                      โ”‚
โ”‚                                                                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿค– The Five Three Refinement Agents

1. Business Analyst (@business-analyst)

Role: Transform raw ideas into structured business requirements

When to use:

  • Starting a new project from scratch
  • Have a problem but unclear on the solution
  • Need to explore requirements systematically

Input: Raw project idea or problem description
Output: docs/business-analysis/BA-[PROJECT].md

Key Features:

  • Scope detection (Simple Test / PoC / MVP)
  • Structured interviews (5-50 questions based on scope)
  • Jobs-to-be-Done analysis
  • Value proposition development
  • Success metrics definition

2. Requirements Engineer (@requirements-engineer)

Role: Convert business analysis into architect-ready requirements

When to use:

  • Have a business analysis document
  • Need structured epics and features
  • Ready to define technical requirements

Input: Business Analysis document OR direct user input -> select mode und just type "continue"
Output:

  • requirements/epics/EPIC-*.md
  • requirements/features/FEATURE-*.md
  • requirements/handoff/architect-handoff.md

Key Features:

  • Epic creation with hypothesis statements
  • Feature breakdown with acceptance criteria
  • NFR quantification (Performance, Security, Scalability)
  • ASR identification (Architecture-Significant Requirements)
  • Comprehensive architect handoff package

Quality Gate 1 (QG1):

  • โœ… All NFRs quantified (with numbers!)
  • โœ… All ASRs identified and marked (๐Ÿ”ด/๐ŸŸก)
  • โœ… Acceptance criteria testable
  • โœ… Architect handoff complete

3. Architect (@architect)

Role: Design technical architecture and create developer-ready issues

When to use:

  • Requirements are complete (QG1 passed)
  • Need architectural decisions documented
  • Ready to plan implementation

Input: requirements/handoff/architect-handoff.md
Output:

  • docs/decisions/ADR-*.md (Architecture Decision Records in MADR format)
  • docs/arc42/ARC42-DOCUMENTATION.md (arc42 architecture docs)
  • backlog/ISSUE-*.md (Developer-ready issues)
  • backlog/Backlog.md (Single source of truth for work breakdown)

Key Features:

  • Adaptive complexity (Simple Test / PoC / MVP)
  • ADR creation with research (web_search + @azure)
  • arc42 documentation (sections 1-7 for MVP)
  • Atomic issue creation (1-3 days each)
  • System design with Mermaid diagrams

Quality Gate 2 (QG2):

  • โœ… ADRs for all major decisions (MADR format, 3+ options)
  • โœ… arc42 complete for scope
  • โœ… Atomic issues created (clear single responsibility)
  • โœ… Backlog.md created (work overview)
  • โœ… Developer handoff complete

pssah4 avatar Dec 09 '25 08:12 pssah4

will this be added to the official repo or should I pick it up from your repo?

philippfrenzel avatar Feb 03 '26 18:02 philippfrenzel

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 04 '26 00:07 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Aug 04 '26 00:08 github-actions[bot]