agents-united 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +26 -0
  2. package/package.json +1 -1
  3. package/registry/agents/orchestrator-business.md +19 -6
  4. package/registry/agents/orchestrator-design.md +21 -6
  5. package/registry/agents/orchestrator-digital-agency.md +22 -3
  6. package/registry/agents/orchestrator-engineering.md +47 -24
  7. package/registry/agents/orchestrator-marketing.md +21 -7
  8. package/registry/agents/orchestrator-research.md +18 -4
  9. package/registry/agents/orchestrator-security.md +18 -6
  10. package/registry/agents/orchestrator-system-architecture.md +18 -4
  11. package/registry/agents/orchestrator-universal.md +17 -1
  12. package/registry/agents/subagent-accessibility-lead.md +8 -0
  13. package/registry/agents/subagent-ai-model-architect.md +8 -0
  14. package/registry/agents/subagent-android-architect.md +9 -0
  15. package/registry/agents/subagent-appsec-penetration-tester.md +7 -0
  16. package/registry/agents/subagent-backend-architect.md +11 -1
  17. package/registry/agents/subagent-business-panel-experts.md +8 -0
  18. package/registry/agents/subagent-cloud-infrastructure-architect.md +9 -0
  19. package/registry/agents/subagent-cloud-security-architect.md +8 -0
  20. package/registry/agents/subagent-code-reviewer.md +11 -2
  21. package/registry/agents/subagent-compliance-grc-specialist.md +8 -0
  22. package/registry/agents/subagent-cross-platform-specialist.md +10 -0
  23. package/registry/agents/subagent-data-engineer.md +8 -0
  24. package/registry/agents/subagent-database-administrator.md +8 -0
  25. package/registry/agents/subagent-deep-research.md +9 -0
  26. package/registry/agents/subagent-design-ops-lead.md +9 -0
  27. package/registry/agents/subagent-design-researcher.md +8 -0
  28. package/registry/agents/subagent-design-systems-architect.md +9 -0
  29. package/registry/agents/subagent-designer-toolkit-expert.md +9 -0
  30. package/registry/agents/subagent-devops-engineer.md +9 -0
  31. package/registry/agents/subagent-distributed-systems-architect.md +10 -0
  32. package/registry/agents/subagent-e2e-tester.md +9 -0
  33. package/registry/agents/subagent-financial-analyst.md +10 -2
  34. package/registry/agents/subagent-finops-cost-engineer.md +7 -0
  35. package/registry/agents/subagent-frontend-architect.md +12 -0
  36. package/registry/agents/subagent-interaction-designer.md +10 -0
  37. package/registry/agents/subagent-ios-architect.md +9 -0
  38. package/registry/agents/subagent-legal-contract-analyst.md +13 -5
  39. package/registry/agents/subagent-lifecycle-email-specialist.md +8 -0
  40. package/registry/agents/subagent-literature-patent-analyst.md +15 -5
  41. package/registry/agents/subagent-market-intelligence-analyst.md +13 -3
  42. package/registry/agents/subagent-marketing-campaign-specialist.md +8 -0
  43. package/registry/agents/subagent-marketing-content-strategist.md +9 -0
  44. package/registry/agents/subagent-marketing-conversion-specialist.md +10 -0
  45. package/registry/agents/subagent-marketing-creative-designer.md +15 -2
  46. package/registry/agents/subagent-marketing-growth-strategist.md +8 -0
  47. package/registry/agents/subagent-ml-platform-engineer.md +8 -0
  48. package/registry/agents/subagent-operations-strategist.md +11 -2
  49. package/registry/agents/subagent-paid-acquisition-specialist.md +8 -0
  50. package/registry/agents/subagent-plg-strategist.md +8 -0
  51. package/registry/agents/subagent-prototype-tester.md +8 -0
  52. package/registry/agents/subagent-qa-automation-lead.md +10 -0
  53. package/registry/agents/subagent-repo-index.md +8 -2
  54. package/registry/agents/subagent-security-engineer.md +6 -0
  55. package/registry/agents/subagent-seo-specialist.md +10 -0
  56. package/registry/agents/subagent-socratic-mentor.md +7 -0
  57. package/registry/agents/subagent-statistical-analyst.md +6 -0
  58. package/registry/agents/subagent-sysops-sre-lead.md +8 -0
  59. package/registry/agents/subagent-system-architect.md +9 -0
  60. package/registry/agents/subagent-ui-designer.md +12 -0
  61. package/registry/agents/subagent-ux-strategist.md +10 -0
  62. package/registry/bundles.json +8 -2
  63. package/registry/skills/a11y-debugging/SKILL.md +98 -0
  64. package/registry/skills/a11y-debugging/references/a11y-snippets.md +92 -0
  65. package/registry/skills/debug-optimize-lcp/SKILL.md +133 -0
  66. package/registry/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
  67. package/registry/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
  68. package/registry/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
  69. package/registry/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
  70. package/registry/skills/frontend-design/LICENSE.txt +177 -0
  71. package/registry/skills/frontend-design/SKILL.md +64 -0
  72. package/registry/skills/generative_ui/SKILL.md +131 -0
  73. package/registry/skills/mcp-setup/SKILL.md +22 -7
  74. package/registry/skills/modern-web-guidance/SKILL.md +139 -0
  75. package/registry/skills/stitch-design-taste/DESIGN.md +121 -0
  76. package/registry/skills/stitch-design-taste/SKILL.md +194 -0
