rrce-workflow 0.2.64 → 0.2.65
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/README.md +5 -2
- package/agent-core/prompts/doctor.md +13 -7
- package/agent-core/prompts/documentation.md +12 -15
- package/agent-core/prompts/executor.md +12 -15
- package/agent-core/prompts/init.md +16 -25
- package/agent-core/prompts/planning_orchestrator.md +12 -15
- package/agent-core/prompts/research_discussion.md +12 -15
- package/agent-core/prompts/sync.md +12 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,11 +98,13 @@ Add to `~/.config/claude/claude_desktop_config.json`:
|
|
|
98
98
|
RRCE-Workflow supports two ways to store your agent workflow data (`knowledge/`, `tasks/`, `refs/`).
|
|
99
99
|
|
|
100
100
|
### 1. Global Mode (Default & Recommended)
|
|
101
|
-
Stores configuration and knowledge outside your project directory in `~/.rrce-workflow/workspaces/<project-name
|
|
101
|
+
Stores configuration and knowledge outside your project directory in `~/.rrce-workflow/workspaces/<project-name>` (or a custom path you configure).
|
|
102
102
|
|
|
103
103
|
* **✅ Pros**: Keeps your repo clean, easy cross-project linking, no `.gitignore` pollution.
|
|
104
104
|
* **❌ Cons**: Knowledge isn't checked into your project's git repo (unless you manually sync/backup).
|
|
105
105
|
|
|
106
|
+
**Custom Global Path**: When running the wizard, you can choose a custom location instead of `~/.rrce-workflow/`. Your preference is saved and automatically used for future projects.
|
|
107
|
+
|
|
106
108
|
### 2. Workspace Mode (Alternative)
|
|
107
109
|
Stores everything in a `.rrce-workflow` folder inside your project root.
|
|
108
110
|
|
|
@@ -125,6 +127,7 @@ Once installed, you gain access to powerful agent workflows. Invoke them using y
|
|
|
125
127
|
| **Execute** | **Implementation** | The "coding" phase. Implements the plan created by the Planning agent. |
|
|
126
128
|
| **Docs** | **Documentation** | Generates tailored docs (API refs, guides) from code. |
|
|
127
129
|
| **Sync** | **Knowledge Maintenance** | Scans code changes to update the `knowledge/` folder. |
|
|
130
|
+
| **Doctor** | **Health Analysis** | Analyzes codebase for issues, tech debt, and improvement opportunities. |
|
|
128
131
|
|
|
129
132
|
### Recommended Workflow
|
|
130
133
|
1. **`/init`**: "Analyze this codebase." -> Creates `project-context.md`.
|
|
@@ -145,7 +148,7 @@ RAG is enabled by default in Express Setup. You can toggle it per-project in the
|
|
|
145
148
|
|
|
146
149
|
---
|
|
147
150
|
|
|
148
|
-
##
|
|
151
|
+
## Requirements
|
|
149
152
|
|
|
150
153
|
- **Node.js 18+**
|
|
151
154
|
- **Git**
|
|
@@ -18,13 +18,19 @@ auto-identity:
|
|
|
18
18
|
|
|
19
19
|
You are the Project Doctor for RRCE-Workflow. Operate like a senior technical consultant performing a health check on the codebase to identify issues, technical debt, and improvement opportunities.
|
|
20
20
|
|
|
21
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
RRCE_HOME =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
22
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
23
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
24
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
25
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
26
|
+
|
|
27
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config.
|
|
28
|
+
|
|
29
|
+
Path Variables Reference:
|
|
30
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
31
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
32
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
33
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
28
34
|
|
|
29
35
|
## Pipeline Position
|
|
30
36
|
- **Input**: Can be triggered at any time for project health analysis.
|
|
@@ -20,13 +20,13 @@ auto-identity:
|
|
|
20
20
|
|
|
21
21
|
You are the Documentation Lead for the project. Operate like a senior engineering manager responsible for synthesizing knowledge and preparing smooth handovers.
|
|
22
22
|
|
|
23
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
RRCE_HOME =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
24
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
25
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
26
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
27
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
28
|
+
|
|
29
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config.
|
|
30
30
|
|
|
31
31
|
Pipeline Position
|
|
32
32
|
- **Optional**: Documentation can be run at any point, but is most valuable after Execution.
|
|
@@ -55,14 +55,11 @@ Non-Negotiables
|
|
|
55
55
|
5. Store persistent insights back into `{{RRCE_DATA}}/knowledge` when they apply beyond the immediate deliverable.
|
|
56
56
|
6. Close the loop in `meta.json` when working within a task by setting `agents.documentation.status`, refreshing `checklist`, and updating overall `status`.
|
|
57
57
|
|
|
58
|
-
Path
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
2. Resolve: `workspace` → `.rrce-workflow/` | `global` → `{{RRCE_HOME}}/workspaces/<name>/`
|
|
64
|
-
|
|
65
|
-
**How to resolve `{{RRCE_HOME}}`**: `config.yaml` → `storage.globalPath` or default `~/.rrce-workflow`
|
|
58
|
+
Path Variables Reference
|
|
59
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
60
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
61
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
62
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
66
63
|
|
|
67
64
|
Cross-Project References
|
|
68
65
|
- Reference another project's context: `{{RRCE_HOME}}/workspaces/<other-project>/knowledge/`
|
|
@@ -16,13 +16,13 @@ auto-identity:
|
|
|
16
16
|
|
|
17
17
|
You are the Executor for the project. Operate like a senior individual contributor who ships clean, well-tested code aligned with the orchestrated plan.
|
|
18
18
|
|
|
19
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
RRCE_HOME =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
20
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
21
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
22
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
23
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
24
|
+
|
|
25
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config.
|
|
26
26
|
|
|
27
27
|
Pipeline Position
|
|
28
28
|
- **Requires**: Planning phase must be complete before execution can begin.
|
|
@@ -60,14 +60,11 @@ Non-Negotiables
|
|
|
60
60
|
5. Keep execution notes under 500 lines, logging command outputs succinctly rather than verbatim dumps.
|
|
61
61
|
6. Update `meta.json` as you proceed so statuses stay accurate.
|
|
62
62
|
|
|
63
|
-
Path
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
2. Resolve: `workspace` → `.rrce-workflow/` | `global` → `{{RRCE_HOME}}/workspaces/<name>/`
|
|
69
|
-
|
|
70
|
-
**How to resolve `{{RRCE_HOME}}`**: `config.yaml` → `storage.globalPath` or default `~/.rrce-workflow`
|
|
63
|
+
Path Variables Reference
|
|
64
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
65
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
66
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
67
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
71
68
|
|
|
72
69
|
Cross-Project References
|
|
73
70
|
- Reference another project's context: `{{RRCE_HOME}}/workspaces/<other-project>/knowledge/`
|
|
@@ -15,13 +15,16 @@ auto-identity:
|
|
|
15
15
|
|
|
16
16
|
You are the Project Initializer for RRCE-Workflow. Operate like a senior architect performing a comprehensive codebase audit to establish foundational context for all downstream agents.
|
|
17
17
|
|
|
18
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
RRCE_HOME =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
19
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
20
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
21
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
22
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
23
|
+
|
|
24
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config:
|
|
25
|
+
1. Check `.rrce-workflow/config.yaml` (workspace mode) OR `{{RRCE_HOME}}/workspaces/<project>/config.yaml` (global mode)
|
|
26
|
+
2. Resolve: `RRCE_DATA = (mode == "workspace") ? ".rrce-workflow/" : "${RRCE_HOME}/workspaces/${project.name}/"`
|
|
27
|
+
3. Default if no config: `RRCE_HOME=~/.rrce-workflow`, `RRCE_DATA=.rrce-workflow/`
|
|
25
28
|
|
|
26
29
|
Pipeline Position
|
|
27
30
|
- **Entry Point**: Init can be run at any time to establish or update project context.
|
|
@@ -41,29 +44,17 @@ Non-Negotiables
|
|
|
41
44
|
5. Never assume; if information is ambiguous, note it as requiring clarification.
|
|
42
45
|
6. Keep output actionable and scannable; use structured sections.
|
|
43
46
|
|
|
44
|
-
Path
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
2. Get `storage.mode` (default: `global`) and `project.name`
|
|
50
|
-
3. Resolve based on mode:
|
|
51
|
-
- `workspace` → `<workspace>/.rrce-workflow/`
|
|
52
|
-
- `global` → `{{RRCE_HOME}}/workspaces/<project.name>/`
|
|
53
|
-
|
|
54
|
-
**How to resolve `{{RRCE_HOME}}`** (global home):
|
|
55
|
-
1. Read `.rrce-workflow/config.yaml`
|
|
56
|
-
2. If `storage.globalPath` exists, use that value
|
|
57
|
-
3. Otherwise, default to `~/.rrce-workflow`
|
|
58
|
-
|
|
59
|
-
**Other variables:**
|
|
60
|
-
- `{{WORKSPACE_ROOT}}` = Current workspace directory
|
|
61
|
-
- `{{WORKSPACE_NAME}}` = `config.yaml` → `project.name`
|
|
47
|
+
Path Variables Reference
|
|
48
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
49
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
50
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
51
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
62
52
|
|
|
63
53
|
Cross-Project References
|
|
64
54
|
- To reference another project's context: `{{RRCE_HOME}}/workspaces/<other-project-name>/knowledge/`
|
|
65
55
|
- Example: FE project can reference BE project via `{{RRCE_HOME}}/workspaces/my-backend/knowledge/project-context.md`
|
|
66
56
|
|
|
57
|
+
|
|
67
58
|
Discovery Workflow
|
|
68
59
|
1. **Project Identity**
|
|
69
60
|
- Detect project name from manifests or directory name
|
|
@@ -13,13 +13,13 @@ auto-identity:
|
|
|
13
13
|
|
|
14
14
|
You are the Planning & Task Orchestrator for the project. Operate like an engineering manager with deep scoped knowledge of this codebase.
|
|
15
15
|
|
|
16
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
RRCE_HOME =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
17
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
18
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
19
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
20
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
21
|
+
|
|
22
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config.
|
|
23
23
|
|
|
24
24
|
Pipeline Position
|
|
25
25
|
- **Requires**: Research phase must be complete before planning can begin.
|
|
@@ -52,14 +52,11 @@ Non-Negotiables
|
|
|
52
52
|
5. Track how each task ties back to product goals, risks, and testing strategy.
|
|
53
53
|
6. Keep the written plan under 500 lines and reference supporting materials explicitly.
|
|
54
54
|
|
|
55
|
-
Path
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
2. Resolve: `workspace` → `.rrce-workflow/` | `global` → `{{RRCE_HOME}}/workspaces/<name>/`
|
|
61
|
-
|
|
62
|
-
**How to resolve `{{RRCE_HOME}}`**: `config.yaml` → `storage.globalPath` or default `~/.rrce-workflow`
|
|
55
|
+
Path Variables Reference
|
|
56
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
57
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
58
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
59
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
63
60
|
|
|
64
61
|
Cross-Project References
|
|
65
62
|
- Reference another project's context: `{{RRCE_HOME}}/workspaces/<other-project>/knowledge/`
|
|
@@ -20,13 +20,13 @@ auto-identity:
|
|
|
20
20
|
|
|
21
21
|
You are the Research & Discussion Lead for the project. Operate like a staff-level tech lead who owns broad project awareness.
|
|
22
22
|
|
|
23
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
RRCE_HOME =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
24
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
25
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
26
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
27
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
28
|
+
|
|
29
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config.
|
|
30
30
|
|
|
31
31
|
Pipeline Position
|
|
32
32
|
- **Entry Point**: Research can be the first agent invoked for a new task.
|
|
@@ -45,14 +45,11 @@ Non-Negotiables
|
|
|
45
45
|
5. Do not hand off to Planning until answers are captured or explicitly marked as pending for follow-up.
|
|
46
46
|
6. Keep the final brief under 500 lines and reference concrete sources whenever possible.
|
|
47
47
|
|
|
48
|
-
Path
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
2. Resolve: `workspace` → `.rrce-workflow/` | `global` → `{{RRCE_HOME}}/workspaces/<name>/`
|
|
54
|
-
|
|
55
|
-
**How to resolve `{{RRCE_HOME}}`**: `config.yaml` → `storage.globalPath` or default `~/.rrce-workflow`
|
|
48
|
+
Path Variables Reference
|
|
49
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
50
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
51
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
52
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
56
53
|
|
|
57
54
|
Cross-Project References
|
|
58
55
|
- Reference another project's context: `{{RRCE_HOME}}/workspaces/<other-project>/knowledge/`
|
|
@@ -14,13 +14,13 @@ auto-identity:
|
|
|
14
14
|
|
|
15
15
|
You are the Knowledge Sync Lead. Act like a senior architect charged with keeping the RRCE knowledge cache authoritative and current.
|
|
16
16
|
|
|
17
|
-
**⚠️ FIRST STEP (MANDATORY)**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
RRCE_HOME =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
**⚠️ FIRST STEP (MANDATORY) - Path Resolution**
|
|
18
|
+
Check if the system has pre-resolved paths for you. Look for a "System Resolved Paths" section at the start of this prompt context. If present, use those values directly:
|
|
19
|
+
- `RRCE_DATA` = Pre-resolved data path (where knowledge, tasks, refs are stored)
|
|
20
|
+
- `RRCE_HOME` = Pre-resolved global home
|
|
21
|
+
- `WORKSPACE_ROOT` = Pre-resolved source code location
|
|
22
|
+
|
|
23
|
+
**Only if no pre-resolved paths are present**, fall back to manual resolution by reading config.
|
|
24
24
|
|
|
25
25
|
Pipeline Position
|
|
26
26
|
- **Maintenance Agent**: Sync runs periodically or after significant codebase changes to keep knowledge current.
|
|
@@ -45,14 +45,11 @@ Non-Negotiables
|
|
|
45
45
|
4. Keep all knowledge files lean (<500 lines each) and focused on durable insights, linking to code paths or task artifacts instead of duplicating detail.
|
|
46
46
|
5. Record gaps or follow-up items in a checklist inside the file you touched so future runs can close them.
|
|
47
47
|
|
|
48
|
-
Path
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
2. Resolve: `workspace` → `.rrce-workflow/` | `global` → `{{RRCE_HOME}}/workspaces/<name>/`
|
|
54
|
-
|
|
55
|
-
**How to resolve `{{RRCE_HOME}}`**: `config.yaml` → `storage.globalPath` or default `~/.rrce-workflow`
|
|
48
|
+
Path Variables Reference
|
|
49
|
+
- `{{RRCE_DATA}}` = Primary data path (knowledge, tasks, refs storage)
|
|
50
|
+
- `{{RRCE_HOME}}` = Global RRCE home directory
|
|
51
|
+
- `{{WORKSPACE_ROOT}}` = Source code directory
|
|
52
|
+
- `{{WORKSPACE_NAME}}` = Project name
|
|
56
53
|
|
|
57
54
|
Cross-Project References
|
|
58
55
|
- Reference another project's context: `{{RRCE_HOME}}/workspaces/<other-project>/knowledge/`
|