rodo-spec 0.0.0-stage → 2.2.0
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/LICENSE +21 -0
- package/README.md +221 -2
- package/dist/index.js +14857 -0
- package/dist/kit/.agents/skills/rodo/SKILL.md +168 -0
- package/dist/kit/.agents/skills/rodo/coder.md +82 -0
- package/dist/kit/.agents/skills/rodo/onboarding.md +28 -0
- package/dist/kit/.agents/skills/rodo/planner.md +95 -0
- package/dist/kit/.agents/skills/rodo/small-change.md +44 -0
- package/dist/kit/.agents/skills/rodo/templates/acceptance.feature +18 -0
- package/dist/kit/.agents/skills/rodo/templates/card.rodo.md +33 -0
- package/dist/kit/.agents/skills/rodo/templates/design.md +15 -0
- package/dist/kit/.agents/skills/rodo/templates/en/acceptance.feature +18 -0
- package/dist/kit/.agents/skills/rodo/templates/en/card.rodo.md +32 -0
- package/dist/kit/.agents/skills/rodo/templates/en/request.rodo.md +14 -0
- package/dist/kit/.agents/skills/rodo/templates/en/simple.md +21 -0
- package/dist/kit/.agents/skills/rodo/templates/request.rodo.md +14 -0
- package/dist/kit/.agents/skills/rodo/templates/simple.md +21 -0
- package/dist/kit/.agents/skills/rodo/templates/spec.md +55 -0
- package/dist/kit/.agents/skills/rodo/testing.md +45 -0
- package/dist/kit/.gitattributes +1 -0
- package/dist/kit/KIT_VERSION +1 -0
- package/dist/kit/MIGRATION.md +71 -0
- package/dist/kit/agents-block.md +6 -0
- package/dist/kit/kit-manifest.json +228 -0
- package/dist/kit/project-template/CHANGELOG.md +6 -0
- package/dist/kit/project-template/MAP.md +22 -0
- package/dist/kit/project-template/MEMORY.md +6 -0
- package/dist/kit/project-template/RULES.md +278 -0
- package/dist/kit/project-template/project/architecture.md +19 -0
- package/dist/kit/project-template/project/brief.md +17 -0
- package/dist/kit/project-template/project/glossary.md +7 -0
- package/dist/kit/project-template/project.json +11 -0
- package/dist/kit/project-template-en/CHANGELOG.md +6 -0
- package/dist/kit/project-template-en/MAP.md +24 -0
- package/dist/kit/project-template-en/MEMORY.md +6 -0
- package/dist/kit/project-template-en/RULES.md +69 -0
- package/dist/kit/project-template-en/project/architecture.md +19 -0
- package/dist/kit/project-template-en/project/brief.md +17 -0
- package/dist/kit/project-template-en/project/glossary.md +7 -0
- package/dist/kit/project-template-en/project.json +11 -0
- package/package.json +48 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RODO contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,222 @@
|
|
|
1
|
-
#
|
|
1
|
+
# rodo-spec
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/rodo-spec)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
|
|
7
|
+
> **RODO is a way of working, not a gate.**
|
|
8
|
+
> It structures autonomous engineering cycles into predictable, reviewable, and human-aligned iterations through plain Markdown specifications and deterministic CLI automation.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
Modern software development often struggles to bridge high-level intentions with concrete agentic or human execution. `rodo-spec` introduces a disciplined protocol and developer toolkit (`rodo`) that captures intent, architecture, constraints, memory, and validation criteria directly in version-controlled Markdown artifacts.
|
|
15
|
+
|
|
16
|
+
Whether you run purely offline in **method-only mode** or connect with a shared RODO Kanban server, the framework guarantees that agents and developers always operate with full context, clear guardrails, and deterministic testing criteria.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Project Layout Tree
|
|
21
|
+
|
|
22
|
+
When initialized within a repository, RODO organizes agent capabilities, project knowledge, and cycle specifications into a clean, predictable hierarchy:
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
.
|
|
26
|
+
├── .agents/
|
|
27
|
+
│ └── skills/
|
|
28
|
+
│ └── rodo/ # Agent operational skills & execution prompts
|
|
29
|
+
├── rodo/
|
|
30
|
+
│ ├── kit.json # RODO workspace configuration & metadata
|
|
31
|
+
│ ├── AGENTS.md # Agent personas, capabilities, and constraints
|
|
32
|
+
│ └── <project>/
|
|
33
|
+
│ ├── MAP.md # System topology, module map, and dependencies
|
|
34
|
+
│ ├── MEMORY.md # Long-term cross-cycle knowledge & lessons learned
|
|
35
|
+
│ ├── RULES.md # Invariant project rules and architectural constraints
|
|
36
|
+
│ ├── CHANGELOG.md # Chronological log of accepted cycle outcomes
|
|
37
|
+
│ └── cycles/
|
|
38
|
+
│ └── NNN-slug/ # Discrete feature/task cycle (e.g., 001-auth-flow)
|
|
39
|
+
│ ├── card.rodo.md # Standard RODO cycle card metadata & state
|
|
40
|
+
│ ├── simple.md # High-level overview & developer summary
|
|
41
|
+
│ └── spec.md # Detailed technical spec, acceptance criteria & tests
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Installation
|
|
47
|
+
|
|
48
|
+
### Prerequisites
|
|
49
|
+
|
|
50
|
+
- **Node.js**: `>= 20.0.0`
|
|
51
|
+
- **npm**, **pnpm**, or **yarn**
|
|
52
|
+
|
|
53
|
+
### Global Install via npm
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install -g rodo-spec
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Install from Source / GitHub
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
git clone https://github.com/n3xus-ir/rodo-spec.git
|
|
63
|
+
cd rodo-spec
|
|
64
|
+
npm install
|
|
65
|
+
npm run build
|
|
66
|
+
npm link
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Quick Start (Offline / Method-Only Mode)
|
|
72
|
+
|
|
73
|
+
You can use RODO as a 100% offline methodology without signing up or connecting to any remote server.
|
|
74
|
+
|
|
75
|
+
### 1. Initialize your project
|
|
76
|
+
```bash
|
|
77
|
+
rodo init --method-only --project myapp --lang en
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 2. Scaffold your first cycle card
|
|
81
|
+
```bash
|
|
82
|
+
rodo new "My first feature"
|
|
83
|
+
```
|
|
84
|
+
This generates a new cycle directory under `rodo/myapp/cycles/001-my-first-feature/` containing `card.rodo.md`, `simple.md`, and `spec.md`.
|
|
85
|
+
|
|
86
|
+
### 3. Validate your specifications
|
|
87
|
+
Check that your specifications meet the schema, invariants, and constraints:
|
|
88
|
+
```bash
|
|
89
|
+
rodo validate --strict
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 4. Resume or inspect current progress
|
|
93
|
+
```bash
|
|
94
|
+
rodo resume
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 5. Run tests associated with the active card
|
|
98
|
+
```bash
|
|
99
|
+
rodo test
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 6. Review cycle and workspace health
|
|
103
|
+
```bash
|
|
104
|
+
rodo status
|
|
105
|
+
rodo doctor
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Commands Table
|
|
111
|
+
|
|
112
|
+
The CLI executable is `rodo`. Below is the complete reference of core commands:
|
|
113
|
+
|
|
114
|
+
| Command | Arguments / Flags | Description |
|
|
115
|
+
| :--- | :--- | :--- |
|
|
116
|
+
| `rodo init` | `[--method-only] [--project <name>] [--lang <en\|fa>] [--create-board] [--server <url>]` | Initializes RODO structure, configs, and agent templates in the current repository. |
|
|
117
|
+
| `rodo new` | `"<title>" [--slug <slug>] [--project <name>]` | Creates a new cycle card directory with standard RODO specification templates. |
|
|
118
|
+
| `rodo resume` | `[card]` | Resumes context on an active or specified cycle card for agent or human execution. |
|
|
119
|
+
| `rodo validate` | `[--strict] [--project <name>]` | Validates Markdown files, schemas, links, and invariants across project cycles. |
|
|
120
|
+
| `rodo test` | `[card]` | Executes the verification steps and tests declared in the card's `spec.md`. |
|
|
121
|
+
| `rodo status` | `[--local] [--project <name>]` | Displays the current cycle state, progression, and work-in-progress diagnostics. |
|
|
122
|
+
| `rodo sync` | `[--server <url>] [--force]` | Synchronizes local cards and states with the remote RODO board. |
|
|
123
|
+
| `rodo doctor` | _None_ | Diagnoses environment issues, missing dependencies, and directory configuration health. |
|
|
124
|
+
| `rodo login` | `[--server <url>]` | Authenticates CLI credentials with a remote RODO Kanban board server. |
|
|
125
|
+
| `rodo logout` | _None_ | Clears stored session tokens and remote authentication state. |
|
|
126
|
+
| `rodo version` | _None_ | Displays the current version of the CLI and core protocols. |
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Method-Only vs. Board Sync
|
|
131
|
+
|
|
132
|
+
RODO supports two operational modes:
|
|
133
|
+
|
|
134
|
+
### 1. Method-Only Mode (`--method-only`)
|
|
135
|
+
- Operates entirely offline.
|
|
136
|
+
- No network traffic, accounts, or API keys required.
|
|
137
|
+
- Ideal for personal open-source projects, air-gapped environments, or local-first agent workflows.
|
|
138
|
+
- Git remains the single source of truth.
|
|
139
|
+
|
|
140
|
+
### 2. Board Sync Mode
|
|
141
|
+
- Synchronizes your local Markdown cards and state transitions with a collaborative RODO visual board.
|
|
142
|
+
- Enabled by specifying a board server during `init` or running `rodo sync`.
|
|
143
|
+
- **Default Server**: `https://rodo.n3xus.ir`
|
|
144
|
+
- **Configuring the Server**:
|
|
145
|
+
- Pass the flag explicitly: `--server https://rodo.n3xus.ir`
|
|
146
|
+
- Or set the environment variable:
|
|
147
|
+
```bash
|
|
148
|
+
export RODO_SERVER="https://rodo.n3xus.ir"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Monorepo Packages
|
|
154
|
+
|
|
155
|
+
This repository is maintained as a monorepo consisting of modular, reusable packages:
|
|
156
|
+
|
|
157
|
+
- **[`packages/protocol`](packages/protocol)**: Core data models, state transition machines, invariant validators, and protocol constants.
|
|
158
|
+
- **[`packages/card-format`](packages/card-format)**: Markdown AST parsers, frontmatter serialisers, and schema definitions for `card.rodo.md`, `simple.md`, and `spec.md`.
|
|
159
|
+
- **[`packages/rodo-kit`](packages/rodo-kit)**: High-level workspace utilities, template engines, scaffolders, and file-system helpers.
|
|
160
|
+
- **[`packages/cli`](packages/cli)**: The end-user command-line binary (`rodo`) implementing the commands and interface.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## License
|
|
165
|
+
|
|
166
|
+
This project is licensed under the [MIT License](LICENSE).
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## راهنمای سریع (فارسی)
|
|
171
|
+
|
|
172
|
+
رودو (**RODO**) یک متدولوژی و جعبهابزار استاندارد برای توسعه نرمافزار با همکاری برنامهنویسان و هوش مصنوعی است. رودو یک دروازه سختگیرانه نیست، بلکه روشی ساختاریافته است تا تمام مراحل ایده، مشخصات فنی، معماری و آزمونها در قالب فایلهای ساده و شفاف Markdown ثبت، اعتبارسنجی و اجرا شوند.
|
|
173
|
+
|
|
174
|
+
### ۱. نصب
|
|
175
|
+
|
|
176
|
+
برای استفاده از ابزار خط فرمان `rodo`، نسخه ۲۰ یا بالاتر Node.js را نصب کرده و دستور زیر را اجرا کنید:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
npm i -g rodo-spec
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### ۲. شروع سریع بدون سرور (حالت محلی / Method-Only)
|
|
183
|
+
|
|
184
|
+
اگر میخواهید بدون نیاز به سرور و به صورت کاملاً آفلاین روی مخزن محلی خود کار کنید:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
# راهاندازی ساختار رودو به زبان فارسی
|
|
188
|
+
rodo init --method-only --project myapp --lang fa
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### ۳. شروع سریع همراه با سرور و تخته RODO
|
|
192
|
+
|
|
193
|
+
اگر تمایل دارید کارتها و چرخههای کاری با سرور متمرکز هماهنگ شوند:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# ورود به حساب کاربری
|
|
197
|
+
rodo login
|
|
198
|
+
|
|
199
|
+
# راهاندازی پروژه و ساخت تخته کاری
|
|
200
|
+
rodo init --project myapp --create-board
|
|
201
|
+
|
|
202
|
+
# همگامسازی وضعیتها با سرور
|
|
203
|
+
rodo sync
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
> **نکته:** آدرس پیشفرض سرور `https://rodo.n3xus.ir` است که میتوانید آن را از طریق متغیر محیطی `RODO_SERVER` یا آرگومان `--server` تغییر دهید.
|
|
207
|
+
|
|
208
|
+
### ۴. ساخت کارت چرخه جدید و اعتبارسنجی
|
|
209
|
+
|
|
210
|
+
برای تعریف یک تسک یا قابلیت جدید:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# ساخت کارت جدید با اسلاگ اختصاصی
|
|
214
|
+
rodo new "پیادهسازی احراز هویت" --slug auth-feature
|
|
215
|
+
|
|
216
|
+
# بررسی صحت فایلها و عدم وجود خطای ساختاری
|
|
217
|
+
rodo validate --strict
|
|
218
|
+
|
|
219
|
+
# اجرای آزمونها و بررسی سلامت محیط
|
|
220
|
+
rodo test
|
|
221
|
+
rodo doctor
|
|
222
|
+
```
|