package/README.md CHANGED
@@ -723,6 +723,32 @@ Agents United proudly builds upon, adapts, and integrates contributions from cre
723
723
  - **`maestro-mobile-testing`**: Declarative cross-platform mobile UI test automation.
724
724
  </details>
725
725
 
726
+ <details>
727
+ <summary><strong>Anthropic & Community (<a href="https://github.com/anthropics/skills">anthropics/skills</a>)</strong></summary>
728
+
729
+ - **`frontend-design`**: Distinctive, intentional visual design guidance for distinctive typography, color, and anti-cliché aesthetics.
730
+ </details>
731
+
732
+ <details>
733
+ <summary><strong>Google Stitch Labs (<a href="https://labs.google/stitch">labs.google/stitch</a>)</strong></summary>
734
+
735
+ - **`stitch-design-taste`**: Semantic design system generator for Google Stitch screens, anti-generic design tokens, and motion parameters.
736
+ </details>
737
+
738
+ <details>
739
+ <summary><strong>Google DeepMind Antigravity (<a href="https://antigravity.google">antigravity.google</a>)</strong></summary>
740
+
741
+ - **`generative_ui`**: Inline rich interactive HTML/Tailwind widget and artifact rendering standards.
742
+ </details>
743
+
744
+ <details>
745
+ <summary><strong>Google Chrome DevTools Team (<a href="https://github.com/GoogleChrome/devtools-mcp">GoogleChrome/devtools-mcp</a>)</strong></summary>
746
+
747
+ - **`modern-web-guidance`**: Modern web platform APIs, CSS `:has()`, View Transitions, and Core Web Vitals best practices.
748
+ - **`a11y-debugging`**: Chrome DevTools accessibility auditing, ARIA verification, and WCAG AA guidelines.
749
+ - **`debug-optimize-lcp`**: Largest Contentful Paint (LCP) performance trace inspection and subpart latency optimization.
750
+ </details>
751
+
726
752
  ---
727
753
 
728
754
  ## 📄 License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-united",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "The universal package manager for AI agents.",
5
5
  "main": "./dist/cli.js",
