@orderful/droid 0.22.0 → 0.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @orderful/droid
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#115](https://github.com/Orderful/droid/pull/115) [`fc2e182`](https://github.com/Orderful/droid/commit/fc2e18211136ef78f839394d322a1afaae54d2a7) Thanks [@frytyler](https://github.com/frytyler)! - feat(project): add --from codex:{name} to seed projects from shared context
8
+
9
+ New command syntax: `/project create --from codex:{name}` creates a personal project seeded with context from the shared organizational codex. Extracts overview from PRD, goals, and technical details from tech design, then links back to the codex source for full context.
10
+
3
11
  ## 0.22.0
4
12
 
5
13
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  name: project
2
2
  description: "Manage project context files for persistent AI memory across sessions. Load, update, or create project context before working on multi-session features."
3
- version: 0.1.5
3
+ version: 0.2.0
4
4
  status: beta
5
5
 
6
6
  includes:
@@ -49,6 +49,7 @@ Default `projects_dir` by AI tool (only if overrides.yaml is missing or lacks `p
49
49
  | `/project` | List and select a project |
50
50
  | `/project {keywords}` | **Search** for existing project (fuzzy-match and load) |
51
51
  | `/project create {name}` | Create new project (requires `create` keyword) |
52
+ | `/project create --from codex:{name}` | Create project seeded with codex context |
52
53
  | `/project update` | Update from conversation context |
53
54
 
54
55
  **IMPORTANT:** The default action for `/project {keywords}` is to **SEARCH** for existing projects, NOT create. Only use `/project create {name}` when the user explicitly wants to create a new project.
@@ -77,6 +78,8 @@ Changelog format: `references/changelog.md`
77
78
 
78
79
  **TLDR:** Create folder in `projects_dir`, generate PROJECT.md + CHANGELOG.md from templates.
79
80
 
81
+ **From codex:** Use `--from codex:{name}` to seed with shared organizational context. Extracts overview from PRD, technical details from tech design, and links to codex source.
82
+
80
83
  Full procedure: `references/creating.md`
81
84
  Templates: `references/templates.md`
82
85
 
@@ -61,3 +61,101 @@ New projects start minimal and grow organically. Common sections added over time
61
61
  - **Roadmap** - Future phases
62
62
 
63
63
  See `templates.md` for the full initial template.
64
+
65
+ ---
66
+
67
+ ## Creating from Codex
68
+
69
+ **Trigger:** `/project create --from codex:{name}` or `/project create {name} --from codex:{codex-name}`
70
+
71
+ Bridge shared organizational knowledge (codex) to personal working memory (project).
72
+
73
+ ### Procedure
74
+
75
+ 1. **Parse arguments**
76
+ - If only `--from codex:{name}` → use codex name as project name
77
+ - If `{name} --from codex:{codex-name}` → use custom project name
78
+
79
+ 2. **Load codex entry**
80
+ - Read `~/.droid/skills/codex/overrides.yaml` for `codex_repo` path
81
+ - Sync: `git -C {codex_repo} pull --rebase --quiet`
82
+ - Locate `{codex_repo}/projects/{name}/`
83
+ - If not found → error with suggestions from available projects
84
+
85
+ 3. **Extract context from codex files**
86
+
87
+ **From PRD.md:**
88
+ - Title from frontmatter or H1
89
+ - Problem Statement → Overview
90
+ - Goals section → Goals list
91
+ - Status from frontmatter
92
+
93
+ **From TECH-DESIGN.md:**
94
+ - Overview section → Technical Details intro
95
+ - Architecture section → Technical Details (summarised)
96
+ - `codebase_paths` from frontmatter → Key Paths
97
+
98
+ **From DECISIONS.md:**
99
+ - Count of decisions → mention in Overview
100
+ - Do not copy content (link to codex instead)
101
+
102
+ 4. **Create project folder** (same as standard create)
103
+ - Path: `{projects_dir}/{kebab-case-name}/`
104
+ - Verify folder doesn't already exist
105
+
106
+ 5. **Create files from seeded template** (see `templates.md` - Seeded from Codex)
107
+ - `PROJECT.md` - Pre-filled with extracted context
108
+ - `CHANGELOG.md` - Notes codex source
109
+
110
+ 6. **Confirm creation**
111
+ ```
112
+ Created project "Transaction Templates" seeded from codex.
113
+
114
+ 📁 ~/.claude/projects/transaction-templates/
115
+ ├── PROJECT.md (seeded with codex context)
116
+ └── CHANGELOG.md
117
+
118
+ Codex source: projects/transaction-templates
119
+
120
+ The project is pre-filled with:
121
+ - Overview from PRD problem statement
122
+ - Goals from PRD
123
+ - Technical details from tech design
124
+
125
+ Full codex docs remain at: {codex_repo}/projects/{name}/
126
+ Use `/codex {name}` to load the complete shared context.
127
+ ```
128
+
129
+ ### Error Handling
130
+
131
+ **Codex project not found:**
132
+ ```
133
+ No codex project found for "{name}".
134
+
135
+ Available projects:
136
+ - partnership-automation
137
+ - generic-scenario-testing
138
+
139
+ Try: /project create --from codex:partnership-automation
140
+ ```
141
+
142
+ **Project folder already exists:**
143
+ ```
144
+ A project named "{name}" already exists at {path}.
145
+
146
+ Options:
147
+ - Load existing: /project {name}
148
+ - Use different name: /project create other-name --from codex:{codex-name}
149
+ ```
150
+
151
+ **Missing codex files:**
152
+ - If PRD.md missing: warn, proceed with available files
153
+ - If TECH-DESIGN.md missing: warn, proceed with available files
154
+ - If all files missing: error, suggest using standard create
155
+
156
+ ### Key Principles
157
+
158
+ - **Links, not copies** - PROJECT.md links to codex, doesn't duplicate it
159
+ - **Extracts summaries** - Brief context, not full documents
160
+ - **Links stay live** - `/codex {name}` always loads latest from repo
161
+ - **Independent growth** - PROJECT.md evolves separately during implementation
@@ -122,3 +122,99 @@ Same as markdown preset.
122
122
  | Links | `[text](path)` | `[[path\|text]]` |
123
123
  | YAML properties | Minimal (`status`) | Rich (`type`, `created`, `updated`) |
124
124
  | Related section | Optional | Included |
125
+
126
+ ---
127
+
128
+ ## Seeded from Codex
129
+
130
+ When creating with `--from codex:{name}`, use this template variant. Works with both markdown and obsidian presets.
131
+
132
+ ### Additional Variables
133
+
134
+ | Variable | Expands To |
135
+ |----------|------------|
136
+ | `{codex-name}` | Source codex project name |
137
+ | `{codex_repo}` | Path to codex repository |
138
+ | `{overview}` | Extracted from PRD problem statement |
139
+ | `{goals}` | Extracted from PRD goals (bullet list) |
140
+ | `{tech_details}` | Extracted from tech design overview |
141
+ | `{codebase_paths}` | Paths from tech design frontmatter |
142
+ | `{decision_count}` | Number of decisions in DECISIONS.md |
143
+
144
+ ### PROJECT.md (Seeded)
145
+
146
+ ```markdown
147
+ ---
148
+ status: active
149
+ codex_source: projects/{codex-name}
150
+ ---
151
+
152
+ # Project: {Name}
153
+
154
+ Personal working memory for {Name}, seeded from shared codex context.
155
+
156
+ | | |
157
+ |---|---|
158
+ | **Version** | 0.1.0 |
159
+ | **Started** | {today} |
160
+ | **Status** | Active |
161
+ | **Codex** | `projects/{codex-name}` |
162
+
163
+ ## Overview
164
+
165
+ {overview}
166
+
167
+ ## Goals
168
+
169
+ {goals}
170
+
171
+ ## Technical Details
172
+
173
+ {tech_details}
174
+
175
+ ### Key Paths
176
+
177
+ {codebase_paths}
178
+
179
+ ## Current Work
180
+
181
+ {To be filled during implementation}
182
+
183
+ ## Related
184
+
185
+ - **Codex project:** `/codex {codex-name}`
186
+ - **PRD:** `{codex_repo}/projects/{codex-name}/PRD.md`
187
+ - **Tech Design:** `{codex_repo}/projects/{codex-name}/TECH-DESIGN.md`
188
+ - **Decisions ({decision_count}):** `{codex_repo}/projects/{codex-name}/DECISIONS.md`
189
+
190
+ ## Changelog
191
+
192
+ See [CHANGELOG.md](CHANGELOG.md) for full history.
193
+
194
+ ### 0.1.0 - {today}
195
+ - Project created from codex:{codex-name}
196
+ ```
197
+
198
+ ### CHANGELOG.md (Seeded)
199
+
200
+ ```markdown
201
+ # Changelog
202
+
203
+ All notable changes to the {Name} project.
204
+
205
+ ## 0.1.0 - {today}
206
+ - Project created from codex:{codex-name}
207
+ - Seeded with context from PRD, TECH-DESIGN
208
+ ```
209
+
210
+ ### Extraction Guidelines
211
+
212
+ When extracting content from codex files:
213
+
214
+ 1. **Overview** - Look for "Problem Statement", "Overview", or first substantive paragraph in PRD.md
215
+ 2. **Goals** - Look for "Goals", "Objectives", or bulleted list in PRD.md
216
+ 3. **Tech Details** - Look for "Overview", "Architecture", or "Approach" in TECH-DESIGN.md
217
+ 4. **Codebase Paths** - Extract from `codebase_paths` frontmatter field
218
+
219
+ If a section is missing, use placeholder text:
220
+ - `{To be extracted from codex or filled manually}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderful/droid",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "AI workflow toolkit for sharing skills, commands, and agents across the team",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  name: project
2
2
  description: "Manage project context files for persistent AI memory across sessions. Load, update, or create project context before working on multi-session features."
3
- version: 0.1.5
3
+ version: 0.2.0
4
4
  status: beta
5
5
 
6
6
  includes:
@@ -49,6 +49,7 @@ Default `projects_dir` by AI tool (only if overrides.yaml is missing or lacks `p
49
49
  | `/project` | List and select a project |
50
50
  | `/project {keywords}` | **Search** for existing project (fuzzy-match and load) |
51
51
  | `/project create {name}` | Create new project (requires `create` keyword) |
52
+ | `/project create --from codex:{name}` | Create project seeded with codex context |
52
53
  | `/project update` | Update from conversation context |
53
54
 
54
55
  **IMPORTANT:** The default action for `/project {keywords}` is to **SEARCH** for existing projects, NOT create. Only use `/project create {name}` when the user explicitly wants to create a new project.
@@ -77,6 +78,8 @@ Changelog format: `references/changelog.md`
77
78
 
78
79
  **TLDR:** Create folder in `projects_dir`, generate PROJECT.md + CHANGELOG.md from templates.
79
80
 
81
+ **From codex:** Use `--from codex:{name}` to seed with shared organizational context. Extracts overview from PRD, technical details from tech design, and links to codex source.
82
+
80
83
  Full procedure: `references/creating.md`
81
84
  Templates: `references/templates.md`
82
85
 
@@ -61,3 +61,101 @@ New projects start minimal and grow organically. Common sections added over time
61
61
  - **Roadmap** - Future phases
62
62
 
63
63
  See `templates.md` for the full initial template.
64
+
65
+ ---
66
+
67
+ ## Creating from Codex
68
+
69
+ **Trigger:** `/project create --from codex:{name}` or `/project create {name} --from codex:{codex-name}`
70
+
71
+ Bridge shared organizational knowledge (codex) to personal working memory (project).
72
+
73
+ ### Procedure
74
+
75
+ 1. **Parse arguments**
76
+ - If only `--from codex:{name}` → use codex name as project name
77
+ - If `{name} --from codex:{codex-name}` → use custom project name
78
+
79
+ 2. **Load codex entry**
80
+ - Read `~/.droid/skills/codex/overrides.yaml` for `codex_repo` path
81
+ - Sync: `git -C {codex_repo} pull --rebase --quiet`
82
+ - Locate `{codex_repo}/projects/{name}/`
83
+ - If not found → error with suggestions from available projects
84
+
85
+ 3. **Extract context from codex files**
86
+
87
+ **From PRD.md:**
88
+ - Title from frontmatter or H1
89
+ - Problem Statement → Overview
90
+ - Goals section → Goals list
91
+ - Status from frontmatter
92
+
93
+ **From TECH-DESIGN.md:**
94
+ - Overview section → Technical Details intro
95
+ - Architecture section → Technical Details (summarised)
96
+ - `codebase_paths` from frontmatter → Key Paths
97
+
98
+ **From DECISIONS.md:**
99
+ - Count of decisions → mention in Overview
100
+ - Do not copy content (link to codex instead)
101
+
102
+ 4. **Create project folder** (same as standard create)
103
+ - Path: `{projects_dir}/{kebab-case-name}/`
104
+ - Verify folder doesn't already exist
105
+
106
+ 5. **Create files from seeded template** (see `templates.md` - Seeded from Codex)
107
+ - `PROJECT.md` - Pre-filled with extracted context
108
+ - `CHANGELOG.md` - Notes codex source
109
+
110
+ 6. **Confirm creation**
111
+ ```
112
+ Created project "Transaction Templates" seeded from codex.
113
+
114
+ 📁 ~/.claude/projects/transaction-templates/
115
+ ├── PROJECT.md (seeded with codex context)
116
+ └── CHANGELOG.md
117
+
118
+ Codex source: projects/transaction-templates
119
+
120
+ The project is pre-filled with:
121
+ - Overview from PRD problem statement
122
+ - Goals from PRD
123
+ - Technical details from tech design
124
+
125
+ Full codex docs remain at: {codex_repo}/projects/{name}/
126
+ Use `/codex {name}` to load the complete shared context.
127
+ ```
128
+
129
+ ### Error Handling
130
+
131
+ **Codex project not found:**
132
+ ```
133
+ No codex project found for "{name}".
134
+
135
+ Available projects:
136
+ - partnership-automation
137
+ - generic-scenario-testing
138
+
139
+ Try: /project create --from codex:partnership-automation
140
+ ```
141
+
142
+ **Project folder already exists:**
143
+ ```
144
+ A project named "{name}" already exists at {path}.
145
+
146
+ Options:
147
+ - Load existing: /project {name}
148
+ - Use different name: /project create other-name --from codex:{codex-name}
149
+ ```
150
+
151
+ **Missing codex files:**
152
+ - If PRD.md missing: warn, proceed with available files
153
+ - If TECH-DESIGN.md missing: warn, proceed with available files
154
+ - If all files missing: error, suggest using standard create
155
+
156
+ ### Key Principles
157
+
158
+ - **Links, not copies** - PROJECT.md links to codex, doesn't duplicate it
159
+ - **Extracts summaries** - Brief context, not full documents
160
+ - **Links stay live** - `/codex {name}` always loads latest from repo
161
+ - **Independent growth** - PROJECT.md evolves separately during implementation
@@ -122,3 +122,99 @@ Same as markdown preset.
122
122
  | Links | `[text](path)` | `[[path\|text]]` |
123
123
  | YAML properties | Minimal (`status`) | Rich (`type`, `created`, `updated`) |
124
124
  | Related section | Optional | Included |
125
+
126
+ ---
127
+
128
+ ## Seeded from Codex
129
+
130
+ When creating with `--from codex:{name}`, use this template variant. Works with both markdown and obsidian presets.
131
+
132
+ ### Additional Variables
133
+
134
+ | Variable | Expands To |
135
+ |----------|------------|
136
+ | `{codex-name}` | Source codex project name |
137
+ | `{codex_repo}` | Path to codex repository |
138
+ | `{overview}` | Extracted from PRD problem statement |
139
+ | `{goals}` | Extracted from PRD goals (bullet list) |
140
+ | `{tech_details}` | Extracted from tech design overview |
141
+ | `{codebase_paths}` | Paths from tech design frontmatter |
142
+ | `{decision_count}` | Number of decisions in DECISIONS.md |
143
+
144
+ ### PROJECT.md (Seeded)
145
+
146
+ ```markdown
147
+ ---
148
+ status: active
149
+ codex_source: projects/{codex-name}
150
+ ---
151
+
152
+ # Project: {Name}
153
+
154
+ Personal working memory for {Name}, seeded from shared codex context.
155
+
156
+ | | |
157
+ |---|---|
158
+ | **Version** | 0.1.0 |
159
+ | **Started** | {today} |
160
+ | **Status** | Active |
161
+ | **Codex** | `projects/{codex-name}` |
162
+
163
+ ## Overview
164
+
165
+ {overview}
166
+
167
+ ## Goals
168
+
169
+ {goals}
170
+
171
+ ## Technical Details
172
+
173
+ {tech_details}
174
+
175
+ ### Key Paths
176
+
177
+ {codebase_paths}
178
+
179
+ ## Current Work
180
+
181
+ {To be filled during implementation}
182
+
183
+ ## Related
184
+
185
+ - **Codex project:** `/codex {codex-name}`
186
+ - **PRD:** `{codex_repo}/projects/{codex-name}/PRD.md`
187
+ - **Tech Design:** `{codex_repo}/projects/{codex-name}/TECH-DESIGN.md`
188
+ - **Decisions ({decision_count}):** `{codex_repo}/projects/{codex-name}/DECISIONS.md`
189
+
190
+ ## Changelog
191
+
192
+ See [CHANGELOG.md](CHANGELOG.md) for full history.
193
+
194
+ ### 0.1.0 - {today}
195
+ - Project created from codex:{codex-name}
196
+ ```
197
+
198
+ ### CHANGELOG.md (Seeded)
199
+
200
+ ```markdown
201
+ # Changelog
202
+
203
+ All notable changes to the {Name} project.
204
+
205
+ ## 0.1.0 - {today}
206
+ - Project created from codex:{codex-name}
207
+ - Seeded with context from PRD, TECH-DESIGN
208
+ ```
209
+
210
+ ### Extraction Guidelines
211
+
212
+ When extracting content from codex files:
213
+
214
+ 1. **Overview** - Look for "Problem Statement", "Overview", or first substantive paragraph in PRD.md
215
+ 2. **Goals** - Look for "Goals", "Objectives", or bulleted list in PRD.md
216
+ 3. **Tech Details** - Look for "Overview", "Architecture", or "Approach" in TECH-DESIGN.md
217
+ 4. **Codebase Paths** - Extract from `codebase_paths` frontmatter field
218
+
219
+ If a section is missing, use placeholder text:
220
+ - `{To be extracted from codex or filled manually}`