@shinnodua/agent-workflows 0.0.0-stage → 0.2.8
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/.agents/agents/backend-developer/agent.md +39 -0
- package/.agents/agents/frontend-developer/agent.md +42 -0
- package/.agents/agents/project-manager/agent.md +37 -0
- package/.agents/agents/tech-lead/agent.md +41 -0
- package/.agents/agents/ui-ux-designer/agent.md +41 -0
- package/.agents/skills/add-project/SKILL.md +90 -0
- package/.agents/skills/add-project/agents/openai.yaml +4 -0
- package/.agents/skills/add-project/references/save-protocol.md +90 -0
- package/.agents/skills/approve-plan/SKILL.md +86 -0
- package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
- package/.agents/skills/approve-prd/SKILL.md +59 -0
- package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
- package/.agents/skills/auto-mode/SKILL.md +103 -0
- package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
- package/.agents/skills/create-design/SKILL.md +197 -0
- package/.agents/skills/create-design/agents/openai.yaml +4 -0
- package/.agents/skills/create-diagram/SKILL.md +83 -0
- package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
- package/.agents/skills/create-plan/SKILL.md +104 -0
- package/.agents/skills/create-plan/agents/openai.yaml +4 -0
- package/.agents/skills/create-prd/SKILL.md +82 -0
- package/.agents/skills/create-prd/agents/openai.yaml +4 -0
- package/.agents/skills/griling-plan/SKILL.md +114 -0
- package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
- package/.agents/skills/griling-prd/SKILL.md +91 -0
- package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
- package/.agents/skills/package-installation/SKILL.md +67 -0
- package/.agents/skills/package-installation/agents/openai.yaml +4 -0
- package/.agents/skills/project-setup/SKILL.md +104 -0
- package/.agents/skills/project-setup/agents/openai.yaml +3 -0
- package/.agents/skills/research/SKILL.md +61 -0
- package/.agents/skills/research/agents/openai.yaml +4 -0
- package/.agents/skills/sprint-meeting/SKILL.md +230 -0
- package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
- package/.claude/agents/backend-developer.md +7 -0
- package/.claude/agents/frontend-developer.md +7 -0
- package/.claude/agents/project-manager.md +7 -0
- package/.claude/agents/tech-lead.md +7 -0
- package/.claude/agents/ui-ux-designer.md +7 -0
- package/.claude/skills/add-project/SKILL.md +10 -0
- package/.claude/skills/approve-plan/SKILL.md +8 -0
- package/.claude/skills/approve-prd/SKILL.md +8 -0
- package/.claude/skills/auto-mode/SKILL.md +8 -0
- package/.claude/skills/create-design/SKILL.md +8 -0
- package/.claude/skills/create-diagram/SKILL.md +8 -0
- package/.claude/skills/create-plan/SKILL.md +8 -0
- package/.claude/skills/create-prd/SKILL.md +8 -0
- package/.claude/skills/griling-plan/SKILL.md +8 -0
- package/.claude/skills/griling-prd/SKILL.md +8 -0
- package/.claude/skills/package-installation/SKILL.md +8 -0
- package/.claude/skills/project-setup/SKILL.md +8 -0
- package/.claude/skills/research/SKILL.md +8 -0
- package/.claude/skills/sprint-meeting/SKILL.md +8 -0
- package/.codex/prompts/add-project.md +3 -0
- package/.codex/prompts/approve-plan.md +3 -0
- package/.codex/prompts/approve-prd.md +3 -0
- package/.codex/prompts/auto-mode.md +3 -0
- package/.codex/prompts/create-design.md +3 -0
- package/.codex/prompts/create-diagram.md +3 -0
- package/.codex/prompts/create-plan.md +3 -0
- package/.codex/prompts/create-prd.md +3 -0
- package/.codex/prompts/griling-plan.md +3 -0
- package/.codex/prompts/griling-prd.md +3 -0
- package/.codex/prompts/grilling-plan.md +3 -0
- package/.codex/prompts/project-setup.md +3 -0
- package/.codex/prompts/research.md +3 -0
- package/.codex/prompts/sprint-meeting.md +3 -0
- package/.gitmodules.example +9 -0
- package/AGENTS.md +84 -0
- package/CLAUDE.md +1 -0
- package/INSTALL.md +284 -0
- package/LICENSE +21 -0
- package/README.md +342 -2
- package/bin/postinstall.js +57 -0
- package/bin/workflows.js +1172 -0
- package/bin/workflows.test.mjs +682 -0
- package/commands/add-project.md +20 -0
- package/commands/approve-plan.md +25 -0
- package/commands/approve-prd.md +24 -0
- package/commands/auto-mode.md +15 -0
- package/commands/create-design.md +20 -0
- package/commands/create-diagram.md +16 -0
- package/commands/create-plan.md +22 -0
- package/commands/create-prd.md +16 -0
- package/commands/griling-plan.md +16 -0
- package/commands/griling-prd.md +16 -0
- package/commands/grilling-plan.md +16 -0
- package/commands/project-setup.md +16 -0
- package/commands/research.md +16 -0
- package/commands/sprint-meeting.md +16 -0
- package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
- package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
- package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
- package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
- package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
- package/dashboard/AGENTS.md +43 -0
- package/dashboard/bun.lock +352 -0
- package/dashboard/index.html +12 -0
- package/dashboard/package.json +32 -0
- package/dashboard/src/App.tsx +5 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
- package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
- package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
- package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
- package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
- package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
- package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
- package/dashboard/src/features/task-status/utils/status.ts +7 -0
- package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
- package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
- package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
- package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
- package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
- package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
- package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
- package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
- package/dashboard/src/main.tsx +16 -0
- package/dashboard/src/shared/design-system.css +134 -0
- package/dashboard/src/shared/design-system.tsx +84 -0
- package/dashboard/src/styles.css +41 -0
- package/dashboard/src/types.ts +133 -0
- package/dashboard/src/workspace-artifacts.d.ts +9 -0
- package/dashboard/tsconfig.json +22 -0
- package/dashboard/vite.config.ts +579 -0
- package/designs/.gitkeep +1 -0
- package/docs/add-project-command-completion.md +117 -0
- package/docs/public-npm-registry-completion.md +104 -0
- package/docs/workflows.png +0 -0
- package/docs/workspace-template-setup.md +229 -0
- package/meeting-logs/.gitkeep +1 -0
- package/modules/.gitkeep +1 -0
- package/package.json +96 -5
- package/plans/.gitkeep +1 -0
- package/prds/.gitkeep +1 -0
- package/project/PROJECT.md +26 -0
- package/project/repositories.json +72 -0
- package/project/validation.json +9 -0
- package/project/workflows.json +20 -0
- package/research/.gitkeep +1 -0
- package/roles/backend-developer.md +26 -0
- package/roles/frontend-developer.md +25 -0
- package/roles/project-manager.md +42 -0
- package/roles/tech-lead.md +42 -0
- package/roles/ui-ux-designer.md +43 -0
- package/scripts/add-project.mjs +990 -0
- package/scripts/add-project.test.mjs +804 -0
- package/scripts/check-staged-security.mjs +97 -0
- package/scripts/check-staged-security.test.mjs +68 -0
- package/scripts/workspace-integrity.ts +220 -0
- package/templates/auto-mode-completion-summary-template.md +78 -0
- package/templates/meeting-log-template.md +177 -0
- package/templates/plan-template.md +219 -0
- package/templates/prd-template.md +106 -0
- package/templates/research-template.md +119 -0
- package/workflows.md +590 -0
- package/workspace.config.json +43 -0
package/workflows.md
ADDED
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
# Reusable Workspace Workflows
|
|
2
|
+
|
|
3
|
+
This document is the readable source for recurring workspace workflows. Keep
|
|
4
|
+
`AGENTS.md` focused on repository orientation and durable agent rules; keep
|
|
5
|
+
step-by-step workflow behavior here.
|
|
6
|
+
|
|
7
|
+
## Common Workflow
|
|
8
|
+
|
|
9
|
+
Install Agent Workflows in the project that should follow this workflow:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
bun add --dev @shinnodua/agent-workflows
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Initialize workflow files from the project root:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bunx workflows init
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Restart or reload any active agent session after initialization so source agents
|
|
22
|
+
can discover the local `.agents/agents/`, `.codex/prompts/`, `.claude/agents/`,
|
|
23
|
+
`.claude/skills/`, `.agents/skills/`, `commands/`, and `workflows.md` shims.
|
|
24
|
+
Claude Code reads `CLAUDE.md`, which imports the shared `AGENTS.md` rules.
|
|
25
|
+
|
|
26
|
+
Fill the project profile files with guided setup:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
/project-setup
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
When Agent Workflows is upgraded in an initialized project, refresh reusable
|
|
33
|
+
workflow files explicitly:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
bunx workflows update
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
To run this refresh during package installation, set
|
|
40
|
+
`AGENT_WORKFLOWS_AUTO_UPDATE=1` for the install command.
|
|
41
|
+
|
|
42
|
+
Restart or reload any active agent session after the refresh so it can discover
|
|
43
|
+
updated custom agent, command, and skill shims.
|
|
44
|
+
|
|
45
|
+
Initialized consuming workspaces use a hybrid source model:
|
|
46
|
+
|
|
47
|
+
- Local files provide agent discovery shims for `.agents/agents/*/agent.md`,
|
|
48
|
+
`.agents/skills/*/SKILL.md`, `.codex/prompts/*.md`,
|
|
49
|
+
`.claude/skills/*/SKILL.md`, `.claude/agents/*.md`, `commands/*.md`,
|
|
50
|
+
`AGENTS.md`, `CLAUDE.md`, `workflows.md`, reusable `roles/`, `templates/`,
|
|
51
|
+
and setup docs.
|
|
52
|
+
- Packaged files under the installed `@shinnodua/agent-workflows` package remain
|
|
53
|
+
the source of truth for reusable workflow behavior.
|
|
54
|
+
- Project-owned files stay local: `project/`, `prds/`, `plans/`, `designs/`,
|
|
55
|
+
`research/`, `meeting-logs/`, `docs/`, `modules/`, and
|
|
56
|
+
`workspace.config.json`. Auto mode is stored there under `autoMode`.
|
|
57
|
+
`workflows update` migrates an older `.agent-workflows/metadata.json` setting
|
|
58
|
+
and retains unrelated data from that legacy file.
|
|
59
|
+
- `workflows update` refreshes local shims when commands, skills, or reusable
|
|
60
|
+
references are added, removed, or renamed.
|
|
61
|
+
|
|
62
|
+
Clone an existing initialized workspace with submodules:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
git clone --recurse-submodules <workspace-repo-url>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Initialize submodules after a normal clone:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
git submodule update --init --recursive
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Update submodules to the commits recorded by the workspace:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
git submodule update --recursive
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Pull latest branches inside each submodule when intentionally refreshing
|
|
81
|
+
context:
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
git submodule foreach 'git pull --ff-only'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Check root and submodule status:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
git status
|
|
91
|
+
git submodule status
|
|
92
|
+
git submodule foreach 'git status --short'
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Run the local task-status dashboard against the current project:
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
bunx workflows dashboard
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Validate the local task-status dashboard:
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
bun run dashboard:typecheck
|
|
105
|
+
bun run dashboard:test
|
|
106
|
+
bun run dashboard:build
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Validate workspace artifact metadata and relationships:
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
bunx workflows integrity
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Run the complete workspace check locally. Lefthook runs this command before
|
|
116
|
+
every commit and blocks the commit when any check fails:
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
bun run workspace:check
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
GitHub Actions runs package validation on pull requests. Local commit hooks run
|
|
123
|
+
the staged security scan and workspace checks before each commit once installed.
|
|
124
|
+
|
|
125
|
+
This command treats malformed structured metadata and duplicate artifact IDs as
|
|
126
|
+
errors. Legacy metadata and references into unavailable submodule worktrees are
|
|
127
|
+
reported as warnings during migration.
|
|
128
|
+
|
|
129
|
+
## Project Profile
|
|
130
|
+
|
|
131
|
+
Project-specific repository data lives in `project/` so this workspace can be
|
|
132
|
+
reused for other multi-repository projects.
|
|
133
|
+
|
|
134
|
+
- `project/PROJECT.md` describes the current project and ownership boundaries.
|
|
135
|
+
- `project/repositories.json` is the source of truth for submodule IDs, paths,
|
|
136
|
+
purposes, agent guide paths, artifact directories, code scan directories, and
|
|
137
|
+
validation commands.
|
|
138
|
+
- `project/validation.json` stores workspace-local validation command groups.
|
|
139
|
+
- `project/workflows.json` can describe project-specific implementation stages.
|
|
140
|
+
|
|
141
|
+
When applying the workspace to a new project, replace `project/` and
|
|
142
|
+
`.gitmodules`, then run `bun run workspace:check`. See
|
|
143
|
+
[`docs/workspace-template-setup.md`](docs/workspace-template-setup.md).
|
|
144
|
+
|
|
145
|
+
## Auto Mode
|
|
146
|
+
|
|
147
|
+
Auto mode defaults to off. Use `$auto-mode on|off|toggle|status` in an agent chat
|
|
148
|
+
or `workflows auto on|off|toggle|status [--root <path>]` in a shell. The setting
|
|
149
|
+
lives in `workspace.config.json` under `autoMode`. Older metadata files migrate
|
|
150
|
+
during `workflows update` or the next auto-mode command. The agent checks this
|
|
151
|
+
setting at the start of each developer-initiated feature or implementation
|
|
152
|
+
request and follows `.agents/skills/auto-mode/SKILL.md` when enabled.
|
|
153
|
+
|
|
154
|
+
With auto mode on, the agent advances through research → PRD → design → sprint
|
|
155
|
+
meeting → PRD approval → `create-plan` (root and affected submodule plans) → plan approval →
|
|
156
|
+
implementation and validation. Design is recorded as not applicable when there
|
|
157
|
+
is no user-facing surface. The agent resolves questions it can answer and asks
|
|
158
|
+
the developer only for decisions that require developer intent or information.
|
|
159
|
+
The agent records auto-mode authority in approval metadata. A failed check or
|
|
160
|
+
unanswered human-only question blocks dependent progression. Auto mode does not
|
|
161
|
+
start unsolicited work or authorize commits, pushes, releases, deployment, or
|
|
162
|
+
production changes.
|
|
163
|
+
|
|
164
|
+
With auto mode off, the existing manual approval and stage prompts apply.
|
|
165
|
+
|
|
166
|
+
After auto-mode coding and validation, each implementer reports verified facts
|
|
167
|
+
for its repository using
|
|
168
|
+
[`templates/auto-mode-completion-summary-template.md`](templates/auto-mode-completion-summary-template.md).
|
|
169
|
+
The coordinator reconciles these into one final handoff led by the developer's
|
|
170
|
+
required Build, Run, and Roll out actions. It includes build-service and runtime
|
|
171
|
+
settings, breaking changes, migrations, app/web/API setup, validation evidence,
|
|
172
|
+
and unresolved facts with an owner. `None` means the category was checked and
|
|
173
|
+
found inapplicable; unknown external state must be reported as `Unknown`.
|
|
174
|
+
|
|
175
|
+
## PRD And Planning Workflow
|
|
176
|
+
|
|
177
|
+
Every feature or implementation task needs a saved PRD before planning or code
|
|
178
|
+
changes begin. Auto mode creates a research brief first. The PRD is the source
|
|
179
|
+
of truth for user requirements.
|
|
180
|
+
|
|
181
|
+
### Role-Aware Workflow Diagram
|
|
182
|
+
|
|
183
|
+
Use this diagram as the workspace overview for feature and implementation work.
|
|
184
|
+
It shows the normal artifact flow, the role that owns each step, and where work
|
|
185
|
+
hands off between planning, design, and repository-specific implementation.
|
|
186
|
+
|
|
187
|
+
```mermaid
|
|
188
|
+
flowchart LR
|
|
189
|
+
request([Developer request])
|
|
190
|
+
|
|
191
|
+
subgraph pm [Project Manager]
|
|
192
|
+
prd[Create draft PRD]
|
|
193
|
+
clarifyPrd{PRD needs clarification?}
|
|
194
|
+
updatePrd[Update PRD from answers]
|
|
195
|
+
needsDesign{Add optional UI/UX design?}
|
|
196
|
+
approvePrd[Approve PRD]
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
subgraph designer [UI/UX Designer]
|
|
200
|
+
design[Create design artifact]
|
|
201
|
+
designDone[Update PRD status to design-done]
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
subgraph tl [Tech Lead]
|
|
205
|
+
research[Research brief: required in auto mode]
|
|
206
|
+
rootPlan[Create root overview plan]
|
|
207
|
+
subPlans[Delegate affected submodule plans]
|
|
208
|
+
clarifyPlan{Plan needs clarification?}
|
|
209
|
+
updatePlan[Update plan from answers]
|
|
210
|
+
approvePlan[Approve root plan]
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
subgraph core [Shared/Core Developer]
|
|
214
|
+
coreImpl[Implement shared contracts, design system, or core logic]
|
|
215
|
+
coreValidate[Validate shared/core repositories]
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
subgraph service [Backend Developer]
|
|
219
|
+
apiImpl[Implement backend API or service changes]
|
|
220
|
+
apiValidate[Validate backend repositories]
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
subgraph web [Frontend Developer]
|
|
224
|
+
webImpl[Implement web frontend changes]
|
|
225
|
+
webValidate[Validate web frontend repositories]
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
subgraph app [Frontend Developer]
|
|
229
|
+
appImpl[Implement app frontend changes]
|
|
230
|
+
appValidate[Validate app frontend repositories]
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
frontendReady((Frontend stage ready))
|
|
234
|
+
frontendDone((Frontend stage complete))
|
|
235
|
+
meetingChoice{Run optional sprint meeting?}
|
|
236
|
+
sprintMeeting[Review PRD and design with role agents]
|
|
237
|
+
|
|
238
|
+
finish([Report changed repos, validation, and submodule pointer status])
|
|
239
|
+
|
|
240
|
+
autoMode{Auto mode enabled?}
|
|
241
|
+
|
|
242
|
+
request --> autoMode
|
|
243
|
+
autoMode -->|Yes: all stages| research
|
|
244
|
+
autoMode -->|No: manual stages| prd
|
|
245
|
+
research --> prd
|
|
246
|
+
prd --> needsDesign
|
|
247
|
+
needsDesign -->|Yes in auto mode when UI applies| design
|
|
248
|
+
design --> designDone --> clarifyPrd
|
|
249
|
+
needsDesign -->|No| clarifyPrd
|
|
250
|
+
clarifyPrd -->|Yes| updatePrd --> clarifyPrd
|
|
251
|
+
clarifyPrd -->|No| meetingChoice
|
|
252
|
+
meetingChoice -->|Yes in auto mode| sprintMeeting --> approvePrd
|
|
253
|
+
meetingChoice -->|No| approvePrd
|
|
254
|
+
approvePrd -->|Status: approved| rootPlan
|
|
255
|
+
rootPlan --> subPlans --> clarifyPlan
|
|
256
|
+
clarifyPlan -->|Yes| updatePlan --> clarifyPlan
|
|
257
|
+
clarifyPlan -->|No| approvePlan
|
|
258
|
+
approvePlan --> coreImpl --> coreValidate
|
|
259
|
+
coreValidate --> apiImpl --> apiValidate
|
|
260
|
+
apiValidate --> frontendReady
|
|
261
|
+
frontendReady --> webImpl --> webValidate --> frontendDone
|
|
262
|
+
frontendReady --> appImpl --> appValidate --> frontendDone
|
|
263
|
+
frontendDone --> finish
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
[Explore the interactive workflow diagram](.archify/workflow-workspace-delivery-20260929-093455/workspace-delivery.html).
|
|
267
|
+
|
|
268
|
+
### Role Responsibilities By Step
|
|
269
|
+
|
|
270
|
+
| Step | Primary role | Supporting roles | Artifact or output |
|
|
271
|
+
| --- | --- | --- | --- |
|
|
272
|
+
| Developer request | Developer | Project Manager, Tech Lead | Initial scope, constraints, and explicit exceptions to the normal workflow |
|
|
273
|
+
| Research brief | Tech Lead + Project Manager | UI/UX Designer when experience research is needed | `research/RESEARCH-*.md`; optional manually, required in auto mode |
|
|
274
|
+
| Draft PRD | Project Manager | Developer | `prds/PRD-*.md` with user value, scope, requirements, and acceptance criteria (status: `draft`) |
|
|
275
|
+
| UI/UX design | UI/UX Designer | Project Manager, Tech Lead | Optional manually; auto mode creates it for affected UI/UX or records non-applicability |
|
|
276
|
+
| PRD review and clarification | Project Manager | Developer | Updated PRD with resolved ambiguity, starting from `draft` or `design-done` |
|
|
277
|
+
| Sprint meeting during PRD review | Project Manager, Tech Lead, UI/UX Designer, Backend Developer, Frontend Developer | Developer for product decisions | All roles review the design and contribute UI/UX feedback; required in auto mode, optional manually; improved PRD, design, and meeting record |
|
|
278
|
+
| PRD approval | Developer, or agent in auto mode | Project Manager | PRD status `approved` after review, from `draft` or `design-done`; auto mode records its authority |
|
|
279
|
+
| Root overview plan | Tech Lead | Project Manager, UI/UX Designer | `plans/PLAN-*.md` with architecture, ownership, sequence, validation, and risks |
|
|
280
|
+
| Submodule detail plans | Tech Lead via sub-agents | Core, Backend, Frontend roles | `modules/*/plans/*.md` for only affected repositories |
|
|
281
|
+
| Plan clarification | Tech Lead | Developer, implementation roles | Updated root or submodule plan |
|
|
282
|
+
| Plan approval | Developer, or agent in auto mode | Tech Lead | Approved root plan that permits implementation; auto mode records its authority |
|
|
283
|
+
| Shared/core implementation | Core Developer | Tech Lead | Changes in repositories tagged as shared, core, package, or design-system owners in `project/repositories.json` |
|
|
284
|
+
| Backend/API implementation | Backend Developer | Tech Lead, Core Developer | API/backend changes in repositories tagged as backend or service owners in `project/repositories.json` |
|
|
285
|
+
| Web frontend implementation | Frontend Developer | UI/UX Designer, Backend Developer | Web frontend changes in repositories tagged as web/frontend owners; may run in parallel with app frontend implementation when contracts are ready |
|
|
286
|
+
| App frontend implementation | Frontend Developer | UI/UX Designer, Backend Developer, Core Developer | App frontend changes in repositories tagged as app/frontend owners; may run in parallel with web frontend implementation when contracts are ready |
|
|
287
|
+
| Validation and handoff report | Implementing role for each repo | Tech Lead | Per-repository facts and one [auto-mode completion summary](templates/auto-mode-completion-summary-template.md) with developer actions, breaking changes, validation results, changed submodules, and root submodule pointer note |
|
|
288
|
+
|
|
289
|
+
### PRD Commands
|
|
290
|
+
|
|
291
|
+
Detailed workflow behavior lives in project skills under `.agents/skills/`.
|
|
292
|
+
Command files under `commands/` are compatibility shims that point to the
|
|
293
|
+
corresponding skill. Codex custom slash commands live in `.codex/prompts/` and
|
|
294
|
+
should only delegate to the corresponding skill with `$ARGUMENTS`.
|
|
295
|
+
Claude Code slash commands live in `.claude/skills/` and delegate to the same
|
|
296
|
+
shared skills with `$ARGUMENTS`. Claude Code role agents live in
|
|
297
|
+
`.claude/agents/` and delegate to the shared role definitions.
|
|
298
|
+
Developers configure per-role models in `workspace.config.json` under
|
|
299
|
+
`agentModels`. Use runtime keys `codex`, `antigravity`, and `claude` when
|
|
300
|
+
different coding agents need different model values. Run
|
|
301
|
+
`workflows agents sync --format codex|antigravity` to apply one runtime's model
|
|
302
|
+
to the shared `.agents/agents/` files; the command also updates Claude agent
|
|
303
|
+
files from the `claude` values. Init and update default the shared files to the
|
|
304
|
+
Codex selection for compatibility.
|
|
305
|
+
Updates add missing default model entries to older workspace config files and
|
|
306
|
+
preserve configured values.
|
|
307
|
+
`workflowModels` can override a role for `research`, `prd`, `design`, `meeting`,
|
|
308
|
+
`planning`, `coding`, or `validation`. Each step may set `default` for all roles
|
|
309
|
+
and then role-specific values. Resolution is step role, step default, base role,
|
|
310
|
+
then runtime default. Run
|
|
311
|
+
`workflows agents resolve <step> <role> --format <codex|antigravity|claude> --json`
|
|
312
|
+
immediately before spawning a role agent and pass the
|
|
313
|
+
resolved model when supported. Static agent files hold only the base model;
|
|
314
|
+
step overrides apply to newly spawned agents. Reload the runtime and start a
|
|
315
|
+
new agent session for changed base models to take effect.
|
|
316
|
+
`workflows agents models --format <runtime>` helps select valid values.
|
|
317
|
+
Resolution checks Codex IDs against its installed catalog and Antigravity tiers
|
|
318
|
+
against `inherit`, `flash`, and `pro`; unknown choices warn and fall back to
|
|
319
|
+
`inherit`. Claude Code IDs pass through with a warning because it has no local
|
|
320
|
+
catalog. The legacy format name `agents` remains an alias for `codex`.
|
|
321
|
+
|
|
322
|
+
- `$auto-mode on|off|toggle|status` or `/auto-mode on|off|toggle|status`
|
|
323
|
+
- Skill: `.agents/skills/auto-mode/SKILL.md`.
|
|
324
|
+
- Codex slash prompt: `.codex/prompts/auto-mode.md`.
|
|
325
|
+
- Command spec: `commands/auto-mode.md`.
|
|
326
|
+
- CLI equivalent: `workflows auto on|off|toggle|status [--root <path>]`.
|
|
327
|
+
- Auto mode is off by default and persists in `workspace.config.json` under `autoMode`.
|
|
328
|
+
- `$project-setup`, `project-setup`, or `/project-setup`
|
|
329
|
+
- Skill: `.agents/skills/project-setup/SKILL.md`.
|
|
330
|
+
- Codex slash prompt: `.codex/prompts/project-setup.md`.
|
|
331
|
+
- Command spec: `commands/project-setup.md`.
|
|
332
|
+
- Guide the developer step by step through completing `project/PROJECT.md`,
|
|
333
|
+
`project/repositories.json`, `project/validation.json`,
|
|
334
|
+
`project/workflows.json`, and `.gitmodules`.
|
|
335
|
+
- Read existing project setup files first, preserve developer-provided values,
|
|
336
|
+
ask one setup question at a time, and update files incrementally.
|
|
337
|
+
- Repository additions delegate to `$add-project`: review entries first and
|
|
338
|
+
explicitly Save to clone/register them. Other setup steps remain incremental.
|
|
339
|
+
- Do not install packages, commit, push, or edit product code during setup.
|
|
340
|
+
- `$add-project [repository-url]`, `add-project`, or `/add-project`
|
|
341
|
+
- Skill: `.agents/skills/add-project/SKILL.md`.
|
|
342
|
+
- Codex slash prompt: `.codex/prompts/add-project.md`.
|
|
343
|
+
- Command spec: `commands/add-project.md`.
|
|
344
|
+
- Infer repository fields from accessible metadata; ask focused questions and
|
|
345
|
+
review one entry at a time. Accepted entries remain pending until Save.
|
|
346
|
+
- Save clones/registers reviewed submodules, aligns related configuration, and
|
|
347
|
+
removes unchanged shipped examples after all additions succeed. Preserve
|
|
348
|
+
existing user data and report partial failures/recovery without committing.
|
|
349
|
+
- Cancel, skip, empty Save, and entry acceptance perform no Git operations.
|
|
350
|
+
- `$create-prd <description>`, `create-prd <description>`, or `/create-prd <description>`
|
|
351
|
+
- Skill: `.agents/skills/create-prd/SKILL.md`.
|
|
352
|
+
- Codex slash prompt: `.codex/prompts/create-prd.md`.
|
|
353
|
+
- Command spec: `commands/create-prd.md`.
|
|
354
|
+
- Analyze `<description>` and create a PRD from `templates/prd-template.md`.
|
|
355
|
+
- Include any directly relevant saved research in the PRD research-source
|
|
356
|
+
metadata and research context.
|
|
357
|
+
- Store PRDs in `prds/`.
|
|
358
|
+
- Give every PRD a stable `PRD ID`.
|
|
359
|
+
- Set initial PRD status to `draft`.
|
|
360
|
+
- After creating the draft, offer optional UI/UX design with
|
|
361
|
+
`$create-design <design request>`. PRD review begins after design is complete
|
|
362
|
+
or immediately when design is skipped.
|
|
363
|
+
- During PRD review, suggest `$sprint-meeting <prd-id>` as an optional
|
|
364
|
+
role-agent review. The developer may skip it and proceed to
|
|
365
|
+
`$approve-prd <prd-id>` after reviewing the PRD.
|
|
366
|
+
- Do not create implementation plans or edit code until the PRD is approved.
|
|
367
|
+
- `$griling-prd <prd-id-or-path>`, `griling-prd <prd-id-or-path>`, or `/griling-prd <prd-id-or-path>`
|
|
368
|
+
- Skill: `.agents/skills/griling-prd/SKILL.md`.
|
|
369
|
+
- Codex slash prompt: `.codex/prompts/griling-prd.md`.
|
|
370
|
+
- Command spec: `commands/griling-prd.md`.
|
|
371
|
+
- Review an existing PRD for unclear, missing, conflicting, or risky requirements.
|
|
372
|
+
- Ask the developer clarifying questions before changing the PRD.
|
|
373
|
+
- After the developer answers, update the PRD according to those answers.
|
|
374
|
+
- Do not create implementation plans or edit code until the PRD is approved.
|
|
375
|
+
- `$sprint-meeting <prd-id>`, `sprint-meeting <prd-id>`, or `/sprint-meeting <prd-id>`
|
|
376
|
+
- Skill: `.agents/skills/sprint-meeting/SKILL.md`.
|
|
377
|
+
- Codex slash prompt: `.codex/prompts/sprint-meeting.md`.
|
|
378
|
+
- Command spec: `commands/sprint-meeting.md`.
|
|
379
|
+
- Optional during PRD review, after the draft PRD is created and any chosen
|
|
380
|
+
UI/UX design is complete; skipping it does not block approval.
|
|
381
|
+
- Run a visible, time-boxed PRD review meeting with all workspace role
|
|
382
|
+
sub-agents: Project Manager, Tech Lead, UI/UX Designer, Backend Developer,
|
|
383
|
+
and Frontend Developer.
|
|
384
|
+
- Require every sub-agent to read the PRD and related documents before
|
|
385
|
+
discussing requirements, risks, unanswered questions, and PRD improvements.
|
|
386
|
+
- Have every role review linked design artifacts, or the PRD's UX flows when
|
|
387
|
+
no artifact exists, and contribute an actionable UI/UX improvement or a
|
|
388
|
+
reasoned no-change assessment. The UI/UX Designer synthesizes the feedback.
|
|
389
|
+
- Run bounded multi-round discussion: agents can ask questions, other agents
|
|
390
|
+
can answer, question authors review answers, and unresolved items may get
|
|
391
|
+
follow-up rounds before escalation.
|
|
392
|
+
- Keep active agent discussion to 5 minutes or less, excluding time spent
|
|
393
|
+
waiting for developer answers.
|
|
394
|
+
- Show meeting progress, agent findings, and human-only questions in the
|
|
395
|
+
developer's active chat window.
|
|
396
|
+
- Assign every question to the role agents that can answer it or to
|
|
397
|
+
`@developer` when human input is required.
|
|
398
|
+
- Update the PRD and any editable linked design artifact with accepted UI/UX
|
|
399
|
+
improvements, then save the design review and question-and-answer record
|
|
400
|
+
under `meeting-logs/` with a filename based on the PRD ID.
|
|
401
|
+
- Save logs using `templates/meeting-log-template.md` so every source agent
|
|
402
|
+
produces the same meeting-log structure.
|
|
403
|
+
- Do not approve the PRD, create plans, or edit product code.
|
|
404
|
+
- `$approve-prd <prd-id>`, `approve-prd <prd-id>`, or `/approve-prd <prd-id>`
|
|
405
|
+
- Skill: `.agents/skills/approve-prd/SKILL.md`.
|
|
406
|
+
- Codex slash prompt: `.codex/prompts/approve-prd.md`.
|
|
407
|
+
- Command spec: `commands/approve-prd.md`.
|
|
408
|
+
- If the PRD contains open questions, automatically invoke the `griling-prd` skill to require the developer to answer all open questions before proceeding.
|
|
409
|
+
- Optional UI/UX design begins from the draft PRD, before the PRD review phase.
|
|
410
|
+
- After review, approve a PRD in `draft` or `design-done` status. If its status is `need-design`, finish or explicitly skip the selected design before approval.
|
|
411
|
+
- After saving approval metadata, invoke `create-plan` for the approved PRD and complete its planning work in the same request.
|
|
412
|
+
- `$create-plan <prd-id-or-path-or-description>`, `create-plan <prd-id-or-path-or-description>`, or `/create-plan <prd-id-or-path-or-description>`
|
|
413
|
+
- Skill: `.agents/skills/create-plan/SKILL.md`.
|
|
414
|
+
- Codex slash prompt: `.codex/prompts/create-plan.md`.
|
|
415
|
+
- Command spec: `commands/create-plan.md`.
|
|
416
|
+
- An ID or path selects a PRD. A feature description finds an unambiguous matching PRD or starts the PRD workflow. Planning starts only after PRD approval; manual mode waits for developer approval, while auto mode completes its required stages.
|
|
417
|
+
- Create or resume a root overview plan and any affected submodule plans using `templates/plan-template.md`. Link plans to the PRD and carry forward relevant research and planning implications.
|
|
418
|
+
- Reuse matching plans on reruns, preserve progressed plan statuses, and avoid duplicate plan IDs.
|
|
419
|
+
- In auto mode, review completeness and proceed to plan approval without a routine developer prompt.
|
|
420
|
+
- `$approve-plan <plan-id>`, `approve-plan <plan-id>`, or `/approve-plan <plan-id>`
|
|
421
|
+
- Skill: `.agents/skills/approve-plan/SKILL.md`.
|
|
422
|
+
- Codex slash prompt: `.codex/prompts/approve-plan.md`.
|
|
423
|
+
- Command spec: `commands/approve-plan.md`.
|
|
424
|
+
- If the root plan or linked submodule plans contain open questions, automatically invoke the `griling-plan` skill to require the developer to answer all open questions before approving the plan.
|
|
425
|
+
- Mark the matching root plan status as `approved`.
|
|
426
|
+
- Implementation may begin only after the root plan is approved.
|
|
427
|
+
- Reassess dependency-safe implementation stages after each completed stage.
|
|
428
|
+
When multiple frontend repositories are ready and do not depend on each
|
|
429
|
+
other's unimplemented local changes, spawn one frontend sub-agent for each
|
|
430
|
+
platform and implement them in parallel.
|
|
431
|
+
- In auto mode, continue after each validated stage; ask only when a
|
|
432
|
+
developer-only decision blocks progression.
|
|
433
|
+
- `$griling-plan <plan-id-or-path>`, `griling-plan <plan-id-or-path>`, or `/griling-plan <plan-id-or-path>`
|
|
434
|
+
- Alias: `$grilling-plan <plan-id-or-path>`, `grilling-plan <plan-id-or-path>`, or `/grilling-plan <plan-id-or-path>`.
|
|
435
|
+
- Skill: `.agents/skills/griling-plan/SKILL.md`.
|
|
436
|
+
- Codex slash prompt: `.codex/prompts/griling-plan.md`.
|
|
437
|
+
- Alias slash prompt: `.codex/prompts/grilling-plan.md`.
|
|
438
|
+
- Command spec: `commands/griling-plan.md`.
|
|
439
|
+
- Review an existing root overview plan or submodule plan for unclear,
|
|
440
|
+
missing, conflicting, or risky implementation decisions.
|
|
441
|
+
- Ask the developer clarifying questions before changing the plan.
|
|
442
|
+
- After the developer answers, update the plan according to those answers.
|
|
443
|
+
- Do not approve the plan or edit product code.
|
|
444
|
+
|
|
445
|
+
### Research Command
|
|
446
|
+
|
|
447
|
+
- `$research <description>`, `research <description>`, or `/research <description>`
|
|
448
|
+
- Skill: `.agents/skills/research/SKILL.md`.
|
|
449
|
+
- Codex slash prompt: `.codex/prompts/research.md`.
|
|
450
|
+
- Command spec: `commands/research.md`.
|
|
451
|
+
- Research `<description>` from both project-manager and tech-lead
|
|
452
|
+
perspectives.
|
|
453
|
+
- Create a structured research brief from `templates/research-template.md`.
|
|
454
|
+
- Store research briefs in `research/`.
|
|
455
|
+
- Use saved research to improve future PRDs, root overview plans, and
|
|
456
|
+
submodule plans.
|
|
457
|
+
- Do not create PRDs, plans, or edit product code unless the developer
|
|
458
|
+
explicitly asks for that as a separate step.
|
|
459
|
+
|
|
460
|
+
### Create Design Command
|
|
461
|
+
|
|
462
|
+
- `$create-design <design request>`, `create-design <design request>`, or
|
|
463
|
+
`/create-design <design request>`
|
|
464
|
+
- Skill: `.agents/skills/create-design/SKILL.md`.
|
|
465
|
+
- Codex slash prompt: `.codex/prompts/create-design.md`.
|
|
466
|
+
- Command spec: `commands/create-design.md`.
|
|
467
|
+
- Read and adopt `roles/ui-ux-designer.md` before doing design work.
|
|
468
|
+
- Use Open Design when available to create or refine UI/UX design artifacts.
|
|
469
|
+
- Produce implementation-ready flows, screen specs, component states,
|
|
470
|
+
responsive behavior, accessibility guidance, and open questions.
|
|
471
|
+
- Link design artifacts in the PRD `## Design Artifacts` section and update
|
|
472
|
+
the PRD status to `design-done`.
|
|
473
|
+
- After design is done, the developer can run `$approve-prd <prd-id>` to approve
|
|
474
|
+
the PRD and advance to the planning phase.
|
|
475
|
+
- Do not edit product code unless the developer explicitly asks for
|
|
476
|
+
implementation and the approved workflow allows it.
|
|
477
|
+
|
|
478
|
+
### Diagram Command
|
|
479
|
+
|
|
480
|
+
- `$create-diagram <diagram request>`, `create-diagram <diagram request>`, or
|
|
481
|
+
`/create-diagram <diagram request>`
|
|
482
|
+
- Skill: `.agents/skills/create-diagram/SKILL.md`.
|
|
483
|
+
- Codex slash prompt: `.codex/prompts/create-diagram.md`.
|
|
484
|
+
- Command spec: `commands/create-diagram.md`.
|
|
485
|
+
- Create or improve Markdown-friendly workflow diagrams, architecture
|
|
486
|
+
diagrams, role handoff diagrams, and process maps.
|
|
487
|
+
- Prefer Mermaid for repo documentation. Use role-oriented subgraphs or
|
|
488
|
+
swimlane-style layouts when ownership and handoffs matter.
|
|
489
|
+
- Include the roles involved in each major step when the diagram represents a
|
|
490
|
+
workflow or operational process.
|
|
491
|
+
- Validate diagram syntax and readability before finishing whenever practical.
|
|
492
|
+
|
|
493
|
+
### Custom Command Pattern
|
|
494
|
+
|
|
495
|
+
When adding a project custom command:
|
|
496
|
+
|
|
497
|
+
1. Create `.agents/skills/<command-name>/SKILL.md` with the full workflow behavior.
|
|
498
|
+
2. Optionally create `.agents/skills/<command-name>/agents/openai.yaml` for Codex UI metadata.
|
|
499
|
+
3. Create `.codex/prompts/<command-name>.md` as a minimal slash-command shim. It should delegate to the skill and pass `$ARGUMENTS`.
|
|
500
|
+
4. Create `commands/<command-name>.md` as a minimal human-readable compatibility shim that points to the skill.
|
|
501
|
+
5. Keep workflow behavior in the skill, not duplicated across prompt or command shims.
|
|
502
|
+
|
|
503
|
+
### Plan Rules
|
|
504
|
+
|
|
505
|
+
- Store root-level overview plans in `plans/`.
|
|
506
|
+
- Use one plan file per feature, task, or initiative.
|
|
507
|
+
- Give every root overview plan a stable `Plan ID`.
|
|
508
|
+
- The root plan should describe the overall goal, approved PRD link, research
|
|
509
|
+
sources, cross-repo architecture, affected submodules, sequencing,
|
|
510
|
+
integration points, validation approach, and open questions.
|
|
511
|
+
- When a task requires work inside a submodule, create a matching detailed plan in that submodule's `plans/` directory.
|
|
512
|
+
- Submodule plans must be created by spawned sub-agents. The master agent owns the root overview plan, then gives each sub-agent the approved PRD, draft root plan, platform responsibility, cross-repo dependencies, validation expectations, risks, open questions, target plan path, and required parent-plan link.
|
|
513
|
+
- Each submodule planning sub-agent must read and follow the affected
|
|
514
|
+
repository's `agentGuide` from `project/repositories.json` before writing its
|
|
515
|
+
plan.
|
|
516
|
+
- Create submodule plans only for submodules affected by the current task.
|
|
517
|
+
- Link each submodule plan from the root overview plan and include a short summary of that submodule's responsibility.
|
|
518
|
+
- Submodule plans must be detailed enough to implement the feature in that platform, including research sources and platform-specific implications, implementation steps, files or areas to inspect, expected code changes, validation commands, risks, and dependencies on other submodules.
|
|
519
|
+
- Keep PRDs and plans updated when scope changes during implementation.
|
|
520
|
+
- Do not begin code edits until the PRD is approved, the root overview plan exists, any required submodule plans exist, and the root plan is approved.
|
|
521
|
+
|
|
522
|
+
### Dashboard Structure
|
|
523
|
+
|
|
524
|
+
- Keep the root task-status dashboard in `dashboard/`.
|
|
525
|
+
- Keep `dashboard/src/App.tsx` as a thin app shell; feature implementation should live under `dashboard/src/features/task-status/`.
|
|
526
|
+
- Keep task-status components under `dashboard/src/features/task-status/components/`.
|
|
527
|
+
- Keep task-status parsing, grouping, status, and Markdown-link utilities under `dashboard/src/features/task-status/utils/`.
|
|
528
|
+
- Keep focused dashboard tests beside the feature utilities under `dashboard/src/features/task-status/utils/test/`.
|
|
529
|
+
- Keep all `dashboard/**/*.ts` and `dashboard/**/*.tsx` files under 350 lines
|
|
530
|
+
when practical, matching the frontend conventions used by this workspace.
|
|
531
|
+
- Use the shared design system identified by `project/repositories.json`; do not
|
|
532
|
+
duplicate shared UI primitives in the dashboard.
|
|
533
|
+
- Dashboard artifact discovery reads root artifact directories from
|
|
534
|
+
`workspace.config.json` and submodule artifact directories from
|
|
535
|
+
`project/repositories.json`.
|
|
536
|
+
- Do not commit generated dashboard outputs such as `dashboard/dist/` or dependencies such as `dashboard/node_modules/`.
|
|
537
|
+
|
|
538
|
+
### Implementation Sequence
|
|
539
|
+
|
|
540
|
+
After `$approve-plan <plan-id>`, `approve-plan <plan-id>`,
|
|
541
|
+
`/approve-plan <plan-id>`, or auto-mode plan approval, implement code by
|
|
542
|
+
dependency-safe stages:
|
|
543
|
+
|
|
544
|
+
1. Shared/core stage from `project/workflows.json`, when affected
|
|
545
|
+
2. Backend/API stage from `project/workflows.json`, when affected
|
|
546
|
+
3. Frontend stage:
|
|
547
|
+
- Web frontend repositories from `project/repositories.json`, when affected
|
|
548
|
+
- App frontend repositories from `project/repositories.json`, when affected
|
|
549
|
+
|
|
550
|
+
Skip any platform that is missing from the approved plan.
|
|
551
|
+
|
|
552
|
+
After core and API work are implemented and validated, reassess whether the
|
|
553
|
+
frontend stage can run in parallel. If both frontend platforms are present in
|
|
554
|
+
the approved plan, their required shared contracts and APIs are already
|
|
555
|
+
available locally, and neither frontend depends on the other's unimplemented
|
|
556
|
+
changes, spawn one implementation sub-agent for each ready frontend platform.
|
|
557
|
+
Give each sub-agent only its platform plan, relevant root-plan context,
|
|
558
|
+
dependency notes, validation commands, and the frontend role instructions.
|
|
559
|
+
|
|
560
|
+
If either frontend platform still depends on another platform's unimplemented
|
|
561
|
+
local changes, implement the blocked dependency first and reassess parallel
|
|
562
|
+
safety before continuing.
|
|
563
|
+
|
|
564
|
+
When implementing API or backend service work, first read and adopt
|
|
565
|
+
`roles/backend-developer.md`. In that role, modify only backend/API files within
|
|
566
|
+
the current backend repository, rely on shared contracts from the configured
|
|
567
|
+
shared/core repositories, and do not redefine shared types, interfaces, or
|
|
568
|
+
validation schemas in the service.
|
|
569
|
+
|
|
570
|
+
For every affected submodule, read its `agentGuide` from
|
|
571
|
+
`project/repositories.json` and discover local `SKILL.md` files under that
|
|
572
|
+
repository's `.agents/skills/` and `.codex/skills/` before editing. Read and
|
|
573
|
+
apply the skills relevant to the assigned work and any skill named by the
|
|
574
|
+
developer or agent guide. Include this instruction in each implementation
|
|
575
|
+
sub-agent handoff as well as serial implementation. Reading the agent guide
|
|
576
|
+
does not load the skill instructions automatically.
|
|
577
|
+
|
|
578
|
+
When implementing web or app frontend work, first read and adopt
|
|
579
|
+
`roles/frontend-developer.md`. In that role, modify only frontend files within
|
|
580
|
+
the current frontend repository, rely on shared contracts from
|
|
581
|
+
the configured shared/core repositories, and do not redefine shared types,
|
|
582
|
+
interfaces, or validation schemas in frontend code.
|
|
583
|
+
|
|
584
|
+
After finishing one dependency stage, stop and ask the developer whether to
|
|
585
|
+
continue to the next stage or stop. If continuing and the next stage depends on
|
|
586
|
+
newly changed local packages or APIs, ask whether to link local packages/use
|
|
587
|
+
local code or depend on deployed/published packages or services.
|
|
588
|
+
|
|
589
|
+
The developer owns commits. Agents must not automatically commit code or
|
|
590
|
+
workflow changes for any task.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectName": "Agent Workflow Template",
|
|
3
|
+
"artifactDirectories": ["prds", "plans", "designs", "research", "docs"],
|
|
4
|
+
"projectProfile": "project/repositories.json",
|
|
5
|
+
"autoMode": {
|
|
6
|
+
"enabled": true,
|
|
7
|
+
"updatedAt": "2026-10-01T08:39:26.255Z"
|
|
8
|
+
},
|
|
9
|
+
"agentModels": {
|
|
10
|
+
"project-manager": {
|
|
11
|
+
"codex": "inherit",
|
|
12
|
+
"antigravity": "inherit",
|
|
13
|
+
"claude": "inherit"
|
|
14
|
+
},
|
|
15
|
+
"tech-lead": {
|
|
16
|
+
"codex": "inherit",
|
|
17
|
+
"antigravity": "inherit",
|
|
18
|
+
"claude": "inherit"
|
|
19
|
+
},
|
|
20
|
+
"ui-ux-designer": {
|
|
21
|
+
"codex": "inherit",
|
|
22
|
+
"antigravity": "inherit",
|
|
23
|
+
"claude": "inherit"
|
|
24
|
+
},
|
|
25
|
+
"backend-developer": {
|
|
26
|
+
"codex": "inherit",
|
|
27
|
+
"antigravity": "inherit",
|
|
28
|
+
"claude": "inherit"
|
|
29
|
+
},
|
|
30
|
+
"frontend-developer": {
|
|
31
|
+
"codex": "inherit",
|
|
32
|
+
"antigravity": "inherit",
|
|
33
|
+
"claude": "inherit"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"workflowModels": {
|
|
37
|
+
"planning": {},
|
|
38
|
+
"coding": {}
|
|
39
|
+
},
|
|
40
|
+
"dashboard": {
|
|
41
|
+
"enabled": true
|
|
42
|
+
}
|
|
43
|
+
}
|