@shinnodua/agent-workflows 0.0.0-stage → 0.2.6
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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-design
|
|
3
|
+
description: Create UI/UX design direction, interaction flows, screen specs, and implementation-ready design guidance with Open Design as the default design workspace. Use when the developer asks for create-design, invokes /create-design, uses $create-design, asks Codex to act as a designer, asks for UI/UX, visual design, product design, redesign, wireframes, prototypes, design specs, app/web/component layouts, interaction flows, accessibility, responsive behavior, or design-system guidance before implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/create-design/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-diagram
|
|
3
|
+
description: Create or improve high-quality workspace diagrams, including workflow diagrams, architecture diagrams, role handoff maps, process maps, and Mermaid diagrams for Markdown documentation. Use when the developer asks to create-diagram, invokes /create-diagram, uses $create-diagram, wants a diagram added to workspace docs, or asks to show roles and responsibilities in a workflow.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/create-diagram/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-plan
|
|
3
|
+
description: Create or resume implementation plans from a workspace PRD ID, path, or feature description, completing the PRD workflow first when needed. Use when the developer invokes create-plan or asks to plan a feature.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/create-plan/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-prd
|
|
3
|
+
description: Create a draft PRD for the workspace from a feature or task description. Use when the developer asks to create-prd, invokes /create-prd, or asks to start a feature/task PRD before planning or code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/create-prd/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: griling-plan
|
|
3
|
+
description: Review an existing implementation plan by asking the developer clarifying questions one at a time, each with a recommended answer and free-form answer option, then update the plan from the developer's answers. Use when the developer asks to griling-plan, grilling-plan, invokes /griling-plan or /grilling-plan, or asks to clarify/refine an existing root or submodule plan before approval or implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/griling-plan/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: griling-prd
|
|
3
|
+
description: Review an existing PRD by asking the developer clarifying questions one at a time, each with a recommended answer and free-form answer option, then update the PRD from the developer's answers. Use when the developer asks to griling-prd, invokes /griling-prd, or asks to clarify/refine an existing PRD before approval.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/griling-prd/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: package-installation
|
|
3
|
+
description: Workspace dependency installation rules for workspace-owned packages. Use when an agent adds, removes, or changes dependencies for the root workspace tooling, the dashboard package, or other workspace-owned package.json files.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/package-installation/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: project-setup
|
|
3
|
+
description: Guide a developer step by step through filling the workspace project profile files after workflows init. Use when the developer invokes /project-setup, project-setup, or asks to configure project/PROJECT.md, project/repositories.json, project/validation.json, project/workflows.json, or .gitmodules.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/project-setup/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research
|
|
3
|
+
description: Create a structured research brief for future PRDs and plans. Use when the developer asks to research a topic, invokes /research, or wants project and external context captured before PRD or planning work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/research/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sprint-meeting
|
|
3
|
+
description: Run a time-boxed role-agent review meeting for a PRD and its design, improve requirements and UI/UX, answer agent-resolvable questions, and save the meeting transcript under meeting-logs/.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Read `.agents/skills/sprint-meeting/SKILL.md` completely and follow it as the source of truth. If it is a discovery shim, read its packaged source completely. Apply the skill to this request:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[submodule "modules/example-core"]
|
|
2
|
+
path = modules/example-core
|
|
3
|
+
url = git@github.com:example/example-core.git
|
|
4
|
+
[submodule "modules/example-service"]
|
|
5
|
+
path = modules/example-service
|
|
6
|
+
url = git@github.com:example/example-service.git
|
|
7
|
+
[submodule "modules/example-web"]
|
|
8
|
+
path = modules/example-web
|
|
9
|
+
url = git@github.com:example/example-web.git
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Reusable Workspace Agent Guide
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
This repository is a reusable coordination workspace for multi-repository projects. Project-specific repository facts live under `project/`.
|
|
6
|
+
|
|
7
|
+
Use it to plan cross-repository work, split implementation into focused tasks, write shared documentation, inspect full product context without flattening repositories into a monorepo, and run lightweight workspace-local tooling. The root repository should stay lightweight: it owns workspace-level documents, planning notes, Git submodule pointers, project profile files, command/skill definitions, role guidance, reusable templates, scripts, and the local dashboard used to inspect those artifacts. Product code belongs in the submodule repositories.
|
|
8
|
+
|
|
9
|
+
## Workspace Structure
|
|
10
|
+
|
|
11
|
+
```txt
|
|
12
|
+
.
|
|
13
|
+
├── AGENTS.md # Workspace-level instructions and repository map
|
|
14
|
+
├── workflows.md # Readable workspace workflow reference
|
|
15
|
+
├── workspace.config.json # Reusable workspace configuration
|
|
16
|
+
├── commands/ # Agent command specifications
|
|
17
|
+
├── dashboard/ # Local task-status dashboard for root and submodule artifacts
|
|
18
|
+
├── docs/ # Cross-module documentation mappings and template setup docs
|
|
19
|
+
├── designs/ # Root-level design artifacts
|
|
20
|
+
├── plans/ # Root overview plans
|
|
21
|
+
├── project/ # Replaceable project profile
|
|
22
|
+
├── prds/ # Product requirement documents
|
|
23
|
+
├── research/ # Root-level research briefs
|
|
24
|
+
├── roles/ # Role definitions for planning and implementation handoffs
|
|
25
|
+
├── scripts/ # Workspace-local validation and maintenance scripts
|
|
26
|
+
├── templates/ # Reusable PRD, plan, and research templates
|
|
27
|
+
└── modules/ # Product repositories linked as Git submodules
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Project Profile
|
|
31
|
+
|
|
32
|
+
For first-time installation, incomplete initialization, or workspace setup,
|
|
33
|
+
read [INSTALL.md](INSTALL.md) before changing configuration.
|
|
34
|
+
|
|
35
|
+
Read these files before planning or editing project code:
|
|
36
|
+
|
|
37
|
+
- `project/PROJECT.md` - project purpose and ownership boundaries.
|
|
38
|
+
- `project/repositories.json` - source of truth for submodule IDs, paths, URLs, purposes, scopes, agent guide paths, artifact directories, code scan directories, and validation commands.
|
|
39
|
+
- `project/validation.json` - workspace-local validation commands.
|
|
40
|
+
- `project/workflows.json` - optional project-specific implementation stages.
|
|
41
|
+
|
|
42
|
+
When applying this workspace to a new project, replace `project/` and add matching submodules. See [Reusable Workspace Template Setup](docs/workspace-template-setup.md).
|
|
43
|
+
|
|
44
|
+
## Working Model
|
|
45
|
+
|
|
46
|
+
- Treat this root repo as the planning, documentation, and workspace-tooling hub, not as a product code monorepo.
|
|
47
|
+
- Keep implementation commits inside the affected submodule repositories.
|
|
48
|
+
- Keep root commits limited to workspace documentation, task plans, research, design mappings, dashboard changes, submodule pointer updates, and coordination files.
|
|
49
|
+
- Keep `dashboard/` focused on local workspace visibility. It may read PRDs, plans, designs, research briefs, and documentation from the root and submodules, but it must not become product runtime code.
|
|
50
|
+
- When a task spans multiple repositories, write the plan at the root first, then make separate implementation changes inside each relevant submodule.
|
|
51
|
+
- Prefer small, independently reviewable tasks per repository. Cross-repo work should clearly state ordering and integration points.
|
|
52
|
+
- Do not duplicate repo-specific coding rules in this file. Follow the `agentGuide` path from `project/repositories.json` for the owning submodule.
|
|
53
|
+
|
|
54
|
+
## Cross-Repo Ownership
|
|
55
|
+
|
|
56
|
+
Use `project/PROJECT.md` and `project/repositories.json` when deciding where work belongs. If a task spans multiple repositories, identify the owning repository for each part before editing.
|
|
57
|
+
|
|
58
|
+
- Documentation that explains how repositories interact may live at the root. Documentation that explains one repository's internals should live inside that repository.
|
|
59
|
+
- Workspace-only dashboards, artifact indexes, and local coordination UI belong in root `dashboard/`.
|
|
60
|
+
|
|
61
|
+
## Workflows
|
|
62
|
+
|
|
63
|
+
Workspace setup, PRD and planning commands, research, design, dashboard structure, and implementation sequencing live in [workflows.md](workflows.md).
|
|
64
|
+
|
|
65
|
+
## Agent Rules
|
|
66
|
+
|
|
67
|
+
- Ensure every feature or implementation task has a relevant PRD before planning or code changes, according to [workflows.md](workflows.md). In auto mode, the research stage comes before PRD creation.
|
|
68
|
+
- At the start of a developer-initiated feature or implementation task, read `workspace.config.json`. If `autoMode.enabled` is `true`, read and follow `.agents/skills/auto-mode/SKILL.md` to progress through the full workflow. For older workspaces without `autoMode`, fall back to `.agent-workflows/metadata.json` until `workflows update` migrates it. Missing settings mean auto mode is off; malformed settings are an error. Auto mode authorizes internal artifact approvals and stage continuation for the active request, but does not authorize commits, pushes, publishing, deployment, or production changes.
|
|
69
|
+
- After coding in auto mode, every implementation agent must return the applicable verified facts in [the completion summary template](templates/auto-mode-completion-summary-template.md). The coordinator must merge those reports into one final developer handoff with required build, run, and rollout actions, breaking changes, and validation limits.
|
|
70
|
+
- Identify which repository owns each part of the change from `project/repositories.json` before editing.
|
|
71
|
+
- Before spawning a workspace role agent, resolve its model for the assigned workflow step with `workflows agents resolve <step> <role> --format <codex|antigravity|claude> --json` (or `node bin/workflows.js ...` in this repository). Pass a non-`inherit` result as the spawn-time model when the runtime supports overrides. Codex checks its installed catalog; Antigravity accepts `inherit`, `flash`, and `pro`; invalid choices warn and fall back to `inherit`. `workflowModels` step-role and step-default values override base `agentModels`; `inherit` selects the runtime default. If the runtime cannot apply a selected step override, report the step, role, and resolved model instead of claiming it was used. A running agent keeps its model when it moves from coding into validation.
|
|
72
|
+
- For workspace dependency changes, use the root skill at [.agents/skills/package-installation/SKILL.md](.agents/skills/package-installation/SKILL.md).
|
|
73
|
+
- For dashboard frontend implementation, read [dashboard/AGENTS.md](dashboard/AGENTS.md) and use the relevant dashboard-local skills under `dashboard/.agents/skills/` before editing `dashboard/` code.
|
|
74
|
+
- Read the relevant submodule `agentGuide` from `project/repositories.json` before editing inside a submodule.
|
|
75
|
+
- Before implementing inside a submodule, discover its local skills (for example, `rg --files --hidden modules/<submodule>/.agents/skills modules/<submodule>/.codex/skills -g SKILL.md` where those directories exist). Read and follow every skill relevant to the assigned work, including any skill named by the developer or the submodule's `agentGuide`. Do this for serial work and in every implementation sub-agent handoff; do not assume reading `AGENTS.md` loads the skills.
|
|
76
|
+
- When changing behavior, structure, or documentation represented by an existing diagram under `.archify/`, identify the affected diagram from its candidate source references and subject. Ask the developer whether they want that diagram updated, naming the diagram and the changed files. Do not silently leave a known related diagram stale or assume that every file change requires a diagram refresh. When updating, refresh the existing candidate and generated artifact in place when practical. If a new version is needed, validate it, update references, and delete the superseded diagram files or folder so only the current version remains.
|
|
77
|
+
- Use `rg` or `rg --files` for searching across the workspace.
|
|
78
|
+
- Preserve user changes in the root repo and in every submodule. Never reset or discard work unless explicitly requested.
|
|
79
|
+
- Do not commit code or workflow changes. The developer will commit changes.
|
|
80
|
+
- Do not push, publish packages, deploy resources, or change production configuration unless the user explicitly asks.
|
|
81
|
+
- Run validation commands from the repository that owns the changed files. If a change spans repositories, validate each affected repository separately.
|
|
82
|
+
- For root dashboard changes, run the relevant dashboard validation command: `bun run dashboard:typecheck`, `bun run dashboard:test`, `bun run dashboard:build`, or `bun run lint`.
|
|
83
|
+
- When creating or updating documentation inside a submodule (`modules/<submodule>/docs/...`), agents MUST also create or update a corresponding root mapping document in `docs/<submodule>/...` containing a relative Markdown link pointing to the submodule document.
|
|
84
|
+
- When finishing cross-repo work, report which submodules changed and whether the root submodule pointers need to be committed.
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
package/INSTALL.md
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# Install and initialize an Agent Workflows workspace
|
|
2
|
+
|
|
3
|
+
Use this guide to set up a **consuming workspace** with
|
|
4
|
+
`@shinnodua/agent-workflows`, from package installation through project and
|
|
5
|
+
repository configuration. Run commands in the target workspace, which may be
|
|
6
|
+
different from the checkout containing this guide.
|
|
7
|
+
|
|
8
|
+
Give your coding agent this request (Agent chat):
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
Read INSTALL.md from the Agent Workflows repository and follow it to initialize
|
|
12
|
+
my workspace at <absolute-workspace-path>. Preserve existing work, ask for
|
|
13
|
+
missing project facts, and report validation results and remaining blockers.
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Before installation, open this file directly from the source repository; it
|
|
17
|
+
requires no installed skills. After installation it is also available at
|
|
18
|
+
`node_modules/@shinnodua/agent-workflows/INSTALL.md`. Follow existing target
|
|
19
|
+
workspace instructions throughout setup. Finish with the readiness report below;
|
|
20
|
+
commits, publishing, deployment, and product implementation are separate work.
|
|
21
|
+
|
|
22
|
+
## Start or resume
|
|
23
|
+
|
|
24
|
+
| Current state | Where to start |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| Empty directory or no installed package | Step 1, then install in step 2 |
|
|
27
|
+
| Package installed, workflow files missing | Step 1, then initialize in step 3 |
|
|
28
|
+
| Initialized but project facts or repositories incomplete | Inspect state in step 1, then resume step 4 |
|
|
29
|
+
| Existing workspace needs newer workflow instructions | Read [Update and recovery](#update-and-recovery) before refreshing |
|
|
30
|
+
|
|
31
|
+
## 1. Inspect the target and prerequisites
|
|
32
|
+
|
|
33
|
+
Identify the intended directory before making changes. Read its existing
|
|
34
|
+
`AGENTS.md`, `CLAUDE.md`, `package.json`, package-manager declaration/lockfile,
|
|
35
|
+
`workspace.config.json`, `project/`, and `.agent-workflows/manifest.json` where
|
|
36
|
+
present. Inspect Git status if it is a Git checkout. Preserve existing files,
|
|
37
|
+
dependencies, project facts, and pending changes.
|
|
38
|
+
|
|
39
|
+
If the target directory does not exist, create the requested directory. For a
|
|
40
|
+
new coordination workspace that will register submodules, initialize a Git
|
|
41
|
+
repository there if none exists. Keep product code in its owning repositories;
|
|
42
|
+
the coordination root holds project profiles, artifacts, and workspace tooling.
|
|
43
|
+
|
|
44
|
+
Check tools in the target workspace (Terminal):
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
git --version
|
|
48
|
+
node --version
|
|
49
|
+
bun --version
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Git is needed for repository registration, Node.js runs the CLI, and Bun runs the
|
|
53
|
+
packaged integrity checks and dashboard. Resolve missing tools before continuing;
|
|
54
|
+
use their official installation instructions for the user's platform. Keep an
|
|
55
|
+
existing package manager; Bun is the default for a new workspace, even when npm
|
|
56
|
+
or pnpm is used to install the dependency in an existing project.
|
|
57
|
+
|
|
58
|
+
The package is distributed publicly through npm at
|
|
59
|
+
`https://registry.npmjs.org`. Public installation requires no npm or GitHub
|
|
60
|
+
authentication. Preserve existing registry settings for unrelated packages.
|
|
61
|
+
|
|
62
|
+
If an existing project or user `.npmrc` maps `@shinnodua` to GitHub Packages,
|
|
63
|
+
replace only that scope mapping with this public npm override (configuration):
|
|
64
|
+
|
|
65
|
+
```ini
|
|
66
|
+
@shinnodua:registry=https://registry.npmjs.org
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Existing lockfiles can retain GitHub Packages tarball URLs. Refresh this
|
|
70
|
+
dependency with the project's package manager after changing the mapping and
|
|
71
|
+
review the lockfile diff; preserve unrelated dependencies and configuration.
|
|
72
|
+
If npm reports the package or requested version as missing, report that release
|
|
73
|
+
prerequisite rather than asking for GitHub package credentials.
|
|
74
|
+
|
|
75
|
+
**Ready to continue:** target root, current setup state, package-manager choice,
|
|
76
|
+
required tools, and registry/access prerequisites are known. Report any access
|
|
77
|
+
failure without repeatedly retrying or claiming installation succeeded.
|
|
78
|
+
|
|
79
|
+
## 2. Add the package
|
|
80
|
+
|
|
81
|
+
For an empty workspace without `package.json`, create a minimal private package
|
|
82
|
+
manifest with a project name agreed with the user and `"private": true`. Preserve
|
|
83
|
+
an existing manifest and lockfile. Choose **one** install command matching the
|
|
84
|
+
workspace package manager (Terminal, from the target root):
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
# Bun
|
|
88
|
+
bun add --dev @shinnodua/agent-workflows
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
# npm
|
|
93
|
+
npm install --save-dev @shinnodua/agent-workflows
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
# pnpm
|
|
98
|
+
pnpm add --save-dev @shinnodua/agent-workflows
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
If the target is already a package-manager monorepo, follow its root dependency
|
|
102
|
+
rules and required workspace-root flags. Do not switch package managers or
|
|
103
|
+
replace the dependency set to make installation work.
|
|
104
|
+
|
|
105
|
+
If an approved global installation is already being used, `workflows` can replace
|
|
106
|
+
the explicit local CLI path below; the local dev dependency is the default path
|
|
107
|
+
in this guide. See [README installation alternatives](README.md#install).
|
|
108
|
+
|
|
109
|
+
**Expected outcome:** package installation exits successfully, the dependency
|
|
110
|
+
and lockfile reflect the selected package, and
|
|
111
|
+
`node_modules/@shinnodua/agent-workflows/bin/workflows.js` exists. Inspect this
|
|
112
|
+
before executing the CLI. The explicit local path below avoids downloading an
|
|
113
|
+
unrelated CLI when installation has failed.
|
|
114
|
+
|
|
115
|
+
## 3. Initialize instructions and reload the agent
|
|
116
|
+
|
|
117
|
+
Terminal, from the target root:
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
node node_modules/@shinnodua/agent-workflows/bin/workflows.js init
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Initialization creates missing project scaffolding and local discovery shims,
|
|
124
|
+
records `.agent-workflows/manifest.json`, and synchronizes agent definitions.
|
|
125
|
+
Existing scaffold files are retained, but initialization can normalize workspace
|
|
126
|
+
configuration, synchronize model files, and merge package scripts. Review the
|
|
127
|
+
resulting diff rather than assuming existing files are untouched.
|
|
128
|
+
|
|
129
|
+
Read the generated `AGENTS.md`/`CLAUDE.md` and skill pointers. If pre-existing
|
|
130
|
+
instruction files were retained, preserve their rules and reconcile the generated
|
|
131
|
+
workflow references with them. Ask about conflicting project rules instead of
|
|
132
|
+
overwriting user instructions.
|
|
133
|
+
|
|
134
|
+
**Expected outcome:** the manifest, workspace configuration, project profile
|
|
135
|
+
scaffolding, and local command/skill shims exist. This establishes initialization;
|
|
136
|
+
the project is still incomplete until the next steps configure real facts.
|
|
137
|
+
|
|
138
|
+
Restart or reload the active agent session so it can discover the new agents,
|
|
139
|
+
commands, and skills. Before the reload, return this filled-in handoff (Agent chat):
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
Workspace: <absolute target root>
|
|
143
|
+
Completed: <successful steps and observed results>
|
|
144
|
+
Next: read target workspace instructions and run $project-setup (step 4)
|
|
145
|
+
Blockers: <missing facts/access, or None>
|
|
146
|
+
Resume with INSTALL.md; inspect existing state before repeating commands.
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
A new tracking file is unnecessary. If this session cannot reload itself, the
|
|
150
|
+
user performs the reload and supplies the handoff to the next session.
|
|
151
|
+
|
|
152
|
+
## 4. Configure the project and repositories
|
|
153
|
+
|
|
154
|
+
After reloading, read the target's generated instructions and invoke this in
|
|
155
|
+
**Agent chat**, not in a shell:
|
|
156
|
+
|
|
157
|
+
```text
|
|
158
|
+
$project-setup
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Plain `project-setup` or `/project-setup` is also supported. If command discovery
|
|
162
|
+
is unavailable, read the target's `.agents/skills/project-setup/SKILL.md` and its
|
|
163
|
+
packaged source completely, then follow it directly.
|
|
164
|
+
|
|
165
|
+
The setup skill owns the interview and edits. It reads existing answers, asks
|
|
166
|
+
one focused question at a time, and configures:
|
|
167
|
+
|
|
168
|
+
- `project/PROJECT.md`: real project purpose and ownership boundaries.
|
|
169
|
+
- `project/repositories.json`: actual repository identities, URLs, paths, scopes,
|
|
170
|
+
platforms, agent guides, artifact directories, code scan paths, and known checks.
|
|
171
|
+
- `project/validation.json`: applicable root and local validation commands.
|
|
172
|
+
- `project/workflows.json`: implementation stages or an explicit empty stage list.
|
|
173
|
+
- `.gitmodules` and repository registration, through the repository-addition flow.
|
|
174
|
+
|
|
175
|
+
For repository additions, project setup delegates to `$add-project`. Supply a
|
|
176
|
+
repository URL, review the inferred entry, then choose Add another repository or
|
|
177
|
+
Save repositories. **Save** is the existing boundary that clones/registers the
|
|
178
|
+
reviewed repositories as submodules and applies related configuration changes.
|
|
179
|
+
Follow that flow's preview and mutation helper; a profile entry or `.gitmodules`
|
|
180
|
+
entry by itself does not register a submodule. Existing cloned submodules should
|
|
181
|
+
be inspected and reused rather than added again.
|
|
182
|
+
|
|
183
|
+
If this is a cloned, already configured workspace and the user requested its
|
|
184
|
+
submodules, initialize the commits recorded by that checkout (Terminal):
|
|
185
|
+
|
|
186
|
+
```sh
|
|
187
|
+
git submodule update --init --recursive
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Do this only after inspecting local submodule changes and access requirements.
|
|
191
|
+
Fresh repository additions use the reviewed Save flow above. Do not invent
|
|
192
|
+
private URLs, credentials, validation commands, or missing project facts.
|
|
193
|
+
|
|
194
|
+
**Expected outcome:** project facts are real, examples are removed or explicitly
|
|
195
|
+
intentional, configured repository paths match registered submodules, and any
|
|
196
|
+
unknown validation command is recorded for follow-up. A failed or cancelled
|
|
197
|
+
repository batch leaves setup incomplete for those repositories; preserve and
|
|
198
|
+
report successful work before resuming the pending entries.
|
|
199
|
+
|
|
200
|
+
## 5. Verify and report readiness
|
|
201
|
+
|
|
202
|
+
Terminal, from the target root:
|
|
203
|
+
|
|
204
|
+
```sh
|
|
205
|
+
node node_modules/@shinnodua/agent-workflows/bin/workflows.js integrity
|
|
206
|
+
node node_modules/@shinnodua/agent-workflows/bin/workflows.js check
|
|
207
|
+
git status --short
|
|
208
|
+
git submodule status
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
`integrity` checks workspace artifacts; `check` also validates configuration,
|
|
212
|
+
syntax, and lint rules without enforcing formatting or rewriting files. Valid
|
|
213
|
+
multiline JSON arrays in `workspace.config.json` are accepted. Use the project's
|
|
214
|
+
dedicated Biome `check`/format command for formatting and assist actions such as
|
|
215
|
+
import sorting. Run the applicable commands
|
|
216
|
+
in `project/validation.json` and repository checks from
|
|
217
|
+
`project/repositories.json` in their owning directories. Review failures before
|
|
218
|
+
changing files and preserve user work.
|
|
219
|
+
Passing structural checks alone does not prove the project facts are complete.
|
|
220
|
+
|
|
221
|
+
Return a readiness report covering every item:
|
|
222
|
+
|
|
223
|
+
- [ ] Dependency installed and local CLI available.
|
|
224
|
+
- [ ] Initialization manifest and agent discovery files present; session reloaded.
|
|
225
|
+
- [ ] Actual project purpose, ownership, repository metadata, and stages configured.
|
|
226
|
+
- [ ] Reviewed repositories saved/registered, accessible, and aligned with profiles.
|
|
227
|
+
- [ ] Applicable checks passed, with exact commands and results recorded.
|
|
228
|
+
- [ ] Changed files, submodule/index effects, unknown facts, and any blockers listed.
|
|
229
|
+
|
|
230
|
+
Call setup ready only when required items are satisfied. If a tool, credential,
|
|
231
|
+
repository, or validation check is unavailable, report **incomplete**, the affected
|
|
232
|
+
step, successful work to retain, and the next corrective action. Keep commits
|
|
233
|
+
under developer control.
|
|
234
|
+
|
|
235
|
+
## Optional preferences and dashboard
|
|
236
|
+
|
|
237
|
+
These do not block core workspace readiness. Keep current role-model and auto-mode
|
|
238
|
+
settings unless the user requests changes. See the [README](README.md) for role
|
|
239
|
+
model configuration. Auto mode is an opt-in; initialization does not authorize
|
|
240
|
+
enabling it on the user's behalf.
|
|
241
|
+
|
|
242
|
+
To open the local artifact dashboard (Terminal, from the target root):
|
|
243
|
+
|
|
244
|
+
```sh
|
|
245
|
+
node node_modules/@shinnodua/agent-workflows/bin/workflows.js dashboard
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Report dashboard startup separately from required setup checks.
|
|
249
|
+
|
|
250
|
+
## Update and recovery
|
|
251
|
+
|
|
252
|
+
| Situation | Action |
|
|
253
|
+
| --- | --- |
|
|
254
|
+
| Missing tools or registry authentication/access | Resolve the named prerequisite privately, then resume the failed step. Keep completed configuration. |
|
|
255
|
+
| Package installed but initialization missing | Inspect existing files and run step 3. |
|
|
256
|
+
| Initialized with generic or partially completed profiles | Resume `$project-setup`; preserve saved answers. |
|
|
257
|
+
| Repository batch partially failed | Report registered and pending repositories; resume the existing add-project review/Save flow. |
|
|
258
|
+
| Skills unavailable after init/update | Reload the agent, or read the generated skill pointer and complete packaged source directly. |
|
|
259
|
+
| Validation fails | Report the failing command and cause; correct only relevant configuration, rerun the affected check, and retain an incomplete status until resolved. |
|
|
260
|
+
|
|
261
|
+
After upgrading the dependency with the workspace's package manager, inspect
|
|
262
|
+
pending changes before refreshing workflow-owned instructions (Terminal):
|
|
263
|
+
|
|
264
|
+
```sh
|
|
265
|
+
node node_modules/@shinnodua/agent-workflows/bin/workflows.js update
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
`update` replaces managed shims. Review custom changes to those files before
|
|
269
|
+
running it, and review the resulting diff afterward. Project-owned profiles and
|
|
270
|
+
artifacts remain under developer control; config migration can add defaults.
|
|
271
|
+
Reload the agent after refreshing, then repeat the readiness checks. Use `init`
|
|
272
|
+
for missing initialization and `update` deliberately for managed-file refreshes.
|
|
273
|
+
|
|
274
|
+
## Conventions and further reading
|
|
275
|
+
|
|
276
|
+
This guide uses ordinary Markdown and the established installation-document name
|
|
277
|
+
`INSTALL.md`, as seen in [Neovim's installation guide](https://github.com/neovim/neovim/blob/master/INSTALL.md).
|
|
278
|
+
The [AGENTS.md open format](https://agents.md/) provides predictable agent
|
|
279
|
+
instructions and setup-command context. INSTALL.md itself is not automatically
|
|
280
|
+
discovered by every agent; README.md and AGENTS.md link here for that reason.
|
|
281
|
+
|
|
282
|
+
For detailed workspace ownership and profile reference, see
|
|
283
|
+
[Reusable Workspace Template Setup](docs/workspace-template-setup.md). Existing
|
|
284
|
+
CLI commands and setup skills remain the source of truth for their behavior.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 shinnodua
|
|
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.
|