@appsforgood/next-supabase-kit 0.3.0 → 0.4.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.
- package/CHANGELOG.md +9 -0
- package/README.md +22 -555
- package/UPGRADE.md +11 -77
- package/USER_GUIDE.md +181 -0
- package/agents/app-engineer/agent.md +32 -0
- package/agents/copy/agent.md +27 -0
- package/agents/design/agent.md +27 -0
- package/agents/optional/deploy/agent.md +12 -0
- package/agents/optional/docs/agent.md +12 -0
- package/agents/optional/lead-architect/agent.md +12 -0
- package/agents/optional/research/agent.md +12 -0
- package/agents/planner/agent.md +29 -0
- package/agents/qa/agent.md +35 -0
- package/agents/security/agent.md +28 -0
- package/assistant-adapters/cursor-agent-kit.mdc +5 -26
- package/catalog.json +20 -0
- package/dist/index.js +892 -8251
- package/dist/index.js.map +1 -1
- package/examples/next-supabase-installed/.agent-kit/config.json +22 -26
- package/examples/next-supabase-installed/.agent-kit/manifest.json +78 -222
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/browser-qa.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/copy.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/frontend.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/plan.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/security.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/ship.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/commands/test.toml +6 -0
- package/examples/next-supabase-installed/.antigravity/agent-kit/plugin.json +12 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/accessibility-wcag/SKILL.md +26 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/browser-qa/SKILL.md +67 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/frontend-design/SKILL.md +26 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/nextjs-app-router/SKILL.md +23 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/owasp-security-review/SKILL.md +23 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/planning/SKILL.md +25 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/postgres-migrations/SKILL.md +21 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/product-copy/SKILL.md +22 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/ship/SKILL.md +22 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/supabase-auth-rls/SKILL.md +23 -0
- package/examples/next-supabase-installed/.antigravity/runtime-skills/testing-qa/SKILL.md +27 -0
- package/examples/next-supabase-installed/.claude/agents/app-engineer.md +32 -0
- package/examples/next-supabase-installed/.claude/agents/copy.md +27 -0
- package/examples/next-supabase-installed/.claude/agents/design.md +27 -0
- package/examples/next-supabase-installed/.claude/agents/planner.md +29 -0
- package/examples/next-supabase-installed/.claude/agents/qa.md +35 -0
- package/examples/next-supabase-installed/.claude/agents/security.md +28 -0
- package/examples/next-supabase-installed/.codex/agents/app-engineer.toml +39 -0
- package/examples/next-supabase-installed/.codex/agents/copy.toml +34 -0
- package/examples/next-supabase-installed/.codex/agents/design.toml +34 -0
- package/examples/next-supabase-installed/.codex/agents/planner.toml +36 -0
- package/examples/next-supabase-installed/.codex/agents/qa.toml +42 -0
- package/examples/next-supabase-installed/.codex/agents/security.toml +35 -0
- package/examples/next-supabase-installed/.cursor/agents/app-engineer.md +32 -0
- package/examples/next-supabase-installed/.cursor/agents/copy.md +27 -0
- package/examples/next-supabase-installed/.cursor/agents/design.md +27 -0
- package/examples/next-supabase-installed/.cursor/agents/planner.md +29 -0
- package/examples/next-supabase-installed/.cursor/agents/qa.md +35 -0
- package/examples/next-supabase-installed/.cursor/agents/security.md +28 -0
- package/examples/next-supabase-installed/.cursor/rules/cursor-agent-kit.mdc +12 -0
- package/examples/next-supabase-installed/.cursor/skills/accessibility-wcag/SKILL.md +26 -0
- package/examples/next-supabase-installed/.cursor/skills/browser-qa/SKILL.md +67 -0
- package/examples/next-supabase-installed/.cursor/skills/frontend-design/SKILL.md +26 -0
- package/examples/next-supabase-installed/.cursor/skills/nextjs-app-router/SKILL.md +23 -0
- package/examples/next-supabase-installed/.cursor/skills/owasp-security-review/SKILL.md +23 -0
- package/examples/next-supabase-installed/.cursor/skills/planning/SKILL.md +25 -0
- package/examples/next-supabase-installed/.cursor/skills/postgres-migrations/SKILL.md +21 -0
- package/examples/next-supabase-installed/.cursor/skills/product-copy/SKILL.md +22 -0
- package/examples/next-supabase-installed/.cursor/skills/ship/SKILL.md +22 -0
- package/examples/next-supabase-installed/.cursor/skills/supabase-auth-rls/SKILL.md +23 -0
- package/examples/next-supabase-installed/.cursor/skills/testing-qa/SKILL.md +27 -0
- package/examples/next-supabase-installed/.github/copilot-instructions.md +23 -0
- package/examples/next-supabase-installed/AGENTS.md +30 -0
- package/examples/next-supabase-installed/CLAUDE.md +7 -0
- package/examples/next-supabase-installed/README.md +2 -14
- package/examples/next-supabase-installed/USER_GUIDE.md +181 -0
- package/examples/next-supabase-installed/skills/accessibility-wcag/SKILL.md +26 -0
- package/examples/next-supabase-installed/skills/browser-qa/SKILL.md +67 -0
- package/examples/next-supabase-installed/skills/frontend-design/SKILL.md +26 -0
- package/examples/next-supabase-installed/skills/nextjs-app-router/SKILL.md +23 -0
- package/examples/next-supabase-installed/skills/owasp-security-review/SKILL.md +23 -0
- package/examples/next-supabase-installed/skills/planning/SKILL.md +25 -0
- package/examples/next-supabase-installed/skills/postgres-migrations/SKILL.md +21 -0
- package/examples/next-supabase-installed/skills/product-copy/SKILL.md +22 -0
- package/examples/next-supabase-installed/skills/ship/SKILL.md +22 -0
- package/examples/next-supabase-installed/skills/supabase-auth-rls/SKILL.md +23 -0
- package/examples/next-supabase-installed/skills/testing-qa/SKILL.md +27 -0
- package/examples/next-supabase-installed/tree.txt +57 -42
- package/package.json +15 -43
- package/research/agent-skill-gap-report.md +128 -0
- package/skills/accessibility-wcag/SKILL.md +26 -0
- package/skills/browser-qa/SKILL.md +67 -0
- package/skills/frontend-design/SKILL.md +26 -0
- package/skills/nextjs-app-router/SKILL.md +23 -0
- package/skills/optional/debug/SKILL.md +11 -0
- package/skills/optional/docs/SKILL.md +10 -0
- package/skills/optional/ui-polish/SKILL.md +10 -0
- package/skills/optional/upgrade/SKILL.md +10 -0
- package/skills/owasp-security-review/SKILL.md +23 -0
- package/skills/planning/SKILL.md +25 -0
- package/skills/postgres-migrations/SKILL.md +21 -0
- package/skills/product-copy/SKILL.md +22 -0
- package/skills/ship/SKILL.md +22 -0
- package/skills/supabase-auth-rls/SKILL.md +23 -0
- package/skills/testing-qa/SKILL.md +27 -0
- package/templates/next-supabase/AGENTS.md +19 -129
- package/templates/next-supabase/CLAUDE.md +4 -36
- package/BEST_PRACTICE_EVIDENCE.md +0 -45
- package/DOGFOOD.md +0 -201
- package/GOVERNANCE.md +0 -45
- package/LOOP_CODING.md +0 -107
- package/MAINTAINER_RELEASE.md +0 -100
- package/REPOSITORY_SETTINGS.md +0 -83
- package/RESEARCH_CITATION_POLICY.md +0 -26
- package/SUPPLY_CHAIN.md +0 -57
- package/agents/deployment-observability-engineer.md +0 -13
- package/agents/docs-maintainer.md +0 -17
- package/agents/frontend-design-lead.md +0 -22
- package/agents/lead-architect.md +0 -25
- package/agents/marketing-copy-lead.md +0 -20
- package/agents/nextjs-engineer.md +0 -20
- package/agents/planner.md +0 -20
- package/agents/qa-engineer.md +0 -19
- package/agents/research-analyst.md +0 -13
- package/agents/security-reviewer.md +0 -16
- package/agents/supabase-postgres-engineer.md +0 -19
- package/antigravity/commands/accessibility-pass.toml +0 -16
- package/antigravity/commands/audit.toml +0 -16
- package/antigravity/commands/browser-qa.toml +0 -18
- package/antigravity/commands/copy.toml +0 -16
- package/antigravity/commands/distinctiveness-pass.toml +0 -16
- package/antigravity/commands/frontend.toml +0 -18
- package/antigravity/commands/handoff.toml +0 -16
- package/antigravity/commands/layout-cleanup.toml +0 -16
- package/antigravity/commands/plan.toml +0 -18
- package/antigravity/commands/responsive-cleanup.toml +0 -16
- package/antigravity/commands/review.toml +0 -16
- package/antigravity/commands/screenshot-critique.toml +0 -16
- package/antigravity/commands/security.toml +0 -16
- package/antigravity/commands/setup.toml +0 -16
- package/antigravity/commands/ship.toml +0 -17
- package/antigravity/commands/spec.toml +0 -17
- package/antigravity/commands/test.toml +0 -17
- package/antigravity/commands/ui-audit.toml +0 -17
- package/antigravity/commands/ui-polish.toml +0 -17
- package/antigravity/commands/upgrade.toml +0 -17
- package/antigravity/plugin.json +0 -70
- package/assistant-adapters/antigravity.md +0 -65
- package/assistant-adapters/claude-code-subagents.md +0 -38
- package/assistant-adapters/codex-agents.md +0 -53
- package/assistant-adapters/cursor-frontend.mdc +0 -16
- package/assistant-adapters/cursor-planner.mdc +0 -14
- package/assistant-adapters/cursor-security.mdc +0 -18
- package/assistant-adapters/github-copilot-instructions.md +0 -35
- package/assistant-adapters/github-next-supabase.instructions.md +0 -28
- package/assistant-adapters/model-selection/claude-code-subagents-with-models.md +0 -32
- package/assistant-adapters/model-selection/codex-config.example.toml +0 -32
- package/assistant-adapters/model-selection/cursor-model-selection.mdc +0 -24
- package/assistant-adapters/model-selection/github-copilot-model-selection.md +0 -20
- package/assistant-adapters/orchestrator-runtime.md +0 -39
- package/checklists/accessibility.md +0 -12
- package/checklists/agent-council.md +0 -13
- package/checklists/brand-content.md +0 -15
- package/checklists/deployment.md +0 -10
- package/checklists/design-critique.md +0 -13
- package/checklists/frontend-distinctiveness.md +0 -12
- package/checklists/frontend-product-quality.md +0 -13
- package/checklists/frontend-quality.md +0 -21
- package/checklists/marketing-copy.md +0 -11
- package/checklists/owasp.md +0 -12
- package/checklists/rls.md +0 -10
- package/checklists/testing.md +0 -12
- package/checklists/ui-acceptance-rubric.md +0 -58
- package/checklists/ui-detectors.md +0 -81
- package/checklists/upgrade.md +0 -13
- package/checklists/visual-regression.md +0 -11
- package/design-adapters/claude-design.prompt.md +0 -27
- package/design-adapters/figma.prompt.md +0 -18
- package/design-adapters/google-stitch.prompt.md +0 -36
- package/design-adapters/human-designer-brief.prompt.md +0 -36
- package/design-briefs/admin-dashboard.md +0 -21
- package/design-briefs/ai-workflow-product.md +0 -25
- package/design-briefs/community-social.md +0 -26
- package/design-briefs/content-app.md +0 -21
- package/design-briefs/ecommerce.md +0 -25
- package/design-briefs/education-course.md +0 -25
- package/design-briefs/marketplace.md +0 -21
- package/design-briefs/portfolio-venue.md +0 -25
- package/design-briefs/saas.md +0 -21
- package/design-briefs/tool.md +0 -21
- package/examples/next-supabase-installed/.agent-kit/agent-roster.json +0 -267
- package/examples/next-supabase-installed/.agent-kit/model-routing.json +0 -171
- package/examples/next-supabase-installed/.agent-kit/overrides.json +0 -3
- package/examples/next-supabase-installed/audit-output.json +0 -405
- package/model-routing/default-model-routing.json +0 -171
- package/profiles/admin-app.md +0 -17
- package/profiles/content-app.md +0 -17
- package/profiles/marketplace.md +0 -17
- package/profiles/saas.md +0 -17
- package/profiles/stack-next-firebase.md +0 -25
- package/profiles/stack-next-postgres.md +0 -24
- package/profiles/stack-remix-supabase.md +0 -24
- package/prompts/audit-project-setup.md +0 -28
- package/prompts/brand-content-intake.md +0 -17
- package/prompts/copy-review.md +0 -15
- package/prompts/council-session-review.md +0 -17
- package/prompts/creative-direction-matrix.md +0 -22
- package/prompts/design-critique-gate.md +0 -28
- package/prompts/docs-update.md +0 -16
- package/prompts/frontend-design-review.md +0 -35
- package/prompts/frontend-distinctiveness-benchmark.md +0 -32
- package/prompts/frontend-product-quality-scorecard.md +0 -35
- package/prompts/implement-feature.md +0 -14
- package/prompts/lifecycle-command-index.md +0 -180
- package/prompts/migration-review.md +0 -14
- package/prompts/screenshot-review.md +0 -28
- package/prompts/security-review.md +0 -17
- package/prompts/ui-command-index.md +0 -124
- package/prompts/upgrade-review.md +0 -18
- package/prompts/visual-qa-plan.md +0 -16
- package/research/proposed-updates.md +0 -70
- package/research/scan-config.json +0 -261
- package/research/scan-plan.md +0 -24
- package/research/summaries/.gitkeep +0 -1
- package/research/summaries/agent-workflow-patterns.md +0 -37
- package/research/summaries/agentic-engineering-maturity-levels.md +0 -54
- package/research/summaries/creative-design-patterns.md +0 -38
- package/research/summaries/design-critique-patterns.md +0 -34
- package/research/summaries/docs-and-agent-patterns.md +0 -64
- package/research/summaries/dogfood-adoption-patterns.md +0 -33
- package/research/summaries/frontend-design-patterns.md +0 -64
- package/research/summaries/frontend-distinctiveness-benchmark-patterns.md +0 -38
- package/research/summaries/frontend-product-quality-rubric-patterns.md +0 -37
- package/research/summaries/maturity-model-patterns.md +0 -29
- package/research/summaries/nextjs-patterns.md +0 -65
- package/research/summaries/repo-health-patterns.md +0 -41
- package/research/summaries/scan-overview.md +0 -46
- package/research/summaries/security-patterns.md +0 -64
- package/research/summaries/supabase-rls-patterns.md +0 -54
- package/research/summaries/supply-chain-patterns.md +0 -38
- package/research/summaries/testing-patterns.md +0 -63
- package/research/summaries/upgrade-lifecycle-patterns.md +0 -26
- package/research/summaries/visual-qa-patterns.md +0 -39
- package/rosters/next-supabase-default-council.json +0 -267
- package/runtime-skills/README.md +0 -7
- package/runtime-skills/accessibility-wcag/SKILL.md +0 -8
- package/runtime-skills/agent-handoff-tracing/SKILL.md +0 -8
- package/runtime-skills/best-practice-maturity-review/SKILL.md +0 -8
- package/runtime-skills/content-first-design/SKILL.md +0 -8
- package/runtime-skills/conversion-copywriting/SKILL.md +0 -8
- package/runtime-skills/deployment-observability/SKILL.md +0 -8
- package/runtime-skills/docs-maintainer/SKILL.md +0 -8
- package/runtime-skills/frontend-design-system/SKILL.md +0 -8
- package/runtime-skills/frontend-distinctiveness-benchmark/SKILL.md +0 -8
- package/runtime-skills/frontend-product-quality-rubric/SKILL.md +0 -8
- package/runtime-skills/landing-page-copy/SKILL.md +0 -8
- package/runtime-skills/nextjs-app-router/SKILL.md +0 -8
- package/runtime-skills/onboarding-empty-state-copy/SKILL.md +0 -8
- package/runtime-skills/owasp-security-review/SKILL.md +0 -8
- package/runtime-skills/planning-council/SKILL.md +0 -8
- package/runtime-skills/positioning-messaging/SKILL.md +0 -8
- package/runtime-skills/postgres-migrations/SKILL.md +0 -8
- package/runtime-skills/product-voice-tone/SKILL.md +0 -8
- package/runtime-skills/reference-led-design-critique/SKILL.md +0 -8
- package/runtime-skills/supabase-auth-rls/SKILL.md +0 -8
- package/runtime-skills/testing-qa/SKILL.md +0 -8
- package/runtime-skills/ui-improvement-harness/SKILL.md +0 -12
- package/runtime-skills/upgrade-maintenance/SKILL.md +0 -8
- package/runtime-skills/visual-regression-qa/SKILL.md +0 -8
- package/schemas/agent-roster.schema.json +0 -54
- package/schemas/agentic-level.schema.json +0 -47
- package/schemas/audit-report-v2.schema.json +0 -71
- package/schemas/audit-report.schema.json +0 -50
- package/schemas/correction-rules.schema.json +0 -32
- package/schemas/council-session.schema.json +0 -65
- package/schemas/model-routing.schema.json +0 -72
- package/schemas/onboarding-state.schema.json +0 -36
- package/schemas/orchestrator.schema.json +0 -167
- package/schemas/project-context.schema.json +0 -94
- package/schemas/runtime-event.schema.json +0 -66
- package/schemas/runtime-run.schema.json +0 -58
- package/schemas/session-event.schema.json +0 -48
- package/schemas/studio-session.schema.json +0 -48
- package/skills/accessibility-wcag.md +0 -15
- package/skills/agent-handoff-tracing.md +0 -44
- package/skills/best-practice-maturity-review.md +0 -26
- package/skills/content-first-design.md +0 -50
- package/skills/conversion-copywriting.md +0 -38
- package/skills/deployment-observability.md +0 -14
- package/skills/docs-maintainer.md +0 -19
- package/skills/frontend-design-system.md +0 -68
- package/skills/frontend-distinctiveness-benchmark.md +0 -40
- package/skills/frontend-product-quality-rubric.md +0 -59
- package/skills/landing-page-copy.md +0 -29
- package/skills/nextjs-app-router.md +0 -18
- package/skills/onboarding-empty-state-copy.md +0 -37
- package/skills/owasp-security-review.md +0 -19
- package/skills/planning-council.md +0 -21
- package/skills/positioning-messaging.md +0 -42
- package/skills/postgres-migrations.md +0 -14
- package/skills/product-voice-tone.md +0 -35
- package/skills/reference-led-design-critique.md +0 -48
- package/skills/supabase-auth-rls.md +0 -20
- package/skills/testing-qa.md +0 -15
- package/skills/ui-improvement-harness.md +0 -96
- package/skills/upgrade-maintenance.md +0 -32
- package/skills/visual-regression-qa.md +0 -42
- package/templates/next-supabase/.agent-kit/orchestrator.json +0 -48
- package/templates/next-supabase/.agent-kit/runtime/gitignore.template +0 -2
- package/templates/next-supabase/.github/workflows/agent-kit-audit.yml +0 -34
- package/templates/next-supabase/AGENT_ROSTER.md +0 -101
- package/templates/next-supabase/ASSISTANT_ADAPTERS.md +0 -146
- package/templates/next-supabase/COUNCIL.md +0 -54
- package/templates/next-supabase/DECISIONS.md +0 -87
- package/templates/next-supabase/DEPLOYMENT.md +0 -51
- package/templates/next-supabase/DESIGN.md +0 -180
- package/templates/next-supabase/DOCS.md +0 -80
- package/templates/next-supabase/LOOP_CODING.md +0 -98
- package/templates/next-supabase/MESSAGING.md +0 -81
- package/templates/next-supabase/MODEL_ROUTING.md +0 -130
- package/templates/next-supabase/QUALITY_GATES.md +0 -98
- package/templates/next-supabase/SKILLS.md +0 -235
- package/templates/next-supabase/SPEC.md +0 -122
- package/templates/next-supabase/STYLE_GUIDE.md +0 -121
- package/templates/next-supabase/TESTING.md +0 -107
package/UPGRADE.md
CHANGED
|
@@ -1,92 +1,26 @@
|
|
|
1
1
|
# Upgrade Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 0.4.0
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This is a breaking simplify. `init` now writes `AGENTS.md`, `USER_GUIDE.md`, and native IDE agents/skills. It does not install the 17-doc operating system, Studio, or orchestrator files.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- Existing project docs and local overrides are preserved by default.
|
|
9
|
-
- Breaking behavior must be called out in `CHANGELOG.md`, `ROADMAP.md`, and release notes.
|
|
10
|
-
- Downstream projects should prove setup validity after each upgrade with `agent-kit audit`.
|
|
11
|
-
|
|
12
|
-
## Maintainer Release Checklist
|
|
13
|
-
|
|
14
|
-
Before publishing a new package version:
|
|
15
|
-
|
|
16
|
-
1. Update changesets plus root/runtime changelogs with user-visible changes, migration notes, and deprecations.
|
|
17
|
-
2. Update `ROADMAP.md` and `BEST_PRACTICE_EVIDENCE.md` when a research finding becomes enforced behavior.
|
|
18
|
-
3. Run `npm run release:check`.
|
|
19
|
-
4. Run `agent-kit package validate` from the source repository when runtime adapter or package assets changed.
|
|
20
|
-
5. Confirm root and runtime pack dry runs include only public-safe files.
|
|
21
|
-
6. Publish runtime then root through npm Trusted Publishing with separate SBOM attestations.
|
|
22
|
-
7. Verify public runtime import plus root `doctor`, `init`, `audit`, and `orchestrate validate`.
|
|
23
|
-
|
|
24
|
-
## Downstream Upgrade Checklist
|
|
25
|
-
|
|
26
|
-
From a downstream project:
|
|
7
|
+
`update` never deletes your existing files. Old `SPEC.md`, `QUALITY_GATES.md`, and `.agent-kit/` trees stay as unmanaged leftovers.
|
|
27
8
|
|
|
28
9
|
```bash
|
|
10
|
+
npx @appsforgood/next-supabase-kit@latest init --activate all
|
|
29
11
|
npx @appsforgood/next-supabase-kit@latest doctor
|
|
30
|
-
npx @appsforgood/next-supabase-kit@latest diff
|
|
31
|
-
npx @appsforgood/next-supabase-kit@latest update
|
|
32
|
-
npx @appsforgood/next-supabase-kit@latest adapter validate antigravity
|
|
33
|
-
npx @appsforgood/next-supabase-kit@latest audit --min-readiness baseline-setup
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Projects using executable orchestration should also upgrade the optional runtime deliberately:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm install --save-dev @appsforgood/agent-kit-runtime@latest
|
|
40
|
-
agent-kit orchestrate validate
|
|
41
|
-
agent-kit orchestrate plan "Upgrade verification"
|
|
42
12
|
```
|
|
43
13
|
|
|
44
|
-
|
|
14
|
+
Use `--legacy-docs` only if you still want a copy of leftover living-doc templates.
|
|
45
15
|
|
|
46
|
-
|
|
16
|
+
Read `USER_GUIDE.md` for how to invoke agents. QA must capture desktop and mobile screenshots for user-visible work.
|
|
47
17
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
For mature projects, raise the gate after local evidence is updated:
|
|
18
|
+
## Downstream habit
|
|
51
19
|
|
|
52
20
|
```bash
|
|
53
|
-
npx
|
|
21
|
+
npx agent-kit update
|
|
22
|
+
npx agent-kit doctor
|
|
23
|
+
npx agent-kit adapter validate all
|
|
54
24
|
```
|
|
55
25
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
1. Create a branch before running `agent-kit update`.
|
|
59
|
-
2. Run `agent-kit diff` and review every changed root markdown template.
|
|
60
|
-
3. Check `.agent-kit/conflicts/` before accepting template updates.
|
|
61
|
-
4. Preserve valid local customizations in `.agent-kit/overrides.json`.
|
|
62
|
-
5. Review `AGENTS.md`, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `MODEL_ROUTING.md`, `COUNCIL.md`, `QUALITY_GATES.md`, `SECURITY.md`, `TESTING.md`, `DEPLOYMENT.md`, and this file.
|
|
63
|
-
6. If using Antigravity, review `.antigravity/agent-kit/plugin.json`, `.antigravity/agent-kit/commands/*.toml`, and `.antigravity/runtime-skills/*/SKILL.md`.
|
|
64
|
-
7. Run project tests and release checks before merging.
|
|
65
|
-
8. Record any accepted deviations in `DECISIONS.md`.
|
|
66
|
-
|
|
67
|
-
## Next.js And Supabase Stack Upgrades
|
|
68
|
-
|
|
69
|
-
- Use official Next.js upgrade guides and codemods for framework changes.
|
|
70
|
-
- Treat Supabase schema, RLS, storage, and auth changes as migration work, not ad hoc dashboard edits.
|
|
71
|
-
- Verify migration history before deployment.
|
|
72
|
-
- Record migration order, rollback risk, and verification evidence in `DEPLOYMENT.md`.
|
|
73
|
-
- Regenerate types after database schema changes when the project relies on generated Supabase types.
|
|
74
|
-
|
|
75
|
-
## Rollback
|
|
76
|
-
|
|
77
|
-
Keep rollback evidence next to the upgrade:
|
|
78
|
-
|
|
79
|
-
- Git branch or commit to revert.
|
|
80
|
-
- Package version before and after the upgrade.
|
|
81
|
-
- Template conflicts reviewed or deferred.
|
|
82
|
-
- Database migrations applied, reverted, or not applicable.
|
|
83
|
-
- Verification commands and results.
|
|
84
|
-
- Owner and date.
|
|
85
|
-
|
|
86
|
-
## Upgrade History
|
|
87
|
-
|
|
88
|
-
| Date | From | To | Scope | Evidence | Owner |
|
|
89
|
-
| --- | --- | --- | --- | --- | --- |
|
|
90
|
-
| 2026-06-14 | TypeScript 5 / Node 22 types | TypeScript 6 / Node 25 types | Dev dependency update for package validation and CI parity | `npm run typecheck`, `npm test`, `npm audit --audit-level=moderate` | Maintainers |
|
|
91
|
-
| 2026-06 | 0.1.0 | 0.1.1 | Package rename to `@appsforgood/next-supabase-kit`, harness readiness gates, adapter install on init, publish prep | `CHANGELOG.md` 0.1.1 entry, `npm run release:check` green, commit `37e1a0f` | lukey662 |
|
|
92
|
-
| 2026-07-02 | none | 0.1.1 (self-install) | Dogfooded the kit into this repo's own root: `agent-kit init` installed root docs, `.agent-kit/`, and confirmed the Cursor rules' referenced files exist | `.agent-kit/manifest.json`, `agent-kit audit` zero failures, `COUNCIL.md` 2026-07-02 session | lukey662 |
|
|
26
|
+
Do not re-init to upgrade.
|
package/USER_GUIDE.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# User Guide
|
|
2
|
+
|
|
3
|
+
How to use the agents and skills in this repo.
|
|
4
|
+
|
|
5
|
+
**Agent** = who you ask. **Skill** = the workflow they follow. **Tool** = what they must use. For QA and UI, that tool is a **live browser plus screenshots**, not a file diff.
|
|
6
|
+
|
|
7
|
+
A user-visible change is not done until someone opened the running UI, captured desktop and mobile screenshots, and reviewed those images.
|
|
8
|
+
|
|
9
|
+
## 5-minute start
|
|
10
|
+
|
|
11
|
+
1. Install and activate every IDE this team uses:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx --yes @appsforgood/next-supabase-kit init --activate all
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. Open the project in your IDE.
|
|
18
|
+
3. Paste this to Planner (do not ask it to write code):
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
Plan this change. Name the owning agent, extra reviewers, and which screenshots QA must capture. Do not write code.
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You should get a named owner (`app-engineer`, `security`, `design`, `qa`, or `copy`) and, if the work is user-visible, a desktop + mobile screenshot list.
|
|
25
|
+
|
|
26
|
+
## How to invoke in each IDE
|
|
27
|
+
|
|
28
|
+
### Cursor
|
|
29
|
+
|
|
30
|
+
Files: `.cursor/agents/*.md`, `.cursor/skills/*/SKILL.md`, `.cursor/rules/cursor-agent-kit.mdc`
|
|
31
|
+
|
|
32
|
+
- In chat, mention `@planner`, `@app-engineer`, `@security`, `@design`, `@qa`, or `@copy`.
|
|
33
|
+
- Skills apply from their descriptions. To force one, mention `@browser-qa` or the skill name.
|
|
34
|
+
- Prefer the built-in browser for QA. Playwright is backup.
|
|
35
|
+
|
|
36
|
+
### Claude Code
|
|
37
|
+
|
|
38
|
+
Files: `.claude/agents/*.md`, `CLAUDE.md`
|
|
39
|
+
|
|
40
|
+
- Use the matching subagent (`planner`, `qa`, …) instead of one generic thread.
|
|
41
|
+
- Mention `browser-qa` for any screen review. If Claude has no browser, use the Playwright commands in that skill.
|
|
42
|
+
|
|
43
|
+
### Codex
|
|
44
|
+
|
|
45
|
+
Files: `.codex/agents/*.toml`, `AGENTS.md`
|
|
46
|
+
|
|
47
|
+
- Spawn the named custom agent from `.codex/agents/`.
|
|
48
|
+
- Paste the QA prompt below when reviewing UI. Use Playwright if Codex cannot see the page.
|
|
49
|
+
|
|
50
|
+
### GitHub Copilot
|
|
51
|
+
|
|
52
|
+
Files: `.github/copilot-instructions.md`
|
|
53
|
+
|
|
54
|
+
Copilot has no `@agent` picker. Paste a role prompt:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
Act as the QA agent. Use the browser-qa skill. Do not review code alone. Open the app, capture desktop and mobile screenshots, read the images, then give accept / accept-with-nits / reject.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Antigravity
|
|
61
|
+
|
|
62
|
+
Files: `.antigravity/agent-kit/commands/*.toml`, `.antigravity/runtime-skills/*/SKILL.md`
|
|
63
|
+
|
|
64
|
+
- `/plan` — Planner
|
|
65
|
+
- `/browser-qa` — screenshot QA loop
|
|
66
|
+
- `/security`, `/frontend`, `/copy`, `/test`, `/ship` — matching specialists
|
|
67
|
+
|
|
68
|
+
## Which agent do I ask?
|
|
69
|
+
|
|
70
|
+
| You need | Ask |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| A plan and an owner | Planner |
|
|
73
|
+
| Implementation | App engineer |
|
|
74
|
+
| Auth / RLS / secrets | Security |
|
|
75
|
+
| It looks wrong | Design |
|
|
76
|
+
| Is this done? | QA |
|
|
77
|
+
| Landing / CTA words | Copy |
|
|
78
|
+
|
|
79
|
+
Do not ask one chat to be all six.
|
|
80
|
+
|
|
81
|
+
## Which skill do I use?
|
|
82
|
+
|
|
83
|
+
| Skill | Use when |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `planning` | Ambiguous work; pick an owner |
|
|
86
|
+
| `nextjs-app-router` | Routes, Server Components, actions |
|
|
87
|
+
| `supabase-auth-rls` | Auth, RLS, service role |
|
|
88
|
+
| `postgres-migrations` | Schema and migrations |
|
|
89
|
+
| `owasp-security-review` | Mutations, uploads, secrets |
|
|
90
|
+
| `frontend-design` | Layout, hierarchy, anti-generic UI |
|
|
91
|
+
| `accessibility-wcag` | Keyboard, contrast, labels |
|
|
92
|
+
| `browser-qa` | Any screen. Required for QA of UI |
|
|
93
|
+
| `testing-qa` | Unit / regression / smoke only |
|
|
94
|
+
| `product-copy` | Headlines and CTAs |
|
|
95
|
+
| `ship` | Release, env, rollback |
|
|
96
|
+
|
|
97
|
+
QA of a screen always uses `browser-qa`, not `testing-qa` alone.
|
|
98
|
+
|
|
99
|
+
## Standard workflows
|
|
100
|
+
|
|
101
|
+
### New feature
|
|
102
|
+
|
|
103
|
+
1. **Planner** — paste: `Plan this change. Name the owning agent, extra reviewers, and which screenshots QA must capture. Do not write code.`
|
|
104
|
+
2. **App engineer** — paste: `Implement the plan. Smoke the changed route in the browser before you hand off.`
|
|
105
|
+
3. **Security** if data/auth/secrets changed.
|
|
106
|
+
4. **Design** if the UI changed — paste: `Review the running UI from screenshots first. Desktop and mobile. Reject generic AI-looking layout.`
|
|
107
|
+
5. **QA** — paste: `Do not review code alone. Open the app, capture desktop and mobile screenshots, read the images, then give accept / accept-with-nits / reject.`
|
|
108
|
+
|
|
109
|
+
Done when QA attaches `qa-evidence/<date>-<slug>/desktop.png` and `mobile.png` plus a verdict.
|
|
110
|
+
|
|
111
|
+
### Auth / RLS change
|
|
112
|
+
|
|
113
|
+
Planner → App engineer → Security → QA. QA must open login/logout/denied in the browser and still run tests. Screenshots required when the finding is user-visible.
|
|
114
|
+
|
|
115
|
+
### UI polish
|
|
116
|
+
|
|
117
|
+
Design + `frontend-design` + `browser-qa`. Desktop and mobile required. One happy-path shot is a fail.
|
|
118
|
+
|
|
119
|
+
### Copy pass
|
|
120
|
+
|
|
121
|
+
Copy agent reviews **rendered** screenshots, not just strings in TSX.
|
|
122
|
+
|
|
123
|
+
## QA screenshot loop
|
|
124
|
+
|
|
125
|
+
Bad request (reject this):
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
Review the new settings page in page.tsx and tell me if the layout looks right.
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Good request:
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
Do not review code alone. Open the app, capture desktop and mobile screenshots, read the images, then give accept / accept-with-nits / reject.
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Steps the QA agent must follow:
|
|
138
|
+
|
|
139
|
+
1. Start or find the app (`next dev` or preview).
|
|
140
|
+
2. Open the changed route with the real auth/role/data state.
|
|
141
|
+
3. Capture desktop (~1280) and mobile (~390) into `qa-evidence/<yyyy-mm-dd>-<slug>/`.
|
|
142
|
+
4. **Read the images.** List blockers from what is on screen.
|
|
143
|
+
5. Run applicable tests.
|
|
144
|
+
6. Write `notes.md` with route, viewports, auth state, verdict.
|
|
145
|
+
|
|
146
|
+
Cursor: use the built-in browser first. Claude / Codex / Copilot / Antigravity: use the host browser if present, otherwise Playwright:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
npx playwright screenshot --viewport-size=1280,720 "$URL" qa-evidence/<slug>/desktop.png
|
|
150
|
+
npx playwright screenshot --viewport-size=390,844 "$URL" qa-evidence/<slug>/mobile.png
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Adding more
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
npx agent-kit add agent lead-architect
|
|
157
|
+
npx agent-kit add skill debug
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Optional agents: `lead-architect`, `docs`, `deploy`, `research`.
|
|
161
|
+
Optional skills: `ui-polish`, `docs`, `upgrade`, `debug`.
|
|
162
|
+
|
|
163
|
+
Do not add them unless you have a repeating job for that specialist.
|
|
164
|
+
|
|
165
|
+
## Updating
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
npx agent-kit update
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Pristine files refresh. Local edits win or land in `.agent-kit/conflicts/`. Do not re-init. `update` never deletes your old docs.
|
|
172
|
+
|
|
173
|
+
## Troubleshooting
|
|
174
|
+
|
|
175
|
+
| Problem | Fix |
|
|
176
|
+
| --- | --- |
|
|
177
|
+
| Agent missing in Cursor / Claude | Re-run `init --activate cursor` or `claude`. Check `.cursor/agents/` or `.claude/agents/`. |
|
|
178
|
+
| Skill not triggering | Mention the skill name (`browser-qa`) or `@` it in Cursor. |
|
|
179
|
+
| No browser in Copilot / Codex | Use the Playwright commands in `browser-qa`. |
|
|
180
|
+
| QA finished from the diff | Reject it. Re-run with the good QA prompt above. |
|
|
181
|
+
| `doctor` fails USER_GUIDE | The screenshot fail-closed sentence must stay in this file. |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: app-engineer
|
|
3
|
+
description: Use to implement Next.js App Router and Supabase behavior. Smoke the changed route in the browser before handing off.
|
|
4
|
+
tools: [repo, edit, terminal, browser]
|
|
5
|
+
requiredTools: [repo, edit, browser]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# App Engineer
|
|
9
|
+
|
|
10
|
+
Implement the change in Next.js and Supabase. Keep server/client boundaries explicit. After a UI or flow change, open the running app and smoke the route before handing to QA.
|
|
11
|
+
|
|
12
|
+
## Use when
|
|
13
|
+
|
|
14
|
+
Routes, Server Components, Server Actions, Route Handlers, forms, schema, migrations, RLS, or auth wiring.
|
|
15
|
+
|
|
16
|
+
## Tools
|
|
17
|
+
|
|
18
|
+
Allowed: `repo`, `edit`, `terminal`, `browser`.
|
|
19
|
+
Required: read the repo, edit the implementation, and smoke UI/flow changes in the browser.
|
|
20
|
+
Code-only “it should work” is incomplete for anything the user can see or click.
|
|
21
|
+
|
|
22
|
+
## Skills
|
|
23
|
+
|
|
24
|
+
`nextjs-app-router`, `supabase-auth-rls`, `postgres-migrations`.
|
|
25
|
+
|
|
26
|
+
## Handoff
|
|
27
|
+
|
|
28
|
+
Security reviews auth/data/secret changes. Design reviews user-facing screens. QA always reviews behavior or UI changes with `browser-qa`.
|
|
29
|
+
|
|
30
|
+
## Done when
|
|
31
|
+
|
|
32
|
+
The change is implemented, failure paths are explicit, and any changed route was opened in the browser at least once.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copy
|
|
3
|
+
description: Use for public-facing or conversion copy. Review the rendered words in screenshots, not just strings in TSX.
|
|
4
|
+
tools: [repo, edit, screenshot, image-review]
|
|
5
|
+
requiredTools: [repo, image-review]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Copy
|
|
9
|
+
|
|
10
|
+
Write and review headlines, CTAs, empty states, and onboarding copy. Approve words as they appear on screen.
|
|
11
|
+
|
|
12
|
+
## Use when
|
|
13
|
+
|
|
14
|
+
Landing pages, CTAs, positioning, empty states, pricing, or conversion copy.
|
|
15
|
+
|
|
16
|
+
## Tools
|
|
17
|
+
|
|
18
|
+
Allowed: `repo`, `edit`, `screenshot`, `image-review`.
|
|
19
|
+
Required: read the repo and review rendered copy from screenshots when the surface exists.
|
|
20
|
+
|
|
21
|
+
## Skills
|
|
22
|
+
|
|
23
|
+
`product-copy`, `frontend-design`.
|
|
24
|
+
|
|
25
|
+
## Done when
|
|
26
|
+
|
|
27
|
+
Copy is specific to this product, claims are not invented, and the rendered screenshot shows the CTA and key line without truncation or hierarchy collapse.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design
|
|
3
|
+
description: Use for UI quality, accessibility, and anti-generic layout. Critique screenshots first, then code.
|
|
4
|
+
tools: [repo, edit, browser, screenshot, image-review]
|
|
5
|
+
requiredTools: [browser, screenshot, image-review]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Design
|
|
9
|
+
|
|
10
|
+
Review and improve user-facing UI. Start from screenshots. Reject a single happy-path shot and reject generic AI-looking layout.
|
|
11
|
+
|
|
12
|
+
## Use when
|
|
13
|
+
|
|
14
|
+
Screens, components, layout, visual design, responsive behavior, or “it looks wrong.”
|
|
15
|
+
|
|
16
|
+
## Tools
|
|
17
|
+
|
|
18
|
+
Allowed: `repo`, `edit`, `browser`, `screenshot`, `image-review`.
|
|
19
|
+
Required: open the running UI, capture desktop (~1280) and mobile (~390), and write findings from the images.
|
|
20
|
+
|
|
21
|
+
## Skills
|
|
22
|
+
|
|
23
|
+
`frontend-design`, `accessibility-wcag`, `browser-qa`.
|
|
24
|
+
|
|
25
|
+
## Done when
|
|
26
|
+
|
|
27
|
+
Desktop and mobile screenshots were captured and read. Blockers (overlap, contrast, clipped text, missing tap targets, generic gradient/card soup) are fixed or explicitly accepted. One screenshot is not enough.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deploy
|
|
3
|
+
description: Optional. Use for env vars, migrations order, rollback, and release checks.
|
|
4
|
+
tools: [repo, terminal]
|
|
5
|
+
requiredTools: [repo]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Deploy (optional)
|
|
9
|
+
|
|
10
|
+
Confirm release order, env vars, and rollback. Use the `ship` skill.
|
|
11
|
+
|
|
12
|
+
Add with `agent-kit add agent deploy`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: docs
|
|
3
|
+
description: Optional. Use to update project docs after a significant change.
|
|
4
|
+
tools: [repo, edit]
|
|
5
|
+
requiredTools: [repo]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Docs (optional)
|
|
9
|
+
|
|
10
|
+
Keep `USER_GUIDE.md`, `AGENTS.md`, and project docs accurate. Do not invent product claims.
|
|
11
|
+
|
|
12
|
+
Add with `agent-kit add agent docs`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: lead-architect
|
|
3
|
+
description: Optional. Use for cross-layer architecture decisions before a large implementation.
|
|
4
|
+
tools: [repo]
|
|
5
|
+
requiredTools: [repo]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Lead Architect (optional)
|
|
9
|
+
|
|
10
|
+
Map affected layers and preserve behavioral contracts. Do not implement unless asked.
|
|
11
|
+
|
|
12
|
+
Add with `agent-kit add agent lead-architect` only when the change spans data, auth, and presentation.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research
|
|
3
|
+
description: Optional. Use to compare public patterns before changing this pack. Do not copy ceremony.
|
|
4
|
+
tools: [repo]
|
|
5
|
+
requiredTools: [repo]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Research (optional)
|
|
9
|
+
|
|
10
|
+
Inventory public agent/skill patterns. Extract structure only. Do not re-import an operating system.
|
|
11
|
+
|
|
12
|
+
Add with `agent-kit add agent research`.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planner
|
|
3
|
+
description: Use for planning, scope, sequencing, and choosing which specialist to call. Do not write product code.
|
|
4
|
+
tools: [repo]
|
|
5
|
+
requiredTools: [repo]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Planner
|
|
9
|
+
|
|
10
|
+
Classify the request, name the owning agent, and say what evidence QA must capture. Do not implement.
|
|
11
|
+
|
|
12
|
+
## Use when
|
|
13
|
+
|
|
14
|
+
Planning, roadmaps, ambiguous asks, “what should we do,” or any request that needs a specialist chosen.
|
|
15
|
+
|
|
16
|
+
## Tools
|
|
17
|
+
|
|
18
|
+
Allowed: `repo` (read and search only).
|
|
19
|
+
Required: read the repo before naming owners.
|
|
20
|
+
Do not edit product code.
|
|
21
|
+
|
|
22
|
+
## Handoff
|
|
23
|
+
|
|
24
|
+
Name one owner from: `app-engineer`, `security`, `design`, `qa`, `copy`.
|
|
25
|
+
Add extra reviewers only when needed: Security for auth/data/secrets, Design for user-facing screens, QA for any behavior or UI change, Copy for public/conversion words.
|
|
26
|
+
|
|
27
|
+
## Done when
|
|
28
|
+
|
|
29
|
+
You have named the owner, extra reviewers, affected routes, preserved behavior, and — if the change is user-visible — which desktop and mobile screenshots QA must capture.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qa
|
|
3
|
+
description: Use to prove a change works. Do not review user-visible work from code alone. Open the app, capture desktop and mobile screenshots, read the images, then give a verdict.
|
|
4
|
+
tools: [repo, terminal, test-runner, browser, screenshot, image-review]
|
|
5
|
+
requiredTools: [browser, screenshot, image-review]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# QA
|
|
9
|
+
|
|
10
|
+
Prove the change. Tests are necessary. For anything user-visible, screenshots are required. Do not edit product code during the review pass; you may add tests.
|
|
11
|
+
|
|
12
|
+
## Use when
|
|
13
|
+
|
|
14
|
+
“Is this done?”, review, regression, smoke, acceptance, or any behavior/UI change.
|
|
15
|
+
|
|
16
|
+
## Tools
|
|
17
|
+
|
|
18
|
+
Allowed: `repo`, `terminal`, `test-runner`, `browser`, `screenshot`, `image-review`.
|
|
19
|
+
Required: `browser`, `screenshot`, `image-review` for user-visible changes.
|
|
20
|
+
Hard fail if the only evidence is a file diff.
|
|
21
|
+
|
|
22
|
+
## Skills
|
|
23
|
+
|
|
24
|
+
`browser-qa`, `testing-qa`, `accessibility-wcag`.
|
|
25
|
+
|
|
26
|
+
## Must not accept
|
|
27
|
+
|
|
28
|
+
- “Reviewed `page.tsx`; layout looks correct.”
|
|
29
|
+
- One desktop screenshot of the happy path.
|
|
30
|
+
- Playwright `toBeVisible` with no image.
|
|
31
|
+
- Skipping mobile, or skipping auth/empty/error when those states exist.
|
|
32
|
+
|
|
33
|
+
## Done when
|
|
34
|
+
|
|
35
|
+
You opened the running app, captured desktop and mobile screenshots, **read the images**, ran applicable tests, and wrote accept / accept-with-nits / reject with image paths under `qa-evidence/`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security
|
|
3
|
+
description: Use for auth, RLS, IDOR, secrets, OWASP, and data-boundary review.
|
|
4
|
+
tools: [repo, edit, terminal, browser]
|
|
5
|
+
requiredTools: [repo, browser]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Security
|
|
9
|
+
|
|
10
|
+
Review auth, RLS, IDOR, secrets, and OWASP risks. Fix only when asked. User-visible auth states need screenshots, not just policy text.
|
|
11
|
+
|
|
12
|
+
## Use when
|
|
13
|
+
|
|
14
|
+
Auth, RLS, Storage policies, service-role usage, Server Actions, webhooks, uploads, external fetches, or secrets.
|
|
15
|
+
|
|
16
|
+
## Tools
|
|
17
|
+
|
|
18
|
+
Allowed: `repo`, `edit`, `terminal`, `browser`.
|
|
19
|
+
Required: read the code and exercise login/logout/denied paths in the browser when the change is user-visible.
|
|
20
|
+
RLS/SQL-only findings may stay code + tests.
|
|
21
|
+
|
|
22
|
+
## Skills
|
|
23
|
+
|
|
24
|
+
`owasp-security-review`, `supabase-auth-rls`, `postgres-migrations`.
|
|
25
|
+
|
|
26
|
+
## Done when
|
|
27
|
+
|
|
28
|
+
Access control is enforced in Postgres or the server, not only in the UI. Login, redirect, and denied states were checked in the browser when they exist. Secrets stay server-only.
|
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Use
|
|
3
|
-
globs:
|
|
4
|
-
- "**/*"
|
|
2
|
+
description: Use the installed agents and skills. QA must review screenshots, not code alone.
|
|
5
3
|
alwaysApply: true
|
|
6
4
|
---
|
|
7
5
|
|
|
8
|
-
#
|
|
6
|
+
# Agents And Skills
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
Read `AGENTS.md` and `USER_GUIDE.md`. Delegate to `.cursor/agents/` instead of playing every role in one chat.
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
A user-visible change is not done until someone opened the running UI, captured desktop and mobile screenshots, and reviewed those images. Reading TSX is not QA.
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
- Core changes require Lead Architect.
|
|
16
|
-
- Frontend changes require Frontend Design Lead, brand/content intake, creative-direction rationale, visual QA evidence, state coverage, accessibility checks, and desktop/mobile verification.
|
|
17
|
-
- Auth, RLS, data mutation, dependency, external-call, secret, and release-risk changes require Security Reviewer.
|
|
18
|
-
- Behavior changes require QA evidence.
|
|
19
|
-
- Significant changes require living markdown updates.
|
|
20
|
-
- Meaningful work should read project context and active corrections first.
|
|
21
|
-
- Human corrections should be recorded before continuing and promoted to durable project or agent correction rules when they should affect future work.
|
|
22
|
-
- Meaningful multi-agent work should use `agent-kit session checkpoint --file <json>` or individual `agent-kit session ...` commands and render Markdown evidence when available.
|
|
23
|
-
- For council work, delegate to the matching project subagent in `.cursor/agents/` instead of role-playing every role in the main thread.
|
|
24
|
-
|
|
25
|
-
## Validation
|
|
26
|
-
|
|
27
|
-
Run `agent-kit audit --min-readiness baseline-setup` for setup validity. Use `agent-kit audit --min-readiness best-practice-candidate` only when project-specific evidence has replaced starter placeholders.
|
|
28
|
-
|
|
29
|
-
This Cursor rule is an instruction adapter, not proof that the executable council ran. Use `agent-kit orchestrate validate` and `agent-kit orchestrate status` for runtime evidence. A Cursor executor route additionally requires `cursor.enabled`, `sandbox.allowHostMutations`, an isolated worktree, and explicit host-mutation approval.
|
|
30
|
-
|
|
31
|
-
## Model Selection
|
|
32
|
-
|
|
33
|
-
Use Cursor's active model picker or team model policy with the profile in `MODEL_ROUTING.md`. Treat this rule as advisory unless the active Cursor environment provides enforceable model controls.
|
|
12
|
+
Use `@planner` to pick an owner. Use `@qa` with the `browser-qa` skill for any screen.
|
package/catalog.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"defaultAgents": ["planner", "app-engineer", "security", "design", "qa", "copy"],
|
|
4
|
+
"optionalAgents": ["lead-architect", "docs", "deploy", "research"],
|
|
5
|
+
"defaultSkills": [
|
|
6
|
+
"planning",
|
|
7
|
+
"nextjs-app-router",
|
|
8
|
+
"supabase-auth-rls",
|
|
9
|
+
"postgres-migrations",
|
|
10
|
+
"owasp-security-review",
|
|
11
|
+
"frontend-design",
|
|
12
|
+
"accessibility-wcag",
|
|
13
|
+
"browser-qa",
|
|
14
|
+
"testing-qa",
|
|
15
|
+
"product-copy",
|
|
16
|
+
"ship"
|
|
17
|
+
],
|
|
18
|
+
"optionalSkills": ["ui-polish", "docs", "upgrade", "debug"],
|
|
19
|
+
"screenshotFailClosed": "A user-visible change is not done until someone opened the running UI, captured desktop and mobile screenshots, and reviewed those images."
|
|
20
|
+
}
|