Skip to content

Commit a9e7ce4

Browse files
committed
feat: worflow modes
1 parent 2ed31c5 commit a9e7ce4

File tree

16 files changed

+1294
-284
lines changed

16 files changed

+1294
-284
lines changed

.specify/config/mode.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"current_mode": "spec",
3+
"default_mode": "spec",
4+
"mode_history": [
5+
{
6+
"timestamp": null,
7+
"from_mode": "spec",
8+
"to_mode": "build"
9+
},
10+
{
11+
"timestamp": null,
12+
"from_mode": "build",
13+
"to_mode": "spec"
14+
}
15+
]
16+
}

README.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,55 @@ specify init my-project --debug
228228
specify init my-project --github-token $GITHUB_TOKEN
229229
```
230230

231+
### Workflow Mode Management
232+
233+
Specify supports two workflow modes that control the complexity level of the development process:
234+
235+
#### Available Modes
236+
237+
- **`spec` mode (default)**: Full structured specification with comprehensive requirements, research, and validation
238+
- **`build` mode**: Lightweight, conversational approach focused on quick validation and exploration
239+
240+
#### Mode Commands
241+
242+
```bash
243+
# Show current mode and available options
244+
specify mode
245+
246+
# Switch to build mode (lightweight development)
247+
specify mode build
248+
249+
# Switch to spec mode (comprehensive development)
250+
specify mode spec
251+
252+
# Show detailed information about all modes
253+
specify mode --info
254+
```
255+
256+
#### When to Use Each Mode
257+
258+
**Use `build` mode for:**
259+
- Prototyping and exploration
260+
- Simple features with clear requirements
261+
- Quick validation of ideas
262+
- When you want to get something working fast
263+
264+
**Use `spec` mode for:**
265+
- Complex features requiring thorough analysis
266+
- Team collaboration with detailed documentation
267+
- Production systems needing comprehensive validation
268+
- When you need full traceability and quality gates
269+
270+
#### Mode-Aware Commands
271+
272+
All slash commands adapt their behavior based on the current mode:
273+
274+
- **`/speckit.specify`**: Build mode uses simplified templates, spec mode uses comprehensive validation
275+
- **`/speckit.clarify`**: Build mode limits questions to 2, spec mode allows up to 5
276+
- **`/speckit.plan`**: Build mode creates lightweight plans, spec mode includes full research
277+
- **`/speckit.implement`**: Build mode focuses on core functionality, spec mode includes comprehensive quality gates
278+
- **`/speckit.analyze`**: Auto-detects pre vs post-implementation context based on project state
279+
231280
#### Complete Example
232281

233282
```bash
@@ -319,6 +368,7 @@ The `specify` command supports the following options:
319368
|-------------|----------------------------------------------------------------|
320369
| `init` | Initialize a new Specify project from the latest template |
321370
| `check` | Check for installed tools (`git`, `claude`, `gemini`, `code`/`code-insiders`, `cursor-agent`, `windsurf`, `qwen`, `opencode`, `codex`) |
371+
| `mode` | Manage workflow modes (build/spec) for development complexity control |
322372

323373
### `specify init` Arguments & Options
324374

@@ -338,9 +388,16 @@ The `specify` command supports the following options:
338388
| `--issue-tracker` | Option | Issue tracker MCP: `github`, `jira`, `linear`, `gitlab` |
339389
| `--async-agent` | Option | Async agent MCP: `jules`, `async-copilot`, `async-codex` |
340390
| `--gateway-url` | Option | Central LLM gateway URL |
341-
| `--gateway-token` | Option | Gateway authentication token |
391+
| `--gateway-token` | Option | Gateway authentication token |
342392
| `--gateway-suppress-warning` | Flag | Suppress gateway warning messages |
343393

394+
### `specify mode` Arguments & Options
395+
396+
| Argument/Option | Type | Description |
397+
|-----------------|----------|-----------------------------------------------------------------------------|
398+
| `<mode>` | Argument | Workflow mode: `build` (lightweight) or `spec` (comprehensive) - leave empty to show current mode |
399+
| `--info`, `-i` | Flag | Show detailed information about available modes |
400+
344401
### Examples
345402

