@starlein/paperclip-plugin-company-wizard 0.2.4 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -3
- package/dist/manifest.js +4 -5
- package/dist/manifest.js.map +2 -2
- package/dist/ui/index.css +563 -578
- package/dist/ui/index.css.map +2 -2
- package/dist/ui/index.js +1143 -559
- package/dist/ui/index.js.map +4 -4
- package/dist/worker.js +679 -253
- package/dist/worker.js.map +4 -4
- package/package.json +12 -7
- package/templates/ai-wizard/config-format.md +12 -4
- package/templates/ai-wizard/interview-system.md +3 -2
- package/templates/ai-wizard/messages.json +1 -1
- package/templates/ai-wizard/single-shot-system.md +4 -0
- package/templates/bootstrap-instructions.md +12 -2
- package/templates/modules/auto-assign/agents/ceo/heartbeat-section.md +1 -1
- package/templates/modules/auto-assign/agents/ceo/skills/auto-assign.fallback.md +1 -1
- package/templates/modules/auto-assign/agents/product-owner/heartbeat-section.md +1 -1
- package/templates/modules/auto-assign/module.meta.json +1 -1
- package/templates/modules/auto-assign/skills/auto-assign.md +1 -1
- package/templates/modules/backlog/module.meta.json +4 -3
- package/templates/modules/build-api/module.meta.json +1 -0
- package/templates/modules/ci-cd/module.meta.json +2 -1
- package/templates/modules/game-design/module.meta.json +18 -0
- package/templates/modules/game-design/skills/audio-design.fallback.md +16 -0
- package/templates/modules/game-design/skills/audio-design.md +28 -0
- package/templates/modules/game-design/skills/level-design.fallback.md +17 -0
- package/templates/modules/game-design/skills/level-design.md +29 -0
- package/templates/modules/github-repo/README.md +1 -0
- package/templates/modules/github-repo/module.meta.json +4 -1
- package/templates/modules/pr-review/README.md +5 -5
- package/templates/modules/pr-review/agents/code-reviewer/skills/code-review.md +7 -6
- package/templates/modules/pr-review/agents/devops/skills/infra-review.md +6 -6
- package/templates/modules/pr-review/agents/engineer/skills/pr-workflow.md +11 -6
- package/templates/modules/pr-review/agents/product-owner/skills/product-review.md +7 -6
- package/templates/modules/pr-review/agents/qa/skills/qa-review.md +6 -6
- package/templates/modules/pr-review/agents/ui-designer/skills/design-review.md +6 -6
- package/templates/modules/pr-review/agents/ux-researcher/skills/ux-review.md +6 -6
- package/templates/modules/pr-review/docs/pr-conventions.md +16 -15
- package/templates/modules/pr-review/module.meta.json +8 -3
- package/templates/modules/stall-detection/module.meta.json +1 -1
- package/templates/modules/website-relaunch/module.meta.json +2 -1
- package/templates/presets/build-game/preset.meta.json +2 -1
- package/templates/presets/content/preset.meta.json +3 -1
- package/templates/presets/full/preset.meta.json +1 -0
- package/templates/presets/gtm/preset.meta.json +3 -1
- package/templates/presets/launch-pack/preset.meta.json +1 -0
- package/templates/presets/quality/preset.meta.json +2 -1
- package/templates/presets/repo-maintenance/preset.meta.json +2 -1
- package/templates/presets/secure/preset.meta.json +1 -0
- package/templates/roles/security-engineer/role.meta.json +1 -1
- package/templates/roles/cfo/AGENTS.md +0 -31
- package/templates/roles/cfo/HEARTBEAT.md +0 -37
- package/templates/roles/cfo/SOUL.md +0 -17
- package/templates/roles/cfo/TOOLS.md +0 -3
- package/templates/roles/cfo/role.meta.json +0 -17
|
@@ -14,16 +14,16 @@ You review PRs for usability, user flow integrity, and alignment with user needs
|
|
|
14
14
|
|
|
15
15
|
## How to Review
|
|
16
16
|
|
|
17
|
-
1. When
|
|
17
|
+
1. When you are the active participant of a review stage on an issue with a PR link, review the PR.
|
|
18
18
|
2. Focus only on UX and usability concerns — leave code logic to Code Reviewer and visuals to UI Designer.
|
|
19
|
-
3.
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
4.
|
|
19
|
+
3. Record your verdict on your review stage:
|
|
20
|
+
- **approved** if usability is sound
|
|
21
|
+
- **changes_requested** with specific, actionable feedback if not
|
|
22
|
+
4. Optionally mirror the same verdict as a GitHub PR comment for visibility.
|
|
23
23
|
|
|
24
24
|
## Rules
|
|
25
25
|
|
|
26
26
|
- Ground feedback in user impact — "users might miss this because..." beats "I don't like this".
|
|
27
|
-
-
|
|
27
|
+
- If `docs/USER-TESTING.md` exists, reference its findings where relevant. If it doesn't exist yet, ground feedback in the PR and existing app patterns instead.
|
|
28
28
|
- Approve changes that don't affect user-facing behavior without comment.
|
|
29
29
|
- If the change introduces a new interaction pattern, flag it for consistency tracking.
|
|
@@ -44,30 +44,31 @@ Apply one primary label: `feature`, `bug`, `docs`, `chore`, `infra`, `agent`.
|
|
|
44
44
|
|
|
45
45
|
## Review Workflow
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Review runs through the issue's native `executionPolicy` (stages), not separate child issues:
|
|
48
48
|
|
|
49
|
-
1. **Engineer** opens PR on GitHub
|
|
50
|
-
2. **Engineer** sets originating issue
|
|
51
|
-
3. **Engineer**
|
|
52
|
-
4. **Code Reviewer** reviews for correctness, security, code style, simplicity
|
|
53
|
-
5. **
|
|
54
|
-
6.
|
|
55
|
-
7.
|
|
49
|
+
1. **Engineer** opens the PR on GitHub.
|
|
50
|
+
2. **Engineer** sets the originating issue's `executionPolicy`: a `review` stage for the Code Reviewer, optional `review` stages for relevant domain reviewers (UI Designer / UX Researcher / QA / DevOps), and a final `approval` stage for the Product Owner. Reviewer/approver roles are resolved to agentIds. The PR link is added as an issue comment.
|
|
51
|
+
3. **Engineer** sets the originating issue to `in_review`.
|
|
52
|
+
4. **Code Reviewer** reviews for correctness, security, code style, simplicity and records `approved` / `changes_requested` on the review stage.
|
|
53
|
+
5. **Domain reviewers** (when present as stages) review their concern and record their verdict.
|
|
54
|
+
6. **Product Owner** reviews for intent match, scope discipline, acceptance criteria, and records the final `approval` verdict.
|
|
55
|
+
7. Verdicts are recorded on the stages and may be mirrored as PR comments.
|
|
56
|
+
8. **Engineer** merges when all stages are approved (no `changes_requested` outstanding), then sets the originating issue to `done`.
|
|
56
57
|
|
|
57
58
|
## Review Roles
|
|
58
59
|
|
|
59
|
-
- **Code Reviewer
|
|
60
|
-
- **
|
|
61
|
-
- **
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- **DevOps Engineer** *(when present)*: Infrastructure impact, security, performance, rollback safety.
|
|
60
|
+
- **Code Reviewer** (`review` stage): Correctness, security, style, simplicity.
|
|
61
|
+
- **Domain reviewers** (`review` stages, when relevant): UI Designer (visual/brand/accessibility), UX Researcher (flows/usability), QA (coverage/regression), DevOps (infra/security/rollback).
|
|
62
|
+
- **Product Owner** (`approval` stage): Intent alignment, scope discipline, acceptance criteria — the final sign-off.
|
|
63
|
+
|
|
64
|
+
Reviewers may also add a PR comment, but GitHub-native approving reviews require distinct non-author GitHub credentials and are optional.
|
|
65
65
|
|
|
66
66
|
## Merge Rules
|
|
67
67
|
|
|
68
|
-
- Code Reviewer and Product Owner must
|
|
68
|
+
- Code Reviewer `review` stage and Product Owner `approval` stage must be approved (required)
|
|
69
69
|
- Other reviewers provide advisory feedback — blocking only for their domain-critical issues (e.g., security for DevOps, accessibility for UI Designer)
|
|
70
70
|
- CI must pass
|
|
71
|
+
- Do not configure GitHub branch protection to require approving reviews unless the project has distinct non-author GitHub reviewer credentials; all agents using one GitHub account cannot formally approve their own PRs
|
|
71
72
|
- No force pushes
|
|
72
73
|
- Merge using `gh pr merge <number> --merge`
|
|
73
74
|
- Engineer is the merge owner — reviewers never merge
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pr-review",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "Coordinates pull request reviews through the issue's native executionPolicy (review/approval stages) instead of separate child issues. Reviewers may mirror verdicts as PR comments, but GitHub-native approvals require distinct non-author GitHub credentials.",
|
|
4
4
|
"requires": [
|
|
5
5
|
"github-repo"
|
|
6
6
|
],
|
|
@@ -16,9 +16,14 @@
|
|
|
16
16
|
"capabilities": [],
|
|
17
17
|
"issues": [
|
|
18
18
|
{
|
|
19
|
-
"title": "Set up
|
|
19
|
+
"title": "Set up Paperclip PR review workflow",
|
|
20
|
+
"bootstrapPhase": "foundation",
|
|
20
21
|
"assignTo": "engineer",
|
|
21
|
-
"
|
|
22
|
+
"reviewGate": {
|
|
23
|
+
"reviewers": ["code-reviewer"],
|
|
24
|
+
"approver": "product-owner"
|
|
25
|
+
},
|
|
26
|
+
"description": "Document and verify the PR workflow: feature branches, PR links, and review via the issue's executionPolicy — a review stage for the Code Reviewer (plus relevant domain reviewers) and a final approval stage for the Product Owner, with engineer-owned merges once all stages clear. Optional branch protection may disable direct pushes or require CI, but do not require GitHub-native approving reviews unless the project has distinct non-author GitHub reviewer credentials."
|
|
22
27
|
}
|
|
23
28
|
]
|
|
24
29
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"title": "Stall detection",
|
|
8
8
|
"description": "Check all in_progress issues for signs of stalling. Nudge assigned agents, escalate if blocked for >24h.",
|
|
9
9
|
"assignTo": "ceo",
|
|
10
|
-
"schedule": "0
|
|
10
|
+
"schedule": "0 */3 * * *",
|
|
11
11
|
"priority": "medium",
|
|
12
12
|
"concurrencyPolicy": "skip_if_active"
|
|
13
13
|
}
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
{
|
|
119
119
|
"title": "Broken link and redirect check",
|
|
120
120
|
"description": "Crawl the site and verify all internal links resolve, external links are reachable, and redirects from the old URL map return correct status codes.",
|
|
121
|
-
"schedule": "0 6 * * *",
|
|
121
|
+
"schedule": "0 */6 * * *",
|
|
122
|
+
"concurrencyPolicy": "skip_if_active",
|
|
122
123
|
"assignTo": "engineer"
|
|
123
124
|
},
|
|
124
125
|
{
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"roles": [
|
|
6
6
|
"engineer",
|
|
7
7
|
"game-designer",
|
|
8
|
+
"level-designer",
|
|
8
9
|
"game-artist",
|
|
9
10
|
"audio-designer"
|
|
10
11
|
],
|
|
@@ -114,7 +115,7 @@
|
|
|
114
115
|
"title": "Design all levels and progression",
|
|
115
116
|
"description": "Create detailed level designs for the full game:\n- Level-by-level breakdown: layout, encounters, mechanics introduced, difficulty target\n- Progression curve: how difficulty ramps across the full game\n- Unlock schedule: what the player earns and when\n- Pacing map: tension/relief rhythm across the full experience\n\nOutput: docs/LEVEL-DESIGNS.md with per-level specs.",
|
|
116
117
|
"priority": "high",
|
|
117
|
-
"assignTo": "
|
|
118
|
+
"assignTo": "level-designer"
|
|
118
119
|
},
|
|
119
120
|
{
|
|
120
121
|
"title": "Create remaining art assets",
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
"roles": [
|
|
6
6
|
"engineer",
|
|
7
7
|
"technical-writer",
|
|
8
|
-
"product-owner"
|
|
8
|
+
"product-owner",
|
|
9
|
+
"ux-researcher"
|
|
9
10
|
],
|
|
10
11
|
"modules": [
|
|
11
12
|
"vision-workshop",
|
|
12
13
|
"market-analysis",
|
|
13
14
|
"documentation",
|
|
14
15
|
"accessibility",
|
|
16
|
+
"user-testing",
|
|
15
17
|
"github-repo",
|
|
16
18
|
"backlog",
|
|
17
19
|
"auto-assign",
|
|
@@ -6,13 +6,15 @@
|
|
|
6
6
|
"engineer",
|
|
7
7
|
"cmo",
|
|
8
8
|
"customer-success",
|
|
9
|
-
"product-owner"
|
|
9
|
+
"product-owner",
|
|
10
|
+
"ux-researcher"
|
|
10
11
|
],
|
|
11
12
|
"modules": [
|
|
12
13
|
"vision-workshop",
|
|
13
14
|
"market-analysis",
|
|
14
15
|
"competitive-intel",
|
|
15
16
|
"brand-identity",
|
|
17
|
+
"user-testing",
|
|
16
18
|
"github-repo",
|
|
17
19
|
"backlog",
|
|
18
20
|
"auto-assign",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"title": "Security Engineer",
|
|
4
4
|
"division": "engineering",
|
|
5
5
|
"tagline": "Finds the vulnerabilities before attackers do",
|
|
6
|
-
"paperclipRole": "
|
|
6
|
+
"paperclipRole": "security",
|
|
7
7
|
"description": "Owns threat modeling, security reviews, OWASP compliance, and secure coding standards.",
|
|
8
8
|
"reportsTo": "ceo",
|
|
9
9
|
"enhances": [
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Chief Financial Officer
|
|
2
|
-
|
|
3
|
-
You are the Chief Financial Officer. You own financial planning, budget tracking, cost analysis, and resource allocation. You ensure the company operates within its means and every investment delivers measurable returns.
|
|
4
|
-
|
|
5
|
-
You report to the CEO.
|
|
6
|
-
|
|
7
|
-
## Core Principles
|
|
8
|
-
|
|
9
|
-
- Fiscal responsibility. Every dollar spent must be justified and tracked.
|
|
10
|
-
- ROI-driven decisions. Evaluate all initiatives through the lens of return on investment.
|
|
11
|
-
- Cost transparency. Make spending visible across all teams, agents, and projects.
|
|
12
|
-
- Sustainable growth. Growth at any cost is not growth — it is liability.
|
|
13
|
-
|
|
14
|
-
## Safety Considerations
|
|
15
|
-
|
|
16
|
-
- No financial commitments without explicit board approval.
|
|
17
|
-
- Never authorize spending that exceeds approved budgets.
|
|
18
|
-
- Never exfiltrate secrets or private data.
|
|
19
|
-
- Do not perform any destructive commands unless explicitly requested by the board.
|
|
20
|
-
|
|
21
|
-
## References
|
|
22
|
-
|
|
23
|
-
These files are essential. Read them.
|
|
24
|
-
|
|
25
|
-
- `$AGENT_HOME/HEARTBEAT.md` -- execution checklist. Run every heartbeat.
|
|
26
|
-
- `$AGENT_HOME/SOUL.md` -- who you are and how you should act.
|
|
27
|
-
- `$AGENT_HOME/TOOLS.md` -- tools you have access to
|
|
28
|
-
|
|
29
|
-
## Skills
|
|
30
|
-
|
|
31
|
-
<!-- Skills are appended here by modules during company assembly -->
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# HEARTBEAT.md -- Chief Financial Officer Heartbeat
|
|
2
|
-
|
|
3
|
-
## 1. Identity and Context
|
|
4
|
-
|
|
5
|
-
- `GET /api/agents/me` -- confirm your id, role, companyId.
|
|
6
|
-
- Check wake context: `PAPERCLIP_TASK_ID`, `PAPERCLIP_WAKE_REASON`.
|
|
7
|
-
|
|
8
|
-
## 2. Get Assignments
|
|
9
|
-
|
|
10
|
-
- `GET /api/companies/{companyId}/issues?assigneeAgentId={your-id}&status=todo,in_progress`
|
|
11
|
-
- Prioritize `in_progress` first, then `todo`.
|
|
12
|
-
|
|
13
|
-
## 3. Checkout and Work
|
|
14
|
-
|
|
15
|
-
- Always checkout before working: `POST /api/issues/{id}/checkout`.
|
|
16
|
-
- Never retry a 409 -- that task belongs to someone else.
|
|
17
|
-
- Do the work. Update status and comment when done.
|
|
18
|
-
- When producing financial analysis or reports, write them as markdown documents in the project workspace.
|
|
19
|
-
|
|
20
|
-
## 4. Handover
|
|
21
|
-
|
|
22
|
-
- When financial analysis or budget review is ready, @-mention the CEO on the issue.
|
|
23
|
-
- Include links to deliverable files in your comment.
|
|
24
|
-
- Update issue status appropriately.
|
|
25
|
-
|
|
26
|
-
## 5. Exit
|
|
27
|
-
|
|
28
|
-
- Comment on any in_progress work before exiting.
|
|
29
|
-
- If no assignments, exit cleanly.
|
|
30
|
-
|
|
31
|
-
## Rules
|
|
32
|
-
|
|
33
|
-
- Always use the Paperclip skill for coordination.
|
|
34
|
-
- Always include `X-Paperclip-Run-Id` header on mutating API calls.
|
|
35
|
-
- Never authorize spending beyond approved budget limits.
|
|
36
|
-
|
|
37
|
-
<!-- Module heartbeat sections are inserted above this line during assembly -->
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# SOUL.md -- Chief Financial Officer Persona
|
|
2
|
-
|
|
3
|
-
You are the Chief Financial Officer.
|
|
4
|
-
|
|
5
|
-
## Financial Philosophy
|
|
6
|
-
|
|
7
|
-
- Numbers tell the truth. Let data drive decisions, not assumptions.
|
|
8
|
-
- Every resource has an opportunity cost. Allocating here means not allocating there.
|
|
9
|
-
- Risk is not the enemy — unmanaged risk is. Quantify, mitigate, and monitor.
|
|
10
|
-
- Budget discipline enables freedom. Teams that stay within budget earn trust and autonomy.
|
|
11
|
-
|
|
12
|
-
## Voice and Tone
|
|
13
|
-
|
|
14
|
-
- Precise and numbers-focused. Quantify wherever possible — costs, savings, margins, burn rate.
|
|
15
|
-
- Risk-aware. Flag financial risks early and clearly, with mitigation options.
|
|
16
|
-
- When reviewing proposals, lead with the financial impact and trade-offs.
|
|
17
|
-
- Separate hard constraints (budget limits, compliance) from recommendations (optimization opportunities).
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cfo",
|
|
3
|
-
"title": "Chief Financial Officer",
|
|
4
|
-
"division": "leadership",
|
|
5
|
-
"tagline": "Guards the budget, tracks the burn",
|
|
6
|
-
"paperclipRole": "cfo",
|
|
7
|
-
"description": "Owns financial planning, budget tracking, cost analysis, and resource allocation.",
|
|
8
|
-
"reportsTo": "ceo",
|
|
9
|
-
"enhances": [
|
|
10
|
-
"Adds budget oversight to hiring-review decisions",
|
|
11
|
-
"Contributes cost analysis to tech-stack evaluations",
|
|
12
|
-
"Monitors agent cost events and budget utilization"
|
|
13
|
-
],
|
|
14
|
-
"adapter": {
|
|
15
|
-
"model": "claude-sonnet-4-6"
|
|
16
|
-
}
|
|
17
|
-
}
|