create-ombutocode 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-ombutocode.js +266 -0
- package/package.json +31 -0
- package/template/CLAUDE.md +31 -0
- package/template/GettingStarted.md +261 -0
- package/template/README.md +5 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const { execSync } = require('child_process');
|
|
6
|
+
|
|
7
|
+
const REPO_URL = 'https://github.com/FrancoisBotha/ombutocode.git';
|
|
8
|
+
// Installer version is kept in lockstep with the workbench version
|
|
9
|
+
// (.ombutocode/src/package.json) — every workbench release bumps both
|
|
10
|
+
// to the same number. See DeployInstructions.md §3 and §3.0.
|
|
11
|
+
const VERSION = '0.1.1';
|
|
12
|
+
|
|
13
|
+
// Pinned Ombuto Code workbench release to clone.
|
|
14
|
+
//
|
|
15
|
+
// This installer version ships paired with a specific, tested release of
|
|
16
|
+
// the workbench — not the tip of main — so that every `npx create-ombutocode`
|
|
17
|
+
// run is reproducible. To ship a new workbench release to users:
|
|
18
|
+
//
|
|
19
|
+
// 1. Tag and release the workbench on GitHub (see DeployInstructions.md §2)
|
|
20
|
+
// 2. Bump CLONE_REF below to the new tag
|
|
21
|
+
// 3. Bump this installer's VERSION (above) and the package.json version
|
|
22
|
+
// 4. `npm publish` the installer (see DeployInstructions.md §3)
|
|
23
|
+
const CLONE_REF = 'v0.1.1';
|
|
24
|
+
|
|
25
|
+
// Files and directories at the repo root that belong to the Ombuto Code
|
|
26
|
+
// upstream project and should be removed from a scaffolded user project.
|
|
27
|
+
//
|
|
28
|
+
// Two categories:
|
|
29
|
+
//
|
|
30
|
+
// 1. Maintainer docs — describe how to contribute to / release Ombuto Code
|
|
31
|
+
// itself, not anything the user's new project should inherit.
|
|
32
|
+
//
|
|
33
|
+
// 2. Sample / demo app files — the upstream repo contains an example
|
|
34
|
+
// Electron + Vue app at the repo root (DropSync) that is used as a
|
|
35
|
+
// test bed for the workbench. It is NOT meant to be a starter template
|
|
36
|
+
// for user projects, so it is stripped too.
|
|
37
|
+
const UPSTREAM_FILES_TO_STRIP = [
|
|
38
|
+
// Maintainer docs
|
|
39
|
+
'README.md',
|
|
40
|
+
'CLA.md',
|
|
41
|
+
'CONTRIBUTING.md',
|
|
42
|
+
'DeployInstructions.md',
|
|
43
|
+
'UPGRADING.md',
|
|
44
|
+
'CLAUDE.md',
|
|
45
|
+
'LICENSE', // upstream Apache 2.0 lives under .ombutocode/LICENSE
|
|
46
|
+
|
|
47
|
+
// Sample / demo app at the repo root (not a user-facing starter)
|
|
48
|
+
'src',
|
|
49
|
+
'scripts',
|
|
50
|
+
'package.json',
|
|
51
|
+
'package-lock.json',
|
|
52
|
+
'vite.config.js',
|
|
53
|
+
'eslint.config.js',
|
|
54
|
+
'tsconfig.json',
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
// Files in create-ombutocode/template/ that are copied into the scaffolded
|
|
58
|
+
// project after stripping. Any occurrence of {{PROJECT_NAME}} in these
|
|
59
|
+
// files is substituted with the user's project name at copy time.
|
|
60
|
+
const TEMPLATE_FILES = [
|
|
61
|
+
'README.md',
|
|
62
|
+
'CLAUDE.md',
|
|
63
|
+
'GettingStarted.md',
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
// ── Helpers ──
|
|
67
|
+
|
|
68
|
+
function log(msg) { console.log(` ${msg}`); }
|
|
69
|
+
function heading(msg) { console.log(`\n── ${msg} ──`); }
|
|
70
|
+
|
|
71
|
+
function fatal(msg) {
|
|
72
|
+
console.error(`\n✖ ${msg}`);
|
|
73
|
+
process.exit(1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function run(cmd, opts = {}) {
|
|
77
|
+
try {
|
|
78
|
+
execSync(cmd, { stdio: 'inherit', ...opts });
|
|
79
|
+
} catch {
|
|
80
|
+
fatal(`Command failed: ${cmd}`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function copyDirSync(src, dest) {
|
|
85
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
86
|
+
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
87
|
+
const srcPath = path.join(src, entry.name);
|
|
88
|
+
const destPath = path.join(dest, entry.name);
|
|
89
|
+
if (entry.isDirectory()) {
|
|
90
|
+
copyDirSync(srcPath, destPath);
|
|
91
|
+
} else {
|
|
92
|
+
fs.copyFileSync(srcPath, destPath);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function stripUpstreamFiles(projectDir) {
|
|
98
|
+
for (const name of UPSTREAM_FILES_TO_STRIP) {
|
|
99
|
+
const target = path.join(projectDir, name);
|
|
100
|
+
if (fs.existsSync(target)) {
|
|
101
|
+
// Use recursive + force so this handles both files and directories.
|
|
102
|
+
fs.rmSync(target, { recursive: true, force: true });
|
|
103
|
+
log(`Removed upstream ${name}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function writeTemplateFiles(projectDir, projectName) {
|
|
109
|
+
// Template files ship inside the installer package at ../template
|
|
110
|
+
// relative to this script (bin/create-ombutocode.js).
|
|
111
|
+
const templateDir = path.resolve(__dirname, '..', 'template');
|
|
112
|
+
if (!fs.existsSync(templateDir)) {
|
|
113
|
+
log('Template directory not found — skipping template overlay.');
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
for (const name of TEMPLATE_FILES) {
|
|
118
|
+
const src = path.join(templateDir, name);
|
|
119
|
+
if (!fs.existsSync(src)) {
|
|
120
|
+
log(`Template file missing: ${name} (skipping)`);
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
const content = fs.readFileSync(src, 'utf-8')
|
|
124
|
+
.replace(/\{\{PROJECT_NAME\}\}/g, projectName);
|
|
125
|
+
fs.writeFileSync(path.join(projectDir, name), content);
|
|
126
|
+
log(`Wrote ${name}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ── CLI ──
|
|
131
|
+
|
|
132
|
+
const args = process.argv.slice(2);
|
|
133
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
134
|
+
console.log(`
|
|
135
|
+
create-ombutocode v${VERSION}
|
|
136
|
+
|
|
137
|
+
Create a new Ombuto Code project — Agentic Software Engineering Workbench
|
|
138
|
+
|
|
139
|
+
Usage:
|
|
140
|
+
npx create-ombutocode <project-name>
|
|
141
|
+
|
|
142
|
+
Example:
|
|
143
|
+
npx create-ombutocode my-app
|
|
144
|
+
cd my-app
|
|
145
|
+
.ombutocode/buildandrun.bat # Windows
|
|
146
|
+
bash .ombutocode/buildandrun # macOS / Linux
|
|
147
|
+
`);
|
|
148
|
+
process.exit(0);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const projectName = args[0];
|
|
152
|
+
if (!projectName) {
|
|
153
|
+
fatal('Please specify a project name:\n\n npx create-ombutocode my-app\n');
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (fs.existsSync(projectName)) {
|
|
157
|
+
fatal(`Directory "${projectName}" already exists.`);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ── Banner ──
|
|
161
|
+
|
|
162
|
+
console.log(`
|
|
163
|
+
╔═══════════════════════════════════════════╗
|
|
164
|
+
║ create-ombutocode v${VERSION} ║
|
|
165
|
+
║ Agentic Software Engineering Workbench ║
|
|
166
|
+
╚═══════════════════════════════════════════╝
|
|
167
|
+
`);
|
|
168
|
+
|
|
169
|
+
console.log(`Creating project: ${projectName}`);
|
|
170
|
+
|
|
171
|
+
// ── Step 1: Clone the repository at the pinned release tag ──
|
|
172
|
+
|
|
173
|
+
heading(`Cloning Ombuto Code ${CLONE_REF}`);
|
|
174
|
+
run(`git clone --depth 1 --branch ${CLONE_REF} ${REPO_URL} "${projectName}"`);
|
|
175
|
+
|
|
176
|
+
const projectDir = path.resolve(projectName);
|
|
177
|
+
|
|
178
|
+
// Remove the .git directory so the user starts fresh
|
|
179
|
+
const gitDir = path.join(projectDir, '.git');
|
|
180
|
+
if (fs.existsSync(gitDir)) {
|
|
181
|
+
log('Removing upstream .git history...');
|
|
182
|
+
fs.rmSync(gitDir, { recursive: true, force: true });
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Remove create-ombutocode directory (the installer itself)
|
|
186
|
+
const installerDir = path.join(projectDir, 'create-ombutocode');
|
|
187
|
+
if (fs.existsSync(installerDir)) {
|
|
188
|
+
log('Removing installer package...');
|
|
189
|
+
fs.rmSync(installerDir, { recursive: true, force: true });
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// ── Step 1b: Strip upstream maintainer files & write project templates ──
|
|
193
|
+
//
|
|
194
|
+
// The Ombuto Code repo we just cloned contains files that belong to the
|
|
195
|
+
// upstream project (README, CLA, CONTRIBUTING, DeployInstructions, CLAUDE,
|
|
196
|
+
// root LICENSE) — they should not travel into the user's new project.
|
|
197
|
+
// Replace them with minimal project-specific templates.
|
|
198
|
+
|
|
199
|
+
heading('Preparing project files');
|
|
200
|
+
stripUpstreamFiles(projectDir);
|
|
201
|
+
writeTemplateFiles(projectDir, projectName);
|
|
202
|
+
|
|
203
|
+
// ── Step 2: Install dependencies ──
|
|
204
|
+
|
|
205
|
+
heading('Installing dependencies');
|
|
206
|
+
const srcDir = path.join(projectDir, '.ombutocode', 'src');
|
|
207
|
+
if (fs.existsSync(path.join(srcDir, 'package.json'))) {
|
|
208
|
+
run('npm install --no-audit --no-fund', { cwd: srcDir });
|
|
209
|
+
} else {
|
|
210
|
+
fatal('.ombutocode/src/package.json not found — repository may be corrupted.');
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// ── Step 3: Initialise project data ──
|
|
214
|
+
|
|
215
|
+
heading('Initialising project');
|
|
216
|
+
|
|
217
|
+
// Run initombuto with --clear to create fresh docs/
|
|
218
|
+
const isWindows = process.platform === 'win32';
|
|
219
|
+
const initScript = path.join(projectDir, '.ombutocode', isWindows ? 'initombuto.bat' : 'initombuto');
|
|
220
|
+
|
|
221
|
+
if (fs.existsSync(initScript)) {
|
|
222
|
+
if (isWindows) {
|
|
223
|
+
run(`"${initScript}" --clear "${projectDir}"`, { cwd: projectDir });
|
|
224
|
+
} else {
|
|
225
|
+
// Ensure executable
|
|
226
|
+
try { fs.chmodSync(initScript, 0o755); } catch {}
|
|
227
|
+
run(`bash "${initScript}" --clear "${projectDir}"`, { cwd: projectDir });
|
|
228
|
+
}
|
|
229
|
+
} else {
|
|
230
|
+
log('initombuto script not found — creating docs/ structure manually...');
|
|
231
|
+
const dirs = [
|
|
232
|
+
'Structure', 'Product Requirements Document', 'Architecture',
|
|
233
|
+
'Functional Requirements', 'Non-Functional Requirements', 'Epics',
|
|
234
|
+
'Use Cases', 'Use Case Diagrams', 'Class Diagrams', 'Data Model',
|
|
235
|
+
'Style Guide', 'Mockups', 'References', 'Skills', 'ScratchPad'
|
|
236
|
+
];
|
|
237
|
+
for (const dir of dirs) {
|
|
238
|
+
fs.mkdirSync(path.join(projectDir, 'docs', dir), { recursive: true });
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// ── Step 4: Initialise git ──
|
|
243
|
+
|
|
244
|
+
heading('Initialising Git repository');
|
|
245
|
+
run('git init', { cwd: projectDir });
|
|
246
|
+
run('git add -A', { cwd: projectDir });
|
|
247
|
+
run('git commit -m "Initial commit — Ombuto Code project"', { cwd: projectDir });
|
|
248
|
+
|
|
249
|
+
// ── Done ──
|
|
250
|
+
|
|
251
|
+
console.log(`
|
|
252
|
+
╔═══════════════════════════════════════════╗
|
|
253
|
+
║ Project ready! ║
|
|
254
|
+
╚═══════════════════════════════════════════╝
|
|
255
|
+
|
|
256
|
+
cd ${projectName}
|
|
257
|
+
|
|
258
|
+
# Read this first:
|
|
259
|
+
GettingStarted.md — what's in the project and what to do next
|
|
260
|
+
|
|
261
|
+
# Launch the workbench:
|
|
262
|
+
.ombutocode/buildandrun.bat # Windows
|
|
263
|
+
bash .ombutocode/buildandrun # macOS / Linux
|
|
264
|
+
|
|
265
|
+
Happy building!
|
|
266
|
+
`);
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-ombutocode",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Create a new Ombuto Code project — Agentic Software Engineering Workbench",
|
|
5
|
+
"author": "Francois Botha",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"bin": {
|
|
8
|
+
"create-ombutocode": "bin/create-ombutocode.js"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"ombuto",
|
|
12
|
+
"ombutocode",
|
|
13
|
+
"agentic",
|
|
14
|
+
"ai",
|
|
15
|
+
"coding",
|
|
16
|
+
"workbench",
|
|
17
|
+
"electron",
|
|
18
|
+
"vue"
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/FrancoisBotha/ombutocode.git"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/",
|
|
26
|
+
"template/"
|
|
27
|
+
],
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=18"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) and other AI
|
|
4
|
+
coding agents when working in this project.
|
|
5
|
+
|
|
6
|
+
## Mandatory Agent Workflow
|
|
7
|
+
|
|
8
|
+
All agents working in this repository **MUST** follow the Ombuto Code
|
|
9
|
+
engineering workflow documented in:
|
|
10
|
+
|
|
11
|
+
> [`.ombutocode/OMBUTOCODE_ENGINEERING_GUIDE.md`](.ombutocode/OMBUTOCODE_ENGINEERING_GUIDE.md)
|
|
12
|
+
|
|
13
|
+
Agents MUST treat that document as a **system-level instruction**. Failure
|
|
14
|
+
to follow the workflow is considered a task error.
|
|
15
|
+
|
|
16
|
+
The engineering guide defines:
|
|
17
|
+
|
|
18
|
+
- The source of truth (`.ombutocode/data/ombutocode.db` `backlog_tickets` table)
|
|
19
|
+
- Planning mode vs execution mode
|
|
20
|
+
- Ticket lifecycle and status transitions (`backlog` → `todo` → `in_progress` → `eval` → `review` → `done`)
|
|
21
|
+
- Scope control rules ("don't expand a ticket — create a new one")
|
|
22
|
+
- Forbidden behaviors (no broad refactors without a ticket, no new frameworks without approval, etc.)
|
|
23
|
+
|
|
24
|
+
**Read `.ombutocode/OMBUTOCODE_ENGINEERING_GUIDE.md` before starting any work
|
|
25
|
+
in this project.**
|
|
26
|
+
|
|
27
|
+
## Project-specific conventions
|
|
28
|
+
|
|
29
|
+
Add your project-specific rules, coding conventions, forbidden patterns,
|
|
30
|
+
and other agent guidance below this line. Anything you add here is read
|
|
31
|
+
into the agent's context on every run.
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# Getting Started with {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
Welcome! This project was scaffolded with `npx create-ombutocode` and comes
|
|
4
|
+
pre-wired with the **Ombuto Code** workbench — an Electron desktop
|
|
5
|
+
application that helps you plan, specify, and build software with AI
|
|
6
|
+
coding agents.
|
|
7
|
+
|
|
8
|
+
This document walks you through:
|
|
9
|
+
|
|
10
|
+
1. [Where you are right now](#1-where-you-are-right-now)
|
|
11
|
+
2. [Prerequisites](#2-prerequisites)
|
|
12
|
+
3. [Launching Ombuto Code](#3-launching-ombuto-code)
|
|
13
|
+
4. [Your first hour — the Plan → Build flow](#4-your-first-hour--the-plan--build-flow)
|
|
14
|
+
5. [Folder layout](#5-folder-layout)
|
|
15
|
+
6. [How `docs/` is handled in the app](#6-how-docs-is-handled-in-the-app)
|
|
16
|
+
7. [Where to go next](#7-where-to-go-next)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 1. Where you are right now
|
|
21
|
+
|
|
22
|
+
Your project directory contains:
|
|
23
|
+
|
|
24
|
+
- **`.ombutocode/`** — the Ombuto Code workbench itself (Electron + Vue app,
|
|
25
|
+
SQLite database, backlog, scheduler, tools, and configuration). This is
|
|
26
|
+
a ready-to-run copy of the tool, licensed under Apache 2.0.
|
|
27
|
+
- **`docs/`** — an **empty set of requirements folders** (Product
|
|
28
|
+
Requirements Document, Architecture, Use Cases, Epics, Data Model, etc.).
|
|
29
|
+
This is where your product specification will live.
|
|
30
|
+
- **`CLAUDE.md`** — project-level instructions for AI coding agents (Claude
|
|
31
|
+
Code, Codex, Kimi). It currently just points agents at the engineering
|
|
32
|
+
guide — add your own conventions as the project grows.
|
|
33
|
+
- **`GettingStarted.md`** — this file.
|
|
34
|
+
- **`README.md`** — a minimal project README. Replace it with your own
|
|
35
|
+
once you know what this project is.
|
|
36
|
+
|
|
37
|
+
What you do **not** yet have:
|
|
38
|
+
|
|
39
|
+
- A product requirements document
|
|
40
|
+
- An architecture spec
|
|
41
|
+
- Epics, use cases, or tickets in the backlog
|
|
42
|
+
- Any product source code of your own
|
|
43
|
+
|
|
44
|
+
That's all normal. The first phase of an Ombuto Code project is defining
|
|
45
|
+
*what you're building*. Only after that does code get written.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 2. Prerequisites
|
|
50
|
+
|
|
51
|
+
You need:
|
|
52
|
+
|
|
53
|
+
- **[Node.js](https://nodejs.org/) 18 or newer** — Ombuto Code is an
|
|
54
|
+
Electron app and uses npm dependencies.
|
|
55
|
+
- **[Git](https://git-scm.com/)** — Ombuto Code versions your requirements
|
|
56
|
+
documents with Git just like source code. The installer has already
|
|
57
|
+
initialised a fresh repo for you.
|
|
58
|
+
|
|
59
|
+
Optional (but recommended — this is what makes the Build phase interesting):
|
|
60
|
+
|
|
61
|
+
- **At least one AI coding CLI**, installed globally and authenticated:
|
|
62
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) —
|
|
63
|
+
`npm install -g @anthropic-ai/claude-code`, then `claude login`
|
|
64
|
+
- [Codex](https://github.com/openai/codex) —
|
|
65
|
+
`npm install -g @openai/codex`
|
|
66
|
+
- [Kimi](https://github.com/moonshotai/kimi-cli) (optional)
|
|
67
|
+
|
|
68
|
+
You can always add these later — Ombuto Code's Plan mode works fine
|
|
69
|
+
without any coding agent installed.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 3. Launching Ombuto Code
|
|
74
|
+
|
|
75
|
+
From your project root:
|
|
76
|
+
|
|
77
|
+
**Windows:**
|
|
78
|
+
```cmd
|
|
79
|
+
.ombutocode\buildandrun.bat
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**macOS / Linux:**
|
|
83
|
+
```bash
|
|
84
|
+
bash .ombutocode/buildandrun
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
That script builds the renderer and launches the Electron app. The first
|
|
88
|
+
launch takes a little longer because it compiles the Vue frontend.
|
|
89
|
+
|
|
90
|
+
The app window will open on the **Dashboard**. The left sidebar has two
|
|
91
|
+
groups — **Plan** and **Build** — which you can toggle between. Plan
|
|
92
|
+
mode is where you define *what* the system should do; Build mode is where
|
|
93
|
+
you let coding agents make it real.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 4. Your first hour — the Plan → Build flow
|
|
98
|
+
|
|
99
|
+
The typical flow for a brand-new project looks like this. You don't have
|
|
100
|
+
to do every step — skip the ones that don't fit — but doing them in order
|
|
101
|
+
will give you the smoothest experience.
|
|
102
|
+
|
|
103
|
+
### 4.1 Define a PRD (Plan mode)
|
|
104
|
+
|
|
105
|
+
Open the **Product Requirements Document** view from the Plan sidebar.
|
|
106
|
+
Either write the PRD yourself, or — if you have a coding agent
|
|
107
|
+
authenticated — use the **interactive PRD assistant** to walk through
|
|
108
|
+
product name, purpose, target users, goals, constraints, and success
|
|
109
|
+
metrics. The assistant saves the result as
|
|
110
|
+
`docs/Product Requirements Document/PRD.md`.
|
|
111
|
+
|
|
112
|
+
Tip: a decent PRD gives every downstream step (architecture, epics,
|
|
113
|
+
tickets) much better context. An hour on the PRD is rarely wasted.
|
|
114
|
+
|
|
115
|
+
### 4.2 Sketch an architecture
|
|
116
|
+
|
|
117
|
+
Open **Architecture** and draft a short architecture spec at
|
|
118
|
+
`docs/Architecture/Architecture.md`. Components, data flow, boundaries,
|
|
119
|
+
and any technology decisions that would affect how tickets are broken
|
|
120
|
+
down.
|
|
121
|
+
|
|
122
|
+
### 4.3 Capture use cases and a data model
|
|
123
|
+
|
|
124
|
+
- Add use cases under `docs/Use Cases/` — one markdown file per use case.
|
|
125
|
+
- Draw a use case diagram in the **Use Case Diagrams** editor.
|
|
126
|
+
- If your system has meaningful persistence, describe the schema in
|
|
127
|
+
`docs/Data Model/Schema.ddl` (plain SQL DDL works best). Ombuto Code
|
|
128
|
+
can render it as an ER diagram directly from the DDL.
|
|
129
|
+
|
|
130
|
+
### 4.4 Break work into epics
|
|
131
|
+
|
|
132
|
+
Create epic specs under `docs/Epics/`, one markdown file per epic
|
|
133
|
+
(`epic_AUTHENTICATION.md`, `epic_BILLING.md`, etc.). Each epic describes
|
|
134
|
+
a self-contained feature area with scope, acceptance criteria, and
|
|
135
|
+
references back to the PRD and architecture.
|
|
136
|
+
|
|
137
|
+
Use the template at `.ombutocode/templates/epic.md` as a starting point
|
|
138
|
+
(or use the **Epics** view in the app to create one interactively).
|
|
139
|
+
|
|
140
|
+
### 4.5 Generate tickets from an epic
|
|
141
|
+
|
|
142
|
+
Once an epic is well-specified, switch to **Build** mode, open the
|
|
143
|
+
**Backlog** view, and ask a coding agent to generate tickets for the
|
|
144
|
+
epic. Tickets are created with `status: backlog` and
|
|
145
|
+
`assignee: null` — they're waiting for you to review and promote.
|
|
146
|
+
|
|
147
|
+
Promote the tickets you want worked on to `status: todo` and assign
|
|
148
|
+
them to a coding agent (e.g. `claude`). Then enable the **Auto**
|
|
149
|
+
scheduler — agents will pick up `todo` tickets one by one, move them
|
|
150
|
+
through `in_progress` → `eval` → `review`, and leave you to approve
|
|
151
|
+
each one.
|
|
152
|
+
|
|
153
|
+
### 4.6 Watch it work
|
|
154
|
+
|
|
155
|
+
The **Automation** dashboard shows active runs, recent completions, and
|
|
156
|
+
the evaluation queue. Logs are captured under `.ombutocode/run-output/`
|
|
157
|
+
and surfaced in the **Logs** view.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 5. Folder layout
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
{{PROJECT_NAME}}/
|
|
165
|
+
├── .ombutocode/ # The Ombuto Code workbench (Apache 2.0)
|
|
166
|
+
│ ├── OMBUTOCODE_ENGINEERING_GUIDE.md # The workflow agents MUST follow
|
|
167
|
+
│ ├── LICENSE # Apache 2.0 license for the workbench
|
|
168
|
+
│ ├── src/ # Electron + Vue source for the app
|
|
169
|
+
│ ├── data/ # SQLite database (backlog, runs, logs)
|
|
170
|
+
│ ├── codingagents/ # Agent configuration (YAML)
|
|
171
|
+
│ ├── templates/ # Epic / backlog / skill templates
|
|
172
|
+
│ ├── tools/ # CLI tools for agents (db-query, etc.)
|
|
173
|
+
│ ├── scripts/ # Seed + migration scripts
|
|
174
|
+
│ ├── logs/ # Run audit logs (gitignored)
|
|
175
|
+
│ ├── run-output/ # Agent stdout/stderr logs (gitignored)
|
|
176
|
+
│ ├── buildandrun.bat # Windows launcher
|
|
177
|
+
│ └── buildandrun # macOS / Linux launcher
|
|
178
|
+
│
|
|
179
|
+
├── docs/ # ← Your product specification (versioned)
|
|
180
|
+
│ ├── Product Requirements Document/
|
|
181
|
+
│ ├── Architecture/
|
|
182
|
+
│ ├── Epics/
|
|
183
|
+
│ ├── Use Cases/
|
|
184
|
+
│ ├── Use Case Diagrams/
|
|
185
|
+
│ ├── Class Diagrams/
|
|
186
|
+
│ ├── Data Model/
|
|
187
|
+
│ ├── Functional Requirements/
|
|
188
|
+
│ ├── Non-Functional Requirements/
|
|
189
|
+
│ ├── Structure/
|
|
190
|
+
│ ├── Style Guide/
|
|
191
|
+
│ ├── Mockups/
|
|
192
|
+
│ ├── References/
|
|
193
|
+
│ ├── Skills/
|
|
194
|
+
│ └── ScratchPad/
|
|
195
|
+
│
|
|
196
|
+
├── CLAUDE.md # Agent instructions for this project
|
|
197
|
+
├── GettingStarted.md # This file
|
|
198
|
+
└── README.md # Your project README
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Your own product source code can live anywhere you like — a common
|
|
202
|
+
layout is `src/`, `app/`, or per-service subdirectories at the repo root
|
|
203
|
+
alongside `.ombutocode/` and `docs/`. Ombuto Code does not enforce a
|
|
204
|
+
specific layout.
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 6. How `docs/` is handled in the app
|
|
209
|
+
|
|
210
|
+
`docs/` is **first-class** in Ombuto Code. It is not a static folder on
|
|
211
|
+
disk — the workbench treats it as a live, editable knowledge base that
|
|
212
|
+
drives everything else.
|
|
213
|
+
|
|
214
|
+
- **Plan mode views are views over `docs/`.** The PRD view reads and
|
|
215
|
+
writes `docs/Product Requirements Document/PRD.md`. The Use Cases
|
|
216
|
+
view reads each file in `docs/Use Cases/`. The ER Diagram view
|
|
217
|
+
renders `docs/Data Model/Schema.ddl`. And so on. Editing a document
|
|
218
|
+
in the app is the same as editing the file on disk.
|
|
219
|
+
|
|
220
|
+
- **Changes are versioned with Git.** Because `docs/` lives inside your
|
|
221
|
+
Git repository, every edit the app (or you, or an agent) makes can
|
|
222
|
+
be committed. The app shows per-document version history via Git,
|
|
223
|
+
so you can see who changed what and when. No separate CMS or wiki.
|
|
224
|
+
|
|
225
|
+
- **Agents read `docs/` for context.** When a coding agent picks up a
|
|
226
|
+
ticket, it reads the epic the ticket belongs to, and the epic
|
|
227
|
+
references PRD / architecture / data model sections. The better your
|
|
228
|
+
`docs/` content, the better the agents behave — think of `docs/` as
|
|
229
|
+
the agents' long-term memory.
|
|
230
|
+
|
|
231
|
+
- **The file tree in the sidebar mirrors `docs/`.** You can drag-drop
|
|
232
|
+
to reorganise, rename files, and create new entries directly from
|
|
233
|
+
the sidebar. Changes hit disk immediately.
|
|
234
|
+
|
|
235
|
+
- **Nothing under `docs/` is gitignored.** All of it ships with your
|
|
236
|
+
project. Only `.ombutocode/logs/`, `.ombutocode/run-output/`, and
|
|
237
|
+
similar runtime-only paths are excluded.
|
|
238
|
+
|
|
239
|
+
In short: **`docs/` is the project's specification, and the app is a
|
|
240
|
+
UI for editing it.** Treat it like source code, commit often, and let
|
|
241
|
+
agents build from it.
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 7. Where to go next
|
|
246
|
+
|
|
247
|
+
- **Read `.ombutocode/OMBUTOCODE_ENGINEERING_GUIDE.md`.** Even if you
|
|
248
|
+
never write a coding agent yourself, this document explains the
|
|
249
|
+
ticket lifecycle, scheduler rules, and what agents are and aren't
|
|
250
|
+
allowed to do. It's short.
|
|
251
|
+
- **Explore `.ombutocode/templates/`.** The `backlog.yml` and `epic.md`
|
|
252
|
+
templates show you the fields agents expect, which is useful when
|
|
253
|
+
you write tickets or epics by hand.
|
|
254
|
+
- **Check `.ombutocode/codingagents/codingagents.yml`.** That's where
|
|
255
|
+
you configure which CLIs are available, which models they use, and
|
|
256
|
+
concurrency limits.
|
|
257
|
+
- **Settings → Coding Agents (inside the app)** has a **Test** button
|
|
258
|
+
that verifies each agent is reachable and authenticated. Run it
|
|
259
|
+
before you enable the scheduler.
|
|
260
|
+
|
|
261
|
+
Happy building.
|