tech-lead-stack 1.0.1
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/hr-workflows/hr-ad-distributor.md +18 -0
- package/.agents/hr-workflows/hr-candidate-sourcer.md +18 -0
- package/.agents/hr-workflows/hr-endorsement-synthesizer.md +18 -0
- package/.agents/hr-workflows/hr-intake-specifier.md +18 -0
- package/.agents/hr-workflows/hr-interview-auditor.md +18 -0
- package/.agents/hr-workflows/hr-jd-drafter.md +18 -0
- package/.agents/hr-workflows/hr-pipeline-translator.md +18 -0
- package/.agents/pm-workflows/pm-action-item-mapper.md +18 -0
- package/.agents/pm-workflows/pm-backlog-auditor.md +18 -0
- package/.agents/pm-workflows/pm-context-summarizer.md +18 -0
- package/.agents/pm-workflows/pm-design-system-auditor.md +18 -0
- package/.agents/pm-workflows/pm-effort-estimator.md +18 -0
- package/.agents/pm-workflows/pm-newsletter-generator.md +18 -0
- package/.agents/pm-workflows/pm-progress-translator.md +18 -0
- package/.agents/pm-workflows/pm-release-note-drafter.md +18 -0
- package/.agents/pm-workflows/pm-risk-detector.md +18 -0
- package/.agents/pm-workflows/pm-story-augmenter.md +18 -0
- package/.agents/pm-workflows/pm-task-specifier.md +18 -0
- package/.agents/workflows/accessibility-audit.md +30 -0
- package/.agents/workflows/ask.md +44 -0
- package/.agents/workflows/audit-tech-debt.md +31 -0
- package/.agents/workflows/changelog.md +31 -0
- package/.agents/workflows/clean-code-audit.md +31 -0
- package/.agents/workflows/code-review.md +38 -0
- package/.agents/workflows/competitive-analysis.md +46 -0
- package/.agents/workflows/design-requirements-to-architecture.md +31 -0
- package/.agents/workflows/design-system-review.md +113 -0
- package/.agents/workflows/dev-team-sub-max.md +57 -0
- package/.agents/workflows/dev-team-sub-pro.md +57 -0
- package/.agents/workflows/dev-team.md +52 -0
- package/.agents/workflows/feature-orchestrator.md +43 -0
- package/.agents/workflows/init.md +31 -0
- package/.agents/workflows/mission-architect.md +31 -0
- package/.agents/workflows/onboard-dev.md +31 -0
- package/.agents/workflows/plan-quick.md +33 -0
- package/.agents/workflows/plan.md +31 -0
- package/.agents/workflows/pr-automator.md +44 -0
- package/.agents/workflows/pr-design-review-init.md +57 -0
- package/.agents/workflows/qa-handover.md +40 -0
- package/.agents/workflows/reflexion-loop-sub-max.md +46 -0
- package/.agents/workflows/reflexion-loop-sub-pro.md +45 -0
- package/.agents/workflows/reflexion-loop.md +66 -0
- package/.agents/workflows/regression-bug-fix.md +31 -0
- package/.agents/workflows/security-audit.md +31 -0
- package/.agents/workflows/standup-daily-summary.md +31 -0
- package/.agents/workflows/strategy-target-evaluation.md +31 -0
- package/.agents/workflows/style-logic-exporter.md +84 -0
- package/.agents/workflows/ui-spec-generator.md +156 -0
- package/.agents/workflows/verify-changes.md +31 -0
- package/.agents/workflows/vertical-slice.md +52 -0
- package/.agents/workflows/weekly-leadership-report.md +39 -0
- package/.ai/agent-surfaces.json +1235 -0
- package/.ai/hooks/README.md +32 -0
- package/.ai/hooks/build-requires-approved-spec.json +10 -0
- package/.ai/hooks/deploy-requires-review.json +11 -0
- package/.ai/hooks/no-ai-approve-deploy.json +10 -0
- package/.ai/hooks/protected-paths.json +10 -0
- package/.ai/hr-skills/hr-ad-distributor.md +61 -0
- package/.ai/hr-skills/hr-candidate-sourcer.md +69 -0
- package/.ai/hr-skills/hr-endorsement-synthesizer.md +82 -0
- package/.ai/hr-skills/hr-intake-specifier.md +71 -0
- package/.ai/hr-skills/hr-interview-auditor.md +60 -0
- package/.ai/hr-skills/hr-jd-drafter.md +61 -0
- package/.ai/hr-skills/hr-pipeline-translator.md +58 -0
- package/.ai/pm-skills/pm-action-item-mapper.md +61 -0
- package/.ai/pm-skills/pm-backlog-auditor.md +57 -0
- package/.ai/pm-skills/pm-context-summarizer.md +61 -0
- package/.ai/pm-skills/pm-effort-estimator.md +79 -0
- package/.ai/pm-skills/pm-newsletter-generator.md +60 -0
- package/.ai/pm-skills/pm-progress-translator.md +59 -0
- package/.ai/pm-skills/pm-release-note-drafter.md +58 -0
- package/.ai/pm-skills/pm-risk-detector.md +58 -0
- package/.ai/pm-skills/pm-story-augmenter.md +70 -0
- package/.ai/pm-skills/pm-task-specifier.md +70 -0
- package/.ai/policies/diagnosis-first.md +26 -0
- package/.ai/policies/four-pillars.md +72 -0
- package/.ai/policies/user-sovereignty.md +25 -0
- package/.ai/skills/accessibility-auditor.md +105 -0
- package/.ai/skills/agent-optimizer.md +99 -0
- package/.ai/skills/ask.md +200 -0
- package/.ai/skills/capacity-planner.md +60 -0
- package/.ai/skills/changelog-generator.md +131 -0
- package/.ai/skills/clean-code.md +136 -0
- package/.ai/skills/code-review-checklist.md +103 -0
- package/.ai/skills/codebase-onboarding-intelligence.md +130 -0
- package/.ai/skills/competitive-analysis.md +114 -0
- package/.ai/skills/daily-standup.md +106 -0
- package/.ai/skills/design-system-review.md +308 -0
- package/.ai/skills/dev-team-local.md +52 -0
- package/.ai/skills/dev-team-orchestrator.md +289 -0
- package/.ai/skills/dev-team-sub-max.md +369 -0
- package/.ai/skills/dev-team-sub-pro.md +288 -0
- package/.ai/skills/dummy-skill.md +28 -0
- package/.ai/skills/feature-design-assistant.md +134 -0
- package/.ai/skills/feature-orchestrator.md +163 -0
- package/.ai/skills/knowledge-manager.md +103 -0
- package/.ai/skills/mission-architect.md +86 -0
- package/.ai/skills/mission-control.md +102 -0
- package/.ai/skills/operational-boundaries.md +94 -0
- package/.ai/skills/planning-expert-quick.md +164 -0
- package/.ai/skills/planning-expert.md +390 -0
- package/.ai/skills/pr-automator.md +431 -0
- package/.ai/skills/product-strategist.md +123 -0
- package/.ai/skills/qa-handover-generator.md +182 -0
- package/.ai/skills/reflexion-loop-local.md +39 -0
- package/.ai/skills/reflexion-loop-sub-max.md +214 -0
- package/.ai/skills/reflexion-loop-sub-pro.md +164 -0
- package/.ai/skills/reflexion-loop.md +119 -0
- package/.ai/skills/regression-bug-fix.md +95 -0
- package/.ai/skills/security-audit.md +97 -0
- package/.ai/skills/solutioning-facilitator.md +338 -0
- package/.ai/skills/style-logic-exporter.md +115 -0
- package/.ai/skills/technical-debt-auditor.md +119 -0
- package/.ai/skills/ui-spec-generator.md +78 -0
- package/.ai/skills/verification-auditor.md +101 -0
- package/.ai/skills/vertical-slice-decomposer.md +335 -0
- package/.ai/skills/visual-verifier.md +134 -0
- package/.ai/skills/weekly-leadership-report.md +224 -0
- package/.ai/skills.graph.json +1550 -0
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/mcp-server.mjs +5203 -0
- package/package.json +48 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-system-review
|
|
3
|
+
description: >-
|
|
4
|
+
AI-augmented design review with a 2-iteration guard, sequential memory, and KI
|
|
5
|
+
persistence.
|
|
6
|
+
modes:
|
|
7
|
+
- write
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
// turbo-all
|
|
11
|
+
|
|
12
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
13
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
14
|
+
|
|
15
|
+
> [!IMPORTANT]
|
|
16
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
17
|
+
> This file (`.agents/workflows/design-system-review.md`) is a workflow launcher stub, NOT the skill definition.
|
|
18
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
19
|
+
|
|
20
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
21
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
22
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
23
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
24
|
+
|
|
25
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
26
|
+
- skillName: "design-system-review"
|
|
27
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
28
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
29
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Phase 1: Sequential Memory Init
|
|
34
|
+
|
|
35
|
+
Before any analysis, use the `sequential-thinking` tool to initialize your
|
|
36
|
+
session context:
|
|
37
|
+
|
|
38
|
+
1. **Thought 1** — Identify the `sessionId` from the user message.
|
|
39
|
+
2. **Thought 2** — Fetch the current session state via the local API:
|
|
40
|
+
`curl http://localhost:3000/api/design-review/session/<sessionId>`
|
|
41
|
+
- Restore iteration count, current status, and check if a `figmaUrl` was provided.
|
|
42
|
+
3. **Thought 3** — Confirm: "Session initialized. Iteration N. Status: X."
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Phase 2: Existing KI Check
|
|
47
|
+
|
|
48
|
+
Before auditing, search for past design decisions on this component:
|
|
49
|
+
|
|
50
|
+
1. Call `list_knowledge_items` with the current project name.
|
|
51
|
+
2. Look for any slug matching `design-decision-<component-name>-*`.
|
|
52
|
+
3. If found: call `read_knowledge_item` and incorporate the past decision
|
|
53
|
+
into your audit context so you don't contradict approved deviations.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Phase 3: Run the Audit (Follow Skill Gates)
|
|
58
|
+
|
|
59
|
+
Execute the full skill workflow (Phase 0 → Gate 5):
|
|
60
|
+
|
|
61
|
+
- Use `sequential-thinking` to track each gate result as a separate thought.
|
|
62
|
+
- After each gate: record PASS / FAIL and the specific evidence.
|
|
63
|
+
- After Gate 4 (Storybook/Figma): If a `figmaUrl` exists in the session, verify against it. If NO Figma URL exists, evaluate the component purely based on base Shadcn/Radix foundations and the project's brand tokens.
|
|
64
|
+
- After Gate 5 (Chromatic): pause if credentials are needed, wait for user.
|
|
65
|
+
- Update the session state via the API (using `PATCH /api/design-review/session/<sessionId>`) after all gates are complete.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Phase 4: Iteration Decision
|
|
70
|
+
|
|
71
|
+
**When the audit is complete (Score < 90%):**
|
|
72
|
+
|
|
73
|
+
- Present the "Must Fix" list (🔴 Critical / 🟡 Recommended / 🟢 Advisory).
|
|
74
|
+
- Instruct the user: "Apply these fixes, then reply `/design-system-review iterate` to trigger the next iteration."
|
|
75
|
+
- **STOP here.** Do not proceed until the user responds.
|
|
76
|
+
|
|
77
|
+
**On subsequent iterations (`/design-system-review iterate`):**
|
|
78
|
+
|
|
79
|
+
- Re-fetch the session state to confirm the current iteration count.
|
|
80
|
+
- Re-run only failed gates.
|
|
81
|
+
- Calculate the new alignment score.
|
|
82
|
+
- *Note:* There is a minimum of 2 iterations required, but you may scale upwards as needed to reach UI parity.
|
|
83
|
+
- Branch:
|
|
84
|
+
- **≥ 90%** → Call `create_knowledge_item` → `PATCH` status to `READY_FOR_DESIGNER_GATE`
|
|
85
|
+
- **Still failing after multiple attempts & stuck** → `PATCH` status to `ESCALATED` and write to `docs/design-debt.md`
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Phase 5: Persistence
|
|
90
|
+
|
|
91
|
+
On **any** session completion (pass or escalation):
|
|
92
|
+
|
|
93
|
+
- Final `sequential-thinking` thought: summarize the full session outcome.
|
|
94
|
+
- Update the session state using:
|
|
95
|
+
`curl -X PATCH http://localhost:3000/api/design-review/session/<sessionId> -H "Content-Type: application/json" -d '{"status": "<STATUS>", "alignmentScore": <SCORE>, "gateResults": [...]}'`
|
|
96
|
+
- If `READY_FOR_DESIGNER_GATE`: call `create_knowledge_item` with the KI
|
|
97
|
+
schema from the skill.
|
|
98
|
+
- If `ESCALATED`: append a new entry to `docs/design-debt.md`:
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
## [YYYY-MM-DD] <Component Name>
|
|
102
|
+
|
|
103
|
+
- **Status**: ESCALATED
|
|
104
|
+
- **Alignment Score**: N%
|
|
105
|
+
- **Unresolved Gates**: <list>
|
|
106
|
+
- **Session ID**: `<sessionId>`
|
|
107
|
+
- **Action Required**: Manual designer review
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
*Companion skills: Always run `style-logic-exporter` first to extract current
|
|
113
|
+
token state. Run `accessibility-auditor` in parallel for WCAG coverage.*
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev-team-sub-max
|
|
3
|
+
description: >-
|
|
4
|
+
[DEV-TEAM · SUB-MAX · NO API KEYS · CROSS-MODEL VERIFY] Subscription-tier
|
|
5
|
+
($100/mo) dev team orchestrator workflow (up to 2 lanes,
|
|
6
|
+
reflexion-loop-sub-max, cross-model verify, visual fidelity gate)
|
|
7
|
+
modes:
|
|
8
|
+
- write
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
// turbo-all
|
|
12
|
+
|
|
13
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
14
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
15
|
+
|
|
16
|
+
> [!IMPORTANT]
|
|
17
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
18
|
+
> This file (`.agents/workflows/dev-team-sub-max.md`) is a workflow launcher stub, NOT the skill definition.
|
|
19
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
20
|
+
|
|
21
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
22
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
23
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
24
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
25
|
+
|
|
26
|
+
> [!NOTE] `// turbo-all` is active for execution velocity, BUT it does NOT license bypassing PARK. Parking at a gate or inbox question is a HARD STOP regardless.
|
|
27
|
+
|
|
28
|
+
1. **Phase 0: Skill Acquisition (FIRST ACTION — NO EXCEPTIONS)**:
|
|
29
|
+
Call the `get_skills` / `get_skill` tool with all 4 required fields:
|
|
30
|
+
- `skillName`: "dev-team-sub-max"
|
|
31
|
+
- `projectName`: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
32
|
+
- `model`: "<YOUR_MODEL_NAME>"
|
|
33
|
+
- `agent`: "<YOUR_AGENT_NAME>"
|
|
34
|
+
|
|
35
|
+
2. **Pre-Flight Model Contract**: Formulate and print model assignments and isolation levels (L0-L3). Check `CLAUDE_CODE_SUBAGENT_MODEL` (warn and cap at L2 if overridden). Resolve reviewer/QA models with `./.ai/rtk-run run resolve-critic --writer <vendor> --writer-model <planner-model>` (Gemini `gemini-cli`/`agy` -> `codex` -> Claude sub-agent/`claude-cli` -> another model -> same model + STRONG `Critic Advisory` in the lane state file).
|
|
36
|
+
3. **Phase 0A: Cold Resume Check**: Inspect `.dev-team/lanes/*.md`. If incomplete lanes exist, print Quota Ledger, read state files and Findings Ledger (`.dev-team/analysis/<lane-id>.md`), and resume directly from recorded Phase without re-running Phase 0 discovery.
|
|
37
|
+
4. **Phase 0B: Discovery & Mission Frame**: Run scoped discovery (excluding build/dependency dirs), create Findings Ledger, and establish Mission Frame.
|
|
38
|
+
5. **Phase 1: Crew Sizing Gate**: Score the five signals (0-2). Max 2 parallel lanes. If score = XL, open Tech-Lead confirmation gate stating expected turn cost (~60 turns) before worktree creation. Print scores first.
|
|
39
|
+
6. **Phase 2: Lane & Quota Ledgers**: Initialize Quota Ledger (`.dev-team/quota.md` tracking active models and headroom). Set up Lane Ledger and git worktrees. Write lane state files (`.dev-team/lanes/<lane-id>.md`) BEFORE entering gates. Mandatory worktree bootstrap before testing.
|
|
40
|
+
7. **Phase 3: Persona Execution & Model Continuity**: Run pm-analyst, planner, developer, reviewer, qa. Hardened plans via `reflexion-loop-sub-max`. Reviewer runs in fresh sub-agent (Context Firewall) with diff + criteria + commands. Handle exhaustion Modes A/B/C via fallback ladder; mark degraded reviewer approvals as PROVISIONAL (Risk-2 work MUST PARK). UI slices MUST enforce visual fidelity gate.
|
|
41
|
+
8. **Phase 4: Tech-Lead Interview**: Batch questions at gate boundaries in `.dev-team/inbox.md`. PARK is a hard stop. Inbox is read-only after human responds. Never bypass gate failures silently.
|
|
42
|
+
9. **Phase 5: Friction Defect Protocol**: Document rework ≥2, tool failures, or >2 model swaps in `.dev-team/friction/<date>-<slug>.md`. Draft issue command (autofile only if `DEV_TEAM_AUTOFILE_ISSUES=1`).
|
|
43
|
+
10. **Mandatory Disclosure Output**: Emit the disclosure status (`Model separation held` vs `MODEL SEPARATION LOST`) as the VERY FIRST line of final output, followed by the full Provenance Table.
|
|
44
|
+
11. **Telemetry**: Include `{ teamRole, loopRunId, actorType: 'AGENT' }` on all persona skill calls.
|
|
45
|
+
12. **Anti-drift Guard**: Reprint Lane and Quota Ledgers after every detour or completed gate.
|
|
46
|
+
|
|
47
|
+
**Execution guardrails (CRITICAL):**
|
|
48
|
+
This workflow relies on the `dev-team-sub-max` skill. You MUST follow its explicit execution guardrails covering:
|
|
49
|
+
- **Execution Discipline:** Direct native file edits only, produce-don't-deliberate, no stall commands.
|
|
50
|
+
- **Interrupt Safety:** Checkpoint BEFORE gate in `.dev-team/lanes/<lane-id>.md`. Cold resume protocol on fresh window.
|
|
51
|
+
- **Model Isolation & Continuity:** First-line same-model disclosure line, PROVISIONAL slice tracking, Findings Ledger updates.
|
|
52
|
+
- **Hard Gate Rules:** PARK is a hard stop; `git push`, `git add`, `merge` STRICTLY FORBIDDEN.
|
|
53
|
+
|
|
54
|
+
**IDE surface activation notes:**
|
|
55
|
+
- **Antigravity:** Paste file content into Agent Manager > Customizations > Workflows (trigger via `/dev-team-sub-max`).
|
|
56
|
+
- **Cursor:** `install.sh` symlinks to `~/.cursor/skills/workflow-dev-team-sub-max/SKILL.md` (trigger via `@workflow-dev-team-sub-max`).
|
|
57
|
+
- **Continue:** `install.sh` symlinks to `~/.continue/prompts/dev-team-sub-max.prompt` (trigger via `/dev-team-sub-max`).
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev-team-sub-pro
|
|
3
|
+
description: >-
|
|
4
|
+
[DEV-TEAM · SUB-PRO · NO API KEYS · CROSS-MODEL VERIFY] Subscription-tier
|
|
5
|
+
($20/mo) dev pair orchestrator workflow (1 lane, no worktrees,
|
|
6
|
+
builder/checker, cross-model verify, tier ceiling)
|
|
7
|
+
modes:
|
|
8
|
+
- write
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
// turbo-all
|
|
12
|
+
|
|
13
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
14
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
15
|
+
|
|
16
|
+
> [!IMPORTANT]
|
|
17
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
18
|
+
> This file (`.agents/workflows/dev-team-sub-pro.md`) is a workflow launcher stub, NOT the skill definition.
|
|
19
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
20
|
+
|
|
21
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
22
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
23
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
24
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
25
|
+
|
|
26
|
+
> [!NOTE] `// turbo-all` is active for execution velocity, BUT it does NOT license bypassing PARK. Parking at a gate or inbox question is a HARD STOP regardless.
|
|
27
|
+
|
|
28
|
+
1. **Phase 0: Skill Acquisition (FIRST ACTION — NO EXCEPTIONS)**:
|
|
29
|
+
Call the `get_skills` / `get_skill` tool with all 4 required fields:
|
|
30
|
+
- `skillName`: "dev-team-sub-pro"
|
|
31
|
+
- `projectName`: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
32
|
+
- `model`: "<YOUR_MODEL_NAME>"
|
|
33
|
+
- `agent`: "<YOUR_AGENT_NAME>"
|
|
34
|
+
|
|
35
|
+
2. **Pre-Flight Model Contract**: Print model assignments and isolation levels (L0-L3). Check `CLAUDE_CODE_SUBAGENT_MODEL` (warn and cap at L2 if overridden). Resolve the Checker model with `./.ai/rtk-run run resolve-critic --writer <vendor> --writer-model <builder-model>` (Gemini `gemini-cli`/`agy` -> `codex` -> Claude sub-agent/`claude-cli` -> another model -> same model + STRONG `Critic Advisory` in the lane state file).
|
|
36
|
+
3. **Phase 0A: Cold Resume Check**: Inspect `.dev-team/lanes/lane-1.md`. If incomplete, print Quota Ledger, read state file and Findings Ledger (`.dev-team/analysis/lane-1.md`), and resume directly from recorded Phase without re-running Phase 0 discovery.
|
|
37
|
+
4. **Phase 0B: Discovery & Mission Frame**: Run scoped discovery (excluding build/dependency dirs), create Findings Ledger, and establish Mission Frame.
|
|
38
|
+
5. **Phase 1: Crew Sizing & Tier Ceiling Gate**: Score the five signals (0-2). Score ≥ 6 (L/XL) or Risk signal = 2 -> REFUSE and escalate immediately. Print scores first regardless.
|
|
39
|
+
6. **Phase 2: Single-Lane & Quota Ledger**: Initialize Quota Ledger (`.dev-team/quota.md`, 20 turn budget, active model tracking). No git worktrees (operate directly on branch). Write checkpoint `.dev-team/lanes/lane-1.md` BEFORE entering gates. If Mode B limit hit or turns reach 20, consolidate into Findings Ledger, PARK, and hand back.
|
|
40
|
+
7. **Phase 3: Two-Hat Execution (Builder & Checker)**: Builder plans and implements (optional `reflexion-loop-sub-pro` if Risk = 1). Checker runs in fresh sub-agent (Context Firewall) and pastes hard evidence. Mark degraded Checker approvals as PROVISIONAL (Risk-2 work MUST PARK). Visual gate for UI slices requires Figma spec in plan and 2-viewport capture.
|
|
41
|
+
8. **Phase 4: Tech-Lead Interview**: Batch questions at gate boundaries in `.dev-team/inbox.md`. PARK is a hard stop. Inbox is read-only after human responds. Never bypass gate failures silently.
|
|
42
|
+
9. **Phase 5: Friction Defect Protocol**: Document rework ≥2, tool failures, or >2 model swaps in `.dev-team/friction/<date>-<slug>.md`. Draft issue command (autofile only if `DEV_TEAM_AUTOFILE_ISSUES=1`).
|
|
43
|
+
10. **Mandatory Disclosure Output**: Emit disclosure status (`Model separation held` vs `MODEL SEPARATION LOST`) as the VERY FIRST line of final output, followed by the full Provenance Table.
|
|
44
|
+
11. **Telemetry**: Include `{ teamRole, loopRunId, actorType: 'AGENT' }` on all skill calls.
|
|
45
|
+
12. **Anti-drift Guard**: Reprint Lane Ledger after every detour or completed gate.
|
|
46
|
+
|
|
47
|
+
**Execution guardrails (CRITICAL):**
|
|
48
|
+
This workflow relies on the `dev-team-sub-pro` skill. You MUST follow its explicit execution guardrails covering:
|
|
49
|
+
- **Execution Discipline:** Direct native file edits only, produce-don't-deliberate, single branch checkout (no worktrees).
|
|
50
|
+
- **Tier Ceilings:** Refuse L/XL and Risk-2 tasks immediately. Maximum 20 turns per slice.
|
|
51
|
+
- **Interrupt Safety & Model Continuity:** Checkpoint BEFORE gate in `.dev-team/lanes/lane-1.md`. Mode B consolidate-and-park. First-line same-model disclosure line.
|
|
52
|
+
- **Hard Gate Rules:** PARK is a hard stop; `git push`, `git add`, `merge` STRICTLY FORBIDDEN.
|
|
53
|
+
|
|
54
|
+
**IDE surface activation notes:**
|
|
55
|
+
- **Antigravity:** Paste file content into Agent Manager > Customizations > Workflows (trigger via `/dev-team-sub-pro`).
|
|
56
|
+
- **Cursor:** `install.sh` symlinks to `~/.cursor/skills/workflow-dev-team-sub-pro/SKILL.md` (trigger via `@workflow-dev-team-sub-pro`).
|
|
57
|
+
- **Continue:** `install.sh` symlinks to `~/.continue/prompts/dev-team-sub-pro.prompt` (trigger via `/dev-team-sub-pro`).
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev-team
|
|
3
|
+
description: >-
|
|
4
|
+
[DEV-TEAM · FULL · MCP] The flagship orchestration workflow for an agentic dev
|
|
5
|
+
team
|
|
6
|
+
modes:
|
|
7
|
+
- write
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
// turbo-all
|
|
11
|
+
|
|
12
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
13
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
14
|
+
|
|
15
|
+
> [!IMPORTANT]
|
|
16
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
17
|
+
> This file (`.agents/workflows/dev-team.md`) is a workflow launcher stub, NOT the skill definition.
|
|
18
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
19
|
+
|
|
20
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
21
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
22
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
23
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
24
|
+
|
|
25
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` / `get_skill` tool:
|
|
26
|
+
- skillName: "dev-team-orchestrator"
|
|
27
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
28
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
29
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
30
|
+
|
|
31
|
+
2. **Phase 0 (cont): Discovery & Mission Frame**: Inspect the codebase for tech stack & domain boundaries. Establish the mission frame (one sentence + success metric).
|
|
32
|
+
|
|
33
|
+
3. **Phase 1: Crew Sizing Gate**: Score the five signals (Surface area, Novelty, Risk, Ambiguity, Parallelism) from 0-2. Sum to get size (XS to XL) and assign the appropriate crew and lane setup. Print the sizing decision before any work.
|
|
34
|
+
|
|
35
|
+
4. **Phase 2: Lane Ledger**: Set up the Lane Ledger tracking each lane's status, branch/worktree, state-file (`.dev-team/lanes/<lane-id>.md`), and next-gate.
|
|
36
|
+
|
|
37
|
+
5. **Phase 3: Persona Execution**: Orchestrate the active lanes using existing skills for pm-analyst, planner, developer, reviewer, and qa. Ensure Reviewer must ACT, not read.
|
|
38
|
+
|
|
39
|
+
6. **Phase 4: Tech-Lead Interview**: Batch questions at gate boundaries ONLY, appended to `.dev-team/inbox.md` using the YAML answers convention. Park the lane if unanswered.
|
|
40
|
+
|
|
41
|
+
7. **Phase 5: Friction Defect Protocol**: File friction defects at `.dev-team/friction/<date>-<slug>.md` using the `friction-defect` template for >=2 rework loops, skill behavioral deviations, or missing tools. Create an issue command (draft only by default).
|
|
42
|
+
|
|
43
|
+
8. **Telemetry**: Ensure telemetry events capture persona actions with `{ teamRole, loopRunId, actorType: 'AGENT' }`.
|
|
44
|
+
|
|
45
|
+
9. **Anti-drift Guard**: Reprint the Lane Ledger after every detour or completed gate. Multiple lanes advance independently.
|
|
46
|
+
|
|
47
|
+
**Execution guardrails (CRITICAL):**
|
|
48
|
+
This workflow relies on the `dev-team-orchestrator` skill. You MUST follow its explicit execution guardrails covering:
|
|
49
|
+
- **Execution Discipline:** Direct native file edits only (no patch.js/regex), produce-don't-deliberate, no stall commands.
|
|
50
|
+
- **Discovery Budget:** Strict caps on search, omitting build/dependency directories.
|
|
51
|
+
- **Lane & Worktree Integrity:** No silent lane creation; mandatory bootstrap (deps, `.env`, clients, builds) of fresh worktrees before testing.
|
|
52
|
+
- **Hard Gate Rules:** Inbox is read-only after human writes; PARK is a hard stop; NEVER silently bypass a tool failure (e.g., `reflexion-loop`) without human consent.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature-orchestrator
|
|
3
|
+
description: Three-Phase Feature Engine (Research -> Plan -> Implement)
|
|
4
|
+
modes:
|
|
5
|
+
- write
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
// turbo-all
|
|
9
|
+
|
|
10
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
11
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
12
|
+
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
15
|
+
> This file (`.agents/workflows/feature-orchestrator.md`) is a workflow launcher stub, NOT the skill definition.
|
|
16
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
17
|
+
|
|
18
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
19
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
20
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
21
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
22
|
+
|
|
23
|
+
1. **Phase 0: Skill Acquisition (CRITICAL)**: Call the `get_skills` tool (or `get_feature_orchestrator` alias):
|
|
24
|
+
- skillName: "feature-orchestrator"
|
|
25
|
+
- projectName: "<NAME_FROM_PACKAGE_JSON>"
|
|
26
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
27
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
28
|
+
|
|
29
|
+
2. **Determine Runtime Mode**: Read-only chat (`/chat`) → run Research + Plan and
|
|
30
|
+
deliver Implement as a verifiable blueprint + handoff. IDE/MCP agent → execute
|
|
31
|
+
and verify the Implement phase in the sandbox.
|
|
32
|
+
|
|
33
|
+
3. **Run the orchestration**: Follow the skill to drive the feature through
|
|
34
|
+
Research (chain `feature-design-assistant`; add `ui-spec-generator` /
|
|
35
|
+
`design-system-review` when designs are provided) → Plan (chain
|
|
36
|
+
`vertical-slice-decomposer` for user-facing work, else `planning-expert`) →
|
|
37
|
+
Implement & Verify (chain `verification-auditor`; remediate via
|
|
38
|
+
`regression-bug-fix`). Acquire each specialist skill via `get_skill(s)` so
|
|
39
|
+
every phase emits a trace for the dashboard tracker.
|
|
40
|
+
|
|
41
|
+
4. **Finale**: Once all tools finish, provide an EXHAUSTIVE final report —
|
|
42
|
+
per-phase outcomes, the slice list with verification commands, and the next
|
|
43
|
+
action. Do NOT exit without a text finale report.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: init
|
|
3
|
+
description: Master Setup
|
|
4
|
+
modes:
|
|
5
|
+
- write
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
// turbo-all
|
|
9
|
+
|
|
10
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
11
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
12
|
+
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
15
|
+
> This file (`.agents/workflows/init.md`) is a workflow launcher stub, NOT the skill definition.
|
|
16
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
17
|
+
|
|
18
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
19
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
20
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
21
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
22
|
+
|
|
23
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
24
|
+
- skillName: "mission-control"
|
|
25
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
26
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
27
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
28
|
+
|
|
29
|
+
2. **Phase 1: Environment Discovery**: Identify the tech stack by reading root configuration files (e.g., package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, build.gradle) to understand architectural constraints.
|
|
30
|
+
|
|
31
|
+
3. Follow its workflow to perform a pre-flight diagnostic of the environment and tools.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mission-architect
|
|
3
|
+
description: Master Feature Orchestration
|
|
4
|
+
modes:
|
|
5
|
+
- write
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
// turbo-all
|
|
9
|
+
|
|
10
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
11
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
12
|
+
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
15
|
+
> This file (`.agents/workflows/mission-architect.md`) is a workflow launcher stub, NOT the skill definition.
|
|
16
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
17
|
+
|
|
18
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
19
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
20
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
21
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
22
|
+
|
|
23
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
24
|
+
- skillName: "mission-architect"
|
|
25
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
26
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
27
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
28
|
+
|
|
29
|
+
2. **Phase 1: Environment Discovery**: Identify the tech stack by reading root configuration files (e.g., package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, build.gradle) to understand architectural constraints.
|
|
30
|
+
|
|
31
|
+
3. Follow its 4-phase master pipeline to bridge Product Strategy with a high-fidelity implementation aligned to the G-Stack Methodology.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: onboard-dev
|
|
3
|
+
description: Codebase Onboarding Intelligence
|
|
4
|
+
modes:
|
|
5
|
+
- write
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
// turbo-all
|
|
9
|
+
|
|
10
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
11
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
12
|
+
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
15
|
+
> This file (`.agents/workflows/onboard-dev.md`) is a workflow launcher stub, NOT the skill definition.
|
|
16
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
17
|
+
|
|
18
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
19
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
20
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
21
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
22
|
+
|
|
23
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
24
|
+
- skillName: "codebase-onboarding-intelligence"
|
|
25
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
26
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
27
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
28
|
+
|
|
29
|
+
2. **Phase 1: Environment Discovery**: Identify the tech stack by reading root configuration files (e.g., package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, build.gradle) to understand architectural constraints.
|
|
30
|
+
|
|
31
|
+
3. Follow its workflow to map out tech stack, patterns, and vitals.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-quick
|
|
3
|
+
description: >-
|
|
4
|
+
Ultra-lean strategic planning. Optimized for speed, token efficiency, and
|
|
5
|
+
rapid MVC delivery.
|
|
6
|
+
modes:
|
|
7
|
+
- write
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
// turbo-all
|
|
11
|
+
|
|
12
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
13
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
14
|
+
|
|
15
|
+
> [!IMPORTANT]
|
|
16
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
17
|
+
> This file (`.agents/workflows/plan-quick.md`) is a workflow launcher stub, NOT the skill definition.
|
|
18
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
19
|
+
|
|
20
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
21
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
22
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
23
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
24
|
+
|
|
25
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
26
|
+
- skillName: "planning-expert-quick"
|
|
27
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
28
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
29
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
30
|
+
|
|
31
|
+
2. **Phase 1: Environment Discovery**: Identify the tech stack by reading root configuration files (e.g., package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, build.gradle) to understand architectural constraints.
|
|
32
|
+
|
|
33
|
+
3. Follow its workflow to convert the ticket description into a methodology-compliant plan.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Implementation & Bug Planning
|
|
4
|
+
modes:
|
|
5
|
+
- write
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
// turbo-all
|
|
9
|
+
|
|
10
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
11
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
12
|
+
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
15
|
+
> This file (`.agents/workflows/plan.md`) is a workflow launcher stub, NOT the skill definition.
|
|
16
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
17
|
+
|
|
18
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
19
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
20
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
21
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
22
|
+
|
|
23
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
24
|
+
- skillName: "planning-expert"
|
|
25
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
26
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
27
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
28
|
+
|
|
29
|
+
2. **Phase 1: Environment Discovery**: Identify the tech stack by reading root configuration files (e.g., package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, build.gradle) to understand architectural constraints.
|
|
30
|
+
|
|
31
|
+
3. Follow its workflow to convert the ticket description into a methodology-compliant plan.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
PR Automator (with Mandatory Dynamic Template Adherence, Commit History
|
|
4
|
+
Review, Label Matching, & Draft Mode)
|
|
5
|
+
modes:
|
|
6
|
+
- write
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
// turbo-all
|
|
10
|
+
|
|
11
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
12
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
13
|
+
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
16
|
+
> This file (`.agents/workflows/pr-automator.md`) is a workflow launcher stub, NOT the skill definition.
|
|
17
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
18
|
+
|
|
19
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
20
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
21
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
22
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
23
|
+
|
|
24
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing):
|
|
25
|
+
- skillName: "pr-automator"
|
|
26
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
27
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
28
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
29
|
+
- runCodeReview: "<boolean>" Set to `true` if the user provided flags like `--code-review` or explicitly asked for a code review in their command. Defaults to `false`.
|
|
30
|
+
|
|
31
|
+
2. **Phase 1: Environment & Template Discovery**:
|
|
32
|
+
- Identify base branch (e.g. from prompt `base branch: <name>` or `main`).
|
|
33
|
+
- Discover host project's PR template (`.github/pull_request_template.md` or variants). Retain its exact headings and sections.
|
|
34
|
+
- Sync branch to remote if unpushed: `git push -u origin <HEAD_BRANCH>`.
|
|
35
|
+
|
|
36
|
+
3. **Phase 2: Review Commit History & Semantic Extraction**:
|
|
37
|
+
- Run `git log <base>...HEAD --pretty=format:"%h %s"` to review all commits on the branch.
|
|
38
|
+
- Formulate semantic change lists (`- add:`, `- update:`, `- fix:`, `- refactor:`, `- delete:`) matching the real commit work.
|
|
39
|
+
|
|
40
|
+
4. **Phase 3: Populate Template, Match Labels, & Create Draft PR**:
|
|
41
|
+
- Map user-provided inputs (`section` / `module`, `sprint`, testing / release readiness status) into template fields.
|
|
42
|
+
- If user requests no evidence, activate the **Evidence Skip Fast-Path** immediately.
|
|
43
|
+
- Match available repository labels (`gh label list`) based on branch, commits, and diff.
|
|
44
|
+
- Execute `gh pr create --draft` non-interactively with `--body-file` and return the resulting PR URL to the user.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pr-design-review-init
|
|
3
|
+
description: Start an AI-powered design review from an existing GitHub PR URL.
|
|
4
|
+
modes:
|
|
5
|
+
- write
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 🛠PR Design Review Initiation (Developer Start)
|
|
9
|
+
|
|
10
|
+
**ROLE: DEVELOPER**
|
|
11
|
+
This workflow allows a developer to bypass the code-generation phase and trigger an AI design audit on an existing Pull Request.
|
|
12
|
+
|
|
13
|
+
## Objective
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
16
|
+
> This file is a workflow launcher stub. When transitioning to `design-system-review`, you MUST call the MCP `get_skills` tool with all 4 required fields (`skillName`, `projectName`, `model`, `agent`) to initialize mission telemetry.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 🛠Execution Steps
|
|
21
|
+
|
|
22
|
+
### Step 0: Skill Acquisition (NON-NEGOTIABLE)
|
|
23
|
+
Call the `get_skills` tool before anything else:
|
|
24
|
+
- skillName: "design-system-review"
|
|
25
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
26
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
27
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
28
|
+
|
|
29
|
+
### Step 1: PR Metadata Discovery
|
|
30
|
+
1. **Analyze the URL**: Scrape the provided GitHub PR URL using `firecrawl_scrape`.
|
|
31
|
+
2. **Extract Key Info**:
|
|
32
|
+
- **Component Name**: Extract from the PR title or by inspecting the file diff (e.g., if `ProjectCard.tsx` was modified).
|
|
33
|
+
- **Branch Name**: Identify the source branch of the PR.
|
|
34
|
+
- **Project ID**: Map the GitHub repository to the internal Tech-Lead Stack `projectId`.
|
|
35
|
+
3. **Report Findings**: Summarize the detected component and branch to the developer.
|
|
36
|
+
|
|
37
|
+
### Step 2: Session Creation
|
|
38
|
+
1. Call the Tech-Lead Stack API to create the session:
|
|
39
|
+
```bash
|
|
40
|
+
curl -X POST <TECH_LEAD_STACK_URL>/api/design-review \
|
|
41
|
+
-H "Content-Type: application/json" \
|
|
42
|
+
-d '{
|
|
43
|
+
"projectId": "<PROJECT_ID>",
|
|
44
|
+
"component": "<COMPONENT_NAME>",
|
|
45
|
+
"prUrl": "<PR_URL>",
|
|
46
|
+
"initiatedBy": "DEVELOPER"
|
|
47
|
+
}'
|
|
48
|
+
```
|
|
49
|
+
2. Capture the `sessionId` from the response.
|
|
50
|
+
|
|
51
|
+
### Step 3: Trigger AI Audit
|
|
52
|
+
1. Automatically transition to the `design-system-review` workflow using the new `sessionId`.
|
|
53
|
+
2. **Instruction**: "Session created. Starting the automated Design System Audit now..."
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
**Completion:** Confirm to the developer that the session is live and provide a link to the Design Review Dashboard for that project.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Generate a QA handover + universal smoke-test criteria document and deliver it
|
|
4
|
+
to ClickUp
|
|
5
|
+
modes:
|
|
6
|
+
- write
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
// turbo-all
|
|
10
|
+
|
|
11
|
+
**CRITICAL: PHASE 0 - SKILL ACQUISITION IS NON-NEGOTIABLE.**
|
|
12
|
+
**YOU MUST CALL THE GET_SKILLS TOOL EVEN IF YOU ALREADY HAVE THE CONTEXT. FAILURE TO DO SO BYPASSES MISSION TELEMETRY.**
|
|
13
|
+
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
> **ANTI-CONFLATION DIRECTIVE:**
|
|
16
|
+
> This file (`.agents/workflows/qa-handover.md`) is a workflow launcher stub, NOT the skill definition.
|
|
17
|
+
> Viewing this file via `view_file` does NOT satisfy Phase 0. You MUST call the MCP `get_skills` or `get_skill` tool FIRST with all 4 required fields before executing any other steps.
|
|
18
|
+
|
|
19
|
+
- **Skill Usage Enforcement (NON-NEGOTIABLE):**
|
|
20
|
+
- **FORBIDDEN:** Direct file access via `view_file` or `run_command` is strictly prohibited for skill reading.
|
|
21
|
+
- **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which may be prefixed as `mcp_tech-lead-stack_get_skills` or `tech-lead-stack_get_skills` depending on client prefixing).
|
|
22
|
+
- **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
|
|
23
|
+
|
|
24
|
+
1. **Phase 0: Skill Acquisition**: Call the `get_skills` / `get_skill` tool:
|
|
25
|
+
- skillName: "qa-handover-generator"
|
|
26
|
+
- projectName: "<YOUR_CURRENT_PROJECT_NAME>"
|
|
27
|
+
- model: "<YOUR_MODEL_NAME>"
|
|
28
|
+
- agent: "<YOUR_AGENT_NAME>"
|
|
29
|
+
|
|
30
|
+
2. **Phase 0 (cont): Scope & Architecture Discovery**: Identify the exact modules/screens the change touches. From the REAL code, determine how the feature manages state — distinguish server-driven (URL/query is source of truth, round-trips to server) from client-side/in-memory/offline-first (static fetch, in-memory filtering), or whatever pattern the code actually uses. For each pattern extract the single source of truth and the owning hook/query/function by real name. Scoped searches only (exclude node_modules/.next/.nx/dist/build).
|
|
31
|
+
|
|
32
|
+
3. **Gate 1: Architecture Overview**: Write the Architecture Overview split by the patterns actually found — target modules, single source of truth, mechanism (named symbols), pattern-specific behaviours. Every claim traces to real code.
|
|
33
|
+
|
|
34
|
+
4. **Gate 2: Universal Smoke-Test Criteria**: For each pattern, write smoke-test acceptance criteria covering general usage and core flows (not edge cases), each with expected result and pattern-specific gotcha. Each criterion must be agent-ingestible AND human-followable. Render as ClickUp checklist items.
|
|
35
|
+
|
|
36
|
+
5. **Gate 3: Testability & Environment Notes**: State URLs/modules, auth/role, offline/PWA and data/environment considerations so QA does not report false failures.
|
|
37
|
+
|
|
38
|
+
6. **Gate 4: ClickUp Delivery**: Render the ENTIRE document through the shared module `scripts/clickup-format.ts` — never hand-roll ClickUp markdown. Tables via `renderTable(table, mode, target)`: `mode` defaults to `'pipe'` (native ClickUp Doc/task tables) and auto-falls back to `'list'` when a table exceeds the destination column limit (8 for docs, 4 for task descriptions); pass `target` `'doc'` or `'task'` to match where it will be created. When the ClickUp MCP is connected AND a destination (space/folder/list/doc id + title) is provided, create the handover via `clickup_create_document` / `clickup_create_document_page` and confirm headings/table/checkboxes/code render correctly. Otherwise write the rendered content to `.ai/output/qa-handovers/<feature>-handover.md`. Never create in ClickUp without an explicit destination.
|
|
39
|
+
|
|
40
|
+
7. **Telemetry**: Pass overrides `{ teamRole: "qa", actorType: "AGENT", loopRunId: "<MISSION_ID>" }` on MCP skill calls.
|