You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: uppercase governance filenames + community templates (#42)
- All scaffolded governance/doc files now use uppercase stems
(RULES.md, WORKFLOW.md, ROLES.md, CONTEXT-BUDGET.md, VERIFICATION.md,
DRIFT-METRICS.md, ARCHITECTURE.md, WORKFLOW.md)
- Upgrader migrates legacy lowercase files to uppercase on upgrade
(handles case-insensitive FS via two-step rename)
- New community templates: CONTRIBUTING.md, LICENSE (MIT/Apache-2.0),
SECURITY.md, CODE_OF_CONDUCT.md, PR template, issue templates
- Config: added license field (default MIT) and community_files list
- Auditor now recommends CONTRIBUTING.md and LICENSE
- Updated all integrations, templates, tests, and docs
Closes#42
Co-Authored-By: Oz <oz-agent@warp.dev>
specsmith doctor --project-dir ./my-project # Tool check
39
+
# Install
40
+
pip install specsmith
41
+
42
+
# New project (interactive)
43
+
specsmith init
44
+
45
+
# Adopt an existing project
46
+
specsmith import --project-dir ./my-project
47
+
48
+
# Check governance health
49
+
specsmith audit --project-dir ./my-project
50
+
51
+
# Generate architecture docs interactively
52
+
specsmith architect --project-dir ./my-project
53
+
54
+
# Start an AI agent session (universal pattern)
55
+
# From any governed repo root:
56
+
/agent AGENTS.md
45
57
```
46
58
59
+
### Starting an AI Agent Session
60
+
61
+
The universal pattern for any specsmith-governed project:
62
+
63
+
```
64
+
/agent AGENTS.md
65
+
```
66
+
67
+
This works in Warp, Claude Code, Cursor, and any agent that reads markdown context files. The agent loads AGENTS.md (the governance hub), reads LEDGER.md for session state, and picks up from the last recorded action.
|`docs/governance/VERIFICATION.md`| Verification standards, acceptance criteria | When performing verification |
61
+
|`docs/governance/DRIFT-METRICS.md`| Drift detection, feedback loops, health signals | On `audit` command or session start |
62
62
63
63
Agents read AGENTS.md in full on every session. The governance docs listed with "Every session start" timing are read immediately after. Other governance docs are loaded on demand when the task requires them. This lazy-loading approach minimizes credit consumption (see Section 25).
64
64
@@ -80,11 +80,11 @@ Rules:
80
80
81
81
Project overview, architecture summary, component descriptions, repository structure, near-term goals, and current status. Must be kept in sync with architectural reality.
82
82
83
-
### 2.4 docs/architecture.md
83
+
### 2.4 docs/ARCHITECTURE.md
84
84
85
85
System architecture: components, boundaries, interfaces, runtime modes, platform expectations, constraints, and design principles.
86
86
87
-
### 2.5 docs/workflow.md
87
+
### 2.5 docs/WORKFLOW.md
88
88
89
89
Development workflow: the work loop, proposal rules, PR expectations, cross-platform rules, documentation rules, verification rules, and milestones.
90
90
@@ -109,10 +109,10 @@ When documents conflict, precedence is resolved top-down:
109
109
1.**AGENTS.md + docs/governance/*** — behavioral rules, hard constraints, stop conditions (highest). Governance docs inherit AGENTS.md's authority because AGENTS.md explicitly delegates to them.
110
110
2.**README.md** — project intent and scope
111
111
3.**docs/REQUIREMENTS.md** — what the system must do
112
-
4.**docs/architecture.md** — how the system is structured
112
+
4.**docs/ARCHITECTURE.md** — how the system is structured
113
113
5.**docs/TEST_SPEC.md** — how the system is verified
114
114
6.**LEDGER.md** — what has been done and what remains (sole authority for session state)
**What it does:** Scans for modules, languages, dependencies, git history, and existing architecture docs. In interactive mode, prompts for component names, purposes, interfaces, data flow, and deployment notes. Generates a rich `docs/architecture.md`.
169
+
**What it does:** Scans for modules, languages, dependencies, git history, and existing architecture docs. In interactive mode, prompts for component names, purposes, interfaces, data flow, and deployment notes. Generates a rich `docs/ARCHITECTURE.md`.
@@ -106,7 +112,15 @@ specsmith doctor --project-dir my-tool
106
112
107
113
### Step 5: Open in Your AI Agent
108
114
109
-
Open the project in Warp, Claude Code, Cursor, or your preferred agent. The agent reads `AGENTS.md` and knows the governance rules. Type `start` to begin a governed session.
115
+
From the project root, use the universal session start command:
116
+
117
+
```
118
+
/agent AGENTS.md
119
+
```
120
+
121
+
This works in Warp/Oz, Claude Code, Cursor, and any agent that reads context files. The agent reads `AGENTS.md` (the governance hub), loads `LEDGER.md` for session state, and follows the closed-loop workflow.
122
+
123
+
After the agent is loaded, you can use the quick command `start` to trigger the full session start protocol (sync, update check, branch check).
|`drift-metrics.md`| Drift detection, feedback loops, health signals | On audit or session start |
55
-
56
-
This lazy-loading approach minimizes token consumption — agents only load verification.md when they're actually running tests, not at every session start.
49
+
|`RULES.md`| Hard rules H1-H9, stop conditions | Every session start |
50
+
||`WORKFLOW.md`| Session lifecycle, proposal format, ledger format | Every session start |
51
+
||`ROLES.md`| Agent role boundaries, behavioral rules | Every session start |
52
+
||`CONTEXT-BUDGET.md`| Context management, credit optimization | Every session start |
||`DRIFT-METRICS.md`| Drift detection, feedback loops, health signals | On audit or session start |
55
+
56
+
This lazy-loading approach minimizes token consumption — agents only load VERIFICATION.md when they're actually running tests, not at every session start.
From any specsmith-governed project root, the universal command to begin a session:
62
+
63
+
```
64
+
/agent AGENTS.md
65
+
```
66
+
67
+
This loads the governance hub, session state from LEDGER.md, and project rules. Works in Warp/Oz, Claude Code, Cursor, Copilot, and any agent that reads markdown context.
0 commit comments