346403
```bash
@@ -392,6 +449,12 @@ specify init enterprise-app --ai claude --script sh --team-ai-directives https:/
392449

393450
# Check system requirements
394451
specify check
452+
453+
# Workflow mode management
454+
specify mode # Show current mode
455+
specify mode build # Switch to lightweight build mode
456+
specify mode spec # Switch to comprehensive spec mode
457+
specify mode --info # Show detailed mode information
395458
```
396459

397460
### Available Slash Commands

docs/quickstart.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@ This guide will help you get started with Spec-Driven Development using Agentic
1010
**Note:** Run these steps in a standard terminal before opening the Intelligent IDE.
1111
**Alignment with 12 Factors:** This stage establishes the foundation guided by [I. Strategic Mindset](https://tikalk.github.io/agentic-sdlc-12-factors/content/strategic-mindset.html) and [II. Context Scaffolding](https://tikalk.github.io/agentic-sdlc-12-factors/content/context-scaffolding.html), positioning the developer as orchestrator and assembling necessary context for AI collaboration.
1212

13+
### Choose Your Workflow Mode
14+
15+
Specify supports two workflow modes that control development complexity:
16+
17+
- **`spec` mode (default)**: Full structured development with comprehensive requirements, research, and validation
18+
- **`build` mode**: Lightweight approach focused on quick implementation and exploration
19+
20+
```bash
21+
# Check current mode
22+
specify mode
23+
24+
# Switch to lightweight mode for prototyping
25+
specify mode build
26+
27+
# Switch to comprehensive mode for production features
28+
specify mode spec
29+
30+
# Learn more about modes
31+
specify mode --info
32+
```
33+
34+
**Recommendation:** Start with `build` mode for exploration, switch to `spec` mode when features become complex or need thorough documentation.
35+
1336
1. **Project Initialization (`/init`)**
1437
**Action:** From the project root, run the Agentic SDLC Spec Kit `init` command (e.g., `specify init <project> --team-ai-directives https://github.com/your-org/team-ai-directives.git`) to configure local settings and clone the shared `team-ai-directives` modules.
1538
**Purpose:** Creates the handshake that brings the repository into the managed Agentic SDLC ecosystem, wiring credentials, endpoints, and shared knowledge needed for subsequent commands.
@@ -109,6 +132,8 @@ This guide will help you get started with Spec-Driven Development using Agentic
109132

110133
Initialize your project depending on the coding agent you're using:
111134

135+
> **Note:** All slash commands adapt their behavior based on your current workflow mode. Use `specify mode` to check or change modes.
136+
112137
```bash
113138
uvx --from git+https://github.com/github/agentic-sdlc-spec-kit.git specify init <PROJECT_NAME>
114139
```
@@ -213,6 +238,35 @@ implement specs/002-create-taskify/plan.md
213238
- **Iterate and refine** your specifications before implementation
214239
- **Validate** the plan before coding begins
215240
- **Let the AI agent handle** the implementation details
241+
- **Choose your complexity level** with workflow modes (build for speed, spec for thoroughness)
242+
243+
## Mode Transitions
244+
245+
Your development needs may change as features evolve:
246+
247+
### When to Switch from Build to Spec Mode
248+
249+
```bash
250+
specify mode spec
251+
```
252+
253+
**Indicators:**
254+
- Feature scope is growing beyond initial expectations
255+
- Multiple stakeholders need detailed documentation
256+
- Production deployment requires comprehensive testing
257+
- Integration with existing systems becomes complex
258+
259+
### When to Switch from Spec to Build Mode
260+
261+
```bash
262+
specify mode build
263+
```
264+
265+
**Indicators:**
266+
- Shifting to exploratory prototyping
267+
- Need to quickly validate a technical approach
268+
- Working on throwaway proof-of-concepts
269+
- Time pressure requires simplified process
216270

217271
## Next Steps
218272

0 commit comments

Comments
 (0)