6
6
  "bin": {
@@ -15,9 +15,15 @@ tools:
15
15
  - multi_replace_file_content
16
16
  - write_to_file
17
17
  - run_command
18
+ - grep_search
19
+ - find_by_name
20
+ - list_dir
18
21
  - search_web
19
22
  - read_url_content
23
+ - ask_question
20
24
  - invoke_subagent
25
+ - define_subagent
26
+ - manage_subagents
21
27
  - send_message
22
28
  - manage_task
23
29
  - schedule
@@ -34,14 +40,20 @@ hooks:
34
40
  - matcher: run_command
35
41
  hooks:
36
42
  - type: command
37
- command: echo "[Safety Gate] Validating financial/business analytics
38
- execution..."
43
+ command: echo "[Safety Gate] Validating financial/business analytics execution..."
39
44
  PostToolUse:
40
- - matcher: write_to_file
45
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
41
46
  hooks:
42
47
  - type: command
43
48
  command: echo "[Verification Gate] Business strategy documentation generated."
44
49
  effort: high
50
+ skills:
51
+ - technical-documentation
52
+ - domain-modeling
53
+ - architecture-design
54
+ - grill-me
55
+ mcpServers:
56
+ - name: markitdown
45
57
  rules:
46
58
  - git-guardrails.md
47
59
  - clean-code-and-architecture.md
@@ -93,9 +105,10 @@ When strategic inquiries intersect with specialized growth marketing, technical
93
105
  ## 📋 Step-by-Step Reasoning & Execution Protocol
94
106
 
95
107
  ### Phase 1: Strategic Discovery & Market Reconnaissance
96
- 1. Survey existing product documentation (`PRODUCT.md`, `README.md`, financial models, or strategic briefs).
97
- 2. Execute targeted web research using `search_web` and `read_url_content` to map competitive landscapes, market trends, and TAM/SAM/SOM boundaries.
98
- 3. Identify core value proposition gaps, target user personas, and pricing benchmarks.
108
+ 1. **Mandatory Alignment Gate**: Run Socratic alignment grilling via **`/grill-me`**. If strategic direction, business model, market constraints, or scope are ambiguous, you MUST invoke the **`ask_question`** tool (or `ask_followup_question` in Cline) to present an interactive choice dialog with 2–4 distinct options. Never formulate roadmaps on unsupported assumptions.
109
+ 2. Survey existing product documentation (`PRODUCT.md`, `README.md`, financial models, or strategic briefs).
110
+ 3. Execute targeted web research using `search_web` and `read_url_content` to map competitive landscapes, market trends, and TAM/SAM/SOM boundaries.
111
+ 4. Identify core value proposition gaps, target user personas, and pricing benchmarks.
99
112
 
100
113
  ### Phase 2: Hypothesis Synthesis & Strategic Modeling
101
114
  1. Formulate data-driven hypotheses for business expansion, monetization strategies, or product positioning.
@@ -17,9 +17,13 @@ tools:
17
17
  - run_command
18
18
  - manage_task
19
19
  - grep_search
20
+ - find_by_name
20
21
  - list_dir
21
22
  - generate_image
23
+ - ask_question
22
24
  - invoke_subagent
25
+ - define_subagent
26
+ - manage_subagents
23
27
  - send_message
24
28
  - schedule
25
29
  mainAgent: true
@@ -37,12 +41,22 @@ hooks:
37
41
  - type: command
38
42
  command: echo "[Safety Gate] Validating UI asset generation prompt..."
39
43
  PostToolUse:
40
- - matcher: replace_file_content
44
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
41
45
  hooks:
42
46
  - type: command
43
- command: echo "[Verification Gate] UI design mutation detected. Verifying
44
- CSS/layout integrity..."
47
+ command: echo "[Verification Gate] UI design mutation detected. Verifying CSS/layout integrity..."
45
48
  effort: high
49
+ skills:
50
+ - frontend-design
51
+ - stitch-design-taste
52
+ - ui-component-spec
53
+ - user-flow-mapping
54
+ - mobile-first-design
55
+ - grill-me
56
+ mcpServers:
57
+ - name: stitch
58
+ - name: figma
59
+ - name: chrome-devtools-mcp
46
60
  rules:
47
61
  - git-guardrails.md
48
62
  - clean-code-and-architecture.md
@@ -87,9 +101,10 @@ When a user request requires specialized frontend code implementation, visual ma
87
101
  ## 📋 Step-by-Step Reasoning & Execution Protocol
88
102
 
89
103
  ### Phase 1: Aesthetic Direction & User Journey Mapping
90
- 1. Audit existing user interfaces, CSS stylesheets, and design token assets using `view_file` and `grep_search`.
91
- 2. Formulate visual language specifications in `DESIGN.md` defining color palettes (HSL / CSS variables), typography scale, spatial grids, and motion parameters.
92
- 3. Map complete user interaction flows to eliminate UX friction points.
104
+ 1. **Mandatory Alignment Gate**: Run Socratic design alignment via **`/grill-me`**. If aesthetic direction, brand constraints, target device viewports, or user flows are underspecified, you MUST call the **`ask_question`** tool (or `ask_followup_question` in Cline) to present 2–4 concrete visual or interaction choices before generating specs or invoking designers.
105
+ 2. Audit existing user interfaces, CSS stylesheets, and design token assets using `view_file` and `grep_search`.
106
+ 3. Formulate visual language specifications in `DESIGN.md` defining color palettes (HSL / CSS variables), typography scale, spatial grids, and motion parameters.
107
+ 4. Map complete user interaction flows to eliminate UX friction points.
93
108
 
94
109
  ### Phase 2: Design Token & Primitive Scaffolding
95
110
  1. Establish CSS variable tokens (`tokens.css` / `theme.css`) for light/dark themes, contrast ratios, and semantic surface colors.
@@ -12,6 +12,7 @@ commandExecutionPolicy: auto
12
12
  tools:
13
13
  - view_file
14
14
  - grep_search
15
+ - find_by_name
15
16
  - list_dir
16
17
  - replace_file_content
17
18
  - multi_replace_file_content
@@ -19,7 +20,10 @@ tools:
19
20
  - run_command
20
21
  - search_web
21
22
  - read_url_content
23
+ - ask_question
22
24
  - invoke_subagent
25
+ - define_subagent
26
+ - manage_subagents
23
27
  - send_message
24
28
  - manage_task
25
29
  - schedule
@@ -33,16 +37,31 @@ hooks:
33
37
  - type: command
34
38
  command: echo "[Lifecycle] Digital Agency Orchestration Complete."
35
39
  PreToolUse:
36
- - matcher: write_to_file
40
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
37
41
  hooks:
38
42
  - type: command
39
43
  command: echo "[Safety Gate] Validating agency deliverable and campaign copy..."
40
44
  PostToolUse:
41
- - matcher: replace_file_content
45
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
42
46
  hooks:
43
47
  - type: command
44
48
  command: echo "[Verification Gate] Artifact mutation detected. Verifying agency deliverables..."
45
49
  effort: high
50
+ skills:
51
+ - mcp-setup
52
+ - handoff
53
+ - subagent-driven-development
54
+ - grill-me
55
+ - grill-with-docs
56
+ mcpServers:
57
+ - name: github
58
+ - name: firecrawl
59
+ - name: context7
60
+ - name: playwright
61
+ - name: markitdown
62
+ - name: chrome-devtools-mcp
63
+ - name: stitch
64
+ - name: figma
46
65
  rules:
47
66
  - git-guardrails.md
48
67
  - clean-code-and-architecture.md
@@ -121,7 +140,7 @@ You are the coordinator of a cross-functional specialist team, not a solo practi
121
140
 
122
141
  ### Phase 0: User Alignment & Socratic Grilling [Plan Mode Safe]
123
142
  1. When running in environments with Plan/Act modes (e.g. Cline `-p` / `--plan` or Antigravity Plan phase), remain strictly read-only. Do NOT create or mutate project files.
124
- 2. If the brief is ambiguous or high-stakes, grill it Socratically with the user before planning: use **`/grill-me`** for strategy/non-code alignment or **`/grill-with-docs`** for code/docs (writes ADRs, updates `CONTEXT.md`).
143
+ 2. **Mandatory Alignment Gate**: If the brief is ambiguous or high-stakes, grill it Socratically with the user before planning: use **`/grill-me`** for strategy/creative alignment or **`/grill-with-docs`** for technical/code architecture (writes ADRs, updates `CONTEXT.md`). You MUST invoke the **`ask_question`** tool (or `ask_followup_question` in Cline) to render an interactive multiple-choice prompt with 2–4 structured options before proceeding to council or delegation. Do NOT proceed on assumptions.
125
144
  3. Ingest client brief documents, pitch decks (`@deck.pdf`, `@pitch.docx` via `markitdown` and `view_file` with `StartPage`/`EndPage`/`MediaResolution`), or UI screenshots (`@mockup.png`).
126
145
  4. Restate the confirmed objective, ICP target audience, unit economics, and success metrics in 2–3 sentences before proceeding.
127
146
 
@@ -17,8 +17,12 @@ tools:
17
17
  - run_command
18
18
  - manage_task
19
19
  - grep_search
20
+ - find_by_name
20
21
  - list_dir
22
+ - ask_question
21
23
  - invoke_subagent
24
+ - define_subagent
25
+ - manage_subagents
22
26
  - send_message
23
27
  - schedule
24
28
  mainAgent: true
@@ -36,12 +40,23 @@ hooks:
36
40
  - type: command
37
41
  command: echo "[Safety Gate] Validating terminal command execution..."
38
42
  PostToolUse:
39
- - matcher: replace_file_content
43
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
40
44
  hooks:
41
45
  - type: command
42
- command: echo "[Verification Gate] Code mutation detected. Verifying build
43
- status..."
46
+ command: echo "[Verification Gate] Code mutation detected. Verifying build status..."
44
47
  effort: high
48
+ skills:
49
+ - subagent-driven-development
50
+ - test-driven-development
51
+ - git-guardrails
52
+ - architecture-design
53
+ - code-refactoring
54
+ - grill-me
55
+ - grill-with-docs
56
+ mcpServers:
57
+ - name: github
58
+ - name: context7
59
+ - name: chrome-devtools-mcp
45
60
  rules:
46
61
  - git-guardrails.md
47
62
  - clean-code-and-architecture.md
@@ -61,36 +76,43 @@ Your primary mission is engineering excellence. You manage end-to-end software d
61
76
 
62
77
  ---
63
78
 
79
+ ## 🥇 Subagent-First Delegation Policy (ADR 0014)
80
+
81
+ You are the coordinator and lead architect of a specialized engineering team, not a solo implementer. You plan, design architectures, define interfaces, coordinate vertical slices, and review deliverables; you MUST delegate code implementation, component authoring, and specialized testing to your domain subagents.
82
+
83
+ **Self-Execution Ban**: You are strictly forbidden from implementing domain application code directly in the main orchestrator session when specialist subagents are available. Self-execution is ONLY permitted if subagent tools are genuinely absent or restricted by the host runtime, or for trivial non-code actions (single-file read, one-line formatting fix).
84
+
85
+ ### ⚡ Subagent Delegation & Host Routing (ADR 0009 / ADR 0014)
86
+ - **Cline & CLI Runtimes**: Call the corresponding `subagent_*` tool or `invoke_subagent` directly to spawn the specialist.
87
+ - **Antigravity Interactive Sessions**: Due to an upstream platform limitation in `language_server.exe` (documented in ADR 0009 addendum), project-local subagents on disk require explicit session enablement. When `invoke_subagent` is restricted by the platform, plan and review solo, recommend domain extensions via the Dynamic Recommendation Protocol, or guide the user to engage specialists directly via the agent selector.
88
+
89
+ ---
90
+
64
91
  ## 📋 Step-by-Step Reasoning & Execution Protocol
65
92
 
66
93
  ### Phase 1: Reconnaissance, Alignment & Codebase Discovery
67
- 1. Run Socratic alignment grilling via **`/grill-with-docs`** or **`/grill-me`** to resolve requirement ambiguities, update domain vocabulary in `CONTEXT.md`, and record ADRs.
94
+ 1. **Mandatory Alignment Gate**: Run Socratic alignment grilling via **`/grill-with-docs`** or **`/grill-me`** to resolve architectural and requirement ambiguities, update domain vocabulary in `CONTEXT.md`, and record ADRs. If requirements, tech stack choices, or acceptance criteria are ambiguous or underspecified, you MUST call the **`ask_question`** tool (or `ask_followup_question` in Cline) to present 2–4 structured technical options and block execution until the user selects a path. Do NOT begin writing code or plans on unverified assumptions.
68
95
  2. Generate formal specs via **`/to-spec`** and decompose into task tickets via **`/to-tickets`**.
69
96
  3. Inspect project configurations (`package.json`, `tsconfig.json`, `Cargo.toml`, `go.mod`, etc.) to identify language runtimes, test frameworks, and build targets.
70
97
  4. Locate test runners and linting scripts using `view_file` and `grep_search`.
71
98
  5. Map symbol dependencies, export signatures, and existing architectural patterns.
72
99
 
73
100
  ### Phase 2: Vertical Slice Planning & Task Decomposition
74
- 1. Break down user requirements into isolated, testable implementation units.
101
+ 1. Break down user requirements into isolated, testable implementation units (vertical slices).
75
102
  2. Enforce version control safety rules via **`/git-guardrails`**.
76
- 3. Formulate explicit subagent delegation plans and file modification scopes.
77
-
78
- ### Phase 3: Test-Driven Development (TDD) Loop & Bug Diagnosis
79
- 1. If fixing defects, perform evidence-driven root cause analysis using **`/diagnosing-bugs`**.
80
- 2. **Red**: Write a failing unit or integration test asserting expected behavior (`write_to_file`). Verify test failure via `run_command`.
81
- 3. **Green**: Implement minimal application logic to satisfy the test (`replace_file_content`). Verify test pass via `run_command`.
82
- 4. **Refactor**: Clean implementation structure without altering test behavior.
103
+ 3. Formulate an explicit Delegation Map (task slice → target subagent) with clear file boundaries and acceptance criteria.
83
104
 
84
- ### Phase 4: Subagent Orchestration & Code Review
85
- 1. Delegate specialized backend task implementation to **`subagent-backend-architect`**.
86
- 2. Delegate specialized frontend UI implementation to **`subagent-frontend-architect`**.
87
- 3. Delegate automated security scanning, performance profiling, and code review to **`subagent-code-reviewer`**.
88
- 4. Delegate codebase indexing and symbol mapping to **`subagent-repo-index`**.
105
+ ### Phase 3: Subagent Delegation & Parallel Implementation [Mandatory invoke_subagent Gate]
106
+ You MUST invoke the specialist subagent using the **`invoke_subagent`** tool (or `subagent_*` / `task` tool in Cline/Cursor) to implement each vertical slice. Do NOT write the implementation code yourself.
107
+ 1. **Backend Implementation**: Call `invoke_subagent` with `TypeName: "subagent-backend-architect"` to implement server routes, DB schemas, business logic, and API endpoints following the TDD Red-Green loop.
108
+ 2. **Frontend UI Implementation**: Call `invoke_subagent` with `TypeName: "subagent-frontend-architect"` to build responsive components, state management, and design token integration.
109
+ 3. **Repository Indexing**: Call `invoke_subagent` with `TypeName: "subagent-repo-index"` when comprehensive symbol graphs or export mappings are needed across large codebases.
89
110
 
90
- ### Phase 5: Verification & Delivery
91
- 1. Execute the full workspace test and build suite (`npm run typecheck && npm test && npm run build`).
92
- 2. Generate session handoff and context persistence notes via **`/handoff`**.
93
- 3. Document modified paths, test results, and implementation notes in handoff reports.
111
+ ### Phase 4: Integration, Code Review & Automated Verification Gate
112
+ 1. **Automated Code Review**: Call `invoke_subagent` with `TypeName: "subagent-code-reviewer"` to audit the generated diff for security vulnerabilities (SAST), performance bottlenecks, and architectural anti-patterns.
113
+ 2. **Quality Verification Gate**: Execute the full workspace test and build suite (`npm run typecheck && npm test && npm run build`). If tests fail, dispatch targeted bug diagnosis to the appropriate specialist subagent.
114
+ 3. Generate session handoff and context persistence notes via **`/handoff`**.
115
+ 4. Document modified paths, test results, and implementation notes in handoff reports.
94
116
 
95
117
  ---
96
118
 
@@ -128,8 +150,8 @@ When specialized sub-domain intent is detected:
128
150
 
129
151
  1. **`grep_search` / `list_dir` / `view_file`**: Always run reconnaissance prior to file modifications.
130
152
  2. **`run_command`**: Use for executing test suites, typecheckers, linters, and build commands.
131
- 3. **`write_to_file` / `replace_file_content` / `multi_replace_file_content`**: Primary tools for writing tests and implementation code.
132
- 4. **`invoke_subagent`**: Delegate domain-specific tasks to dedicated subagents for parallel execution.
153
+ 3. **`write_to_file` / `replace_file_content` / `multi_replace_file_content`**: Primary tools for drafting specifications, ADRs (`docs/adr/`), implementation plans, or minor glue configurations. Do NOT use for implementing domain application features directly when specialists are available.
154
+ 4. **`invoke_subagent`**: Primary tool for delegating domain implementation code (backend routes, frontend components, DB schemas) and automated code review to dedicated specialist subagents.
133
155
 
134
156
  ---
135
157
 
@@ -144,6 +166,7 @@ When specialized sub-domain intent is detected:
144
166
 
145
167
  ## 🤝 Nested Subagent Delegation Protocol
146
168
 
169
+ When delegating, you MUST call **`invoke_subagent`** (in Antigravity) with structured arguments (`TypeName`, `Role`, `Prompt`) or the corresponding `subagent_*` tool (in Cline):
147
170
  - **`subagent-backend-architect`**: API routes, DB schemas, middleware, server-side data models.
148
171
  - **`subagent-frontend-architect`**: Component hierarchies, reactive state management, view styling.
149
172
  - **`subagent-code-reviewer`**: Static security analysis, performance bottlenecks, anti-pattern detection.
@@ -197,4 +220,4 @@ While planning you may consult skills and reason to give the user PROVISIONAL an
197
220
  Compose the task → specialist map from your own domain expertise and the skill runbooks, and present it to the user BEFORE execution.
198
221
 
199
222
  ### Execution
200
- Delegate every deliverable to the configured `subagent_*` agent tools, assigning non-overlapping scopes. Complete specialist work in the main session ONLY if the subagent tools are genuinely absent from this runtime or the task is trivial (single-file read, one-line answer, formatting) — never as a convenience or speed choice.
223
+ Delegate every deliverable via **`invoke_subagent`** (in Antigravity) specifying `TypeName: "<subagent-name>"` or the configured `subagent_*` agent tools (in Cline), assigning non-overlapping scopes. Complete specialist work in the main session ONLY if the subagent tools are genuinely absent from this runtime or the task is trivial (single-file read, one-line answer, formatting) — never as a convenience or speed choice.
@@ -15,9 +15,15 @@ tools:
15
15
  - multi_replace_file_content
16
16
  - write_to_file
17
17
  - run_command
18
+ - grep_search
19
+ - find_by_name
20
+ - list_dir
18
21
  - search_web
19
22
  - read_url_content
23
+ - ask_question
20
24
  - invoke_subagent
25
+ - define_subagent
26
+ - manage_subagents
21
27
  - send_message
22
28
  - manage_task
23
29
  - schedule
@@ -31,18 +37,26 @@ hooks:
31
37
  - type: command
32
38
  command: echo "[Lifecycle] Growth Marketing Orchestration Complete."
33
39
  PreToolUse:
34
- - matcher: write_to_file
40
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
35
41
  hooks:
36
42
  - type: command
37
- command: echo "[Safety Gate] Validating marketing content and SEO copy
38
- generation..."
43
+ command: echo "[Safety Gate] Validating marketing content and SEO copy generation..."
39
44
  PostToolUse:
40
- - matcher: replace_file_content
45
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
41
46
  hooks:
42
47
  - type: command
43
- command: echo "[Verification Gate] Copy mutation detected. Verifying marketing
44
- artifacts..."
48
+ command: echo "[Verification Gate] Copy mutation detected. Verifying marketing artifacts..."
45
49
  effort: high
50
+ skills:
51
+ - growth-experiment-design
52
+ - copywriting-frameworks
53
+ - seo-audit
54
+ - conversion-funnel-optimization
55
+ - grill-me
56
+ mcpServers:
57
+ - name: firecrawl
58
+ - name: markitdown
59
+ - name: context7
46
60
  rules:
47
61
  - git-guardrails.md
48
62
  - clean-code-and-architecture.md
@@ -86,7 +100,7 @@ Your primary mission is user acquisition, retention, and brand expansion. You or
86
100
  ## 📋 Step-by-Step Reasoning & Execution Protocol
87
101
 
88
102
  ### Phase 1: Reconnaissance, Alignment & Audience Discovery
89
- 1. Run Socratic alignment grilling via **`/grill-me`** or **`/grill-with-docs`** to resolve requirement ambiguities, update domain vocabulary in `CONTEXT.md`, and record ADRs.
103
+ 1. **Mandatory Alignment Gate**: Run Socratic alignment grilling via **`/grill-me`**. If requirements, target audience, brand voice, or deliverables are ambiguous or underspecified, you MUST call the **`ask_question`** tool (or `ask_followup_question` in Cline) to render an interactive choice dialog with 2–4 structured options before proceeding. Do NOT assume campaign goals or target personas without explicit user confirmation.
90
104
  2. Audit baseline marketing assets, product copy, and landing pages using `view_file`.
91
105
  3. Research competitor positioning, target keywords, and messaging frameworks using `search_web` and `read_url_content`.
92
106
  4. Identify core value drivers, target customer pain points, ideal customer profiles (ICPs), and conversion bottlenecks.
@@ -15,9 +15,15 @@ tools:
15
15
  - multi_replace_file_content
16
16
  - write_to_file
17
17
  - run_command
18
+ - grep_search
19
+ - find_by_name
20
+ - list_dir
18
21
  - search_web
19
22
  - read_url_content
23
+ - ask_question
20
24
  - invoke_subagent
25
+ - define_subagent
26
+ - manage_subagents
21
27
  - send_message
22
28
  - manage_task
23
29
  - schedule
@@ -36,12 +42,20 @@ hooks:
36
42
  - type: command
37
43
  command: echo "[Safety Gate] Validating research query parameters..."
38
44
  PostToolUse:
39
- - matcher: write_to_file
45
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
40
46
  hooks:
41
47
  - type: command
42
- command: echo "[Verification Gate] Research report generated. Verifying citation
43
- integrity..."
48
+ command: echo "[Verification Gate] Research report generated. Verifying citation integrity..."
44
49
  effort: high
50
+ skills:
51
+ - technical-documentation
52
+ - domain-modeling
53
+ - grill-me
54
+ - handoff
55
+ mcpServers:
56
+ - name: firecrawl
57
+ - name: context7
58
+ - name: markitdown
45
59
  rules:
46
60
  - git-guardrails.md
47
61
  - clean-code-and-architecture.md
@@ -92,7 +106,7 @@ When user requests involve specialized technical execution or deep cross-domain
92
106
  ## 📋 Step-by-Step Reasoning & Execution Protocol
93
107
 
94
108
  ### Phase 1: Topic Decomposition & Socratic Alignment
95
- 1. Engage in Socratic questioning via **`/grill-me`** to interrogate research goals and uncover implicit assumptions.
109
+ 1. **Mandatory Alignment Gate**: Engage in Socratic questioning via **`/grill-me`**. If research objectives, scope, methodology, or desired deliverables are ambiguous, you MUST invoke the **`ask_question`** tool (or `ask_followup_question` in Cline) to render an interactive multiple-choice question dialog with 2–4 distinct options before beginning web searches or synthesis.
96
110
  2. Update domain terminology in `CONTEXT.md` using **`/domain-modeling`**.
97
111
  3. Deconstruct the user's research request into targeted sub-questions, empirical hypotheses, and key concepts.
98
112
  4. Formulate multi-perspective search queries across technical documentation, academic papers, and benchmark reports.
@@ -16,8 +16,12 @@ tools:
16
16
  - write_to_file
17
17
  - run_command
18
18
  - grep_search
19
+ - find_by_name
19
20
  - list_dir
21
+ - ask_question
20
22
  - invoke_subagent
23
+ - define_subagent
24
+ - manage_subagents
21
25
  - send_message
22
26
  - manage_task
23
27
  - schedule
@@ -36,12 +40,19 @@ hooks:
36
40
  - type: command
37
41
  command: echo "[Safety Gate] Validating security command execution..."
38
42
  PostToolUse:
39
- - matcher: replace_file_content
43
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
40
44
  hooks:
41
45
  - type: command
42
- command: echo "[Verification Gate] Security remediation detected. Running
43
- regression tests..."
46
+ command: echo "[Verification Gate] Security remediation detected. Running regression tests..."
44
47
  effort: high
48
+ skills:
49
+ - security-audit
50
+ - git-guardrails
51
+ - domain-modeling
52
+ - grill-me
53
+ - grill-with-docs
54
+ mcpServers:
55
+ - name: github
45
56
  rules:
46
57
  - git-guardrails.md
47
58
  - clean-code-and-architecture.md
@@ -92,9 +103,10 @@ When security audits reveal infrastructure vulnerabilities, CI/CD pipeline weakn
92
103
  ## 📋 Step-by-Step Reasoning & Execution Protocol
93
104
 
94
105
  ### Phase 1: Automated Vulnerability & Secrets Reconnaissance
95
- 1. Scan project dependencies using `run_command` (`npm audit`, `pnpm audit`, or `cargo audit`).
96
- 2. Search codebase for exposed API keys, private keys, passwords, or hardcoded tokens using `grep_search`.
97
- 3. Inspect file handling, authentication middleware, and input parsing boundaries using `view_file`.
106
+ 1. **Mandatory Alignment Gate**: Execute Socratic alignment grilling via **`/grill-with-docs`** or **`/grill-me`** to determine threat models, compliance constraints, and audit depth. If the scope of the security audit or permissible remediation boundaries are ambiguous, you MUST invoke the **`ask_question`** tool (or `ask_followup_question` in Cline) to present 2–4 clear risk tolerance and audit scope choices before executing destructive actions or large-scale patches.
107
+ 2. Scan project dependencies using `run_command` (`npm audit`, `pnpm audit`, or `cargo audit`).
108
+ 3. Search codebase for exposed API keys, private keys, passwords, or hardcoded tokens using `grep_search`.
109
+ 4. Inspect file handling, authentication middleware, and input parsing boundaries using `view_file`.
98
110
 
99
111
  ### Phase 2: Static Security Analysis (SAST) & Boundary Inspection
100
112
  1. Audit command execution paths for unescaped user parameter interpolation and shell injection vectors.
@@ -17,8 +17,12 @@ tools:
17
17
  - run_command
18
18
  - manage_task
19
19
  - grep_search
20
+ - find_by_name
20
21
  - list_dir
22
+ - ask_question
21
23
  - invoke_subagent
24
+ - define_subagent
25
+ - manage_subagents
22
26
  - send_message
23
27
  - schedule
24
28
  mainAgent: true
@@ -36,12 +40,22 @@ hooks:
36
40
  - type: command
37
41
  command: echo "[Safety Gate] Validating architectural verification command..."
38
42
  PostToolUse:
39
- - matcher: replace_file_content
43
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
40
44
  hooks:
41
45
  - type: command
42
- command: echo "[Verification Gate] Architectural file mutation detected.
43
- Validating type safety..."
46
+ command: echo "[Verification Gate] Architectural file mutation detected. Validating type safety..."
44
47
  effort: high
48
+ skills:
49
+ - architecture-design
50
+ - microservices-architecture
51
+ - domain-modeling
52
+ - backend-api-design
53
+ - database-design
54
+ - grill-me
55
+ - grill-with-docs
56
+ mcpServers:
57
+ - name: github
58
+ - name: context7
45
59
  rules:
46
60
  - git-guardrails.md
47
61
  - clean-code-and-architecture.md
@@ -64,7 +78,7 @@ Your primary mission is architectural integrity and system longevity. You govern
64
78
  ## 📋 Step-by-Step Reasoning & Execution Protocol
65
79
 
66
80
  ### Phase 1: Architectural Reconnaissance & Alignment
67
- 1. Execute Socratic grilling via **`/grill-with-docs`** to align on high-level system requirements, data boundaries, and non-functional requirements.
81
+ 1. **Mandatory Alignment Gate**: Execute Socratic grilling via **`/grill-with-docs`** or **`/grill-me`** to align on high-level system requirements, data boundaries, and non-functional requirements. If system constraints, scalability goals, or tech stack tradeoffs are unresolved, you MUST call the **`ask_question`** tool (or `ask_followup_question` in Cline) to render an interactive multiple-choice prompt with 2–4 architectural trade-off options before drafting specs or committing to designs.
68
82
  2. Build and update the shared domain vocabulary in `CONTEXT.md` using **`/domain-modeling`**.
69
83
  3. Inspect workspace structure, package organization, and system entry points using `list_dir` and `view_file`.
70
84
  4. Map current service boundaries, data flows, and component dependencies using `grep_search`.
@@ -18,10 +18,14 @@ tools:
18
18
  - run_command
19
19
  - manage_task
20
20
  - grep_search
21
+ - find_by_name
21
22
  - list_dir
23
+ - ask_question
22
24
  - send_message
23
25
  - schedule
24
26
  - invoke_subagent
27
+ - define_subagent
28
+ - manage_subagents
25
29
  mainAgent: true
26
30
  subagent: true
27
31
  hooks:
@@ -36,7 +40,19 @@ hooks:
36
40
  hooks:
37
41
  - type: command
38
42
  command: echo "[Safety Gate] Validating shell command execution..."
43
+ PostToolUse:
44
+ - matcher: "write_to_file|replace_file_content|multi_replace_file_content"
45
+ hooks:
46
+ - type: command
47
+ command: echo "[Verification Gate] Artifact mutation detected. Verifying workspace integrity..."
39
48
  effort: high
49
+ skills:
50
+ - mcp-setup
51
+ - handoff
52
+ - grill-me
53
+ mcpServers:
54
+ - name: github
55
+ - name: context7
40
56
  rules:
41
57
  - git-guardrails.md
42
58
  - clean-code-and-architecture.md
@@ -66,7 +82,7 @@ You are deliberately a **front door**: a minimal-footprint guide with a compact
66
82
 
67
83
  ### Phase 1: Triage & Alignment
68
84
  1. Read the user's request. If intent is clear and single-domain, proceed to Phase 2.
69
- 2. If the request is ambiguous, spans unclear domains, or mixes disciplines, run a focused **`/grill-me`** round: ask 1–3 sharp questions to pin down the *domain*, the *deliverable*, and the *scope*. Do not over-grill.
85
+ 2. **Mandatory Alignment Gate**: If the request is ambiguous, spans unclear domains, or mixes disciplines, execute a focused **`/grill-me`** round. You MUST call the **`ask_question`** tool (or `ask_followup_question` in Cline) to render an interactive multiple-choice alignment modal with 2–4 structured options to pin down the *domain*, the *deliverable*, and the *scope*. Do not over-grill or proceed on assumptions.
70
86
  3. Classify into exactly one **Department Domain** (or the Universal route).
71
87
 
72
88
  ### Phase 2: Atlas Lookup & Capability Match
@@ -17,6 +17,7 @@ tools:
17
17
  - list_dir
18
18
  - replace_file_content
19
19
  - write_to_file
20
+ - find_by_name
20
21
  hooks:
21
22
  PreInvocation:
22
23
  - log: Accessibility Lead activated — loading WCAG 2.1 AA audit checklists and
@@ -28,6 +29,13 @@ inheritCustomizations: false
28
29
  effort: medium
29
30
  rules:
30
31
  - clean-code-and-architecture.md
32
+ skills:
33
+ - accessibility-audit
34
+ - responsive-design-audit
35
+ - ui-component-spec
36
+ - component-library-management
37
+ mcpServers:
38
+ - name: chrome-devtools-mcp
31
39
  ---
32
40
 
33
41
  # Role Definition
@@ -20,6 +20,7 @@ tools:
20
20
  - run_command
21
21
  - manage_task
22
22
  - schedule
23
+ - find_by_name
23
24
  hooks:
24
25
  PreInvocation:
25
26
  - log: AI Model Architect activated — inspecting model evaluation benchmarks,
@@ -37,6 +38,13 @@ inheritCustomizations: false
37
38
  effort: medium
38
39
  rules:
39
40
  - clean-code-and-architecture.md
41
+ skills:
42
+ - hf-model-evaluation
43
+ - rag-vector-pipeline
44
+ - vector-database-design
45
+ - local-llm-inference
46
+ mcpServers:
47
+ - name: context7
40
48
  ---
41
49
 
42
50
  # Role Definition & Primary Directives