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

Sample Guidance on how to version control "context" within the repository

Open agonzalez2014 opened this issue 1 year ago β€’ 9 comments

As part of "context or requirement gathering", a particular solution or system may range in complexity. For more complex systems, I'd like to propose and ideate with the team on how this could be organized as part of the repository as part of a "context" directory. This would transition providing the "prompt" for the /specify, /plan and /tasks/ operations away from typing it out (or copying it) into the command, and instead to reference or attach the relevant markdown file(s)

I'll provide a sample of what I recently did for one a project I worked on. This allowed me to cherry pick what context was relevant for me to provide to the AI Agent when going through design exploration, design evaluation, producing an implementation plan, and then iterating on that plan.

context/
β”œβ”€β”€ high-level-components.md
β”œβ”€β”€ business/
β”‚   β”œβ”€β”€ capabilities/
β”‚   β”‚   β”œβ”€β”€ business-objectives.md
β”‚   β”‚   └── core-business-functions.md
β”‚   β”œβ”€β”€ constraints/
β”‚   β”‚   β”œβ”€β”€ budget.md
β”‚   β”‚   β”œβ”€β”€ organizational.md
β”‚   β”‚   └── timelines.md
β”‚   └── stakeholders/
β”‚       β”œβ”€β”€ personas.md
β”‚       └── requirements.md
β”‚
β”œβ”€β”€ system/
β”‚   β”œβ”€β”€ capabilities.md
β”‚   β”œβ”€β”€ constraints/
β”‚   β”‚   β”œβ”€β”€ compliance-requirements.md
β”‚   β”‚   └── technical-constraints.md
β”‚   β”œβ”€β”€ interfaces/
β”‚   β”‚   β”œβ”€β”€ external-systems.md
β”‚   β”‚   └── integration-points.md
β”‚   └── quality-attributes/
β”‚       β”œβ”€β”€ maintainability.md
β”‚       β”œβ”€β”€ performance.md
β”‚       β”œβ”€β”€ scalability.md
β”‚       └── security.md
β”‚
β”œβ”€β”€ application/
β”‚   β”œβ”€β”€ capabilities/
β”‚   β”‚   β”œβ”€β”€ functional-requirements.md
β”‚   β”‚   └── non-functional-requirements.md
β”‚   └── constraints/
β”‚       β”œβ”€β”€ constraints.md
β”‚       └── service-limitations.md

agonzalez2014 avatar Sep 03 '25 14:09 agonzalez2014

I would suggest adding user journeys and value streams to this structure - potentially under application/ so that each feature is not just documented for itself but also in how it fits into the overall value creation process for the product / service.

sharath-satish-msft avatar Sep 04 '25 04:09 sharath-satish-msft

#55

MDfly7 avatar Sep 07 '25 11:09 MDfly7

#36

MDfly7 avatar Sep 07 '25 11:09 MDfly7

@localden I absolutely love this idea for both greenfield and brownfield projects. An overall context has proven to be incredibly useful. The requirement to provide the overall project goals as the first β€œfeature” work feels a bit off.

adam-paterson avatar Sep 08 '25 07:09 adam-paterson

#55

mdcc7844-art avatar Jan 23 '26 06:01 mdcc7844-art

#3

mdcc7844-art avatar Jan 23 '26 06:01 mdcc7844-art

#55

mdcc7844-art avatar Feb 18 '26 06:02 mdcc7844-art

#1110 #111

mdcc7844-art avatar Feb 18 '26 06:02 mdcc7844-art

Closing as resolved-by-convention: context/ docs are ordinary version-controlled repo content the agent consults during exploration β€” no new tooling needed

mnriem avatar Jul 15 '26 23:07 mnriem