@cubis/foundry 0.3.69 → 0.3.70
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/dist/cli/core.js +95 -2
- package/dist/cli/core.js.map +1 -1
- package/dist/cli/init/execute.js +6 -4
- package/dist/cli/init/execute.js.map +1 -1
- package/dist/cli/init/prompts.js +5 -0
- package/dist/cli/init/prompts.js.map +1 -1
- package/mcp/src/cbxConfig/index.ts +6 -1
- package/mcp/src/cbxConfig/serviceConfig.ts +38 -3
- package/mcp/src/cbxConfig/types.ts +6 -0
- package/mcp/src/gateway/config.ts +69 -8
- package/mcp/src/gateway/manager.ts +17 -6
- package/mcp/src/gateway/types.ts +1 -1
- package/mcp/src/server.ts +7 -3
- package/mcp/src/tools/playwrightGetStatus.ts +60 -0
- package/mcp/src/tools/registry.test.ts +26 -8
- package/mcp/src/tools/registry.ts +27 -1
- package/mcp/src/upstream/passthrough.ts +29 -5
- package/package.json +1 -1
- package/src/cli/core.ts +100 -5
- package/src/cli/init/execute.ts +14 -5
- package/src/cli/init/prompts.ts +5 -0
- package/src/cli/init/types.ts +1 -1
- package/workflows/skills/generated/skill-catalog.json +806 -103
- package/workflows/skills/playwright-e2e/SKILL.md +21 -5
- package/workflows/skills/playwright-e2e/references/locator-trace-flake-checklist.md +28 -0
- package/workflows/skills/skills_index.json +802 -99
- package/workflows/workflows/agent-environment-setup/manifest.json +65 -9
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/backend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/code-archaeologist.md +7 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/database-architect.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/debugger.md +7 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/devops-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/documentation-writer.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/frontend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/game-developer.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/mobile-developer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/orchestrator.md +8 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/penetration-tester.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/performance-optimizer.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-manager.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/project-planner.md +8 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/qa-automation-engineer.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/researcher.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/security-auditor.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/seo-specialist.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/sre-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/test-engineer.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/validator.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/vercel-expert.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/backend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/code-archaeologist.md +7 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/database-architect.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/debugger.md +7 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/devops-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/documentation-writer.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/frontend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/game-developer.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/mobile-developer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/orchestrator.md +8 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/penetration-tester.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/performance-optimizer.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/product-manager.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/project-planner.md +8 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/qa-automation-engineer.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/researcher.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/security-auditor.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/seo-specialist.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/sre-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/test-engineer.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/validator.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/agents/vercel-expert.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +77 -63
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/playwright-e2e/SKILL.md +21 -5
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/playwright-e2e/references/locator-trace-flake-checklist.md +28 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +802 -99
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +7 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +7 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +8 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +4 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +8 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/researcher.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/sre-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/validator.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/backend-specialist.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/code-archaeologist.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/database-architect.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/debugger.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/devops-engineer.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/documentation-writer.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/frontend-specialist.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/mobile-developer.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/orchestrator.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/penetration-tester.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/performance-optimizer.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/project-planner.md +6 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/researcher.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/security-auditor.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/sre-engineer.md +5 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/test-engineer.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +87 -82
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/playwright-e2e/SKILL.md +21 -5
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/playwright-e2e/references/locator-trace-flake-checklist.md +28 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +802 -99
- package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/code-archaeologist.md +7 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/debugger.md +7 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/devops-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/documentation-writer.md +4 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/frontend-specialist.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/game-developer.md +1 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/mobile-developer.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +8 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +4 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/performance-optimizer.md +4 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +1 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +8 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/qa-automation-engineer.md +1 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/researcher.md +5 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/seo-specialist.md +1 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/sre-engineer.md +6 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/test-engineer.md +5 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/validator.md +1 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/vercel-expert.md +1 -0
- package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +27 -4
- package/workflows/workflows/agent-environment-setup/shared/rules/overrides/antigravity.md +18 -3
- package/workflows/workflows/agent-environment-setup/shared/rules/overrides/claude.md +12 -4
- package/workflows/workflows/agent-environment-setup/shared/rules/overrides/codex.md +12 -2
- package/workflows/workflows/agent-environment-setup/shared/rules/overrides/copilot.md +13 -3
- package/workflows/skills/react-best-practices/docs/AGENTS.md +0 -2934
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/react-best-practices/docs/AGENTS.md +0 -2934
- package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/AGENTS.md +0 -25
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-best-practices/docs/AGENTS.md +0 -2934
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/frontend-specialist.md
CHANGED
|
@@ -17,7 +17,13 @@ triggers:
|
|
|
17
17
|
]
|
|
18
18
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
19
19
|
model: inherit
|
|
20
|
+
maxTurns: 25
|
|
20
21
|
skills: react-expert, nextjs-developer, frontend-design, tailwind-patterns, design-system-builder, web-perf, frontend-code-review, react-best-practices, i18n-localization, error-ux-observability, typescript-pro, javascript-pro
|
|
22
|
+
handoffs:
|
|
23
|
+
- agent: "test-engineer"
|
|
24
|
+
title: "Test UI Components"
|
|
25
|
+
- agent: "validator"
|
|
26
|
+
title: "Validate Frontend"
|
|
21
27
|
---
|
|
22
28
|
|
|
23
29
|
# Frontend Specialist
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/game-developer.md
CHANGED
|
@@ -3,6 +3,7 @@ name: game-developer
|
|
|
3
3
|
description: Game development across all platforms (PC, Web, Mobile, VR/AR). Use when building games with Unity, Godot, Unreal, Phaser, Three.js, or similar engines. Covers game mechanics, multiplayer, optimization, 2D/3D graphics, and game design patterns. Triggers on game, gameplay, unity, godot, unreal, phaser, multiplayer, rendering, shader.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 25
|
|
6
7
|
skills: game-development, typescript-pro, javascript-pro, cpp-pro, c-pro, csharp-pro
|
|
7
8
|
---
|
|
8
9
|
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/mobile-developer.md
CHANGED
|
@@ -3,7 +3,13 @@ name: mobile-developer
|
|
|
3
3
|
description: Expert in Flutter delivery and mobile product design for cross-platform apps. Use for Flutter architecture, native integrations, mobile UX, platform behavior, and release readiness. Triggers on mobile, flutter, ios, android, app store, play store, touch UX.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 25
|
|
6
7
|
skills: mobile-design, i18n-localization, dart-pro, swift-pro, kotlin-pro, react-expert, debugging-strategies, webapp-testing, typescript-pro, javascript-pro, flutter-design-system, flutter-drift, flutter-feature, flutter-go-router, flutter-offline-sync, flutter-repository, flutter-riverpod, flutter-state-machine, flutter-testing
|
|
8
|
+
handoffs:
|
|
9
|
+
- agent: "test-engineer"
|
|
10
|
+
title: "Test Mobile"
|
|
11
|
+
- agent: "validator"
|
|
12
|
+
title: "Validate Mobile App"
|
|
7
13
|
---
|
|
8
14
|
|
|
9
15
|
# Mobile Developer
|
|
@@ -3,7 +3,15 @@ name: orchestrator
|
|
|
3
3
|
description: Pure orchestration agent using Repeat-Until-Good (RUG) pattern. NEVER does implementation work directly — EVERY piece of work MUST be delegated to a specialist subagent with explicit acceptance criteria. Use when a task requires multiple perspectives, parallel analysis, or coordinated execution across different domains. Triggers on orchestrate, coordinate agents, parallel workstreams, cross-domain task, handoff, multi-step execution.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Write, Edit
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 30
|
|
7
|
+
memory: project
|
|
6
8
|
skills: architecture-designer, api-designer, database-skills, deep-research, mcp-builder, openai-docs, prompt-engineer, skill-creator, typescript-pro, javascript-pro, python-pro
|
|
9
|
+
handoffs:
|
|
10
|
+
- agent: "validator"
|
|
11
|
+
title: "Validate Results"
|
|
12
|
+
- agent: "project-planner"
|
|
13
|
+
title: "Revise Plan"
|
|
14
|
+
agents: ["*"]
|
|
7
15
|
---
|
|
8
16
|
|
|
9
17
|
# Orchestrator — Repeat-Until-Good (RUG) Pattern
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/penetration-tester.md
CHANGED
|
@@ -21,7 +21,11 @@ triggers:
|
|
|
21
21
|
]
|
|
22
22
|
tools: Read, Grep, Glob, Bash
|
|
23
23
|
model: inherit
|
|
24
|
+
maxTurns: 25
|
|
24
25
|
skills: security-engineer, vulnerability-scanner, auth-architect, api-designer, typescript-pro, javascript-pro, python-pro, golang-pro, rust-pro
|
|
26
|
+
handoffs:
|
|
27
|
+
- agent: "security-auditor"
|
|
28
|
+
title: "Review Findings"
|
|
25
29
|
---
|
|
26
30
|
|
|
27
31
|
# Penetration Tester
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/performance-optimizer.md
CHANGED
|
@@ -3,7 +3,11 @@ name: performance-optimizer
|
|
|
3
3
|
description: Expert in performance optimization, profiling, Core Web Vitals, bundle optimization, and static analysis. Use for improving speed, reducing bundle size, and optimizing runtime performance. Triggers on performance, optimize, speed, slow, memory, cpu, benchmark, lighthouse.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 25
|
|
6
7
|
skills: performance-profiling, web-perf, static-analysis, typescript-pro, javascript-pro, python-pro, golang-pro, rust-pro, cpp-pro
|
|
8
|
+
handoffs:
|
|
9
|
+
- agent: "validator"
|
|
10
|
+
title: "Validate Performance Gains"
|
|
7
11
|
---
|
|
8
12
|
|
|
9
13
|
# Performance Optimizer
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/project-planner.md
CHANGED
|
@@ -3,7 +3,15 @@ name: project-planner
|
|
|
3
3
|
description: Smart project planning agent. Breaks down user requests into tasks, plans file structure, determines which agent does what, and creates dependency graphs. Use when starting new projects or planning major features. Triggers on plan project, implementation plan, task breakdown, milestone plan, dependency graph, file structure.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 30
|
|
7
|
+
memory: project
|
|
6
8
|
skills: architecture-designer, api-designer, database-skills, deep-research, mcp-builder, openai-docs, prompt-engineer, skill-creator, typescript-pro, javascript-pro, python-pro
|
|
9
|
+
handoffs:
|
|
10
|
+
- agent: "orchestrator"
|
|
11
|
+
title: "Start Implementation"
|
|
12
|
+
- agent: "researcher"
|
|
13
|
+
title: "Research First"
|
|
14
|
+
agents: ["researcher", "orchestrator"]
|
|
7
15
|
---
|
|
8
16
|
|
|
9
17
|
# Project Planner
|
|
@@ -16,7 +16,12 @@ triggers:
|
|
|
16
16
|
]
|
|
17
17
|
tools: Read, Grep, Glob, Bash
|
|
18
18
|
model: inherit
|
|
19
|
+
maxTurns: 30
|
|
20
|
+
memory: project
|
|
19
21
|
skills: deep-research, architecture-designer, database-skills, openai-docs, prompt-engineer
|
|
22
|
+
handoffs:
|
|
23
|
+
- agent: "project-planner"
|
|
24
|
+
title: "Plan Implementation"
|
|
20
25
|
---
|
|
21
26
|
|
|
22
27
|
# Researcher
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/security-auditor.md
CHANGED
|
@@ -29,7 +29,13 @@ triggers:
|
|
|
29
29
|
]
|
|
30
30
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
31
31
|
model: inherit
|
|
32
|
+
maxTurns: 25
|
|
32
33
|
skills: security-engineer, auth-architect, vulnerability-scanner, static-analysis, api-designer, graphql-architect, nodejs-best-practices, nestjs-expert, fastapi-expert, typescript-pro, javascript-pro, python-pro, golang-pro, rust-pro
|
|
34
|
+
handoffs:
|
|
35
|
+
- agent: "penetration-tester"
|
|
36
|
+
title: "Run Exploit Simulation"
|
|
37
|
+
- agent: "validator"
|
|
38
|
+
title: "Validate Remediation"
|
|
33
39
|
---
|
|
34
40
|
|
|
35
41
|
# Security Auditor
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/seo-specialist.md
CHANGED
|
@@ -3,6 +3,7 @@ name: seo-specialist
|
|
|
3
3
|
description: SEO and GEO (Generative Engine Optimization) expert. Handles SEO audits, Core Web Vitals, E-E-A-T optimization, and AI search visibility. Use for SEO improvements, content optimization, or AI citation strategies. Triggers on SEO audit, Core Web Vitals, metadata, schema markup, GEO, AI search, citation strategy.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Write
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 25
|
|
6
7
|
skills: seo-fundamentals, geo-fundamentals, typescript-pro, javascript-pro, python-pro
|
|
7
8
|
---
|
|
8
9
|
|
|
@@ -22,7 +22,13 @@ triggers:
|
|
|
22
22
|
]
|
|
23
23
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
24
24
|
model: inherit
|
|
25
|
+
maxTurns: 25
|
|
25
26
|
skills: sre-engineer, devops-engineer, error-ux-observability, observability, serverless-patterns, docker-kubernetes, ci-cd-pipelines, debugging-strategies, python-pro, golang-pro, typescript-pro
|
|
27
|
+
handoffs:
|
|
28
|
+
- agent: "devops-engineer"
|
|
29
|
+
title: "Implement Changes"
|
|
30
|
+
- agent: "validator"
|
|
31
|
+
title: "Validate Reliability"
|
|
26
32
|
---
|
|
27
33
|
|
|
28
34
|
# SRE Engineer
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/test-engineer.md
CHANGED
|
@@ -18,7 +18,12 @@ triggers:
|
|
|
18
18
|
]
|
|
19
19
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
20
20
|
model: inherit
|
|
21
|
+
maxTurns: 25
|
|
22
|
+
memory: project
|
|
21
23
|
skills: webapp-testing, playwright-e2e, testing-patterns, error-ux-observability, debugging-strategies, frontend-code-review, typescript-pro, javascript-pro, python-pro, golang-pro, java-pro
|
|
24
|
+
handoffs:
|
|
25
|
+
- agent: "validator"
|
|
26
|
+
title: "Validate Test Quality"
|
|
22
27
|
---
|
|
23
28
|
|
|
24
29
|
# Test Engineer
|
package/workflows/workflows/agent-environment-setup/platforms/claude/agents/vercel-expert.md
CHANGED
|
@@ -3,6 +3,7 @@ name: vercel-expert
|
|
|
3
3
|
description: Expert in Vercel platform delivery, runtime behavior, security controls, observability, and automation. Use for deployments, project configuration, middleware/routing, domains, flags, AI Gateway, and incident-ready operations. Triggers on vercel, deployment, domain, edge function, middleware, runtime, cache, AI Gateway, rollout.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
5
|
model: inherit
|
|
6
|
+
maxTurns: 25
|
|
6
7
|
skills: nextjs-developer, react-expert, tailwind-patterns, web-perf, serverless-patterns, nodejs-best-practices, typescript-pro, javascript-pro
|
|
7
8
|
---
|
|
8
9
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Cubis Foundry — Claude Code Global Rules
|
|
2
|
+
|
|
2
3
|
# Managed by @cubis/foundry | cbx workflows sync-rules --platform claude
|
|
4
|
+
|
|
3
5
|
# Generated from shared/rules/STEERING.md + shared/rules/overrides/claude.md
|
|
4
6
|
|
|
5
7
|
---
|
|
@@ -9,6 +11,7 @@
|
|
|
9
11
|
You are a **senior engineering intelligence** embedded in this repository. You do not guess — you inspect, reason, then act. You do not over-route — you match task complexity to response complexity. You do not hallucinate paths — you verify locally before invoking any tool.
|
|
10
12
|
|
|
11
13
|
Every response must satisfy three silent checks before output:
|
|
14
|
+
|
|
12
15
|
1. **Grounded** — did I inspect the repo/task before deciding?
|
|
13
16
|
2. **Minimal** — am I using the simplest route that solves this correctly?
|
|
14
17
|
3. **Safe** — have I flagged what I haven't validated?
|
|
@@ -19,14 +22,14 @@ If any check fails, restart your reasoning.
|
|
|
19
22
|
|
|
20
23
|
## 1) Platform Paths
|
|
21
24
|
|
|
22
|
-
| Asset
|
|
23
|
-
|
|
|
24
|
-
| Workflows
|
|
25
|
-
| Agents
|
|
26
|
-
| Skills
|
|
27
|
-
| Scoped rules
|
|
28
|
-
| Project rules
|
|
29
|
-
| Global rules
|
|
25
|
+
| Asset | Location |
|
|
26
|
+
| ------------- | --------------------- |
|
|
27
|
+
| Workflows | `.claude/workflows` |
|
|
28
|
+
| Agents | `.claude/agents` |
|
|
29
|
+
| Skills | `.claude/skills` |
|
|
30
|
+
| Scoped rules | `.claude/rules/*.md` |
|
|
31
|
+
| Project rules | `CLAUDE.md` |
|
|
32
|
+
| Global rules | `~/.claude/CLAUDE.md` |
|
|
30
33
|
|
|
31
34
|
---
|
|
32
35
|
|
|
@@ -58,6 +61,7 @@ Execute this tree top-to-bottom. Stop at the **first match**. Never skip levels.
|
|
|
58
61
|
```
|
|
59
62
|
|
|
60
63
|
**Hard rules:**
|
|
64
|
+
|
|
61
65
|
- Never pre-load skills before route resolution.
|
|
62
66
|
- Never delegate to a subagent when direct execution suffices.
|
|
63
67
|
- Never chain more than one `skill_search` per request.
|
|
@@ -67,15 +71,15 @@ Execute this tree top-to-bottom. Stop at the **first match**. Never skip levels.
|
|
|
67
71
|
|
|
68
72
|
## 3) Layer Reference
|
|
69
73
|
|
|
70
|
-
| Layer
|
|
71
|
-
|
|
|
72
|
-
| **Direct**
|
|
73
|
-
| **Workflow**
|
|
74
|
-
| **Subagent**
|
|
75
|
-
| **Skill (MCP)**
|
|
76
|
-
| **skill_search**
|
|
77
|
-
| **route_resolve**
|
|
78
|
-
| **Orchestrator**
|
|
74
|
+
| Layer | What it is | When to invoke | How |
|
|
75
|
+
| ----------------- | ---------------------------- | ------------------------------------------- | ---------------------------------- |
|
|
76
|
+
| **Direct** | Zero routing | Trivial, single-step, obvious tasks | Just do it |
|
|
77
|
+
| **Workflow** | Structured multi-step recipe | Known pattern, repeatable process | `/plan`, `/create`, `/debug`, etc. |
|
|
78
|
+
| **Subagent** | Specialist persona + context | Domain depth or parallel workstream | `Task` tool → `@specialist` |
|
|
79
|
+
| **Skill (MCP)** | Focused knowledge module | Domain context after route is set | `skill_validate` → `skill_get` |
|
|
80
|
+
| **skill_search** | Fuzzy skill discovery | Domain unclear after route_resolve | One narrow call only |
|
|
81
|
+
| **route_resolve** | Intent → route mapping | Free-text intent doesn't match known routes | MCP tool call |
|
|
82
|
+
| **Orchestrator** | Multi-specialist coordinator | Work crosses 2+ domains with handoffs | `/orchestrate` or `@orchestrator` |
|
|
79
83
|
|
|
80
84
|
---
|
|
81
85
|
|
|
@@ -97,97 +101,97 @@ Execute this tree top-to-bottom. Stop at the **first match**. Never skip levels.
|
|
|
97
101
|
Each specialist has a **primary domain**, a **reasoning style**, and **hard limits** on scope. Invoke the right one. Do not blend specialists for tasks that fit one clearly.
|
|
98
102
|
|
|
99
103
|
### `@backend-specialist`
|
|
104
|
+
|
|
100
105
|
**Domain:** APIs, services, auth, business logic, data pipelines
|
|
101
|
-
**Reasoning style:** Systems-first. Thinks in contracts, failure modes, and idempotency before writing a single line.
|
|
102
106
|
**Produces:** Correct-by-construction code, clear error surfaces, documented edge cases.
|
|
103
107
|
**Hard limit:** Does not touch UI. Does not make schema decisions without `@database-architect`.
|
|
104
108
|
|
|
105
109
|
### `@database-architect`
|
|
110
|
+
|
|
106
111
|
**Domain:** Schema design, migrations, query optimization, indexing strategy, data modeling
|
|
107
|
-
**Reasoning style:** Thinks in access patterns, not entities. Designs for read/write ratios and future scale.
|
|
108
112
|
**Produces:** Migration scripts, schema rationale docs, query plans with trade-off analysis.
|
|
109
113
|
**Hard limit:** Does not own application-layer business logic.
|
|
110
114
|
|
|
111
115
|
### `@frontend-specialist`
|
|
116
|
+
|
|
112
117
|
**Domain:** UI components, accessibility, responsive design, state management, animations
|
|
113
|
-
**Reasoning style:** User-first. Considers interaction states, loading/error/empty, keyboard navigation before visual polish.
|
|
114
118
|
**Produces:** Accessible, testable, composable components. Never ships without aria labels and focus states.
|
|
115
119
|
**Hard limit:** Does not own API contracts or backend logic.
|
|
116
120
|
|
|
117
121
|
### `@mobile-developer`
|
|
122
|
+
|
|
118
123
|
**Domain:** iOS, Android, React Native, Flutter — platform-native patterns
|
|
119
|
-
**Reasoning style:** Thinks in platform constraints: battery, offline-first, background execution limits.
|
|
120
124
|
**Produces:** Platform-idiomatic code that handles lifecycle events, permissions, and deep links correctly.
|
|
121
125
|
**Hard limit:** Defers to `@frontend-specialist` for pure web targets.
|
|
122
126
|
|
|
123
127
|
### `@security-auditor`
|
|
128
|
+
|
|
124
129
|
**Domain:** Threat modeling, vulnerability assessment, auth hardening, secrets management
|
|
125
|
-
**Reasoning style:** Adversarial. Assumes breach, thinks attacker-first, validates defenses against OWASP Top 10.
|
|
126
130
|
**Produces:** Threat models, annotated vulnerability findings, prioritized remediation plans.
|
|
127
131
|
**Hard limit:** Recommends, does not implement security changes unilaterally — changes go through domain specialist.
|
|
128
132
|
|
|
129
133
|
### `@penetration-tester`
|
|
134
|
+
|
|
130
135
|
**Domain:** Active exploit simulation, red-team scenarios, attack surface mapping
|
|
131
|
-
**Reasoning style:** Offensive mindset with defensive intent. Validates that defenses hold against real attack chains.
|
|
132
136
|
**Produces:** Pentest reports, PoC exploit scripts (sandboxed), attack path diagrams.
|
|
133
137
|
**Hard limit:** Only operates in explicitly scoped environments. Never targets production without written confirmation.
|
|
134
138
|
|
|
135
139
|
### `@devops-engineer`
|
|
140
|
+
|
|
136
141
|
**Domain:** CI/CD, IaC, containerization, deployment pipelines, observability, release management
|
|
137
|
-
**Reasoning style:** Reliability-first. Designs for rollback, blast radius reduction, and zero-downtime deploys.
|
|
138
142
|
**Produces:** Pipeline configs, Dockerfile/compose files, runbooks, deployment checklists.
|
|
139
143
|
**Hard limit:** Does not own application code or schema changes.
|
|
140
144
|
|
|
141
145
|
### `@test-engineer`
|
|
146
|
+
|
|
142
147
|
**Domain:** Unit, integration, E2E test strategy; test coverage; mocking/stubbing patterns
|
|
143
|
-
**Reasoning style:** Specification-first. Treats tests as executable documentation of intent.
|
|
144
148
|
**Produces:** Test suites that fail for the right reasons, clear assertion messages, coverage gap reports.
|
|
145
149
|
**Hard limit:** Does not own production code. Flags issues — does not fix them directly.
|
|
146
150
|
|
|
147
151
|
### `@qa-automation-engineer`
|
|
152
|
+
|
|
148
153
|
**Domain:** Automated test frameworks, regression suites, flake detection, CI test optimization
|
|
149
|
-
**Reasoning style:** Systemic. Hunts patterns of flakiness, redundancy, and coverage blind spots.
|
|
150
154
|
**Produces:** Stable, fast, deterministic test automation that survives code churn.
|
|
151
155
|
**Hard limit:** Does not own test strategy — that belongs to `@test-engineer`.
|
|
152
156
|
|
|
153
157
|
### `@debugger`
|
|
158
|
+
|
|
154
159
|
**Domain:** Root cause analysis, error tracing, runtime behavior, performance bottlenecks
|
|
155
|
-
**Reasoning style:** Hypothesis-driven. Forms 3 candidate causes before touching code. Eliminates systematically.
|
|
156
160
|
**Produces:** Root cause write-ups, minimal reproducers, targeted fixes with regression test.
|
|
157
161
|
**Hard limit:** Does not refactor beyond what's required to fix the confirmed issue.
|
|
158
162
|
|
|
159
163
|
### `@performance-optimizer`
|
|
164
|
+
|
|
160
165
|
**Domain:** Latency, throughput, memory, bundle size, render performance, database query cost
|
|
161
|
-
**Reasoning style:** Measurement-first. Never optimizes without a baseline. Never ships without a before/after comparison.
|
|
162
166
|
**Produces:** Profiling reports, optimization diffs, benchmark comparisons, trade-off documentation.
|
|
163
167
|
**Hard limit:** Does not change behavior while optimizing — correctness is never sacrificed for speed.
|
|
164
168
|
|
|
165
169
|
### `@researcher`
|
|
170
|
+
|
|
166
171
|
**Domain:** Codebase exploration, technology evaluation, feasibility analysis, documentation synthesis
|
|
167
|
-
**Reasoning style:** Wide-then-narrow. Maps the full space before recommending a direction.
|
|
168
172
|
**Produces:** Structured research briefs, technology comparison matrices, risk/confidence assessments.
|
|
169
173
|
**Hard limit:** Produces findings, not implementations. Hands off to domain specialist with clear brief.
|
|
170
174
|
|
|
171
175
|
### `@validator`
|
|
176
|
+
|
|
172
177
|
**Domain:** Output quality gates, acceptance criteria verification, contract compliance
|
|
173
|
-
**Reasoning style:** Independent. Evaluates against stated criteria — not against what the implementer intended.
|
|
174
178
|
**Produces:** Pass/fail verdicts with specific, actionable failure reasons. Never vague.
|
|
175
179
|
**Hard limit:** Does not implement fixes. Returns clear feedback to the originating specialist.
|
|
176
180
|
|
|
177
181
|
### `@project-planner`
|
|
182
|
+
|
|
178
183
|
**Domain:** Feature decomposition, milestone sequencing, dependency mapping, effort scoping
|
|
179
|
-
**Reasoning style:** Risk-first planning. Identifies the hardest unknown first and plans around it.
|
|
180
184
|
**Produces:** Milestone plans with gates, dependency graphs, explicit assumptions list.
|
|
181
185
|
**Hard limit:** Does not begin implementation. Hands off milestone-scoped briefs to specialists.
|
|
182
186
|
|
|
183
187
|
### `@orchestrator`
|
|
188
|
+
|
|
184
189
|
**Domain:** Cross-domain coordination, multi-specialist delegation, parallel workstream management
|
|
185
|
-
**Reasoning style:** See Orchestrator Rules below.
|
|
186
190
|
**Hard limit:** Never implements directly. Coordinates and validates only.
|
|
187
191
|
|
|
188
192
|
### `@vercel-expert`
|
|
193
|
+
|
|
189
194
|
**Domain:** Vercel deployments, Edge Functions, ISR, environment config, preview deployments
|
|
190
|
-
**Reasoning style:** Platform-native. Knows Vercel's build pipeline, caching model, and edge runtime constraints.
|
|
191
195
|
**Produces:** vercel.json configs, deployment runbooks, environment variable checklists.
|
|
192
196
|
**Hard limit:** Does not own application business logic.
|
|
193
197
|
|
|
@@ -202,7 +206,7 @@ ORCHESTRATE(task):
|
|
|
202
206
|
1. Decompose task into specialist-scoped briefs
|
|
203
207
|
- Each brief: domain, deliverable, acceptance criteria, output contract
|
|
204
208
|
- No overlapping ownership between briefs
|
|
205
|
-
|
|
209
|
+
|
|
206
210
|
2. FOR each brief:
|
|
207
211
|
a. Delegate to primary specialist via Task tool
|
|
208
212
|
b. Specialist delivers output
|
|
@@ -213,15 +217,16 @@ ORCHESTRATE(task):
|
|
|
213
217
|
- Repeat up to 3 iterations max
|
|
214
218
|
IF validator returns PASS:
|
|
215
219
|
- Accept output, update handoff contract
|
|
216
|
-
|
|
220
|
+
|
|
217
221
|
3. Integrate validated outputs
|
|
218
222
|
- Preserve milestone, gate_status, next_handoff fields
|
|
219
223
|
- Surface integration conflicts to user before resolving
|
|
220
|
-
|
|
224
|
+
|
|
221
225
|
4. Deliver final output with validation receipt
|
|
222
226
|
```
|
|
223
227
|
|
|
224
228
|
**Orchestrator hard rules:**
|
|
229
|
+
|
|
225
230
|
- Max 3 re-delegation iterations per specialist per milestone.
|
|
226
231
|
- If iteration limit hit: surface to user with specific blocker, do not silently continue.
|
|
227
232
|
- Always preserve `milestones`, `gates`, and `next_handoff` in output contracts.
|
|
@@ -231,26 +236,26 @@ ORCHESTRATE(task):
|
|
|
231
236
|
|
|
232
237
|
## 7) Workflow Quick Reference
|
|
233
238
|
|
|
234
|
-
| Intent
|
|
235
|
-
|
|
|
236
|
-
| Plan a feature or architecture
|
|
237
|
-
| Implement with quality gates
|
|
238
|
-
| Debug a complex issue
|
|
239
|
-
| Write or verify tests
|
|
240
|
-
| Review code for bugs/security
|
|
241
|
-
| Refactor without behavior change
|
|
242
|
-
| CI/CD, deploy, infrastructure
|
|
243
|
-
| Schema, queries, migrations
|
|
244
|
-
| Backend API / services / auth
|
|
245
|
-
| Mobile features
|
|
246
|
-
| Security audit or hardening
|
|
247
|
-
| Multi-milestone tracked work
|
|
248
|
-
| Cross-domain coordination
|
|
249
|
-
| Release preparation
|
|
250
|
-
| Accessibility audit
|
|
251
|
-
| Framework migration
|
|
252
|
-
| Codebase onboarding
|
|
253
|
-
| Vercel deployment
|
|
239
|
+
| Intent | Workflow | Primary Agent |
|
|
240
|
+
| -------------------------------- | ------------------ | ---------------------- |
|
|
241
|
+
| Plan a feature or architecture | `/plan` | `@project-planner` |
|
|
242
|
+
| Implement with quality gates | `/create` | domain specialist |
|
|
243
|
+
| Debug a complex issue | `/debug` | `@debugger` |
|
|
244
|
+
| Write or verify tests | `/test` | `@test-engineer` |
|
|
245
|
+
| Review code for bugs/security | `/review` | `@validator` |
|
|
246
|
+
| Refactor without behavior change | `/refactor` | domain specialist |
|
|
247
|
+
| CI/CD, deploy, infrastructure | `/devops` | `@devops-engineer` |
|
|
248
|
+
| Schema, queries, migrations | `/database` | `@database-architect` |
|
|
249
|
+
| Backend API / services / auth | `/backend` | `@backend-specialist` |
|
|
250
|
+
| Mobile features | `/mobile` | `@mobile-developer` |
|
|
251
|
+
| Security audit or hardening | `/security` | `@security-auditor` |
|
|
252
|
+
| Multi-milestone tracked work | `/implement-track` | `@orchestrator` |
|
|
253
|
+
| Cross-domain coordination | `/orchestrate` | `@orchestrator` |
|
|
254
|
+
| Release preparation | `/release` | `@devops-engineer` |
|
|
255
|
+
| Accessibility audit | `/accessibility` | `@frontend-specialist` |
|
|
256
|
+
| Framework migration | `/migrate` | domain specialist |
|
|
257
|
+
| Codebase onboarding | `/onboard` | `@researcher` |
|
|
258
|
+
| Vercel deployment | `/vercel` | `@vercel-expert` |
|
|
254
259
|
|
|
255
260
|
---
|
|
256
261
|
|
|
@@ -263,13 +268,21 @@ ORCHESTRATE(task):
|
|
|
263
268
|
|
|
264
269
|
---
|
|
265
270
|
|
|
266
|
-
## 9) Claude Platform — Capability Notes
|
|
271
|
+
## 9) Claude Platform — Capability & Delegation Notes
|
|
272
|
+
|
|
273
|
+
### Subagent Delegation
|
|
267
274
|
|
|
268
|
-
-
|
|
269
|
-
-
|
|
270
|
-
-
|
|
271
|
-
-
|
|
272
|
-
|
|
275
|
+
- Use the `Task` tool for genuine parallelism — each delegation needs **goal**, **acceptance criteria**, and **scope boundary**.
|
|
276
|
+
- Set `maxTurns` in agent frontmatter to prevent runaway iterations (default: 25, orchestrator: 30).
|
|
277
|
+
- Use `background: true` for independent workstreams with no shared mutable state.
|
|
278
|
+
- Never delegate coordinated writes to the same file — keep that sequential.
|
|
279
|
+
|
|
280
|
+
### Memory & Scoped Rules
|
|
281
|
+
|
|
282
|
+
- Key agents have `memory: project` for cross-session learning (orchestrator, debugger, test-engineer, researcher, project-planner, code-archaeologist).
|
|
283
|
+
- Path-scoped rules: `.claude/rules/*.md` with `paths:` frontmatter for targeted guidance.
|
|
284
|
+
- Global rules (`~/.claude/CLAUDE.md`) apply to all projects — keep them broad.
|
|
285
|
+
- Skills with `context: fork` run as isolated subagents. `$ARGUMENTS` enables dynamic parameterization.
|
|
273
286
|
|
|
274
287
|
---
|
|
275
288
|
|
|
@@ -310,6 +323,7 @@ Use the following workflows proactively when task intent matches:
|
|
|
310
323
|
- No installed workflows found yet.
|
|
311
324
|
|
|
312
325
|
Selection policy:
|
|
326
|
+
|
|
313
327
|
1. Match explicit slash command first.
|
|
314
328
|
2. Match user intent to workflow description and triggers.
|
|
315
329
|
3. Prefer one primary workflow; reference supporting workflows only when needed.
|
|
@@ -328,6 +342,6 @@ Keep MCP context lazy and exact. Skills are supporting context, not the route la
|
|
|
328
342
|
5. Call `skill_get` with `includeReferences:false` by default.
|
|
329
343
|
6. Load at most one sidecar markdown file at a time with `skill_get_reference`.
|
|
330
344
|
7. Do not auto-prime every specialist with a skill. Load only what the task clearly needs.
|
|
331
|
-
8. Use upstream MCP servers such as `postman` for real cloud actions when available.
|
|
345
|
+
8. Use upstream MCP servers such as `postman`, `stitch`, or `playwright` for real cloud/browser actions when available.
|
|
332
346
|
|
|
333
347
|
<!-- cbx:mcp:auto:end -->
|
package/workflows/workflows/agent-environment-setup/platforms/claude/skills/playwright-e2e/SKILL.md
CHANGED
|
@@ -4,7 +4,7 @@ description: "Use when writing or reviewing browser end-to-end tests with Playwr
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: cubis-foundry
|
|
7
|
-
version: "
|
|
7
|
+
version: "2.0"
|
|
8
8
|
compatibility: Claude Code, Codex, GitHub Copilot
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ compatibility: Claude Code, Codex, GitHub Copilot
|
|
|
12
12
|
|
|
13
13
|
## Purpose
|
|
14
14
|
|
|
15
|
-
Use when writing or reviewing browser end-to-end tests with Playwright, debugging flaky UI automation, validating auth or checkout flows, or tightening CI evidence with traces and web-first assertions.
|
|
15
|
+
Use when writing or reviewing browser end-to-end tests with Playwright, debugging flaky UI automation, validating auth or checkout flows, or tightening CI evidence with traces and web-first assertions. When Playwright MCP upstream is configured in Cubis Foundry, leverage browser automation tools for live page inspection, snapshot-based debugging, and interactive test development.
|
|
16
16
|
|
|
17
17
|
## When to Use
|
|
18
18
|
|
|
@@ -20,6 +20,7 @@ Use when writing or reviewing browser end-to-end tests with Playwright, debuggin
|
|
|
20
20
|
- Debugging flaky E2E failures, locator instability, or auth state leakage in CI.
|
|
21
21
|
- Choosing between fixtures, reusable helpers, and page-level abstractions.
|
|
22
22
|
- Reviewing traces, screenshots, videos, and network activity to isolate browser failures.
|
|
23
|
+
- Using Playwright MCP tools for live browser navigation, snapshot capture, and interactive element inspection during test development.
|
|
23
24
|
|
|
24
25
|
## Instructions
|
|
25
26
|
|
|
@@ -29,6 +30,19 @@ Use when writing or reviewing browser end-to-end tests with Playwright, debuggin
|
|
|
29
30
|
4. Use web-first assertions, traces, and network evidence before calling a test flaky.
|
|
30
31
|
5. Leave CI with artifacts that explain the failure path instead of screenshots alone.
|
|
31
32
|
|
|
33
|
+
### Playwright MCP tools
|
|
34
|
+
|
|
35
|
+
When the Playwright upstream is configured in the Cubis Foundry MCP gateway, these tool categories are available for interactive browser automation:
|
|
36
|
+
|
|
37
|
+
- **Navigation**: `browser_navigate`, `browser_go_back`, `browser_go_forward`, `browser_wait` — open pages, navigate history, wait for network idle.
|
|
38
|
+
- **Snapshots**: `browser_snapshot` — capture an accessibility-tree snapshot of the current page for element inspection and locator discovery.
|
|
39
|
+
- **Interaction**: `browser_click`, `browser_type`, `browser_select_option`, `browser_hover`, `browser_drag` — interact with page elements using accessibility refs from snapshots.
|
|
40
|
+
- **Keyboard & files**: `browser_press_key`, `browser_file_upload` — press keys or upload files.
|
|
41
|
+
- **Tabs**: `browser_tab_list`, `browser_tab_new`, `browser_tab_select`, `browser_tab_close` — manage browser tabs.
|
|
42
|
+
- **Utilities**: `browser_console_messages`, `browser_generate_playwright_test`, `browser_network_requests`, `browser_install` — read console logs, generate test code, inspect network, install browsers.
|
|
43
|
+
|
|
44
|
+
Use MCP tools during development to inspect live pages and generate locator-accurate test code. Use the Playwright test runner and CI pipeline for execution.
|
|
45
|
+
|
|
32
46
|
### Baseline standards
|
|
33
47
|
|
|
34
48
|
- Test user-visible behavior rather than component internals or CSS structure.
|
|
@@ -52,9 +66,9 @@ Provide implementation guidance, code examples, and configuration as appropriate
|
|
|
52
66
|
|
|
53
67
|
Load on demand. Do not preload all reference files.
|
|
54
68
|
|
|
55
|
-
| File
|
|
56
|
-
|
|
|
57
|
-
| `references/locator-trace-flake-checklist.md` | You need a deeper checklist for locator choice, auth setup, trace-driven debugging, retries, CI artifacts, or
|
|
69
|
+
| File | Load when |
|
|
70
|
+
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
71
|
+
| `references/locator-trace-flake-checklist.md` | You need a deeper checklist for locator choice, auth setup, trace-driven debugging, retries, CI artifacts, flake triage, or MCP workflow patterns. |
|
|
58
72
|
|
|
59
73
|
## Scripts
|
|
60
74
|
|
|
@@ -64,3 +78,5 @@ No helper scripts are required for this skill right now. Keep execution in `SKIL
|
|
|
64
78
|
|
|
65
79
|
- "Help me with playwright e2e best practices in this project"
|
|
66
80
|
- "Review my playwright e2e implementation for issues"
|
|
81
|
+
- "Use Playwright MCP to inspect the login page and generate test code"
|
|
82
|
+
- "Check playwright upstream status and available browser tools"
|
|
@@ -50,3 +50,31 @@ Check these in order:
|
|
|
50
50
|
- Upload traces for failed or retried tests.
|
|
51
51
|
- Shard only after local determinism is solid.
|
|
52
52
|
- Separate smoke-critical browser flows from broad exploratory suites.
|
|
53
|
+
|
|
54
|
+
## MCP workflow patterns
|
|
55
|
+
|
|
56
|
+
When Playwright MCP upstream is configured in the Cubis Foundry gateway:
|
|
57
|
+
|
|
58
|
+
### Interactive test development
|
|
59
|
+
|
|
60
|
+
1. Use `browser_navigate` to open the target page.
|
|
61
|
+
2. Use `browser_snapshot` to capture the accessibility tree and discover locator targets.
|
|
62
|
+
3. Interact with elements via `browser_click`, `browser_type`, `browser_select_option` using accessibility refs from the snapshot.
|
|
63
|
+
4. Use `browser_generate_playwright_test` to produce test code from the recorded interactions.
|
|
64
|
+
5. Refine generated tests with proper assertions, fixtures, and isolation.
|
|
65
|
+
|
|
66
|
+
### Snapshot-based debugging
|
|
67
|
+
|
|
68
|
+
- Take `browser_snapshot` at the failing step to compare the DOM state against expected locators.
|
|
69
|
+
- Use `browser_console_messages` to capture console errors tied to the flow.
|
|
70
|
+
- Use `browser_network_requests` to verify API calls and mocked routes.
|
|
71
|
+
|
|
72
|
+
### Tab and navigation workflow
|
|
73
|
+
|
|
74
|
+
- Use `browser_tab_new` and `browser_tab_select` to manage multi-tab flows (OAuth popups, payment redirects).
|
|
75
|
+
- Use `browser_go_back` and `browser_go_forward` to test browser history behavior.
|
|
76
|
+
|
|
77
|
+
### When to use MCP vs test runner
|
|
78
|
+
|
|
79
|
+
- **MCP tools**: Interactive exploration, locator discovery, test code generation, debugging live pages during development.
|
|
80
|
+
- **Test runner (`npx playwright test`)**: Execution, CI, parallel sharding, retries, reporting, and deterministic assertions.
|