Skip to content

Commit 7fd65f2

Browse files
ryderstormclaude
andauthored
docs: enhance README structure and add workflow improvements (#16)
* docs: refocus workflow guidance and tooling notes - reframe the README around the SDD prompt lifecycle and artifacts - document MCP prompt support behaviors across popular IDE and CLI setups * feat: add health check for mcp * build(linter): centralize markdownlint configuration Move markdownlint rule configuration from inline pre-commit hook arguments to a dedicated .markdownlint.yaml file for better maintainability and adherence to standard practices. This also allows other tooling to pick up on the markdown config. Changes: - Create .markdownlint.yaml with disabled rules (MD013, MD024, MD033, MD034, MD041) - Remove --disable arguments from markdownlint-fix hook in .pre-commit-config.yaml - Maintain existing exclusions for CHANGELOG.md and LICENSE This improves configuration management without changing linting behavior. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: enhance README header with badges and improved formatting Add centered header layout with tagline and multiple badges including CI status, GitHub stars, and documentation links. Improve visual presentation and project discoverability. * docs: enhance README structure with highlights and workflow guidance Add comprehensive overview sections to improve first-time user experience and clarify the relationship between prompts and optional MCP tooling. Changes: - Add "Highlights" section summarizing key value propositions - Insert "Prompt Workflow" section with numbered workflow steps - Add "How does it work?" explanation of the prompt-driven approach - Include "Workflow Essentials" with practical getting-started steps - Clarify that MCP is an optional integration layer - Improve link formatting consistency throughout document These additions provide better information architecture and help users understand the workflow before diving into detailed implementation stages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: minor tweak --------- Co-authored-by: Claude <[email protected]>
1 parent 9a6d6d6 commit 7fd65f2

File tree

5 files changed

+166
-55
lines changed

5 files changed

+166
-55
lines changed

.markdownlint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Default state for all rules
2+
default: true
3+
4+
# Path to configuration file to extend
5+
extends: null
6+
7+
# Line length
8+
MD013: false
9+
10+
# Duplicate headings
11+
MD024: false
12+
13+
# Inline HTML
14+
MD033: false
15+
16+
# Bare URLs
17+
MD034: false
18+
19+
# First line in file must be a top-level heading
20+
MD041: false

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ repos:
2020
rev: v0.45.0
2121
hooks:
2222
- id: markdownlint-fix
23-
args:
24-
- "--disable"
25-
- "MD013" # Line length
26-
- "MD024" # Duplicate headings
27-
- "MD033" # Inline HTML
28-
- "MD034" # Bare URLs
29-
- "MD041" # First line in file must be a top-level heading
30-
- "--"
3123
exclude: "CHANGELOG.md|LICENSE"
3224

3325
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook

README.md

Lines changed: 94 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,76 @@
1-
# Spec Driven Development (SDD) MCP
1+
<div align="center">
2+
<img src="./misc/header.png" alt="Spec Driven Development header" width="400"/>
3+
<h1>🧭 Spec-Driven Development Workflow</h1>
4+
<h3><em>Build predictable software with a repeatable AI-guided workflow.</em></h3>
5+
</div>
26

3-
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
47

5-
<img alt="Spec Driven Development MCP header" src="./misc/header.png" width="400">
8+
<p align="center">
9+
<strong>Spec-driven development tools for collaborating with AI agents to deliver reliable outcomes.</strong>
10+
</p>
611

7-
## Why does this exist?
12+
<p align="center">
13+
<a href="https://github.com/liatrio-labs/spec-driven-workflow-mcp/actions/workflows/ci.yml"><img src="https://github.com/liatrio-labs/spec-driven-workflow-mcp/actions/workflows/ci.yml/badge.svg" alt="CI Status"/></a>
14+
<a href="https://github.com/liatrio-labs/spec-driven-workflow-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License"/></a>
15+
<a href="https://github.com/liatrio-labs/spec-driven-workflow-mcp/stargazers"><img src="https://img.shields.io/github/stars/liatrio-labs/spec-driven-workflow-mcp?style=social" alt="GitHub stars"/></a>
16+
<a href="docs/operations.md"><img src="https://img.shields.io/badge/docs-Operations-blue" alt="Documentation"/></a>
17+
</p>
818

9-
This project provides a ubiquitous framework for spec driven development (SDD) that can be used anywhere an AI agent is used as a collaborator.
19+
## Highlights
1020

11-
MCP technology provides a standard way to represent and exchange information between AI agents, and this framework provides a way to use that information to guide the process of refining and implementing specifications of all kinds. Using MCP allows users to take advantage of the framework with whatever AI tool and AI model they choose, in whatever workflow they prefer.
21+
- **Prompt-first workflow:** Use curated prompts to go from idea → spec → task list → implementation-ready backlog.
22+
- **Predictable delivery:** Every step emphasizes demoable slices, proof artifacts, and collaboration with junior developers in mind.
23+
- **Bonus MCP tooling:** Optionally pair the workflow with an MCP server for automation inside modern AI clients.
1224

13-
## Goals
25+
## Why Spec-Driven Development?
1426

15-
- **Simple:** Easy to use and understand with transparent access to the underlying tools and processes.
16-
- **Ubiquitous:** Can be used anywhere an AI agent is used as a collaborator.
17-
- **Reliable:** Reliable and can be trusted to deliver consistent results.
18-
- **Flexible:** Can be used with any AI tool and AI model inside any workflow.
19-
- **Scalable:** Can be used with any size of project.
27+
Spec-Driven Development (SDD) keeps AI collaborators and human developers aligned around a shared source of truth. This repository packages a lightweight, prompt-centric workflow that turns an idea into a reviewed specification, an actionable plan, and a disciplined execution loop. By centering on markdown artifacts instead of tooling, the workflow travels with you—across projects, models, and collaboration environments.
2028

21-
Future functionality will include:
29+
MCP technology remains available as an optional integration, but the heart of the project is the trio of prompts that guide teams from idea to demoable outcomes with consistent artifacts.
2230

23-
- User-defined output formats (Markdown task list, Jira objects via Atlassian MCP, GitHub issues, etc.)
24-
- Ability to customize the prompts used to drive the SDD workflow
25-
- TBD
31+
## Guiding Principles
32+
33+
- **Clarify intent before delivery:** The spec prompt enforces clarifying questions so requirements are explicit and junior-friendly.
34+
- **Ship demoable slices:** Every stage pushes toward thin, end-to-end increments with clear demo criteria and proof artifacts.
35+
- **Make work transparent:** Tasks live in versioned markdown files so stakeholders can review, comment, and adjust scope anytime.
36+
- **Progress one slice at a time:** The management prompt enforces single-threaded execution to reduce churn and unfinished work-in-progress.
37+
- **Stay automation ready:** While SDD works with plain Markdown, the prompts are structured for MCP, IDE agents, or other AI integrations.
38+
39+
## Prompt Workflow
40+
41+
All prompts live in `prompts/` and are designed for use inside your preferred AI assistant.
42+
43+
1. **`generate-spec`** (`prompts/generate-spec.md`): Ask clarifying questions, then author a junior-friendly spec with demoable slices.
44+
2. **`generate-task-list-from-spec`** (`prompts/generate-task-list-from-spec.md`): Transform the approved spec into actionable parent tasks and sub-tasks with proof artifacts.
45+
3. **`manage-tasks`** (`prompts/manage-tasks.md`): Coordinate execution, update task status, and record outcomes as you deliver value.
46+
47+
Each prompt writes Markdown outputs into `tasks/`, giving you a lightweight backlog that is easy to review, share, and implement.
2648

2749
## How does it work?
2850

29-
The MCP is driven by basic Markdown files that function as prompts for the AI agent. Users can reference the specific MCP tools in their prompts to use specific flows within the SDD workflow. Users can manage the context of the AI by using the tools of their existing workflows (GitHub CLI, Atlassian MCP, etc.). The AI agent can use the tools of the user's existing workflows to perform actions (e.g., create a new issue, update an existing issue, etc.)
51+
The workflow is driven by Markdown prompts that function as reusable playbooks for the AI agent. Reference the prompts directly, or invoke them via supported tooling, to keep the AI focused on structured outcomes. Users can manage context with their existing workflows (GitHub CLI, Atlassian MCP, etc.), and optionally let the MCP server automate portions of the process.
52+
53+
## Workflow Overview
54+
55+
Three prompts in `/prompts` define the full lifecycle. Use them sequentially to move from concept to completed work.
56+
57+
### Stage 1 — Generate the Spec ([prompts/generate-spec.md](./prompts/generate-spec.md))
58+
59+
- Directs the AI assistant to use clarifying questions with the user before writing a Markdown spec.
60+
- Produces `/tasks/000X-spec-<feature>.md` with goals, demoable units of work, functional/non-goals, metrics, and open questions.
61+
62+
### Stage 2 — Generate the Task List ([prompts/generate-task-list-from-spec.md](./prompts/generate-task-list-from-spec.md))
63+
64+
- Reads the approved spec, inspects the repo for context, and drafts parent tasks first.
65+
- On confirmation from the user, expands each parent task into sequenced subtasks with demo criteria, proof artifacts, and relevant files.
66+
- Outputs `/tasks/tasks-000X-spec-<feature>.md` ready for implementation.
3067

31-
### SDD Workflow Overview
68+
### Stage 3 — Manage Tasks ([prompts/manage-tasks.md](./prompts/manage-tasks.md))
3269

33-
Here is a detailed diagram of the SDD workflow:
70+
- Enforces disciplined execution: mark in-progress immediately, finish one subtask before starting the next, and log artifacts as you go.
71+
- Bakes in commit hygiene, validation steps, and communication rituals so handoffs stay tight.
72+
73+
### Detailed SDD Workflow Diagram
3474

3575
```mermaid
3676
sequenceDiagram
@@ -69,24 +109,34 @@ sequenceDiagram
69109
MT->>CODE: Iterate changes
70110
```
71111

72-
### Available Prompts
112+
## Core Artifacts
73113

74-
The server provides three core prompts for spec-driven development:
114+
- **Specs:** `000X-spec-<feature>.md` — canonical requirements, demo slices, and success metrics.
115+
- **Task Lists:** `tasks-000X-spec-<feature>.md` — parent/subtask checklist with relevant files and proof artifacts.
116+
- **Status Keys:** `[ ]` not started, `[~]` in progress, `[x]` complete, mirroring the manage-tasks guidance.
117+
- **Proof Artifacts:** URLs, CLI commands, screenshots, or tests captured per task to demonstrate working software.
75118

76-
- `generate-spec`: Create a detailed specification from a feature description
77-
- `generate-task-list-from-spec`: Generate an actionable task list from a spec
78-
- `manage-tasks`: Manage and track progress on task lists
119+
## Hands-On Usage (No MCP Required)
79120

80-
## Technologies Used
121+
1. **Kick off a spec:** Copy or reference `prompts/generate-spec.md` inside your preferred AI chat. Provide the feature idea, answer the clarifying questions, and review the generated spec before saving it under `/tasks`.
122+
2. **Plan the work:** Point the assistant to the new spec and walk through `prompts/generate-task-list-from-spec.md`. Approve parent tasks first, then request the detailed subtasks and relevant files. Commit the result to `/tasks`.
123+
3. **Execute with discipline:** Follow `prompts/manage-tasks.md` while implementing. Update statuses as you work, attach proof artifacts, and pause for reviews at each demoable slice.
81124

82-
| Technology | Description | Link |
83-
| --- | --- | --- |
84-
| `uv` | Modern Python package and project manager | <https://docs.astral.sh/uv/> |
85-
| FastMCP | Tool for building MCP servers and clients | <https://github.com/jlowin/fastmcp> |
86-
| `pre-commit` | Git hooks for code quality and formatting | <https://pre-commit.com/> |
87-
| Semantic Release | Automated release process (via GitHub Actions) | <https://github.com/python-semantic-release/python-semantic-release> |
125+
### Slash Command Integration (TBD)
126+
127+
Guides are coming for wiring these prompts as first-class slash commands in popular IDEs and AI tools (Windsurf, VS Code, Cursor, Claude Code, Codex, and more).
128+
129+
## Optional: Automate with the MCP Server
130+
131+
Prefer tighter tooling? This repository also ships an MCP server that exposes the same prompts programmatically. Treat it as an accelerator—everything above works without it.
132+
133+
> Note: MCP prompt support is not uniformly supported across AI tools. See [docs/mcp-prompt-support.md](./docs/mcp-prompt-support.md) for details.
88134
89-
## Quick Start
135+
### Workflow Essentials
136+
137+
1. Open `prompts/generate-spec.md` inside your AI assistant and follow the instructions to produce a new spec in `tasks/`.
138+
2. Point the assistant at the generated spec and run `prompts/generate-task-list-from-spec.md` to create the implementation backlog.
139+
3. Use `prompts/manage-tasks.md` while executing work to keep status, demo criteria, and proof artifacts up to date.
90140

91141
### Installation
92142

@@ -97,41 +147,38 @@ cd spec-driven-workflow-mcp
97147

98148
# Install dependencies
99149
uv sync
100-
101-
# Run tests
102-
uv run pytest
103150
```
104151

105-
### Running the Server
152+
### Run the MCP Server
106153

107-
**STDIO Transport (for local development):**
154+
**STDIO (local development):**
108155

109156
```bash
110157
uvx fastmcp run server.py
158+
```
111159

112-
# Or start an MCP Inspector instance for local testing along with the app:
160+
**With MCP Inspector:**
161+
162+
```bash
113163
uvx fastmcp dev server.py
114164
```
115165

116-
**HTTP Transport (for remote access):**
166+
**HTTP Transport:**
117167

118168
```bash
119169
uvx fastmcp run server.py --transport http --port 8000
120170
```
121171

122-
See [docs/operations.md](docs/operations.md) and [CONTRIBUTING.md](CONTRIBUTING.md) for detailed configuration, contribution workflow, and deployment options.
172+
See [docs/operations.md](docs/operations.md) and [CONTRIBUTING.md](CONTRIBUTING.md) for advanced configuration, deployment, and contribution guidelines.
123173

124174
## References
125175

126176
| Reference | Description | Link |
127177
| --- | --- | --- |
128-
| MCP | MCP is a standard way to represent and exchange information between AI agents | <https://modelcontextprotocol.io/docs/getting-started/intro> |
129-
| FastMCP | The fast, Pythonic way to build MCP servers and clients. | <https://gofastmcp.com/getting-started/welcome> |
130-
| AI Dev Tasks | Example of a basic SDD workflow using only markdown files. | <https://github.com/snarktank/ai-dev-tasks> |
131-
| AI Dev Tasks (customized) | A customized version of AI Dev Tasks | <https://github.com/liatrio/read-me/tree/main/damien-storm/ai-stuff#feature-development-flow> |
132-
| Spec Driven Workflow | Liatrio app that provides a unified development workflow system | <https://github.com/liatrio-labs/spec-driven-workflow> |
178+
| AI Dev Tasks | Foundational example of an SDD workflow expressed entirely in Markdown. | <https://github.com/snarktank/ai-dev-tasks> |
179+
| MCP | Standard protocol for AI agent interoperability, used here as an optional integration layer. | <https://modelcontextprotocol.io/docs/getting-started/intro> |
180+
| FastMCP | Python tooling for building MCP servers and clients that power this repo's automation. | <https://github.com/jlowin/fastmcp> |
133181

134182
## License
135183

136-
This project is licensed under the Apache License, Version 2.0. See the
137-
[LICENSE](LICENSE) file for details.
184+
This project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details.

docs/mcp-prompt-support.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# MCP Prompt Support
2+
3+
This guide tracks how well popular IDEs, CLIs, and agent shells load the Spec Driven Development (SDD) prompts exposed by the MCP server. Use it to choose the smoothest environment, understand current limitations, and contribute new findings.
4+
5+
## Support Matrix
6+
7+
| Tool | Version<br />Tested | Loads MCP? | Prompt Actions | Experience | Workarounds / Notes |
8+
| --- | --- | --- | --- | --- | --- |
9+
| Claude Code CLI | TBD | Yes | Slash commands generated automatically | Ideal | Prompts appear as native slash commands. |
10+
| Claude Code Desktop | TBD | Yes | TBD | Ideal | Loads successfully; verifying how quickly prompts become slash commands. |
11+
| Claude Code IDE (JetBrains) | TBD | Yes | TBD | Ideal | Successful load; documenting slash-command behavior. |
12+
| Cursor | TBD | Yes | Implicit trigger (no slash commands) | Ideal | Natural-language requests ("generate a spec") invoke the prompts. |
13+
| Gemini CLI | TBD | Yes | Slash commands generated automatically | Ideal | Prompts appear as native slash commands. |
14+
| OpenCode | TBD | Yes | Implicit trigger (no slash commands) | Ideal | Prompts are invoked through natural language requests. |
15+
| Windsurf | TBD | Yes | No | Not good | MCP loads but returns `Error: no tools returned.` Adding a dummy tool unblocks basic use. |
16+
| VS Code | TBD | Yes | Slash commands generated, but not executed | Not good | Prompts appear as commands but are inserted verbatim into chat; AI ignores them. |
17+
| Codex CLI | TBD | Yes | No | Non-existent | Prompts not recognized; manual copy/paste required. |
18+
| Codex IDE Plugin | TBD | Yes | No | Non-existent | Same as CLI—no prompt awareness. |
19+
| Goose | TBD | Yes | TBD | TBD | Loads successfully; behavior still being evaluated. |
20+
| Crush | TBD | TBD | TBD | TBD | Awaiting confirmation. |
21+
| Q Developer CLI | TBD | TBD | TBD | TBD | Awaiting confirmation. |
22+
| Q Developer IDE Plugin | TBD | TBD | TBD | TBD | Awaiting confirmation. |
23+
24+
## Interpretation
25+
26+
- **Ideal** environments either supply native slash commands or automatically invoke the correct prompt flows from natural language requests.
27+
- **Not good** means the MCP connection succeeds but prompt usage is clumsy or broken without manual intervention.
28+
- **Non-existent** indicates the tool ignores MCP prompts entirely today.
29+
- **TBD** rows invite contributors to validate behavior and update this document.
30+
31+
## Field Notes & Tips
32+
33+
- Tools that surface the prompts as first-class slash commands (Claude Code CLI/Desktop, Gemini CLI) provide the fastest path to running the SDD workflow without touching raw Markdown.
34+
- When slash commands are absent but the tool still uses the MCP (Cursor, OpenCode), instruct the assistant with the stage name ("generate spec", "generate task list", etc.) to trigger the correct prompt.
35+
- Windsurf currently requires registering a simple placeholder tool to prevent the `no tools returned` error. After that, prompts still are not recognized.
36+
- VS Code recognizes the prompts but pastes the entire template back into chat. Until native execution improves, reference the relevant prompt file and run it manually in the chat window.
37+
38+
## How to Contribute Updates
39+
40+
1. Launch the MCP server with the environment you are testing.
41+
2. Note whether prompts load automatically and how the assistant responds to each stage of the SDD workflow.
42+
3. Capture any error messages or required workarounds.
43+
4. Update the support matrix and notes above with your findings.
44+
5. Open a pull request summarizing the change so the community keeps an accurate inventory.
45+
46+
Have results for a tool marked **TBD**? Please add them—this table is only as useful as the data we collectively maintain.

mcp_server/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"""
66

77
from fastmcp import FastMCP
8+
from starlette.requests import Request
9+
from starlette.responses import PlainTextResponse
810

911
from .config import config
1012
from .prompts_loader import register_prompts
@@ -21,6 +23,10 @@ def create_app() -> FastMCP:
2123
# Initialize FastMCP server
2224
mcp = FastMCP(name="spec-driven-development-mcp")
2325

26+
@mcp.custom_route("/health", methods=["GET"])
27+
async def health_check(request: Request) -> PlainTextResponse:
28+
return PlainTextResponse("OK")
29+
2430
# Load prompts from the prompts directory and register them
2531
register_prompts(mcp, config.prompts_dir)
2632

0 commit comments

Comments
 (0)