Establish Guidelines for Global Project Documentation Consistency
Currently, Spec-Driven Development in this project encourages creating a separate spec subdirectory for each feature or change. However, there is no clear guideline regarding maintaining a unified, consistent global project documentation that covers the overall architecture, conventions, and integration of all specs.
This can lead to fragmentation and make it challenging for contributors to get an overview or ensure documentation consistency across the project.
Proposal:
- Define clear recommendations or policies for maintaining a global documentation file (e.g., SPECIFICATION.md or docs/overview.md) at the project root.
- Describe how individual specs should relate to or be referenced from the global documentation.
- Consider tooling or scripts to help aggregate/validate spec subdirectories and keep the global documentation up to date.
- Optionally, add a section to AGENTS.md or README.md explaining best practices for keeping documentation consistent and aligned across the repository.
Benefits:
- Improves discoverability and onboarding for new contributors.
- Ensures architectural coherence and prevents documentation drift.
- Facilitates large-scale refactoring and cross-cutting changes.
Would the maintainers be open to establishing such guidelines or automation for documentation consistency?
duplicate of #620
I think there is two spec-driven dev approaches:
-
"A single, generative, source-of-truth spec that rebuilds the system": One global documentation describing behavior, and to change the code we would need to change this centralized spec (or documentation) and "rebuild it" and it will re-generated partially or completely the system with the new behavior or updated current behaviour. Sounds to me that this is not the current intent, and we don't have enough agent capacity for this approach yet.
-
"A feature-level spec-first loop where specs serve as the development driver": Drive the feature development cycle using spec-first, developing each feature in a defined cycle spec->plan->task->implement, and then these specs at scale will work more as a development history log than the actually system behavior overview and spec. This is where the spec-kit fits really well for me.
I am not sure if Spec-Kit aim to address the first point, I think it is an amazing tool to work as described in the second approach.
In certain degree this is exactly how companies work with PRDs and TDDs, we still need to keep a doc to describe the system current and overall behaviors.
Would love to get @localden vision on that.
That's an excellent distinction. From my experience, even when following a feature-level, spec-driven process, centralized documentation remains essential. This is particularly true for brownfield projects where both developers and AI need a single source of truth to understand the existing architecture, identify what needs to be modified for a new feature, and adhere to established conventions.
Furthermore, if we intend to maintain these PRDs, it would be far more efficient to use a unified toolset rather than managing them across multiple, separate systems.