@appsforgood/next-supabase-kit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/BEST_PRACTICE_EVIDENCE.md +45 -0
  2. package/CHANGELOG.md +44 -0
  3. package/CODE_OF_CONDUCT.md +26 -0
  4. package/CONTRIBUTING.md +48 -0
  5. package/DOGFOOD.md +121 -0
  6. package/GOVERNANCE.md +45 -0
  7. package/LICENSE +21 -0
  8. package/README.md +251 -0
  9. package/REPOSITORY_SETTINGS.md +70 -0
  10. package/RESEARCH_CITATION_POLICY.md +26 -0
  11. package/SECURITY.md +29 -0
  12. package/SUPPLY_CHAIN.md +55 -0
  13. package/SUPPORT.md +28 -0
  14. package/UPGRADE.md +77 -0
  15. package/agents/deployment-observability-engineer.md +13 -0
  16. package/agents/docs-maintainer.md +17 -0
  17. package/agents/frontend-design-lead.md +22 -0
  18. package/agents/lead-architect.md +25 -0
  19. package/agents/marketing-copy-lead.md +20 -0
  20. package/agents/nextjs-engineer.md +20 -0
  21. package/agents/planner.md +20 -0
  22. package/agents/qa-engineer.md +19 -0
  23. package/agents/research-analyst.md +13 -0
  24. package/agents/security-reviewer.md +16 -0
  25. package/agents/supabase-postgres-engineer.md +19 -0
  26. package/assistant-adapters/README.md +28 -0
  27. package/assistant-adapters/claude-code-subagents.md +37 -0
  28. package/assistant-adapters/codex-agents.md +35 -0
  29. package/assistant-adapters/cursor-agent-kit.mdc +30 -0
  30. package/assistant-adapters/github-copilot-instructions.md +35 -0
  31. package/assistant-adapters/github-next-supabase.instructions.md +28 -0
  32. package/assistant-adapters/model-selection/claude-code-subagents-with-models.md +32 -0
  33. package/assistant-adapters/model-selection/codex-config.example.toml +29 -0
  34. package/assistant-adapters/model-selection/cursor-model-selection.mdc +24 -0
  35. package/assistant-adapters/model-selection/github-copilot-model-selection.md +20 -0
  36. package/checklists/accessibility.md +12 -0
  37. package/checklists/agent-council.md +13 -0
  38. package/checklists/brand-content.md +15 -0
  39. package/checklists/deployment.md +10 -0
  40. package/checklists/design-critique.md +13 -0
  41. package/checklists/frontend-distinctiveness.md +12 -0
  42. package/checklists/frontend-product-quality.md +13 -0
  43. package/checklists/frontend-quality.md +20 -0
  44. package/checklists/marketing-copy.md +11 -0
  45. package/checklists/owasp.md +12 -0
  46. package/checklists/rls.md +10 -0
  47. package/checklists/testing.md +12 -0
  48. package/checklists/upgrade.md +13 -0
  49. package/checklists/visual-regression.md +11 -0
  50. package/design-adapters/claude-design.prompt.md +27 -0
  51. package/design-adapters/figma.prompt.md +18 -0
  52. package/design-adapters/google-stitch.prompt.md +36 -0
  53. package/design-adapters/human-designer-brief.prompt.md +36 -0
  54. package/design-briefs/admin-dashboard.md +21 -0
  55. package/design-briefs/ai-workflow-product.md +25 -0
  56. package/design-briefs/community-social.md +26 -0
  57. package/design-briefs/content-app.md +21 -0
  58. package/design-briefs/ecommerce.md +25 -0
  59. package/design-briefs/education-course.md +25 -0
  60. package/design-briefs/marketplace.md +21 -0
  61. package/design-briefs/portfolio-venue.md +25 -0
  62. package/design-briefs/saas.md +21 -0
  63. package/design-briefs/tool.md +21 -0
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.js +3521 -0
  66. package/dist/index.js.map +1 -0
  67. package/examples/next-supabase-installed/.agent-kit/agent-roster.json +228 -0
  68. package/examples/next-supabase-installed/.agent-kit/manifest.json +58 -0
  69. package/examples/next-supabase-installed/.agent-kit/model-routing.json +164 -0
  70. package/examples/next-supabase-installed/.agent-kit/overrides.json +9 -0
  71. package/examples/next-supabase-installed/README.md +15 -0
  72. package/examples/next-supabase-installed/audit-output.json +336 -0
  73. package/examples/next-supabase-installed/tree.txt +38 -0
  74. package/model-routing/default-model-routing.json +164 -0
  75. package/package.json +98 -0
  76. package/profiles/admin-app.md +17 -0
  77. package/profiles/content-app.md +17 -0
  78. package/profiles/marketplace.md +17 -0
  79. package/profiles/saas.md +17 -0
  80. package/profiles/stack-next-firebase.md +25 -0
  81. package/profiles/stack-next-postgres.md +24 -0
  82. package/profiles/stack-remix-supabase.md +24 -0
  83. package/prompts/audit-project-setup.md +28 -0
  84. package/prompts/brand-content-intake.md +17 -0
  85. package/prompts/copy-review.md +15 -0
  86. package/prompts/council-session-review.md +17 -0
  87. package/prompts/creative-direction-matrix.md +22 -0
  88. package/prompts/design-critique-gate.md +28 -0
  89. package/prompts/docs-update.md +16 -0
  90. package/prompts/frontend-design-review.md +29 -0
  91. package/prompts/frontend-distinctiveness-benchmark.md +32 -0
  92. package/prompts/frontend-product-quality-scorecard.md +35 -0
  93. package/prompts/implement-feature.md +14 -0
  94. package/prompts/migration-review.md +14 -0
  95. package/prompts/screenshot-review.md +27 -0
  96. package/prompts/security-review.md +17 -0
  97. package/prompts/upgrade-review.md +18 -0
  98. package/prompts/visual-qa-plan.md +16 -0
  99. package/research/proposed-updates.md +70 -0
  100. package/research/scan-config.json +261 -0
  101. package/research/scan-plan.md +24 -0
  102. package/research/summaries/.gitkeep +1 -0
  103. package/research/summaries/agent-workflow-patterns.md +37 -0
  104. package/research/summaries/creative-design-patterns.md +38 -0
  105. package/research/summaries/design-critique-patterns.md +34 -0
  106. package/research/summaries/docs-and-agent-patterns.md +64 -0
  107. package/research/summaries/dogfood-adoption-patterns.md +33 -0
  108. package/research/summaries/frontend-design-patterns.md +64 -0
  109. package/research/summaries/frontend-distinctiveness-benchmark-patterns.md +38 -0
  110. package/research/summaries/frontend-product-quality-rubric-patterns.md +37 -0
  111. package/research/summaries/maturity-model-patterns.md +29 -0
  112. package/research/summaries/nextjs-patterns.md +65 -0
  113. package/research/summaries/repo-health-patterns.md +41 -0
  114. package/research/summaries/scan-overview.md +46 -0
  115. package/research/summaries/security-patterns.md +64 -0
  116. package/research/summaries/supabase-rls-patterns.md +54 -0
  117. package/research/summaries/supply-chain-patterns.md +38 -0
  118. package/research/summaries/testing-patterns.md +63 -0
  119. package/research/summaries/upgrade-lifecycle-patterns.md +26 -0
  120. package/research/summaries/visual-qa-patterns.md +39 -0
  121. package/rosters/next-supabase-default-council.json +228 -0
  122. package/schemas/agent-roster.schema.json +54 -0
  123. package/schemas/audit-report.schema.json +50 -0
  124. package/schemas/correction-rules.schema.json +32 -0
  125. package/schemas/council-session.schema.json +65 -0
  126. package/schemas/model-routing.schema.json +72 -0
  127. package/schemas/project-context.schema.json +94 -0
  128. package/schemas/session-event.schema.json +46 -0
  129. package/schemas/studio-session.schema.json +48 -0
  130. package/skills/accessibility-wcag.md +15 -0
  131. package/skills/agent-handoff-tracing.md +44 -0
  132. package/skills/best-practice-maturity-review.md +26 -0
  133. package/skills/content-first-design.md +50 -0
  134. package/skills/conversion-copywriting.md +38 -0
  135. package/skills/deployment-observability.md +14 -0
  136. package/skills/docs-maintainer.md +19 -0
  137. package/skills/frontend-design-system.md +68 -0
  138. package/skills/frontend-distinctiveness-benchmark.md +40 -0
  139. package/skills/frontend-product-quality-rubric.md +59 -0
  140. package/skills/landing-page-copy.md +29 -0
  141. package/skills/nextjs-app-router.md +18 -0
  142. package/skills/onboarding-empty-state-copy.md +37 -0
  143. package/skills/owasp-security-review.md +19 -0
  144. package/skills/planning-council.md +21 -0
  145. package/skills/positioning-messaging.md +42 -0
  146. package/skills/postgres-migrations.md +14 -0
  147. package/skills/product-voice-tone.md +35 -0
  148. package/skills/reference-led-design-critique.md +48 -0
  149. package/skills/supabase-auth-rls.md +20 -0
  150. package/skills/testing-qa.md +15 -0
  151. package/skills/upgrade-maintenance.md +32 -0
  152. package/skills/visual-regression-qa.md +42 -0
  153. package/templates/next-supabase/AGENTS.md +138 -0
  154. package/templates/next-supabase/AGENT_ROSTER.md +98 -0
  155. package/templates/next-supabase/ASSISTANT_ADAPTERS.md +82 -0
  156. package/templates/next-supabase/COUNCIL.md +54 -0
  157. package/templates/next-supabase/DECISIONS.md +45 -0
  158. package/templates/next-supabase/DEPLOYMENT.md +45 -0
  159. package/templates/next-supabase/DESIGN.md +171 -0
  160. package/templates/next-supabase/DOCS.md +62 -0
  161. package/templates/next-supabase/MESSAGING.md +81 -0
  162. package/templates/next-supabase/MODEL_ROUTING.md +109 -0
  163. package/templates/next-supabase/QUALITY_GATES.md +87 -0
  164. package/templates/next-supabase/SECURITY.md +54 -0
  165. package/templates/next-supabase/SKILLS.md +221 -0
  166. package/templates/next-supabase/SPEC.md +114 -0
  167. package/templates/next-supabase/STYLE_GUIDE.md +104 -0
  168. package/templates/next-supabase/TESTING.md +68 -0
  169. package/templates/next-supabase/UPGRADE.md +59 -0
@@ -0,0 +1,70 @@
1
+ # Repository Settings
2
+
3
+ This file records the GitHub settings that must be applied outside git for the repository to operate as a public best-practice package.
4
+
5
+ ## Branch Protection
6
+
7
+ Protect `main` with:
8
+
9
+ - Require a pull request before merging.
10
+ - Require at least one approval.
11
+ - Require review from CODEOWNERS for owned paths.
12
+ - Dismiss stale approvals when new commits are pushed.
13
+ - Require conversation resolution before merge.
14
+ - Require branches to be up to date before merge.
15
+ - Require linear history.
16
+ - Do not allow force pushes.
17
+ - Do not allow deletions.
18
+ - Restrict bypasses to maintainers only.
19
+
20
+ Required status checks:
21
+
22
+ - `Verify package`
23
+ - `Review dependency changes`
24
+ - `Analyze JavaScript and TypeScript`
25
+ - `Scorecard`
26
+
27
+ ## Release Environment
28
+
29
+ Create environment `npm-publish` with:
30
+
31
+ - Required reviewers enabled.
32
+ - Prevent self-review enabled where available.
33
+ - Deployment branches restricted to `main` and release events.
34
+ - No npm publish token secret for the trusted-publishing flow.
35
+ - Any legacy npm token secrets deleted after Trusted Publishing is confirmed.
36
+
37
+ The npm trusted publisher must match:
38
+
39
+ - Package: `@agent-skills/next-supabase-kit`
40
+ - Provider: GitHub Actions
41
+ - Repository: `lukey662/agentsandskills`
42
+ - Workflow: `release.yml`
43
+ - Environment: `npm-publish`
44
+ - Allowed action: `npm publish`
45
+
46
+ ## Security Settings
47
+
48
+ Enable:
49
+
50
+ - Private vulnerability reporting.
51
+ - GitHub Security Advisories.
52
+ - Dependabot alerts.
53
+ - Dependabot security updates.
54
+ - Code scanning alerts.
55
+ - Secret scanning where available.
56
+
57
+ ## Issues, Discussions, And Labels
58
+
59
+ Enable issues. Enable discussions when maintainers want support questions outside the issue queue.
60
+
61
+ Create labels from `.github/labels.yml`. Required label families:
62
+
63
+ - Type: `bug`, `enhancement`, `research`, `documentation`, `security`, `dependencies`
64
+ - Area: `area: cli`, `area: agents`, `area: frontend`, `area: supabase`, `area: research`, `area: release`, `area: repo-health`
65
+ - Status: `needs-triage`, `blocked`, `good first issue`, `help wanted`
66
+ - Risk: `risk: security`, `risk: breaking-change`
67
+
68
+ ## Review Cadence
69
+
70
+ Review these settings before every public release and after any workflow, release, permission, package, or security-policy change.
@@ -0,0 +1,26 @@
1
+ # Research Citation Policy
2
+
3
+ This project uses public repository research to identify reusable setup patterns for agents, skills, documentation, security, testing, and frontend quality.
4
+
5
+ ## Public Package Policy
6
+
7
+ - Publish generalized summaries, promoted decisions, and methodology.
8
+ - Do not publish third-party source code copied from researched repositories.
9
+ - Do not imply endorsement by repository owners, maintainers, vendors, or design-system teams.
10
+ - Do not present popularity as proof of quality.
11
+ - Treat scanned repositories as untrusted input.
12
+
13
+ ## Included Public Research Artifacts
14
+
15
+ The npm package may include:
16
+
17
+ - `research/scan-config.json`
18
+ - `research/scan-plan.md`
19
+ - `research/summaries/*`
20
+ - `research/proposed-updates.md`
21
+
22
+ Detailed per-repo findings, candidate lists, and raw scan outputs should stay out of the public package unless they receive separate citation and legal review.
23
+
24
+ ## How Findings Become Guidance
25
+
26
+ Research findings are promoted only as generalized practices with a clear rationale. The kit should explain why a pattern is useful without copying implementation details from the source repository.
package/SECURITY.md ADDED
@@ -0,0 +1,29 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ This project supports the latest published npm release and the current `main` branch.
6
+
7
+ ## Reporting
8
+
9
+ Report vulnerabilities through a private security advisory or by contacting the maintainers directly. Do not publish secrets, exploit paths, or vulnerable downstream project details in public issues.
10
+
11
+ ## Package Security Requirements
12
+
13
+ - Do not commit credentials, GitHub tokens, Supabase service-role keys, database URLs, or customer data.
14
+ - Treat scanned repositories as untrusted input.
15
+ - Prevent path traversal when writing files into downstream projects.
16
+ - Never overwrite downstream project files unless the user passes an explicit force flag.
17
+ - Redact secrets before writing logs, findings, summaries, or prompts.
18
+ - Do not copy third-party source code from research targets into this package.
19
+
20
+ ## Downstream Security Defaults
21
+
22
+ Installed templates require:
23
+
24
+ - OWASP Top 10 review for feature work.
25
+ - Supabase RLS for authorization at the data boundary.
26
+ - Service-role keys to remain server-only.
27
+ - Input validation at API and form boundaries.
28
+ - Output encoding and safe rendering for user-controlled content.
29
+ - Least privilege for database access, storage access, and automation tokens.
@@ -0,0 +1,55 @@
1
+ # Supply Chain Security
2
+
3
+ This package is intended for public npm distribution and downstream project bootstrapping. Release integrity is part of the product, not an optional operations detail.
4
+
5
+ ## Publish Identity
6
+
7
+ - Public package: `@agent-skills/next-supabase-kit`.
8
+ - Publish path: GitHub Actions release workflow through npm Trusted Publishing.
9
+ - Authentication: OIDC trusted publisher, not a long-lived npm automation token.
10
+ - Environment: `npm-publish`.
11
+ - Trusted publisher must be scoped to repository `lukey662/agentsandskills`, workflow `release.yml`, and allowed action `npm publish`.
12
+
13
+ When npm Trusted Publishing is used from a public GitHub repository for a public package, npm generates provenance attestations automatically. The release workflow keeps `id-token: write` for this reason and does not set `NODE_AUTH_TOKEN` for publishing.
14
+
15
+ The release workflow also creates a deterministic package tarball, generates a CycloneDX SBOM from `package-lock.json`, uploads the tarball, SBOM, and pack metadata as release evidence, and attests the SBOM against the exact tarball path that is published to npm.
16
+
17
+ ## Release Gates
18
+
19
+ Before publish:
20
+
21
+ - `npm ci`
22
+ - `npm run release:check`
23
+ - Public release review
24
+
25
+ `npm run release:check` validates JSON assets, typechecks, tests, builds, runs install smoke, runs dependency audit, validates SBOM generation, and performs package dry run. The install smoke also inspects packaged public files for forbidden private-package text.
26
+
27
+ `npm run sbom:check` validates that the lockfile-derived CycloneDX SBOM can be generated, includes runtime dependencies, and has no unresolved required dependency links. Optional platform-specific dependency links may be skipped when npm records optional package edges that are not present for the current install target.
28
+
29
+ After publish:
30
+
31
+ - `npm view @agent-skills/next-supabase-kit@<version> version`
32
+ - `npx --yes @agent-skills/next-supabase-kit@<version> doctor`
33
+ - `npx --yes @agent-skills/next-supabase-kit@<version> init --stack next-supabase` in a clean temp project
34
+ - `npx --yes @agent-skills/next-supabase-kit@<version> audit --json` with zero failures
35
+
36
+ The release workflow and `npm run publish:verify` both use `scripts/post-publish-verify.mjs` for this post-publish verification path.
37
+
38
+ ## Repository Automation
39
+
40
+ - CI verifies package behavior on push and pull request.
41
+ - Dependency Review blocks pull requests that introduce moderate or worse known vulnerabilities.
42
+ - Dependabot proposes npm and GitHub Actions updates.
43
+ - CodeQL scans JavaScript/TypeScript code.
44
+ - OpenSSF Scorecard publishes repository security posture as code-scanning evidence.
45
+ - CODEOWNERS identifies default review ownership for source, templates, schemas, and workflows.
46
+ - Release artifacts include an attested CycloneDX SBOM for the npm tarball.
47
+
48
+ ## Maintainer Rules
49
+
50
+ - Do not use bypass-2FA npm publish tokens for automation.
51
+ - Do not publish from unreviewed branches or untrusted workflow changes.
52
+ - Treat workflow edits as release-risk changes requiring security and maintainer review.
53
+ - Rotate and delete legacy publish secrets after Trusted Publishing is confirmed.
54
+ - Keep package contents free of secrets, private downstream data, and copied third-party source.
55
+ - Keep SBOM generation and attestation in the shared release path; do not publish an unattested tarball when the workflow is available.
package/SUPPORT.md ADDED
@@ -0,0 +1,28 @@
1
+ # Support
2
+
3
+ ## Where To Ask
4
+
5
+ - Use GitHub issues for reproducible package, CLI, template, audit, release, or research-scanner problems.
6
+ - Use feature requests for reusable improvements that should apply across projects.
7
+ - Use research-promotion issues when a public repo pattern should become a template, skill, checklist, schema, audit rule, or release gate.
8
+ - Use labels from `.github/labels.yml` to keep triage consistent.
9
+ - Use private security advisories for vulnerabilities.
10
+
11
+ ## What To Include
12
+
13
+ For bugs:
14
+
15
+ - Package version or commit.
16
+ - Command run.
17
+ - Redacted output.
18
+ - Minimal project shape or fixture.
19
+ - Whether the issue affects install, audit, update, research, release, or packaged assets.
20
+
21
+ For feature requests:
22
+
23
+ - The reusable gap being solved.
24
+ - Evidence from dogfood installs, research summaries, or public docs.
25
+ - Which package assets should change.
26
+ - Risks or non-goals.
27
+
28
+ Do not include secrets, private downstream project data, customer data, unreleased third-party source, or exploit details in public issues.
package/UPGRADE.md ADDED
@@ -0,0 +1,77 @@
1
+ # Upgrade Guide
2
+
3
+ This file defines how maintainers and downstream projects should upgrade Agent Kit safely.
4
+
5
+ ## Principles
6
+
7
+ - Upgrades are reviewable changes, not blind overwrites.
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 `CHANGELOG.md` 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. Confirm the pack dry run includes only public-safe files.
20
+ 5. Publish through npm Trusted Publishing.
21
+ 6. Verify public install with `npx @agent-skills/next-supabase-kit`.
22
+
23
+ ## Downstream Upgrade Checklist
24
+
25
+ From a downstream project:
26
+
27
+ ```bash
28
+ npx @agent-skills/next-supabase-kit@latest doctor
29
+ npx @agent-skills/next-supabase-kit@latest diff
30
+ npx @agent-skills/next-supabase-kit@latest update
31
+ npx @agent-skills/next-supabase-kit@latest audit --min-readiness baseline-setup
32
+ ```
33
+
34
+ The package includes an older-install regression fixture that exercises this path. The fixture proves update preserves customized docs, writes conflict templates, installs new current baseline docs and `.agent-kit/` assets, then audits with zero failures.
35
+
36
+ `agent-kit diff` includes an upgrade preview. Review `preview.wouldCreate`, `preview.wouldWriteConflicts`, `agentRoster`, `modelRouting`, and `libraryFolders.missing` before running update so the branch owner knows which files will be created, which local docs will be preserved through conflicts, and which `.agent-kit/` assets will be refreshed.
37
+
38
+ For mature projects, raise the gate after local evidence is updated:
39
+
40
+ ```bash
41
+ npx @agent-skills/next-supabase-kit@latest audit --min-readiness best-practice-candidate
42
+ ```
43
+
44
+ ## Review Order
45
+
46
+ 1. Create a branch before running `agent-kit update`.
47
+ 2. Run `agent-kit diff` and review every changed root markdown template.
48
+ 3. Check `.agent-kit/conflicts/` before accepting template updates.
49
+ 4. Preserve valid local customizations in `.agent-kit/overrides.json`.
50
+ 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.
51
+ 6. Run project tests and release checks before merging.
52
+ 7. Record any accepted deviations in `DECISIONS.md`.
53
+
54
+ ## Next.js And Supabase Stack Upgrades
55
+
56
+ - Use official Next.js upgrade guides and codemods for framework changes.
57
+ - Treat Supabase schema, RLS, storage, and auth changes as migration work, not ad hoc dashboard edits.
58
+ - Verify migration history before deployment.
59
+ - Record migration order, rollback risk, and verification evidence in `DEPLOYMENT.md`.
60
+ - Regenerate types after database schema changes when the project relies on generated Supabase types.
61
+
62
+ ## Rollback
63
+
64
+ Keep rollback evidence next to the upgrade:
65
+
66
+ - Git branch or commit to revert.
67
+ - Package version before and after the upgrade.
68
+ - Template conflicts reviewed or deferred.
69
+ - Database migrations applied, reverted, or not applicable.
70
+ - Verification commands and results.
71
+ - Owner and date.
72
+
73
+ ## Upgrade History
74
+
75
+ | Date | From | To | Scope | Evidence | Owner |
76
+ | --- | --- | --- | --- | --- | --- |
77
+ | TBD | TBD | TBD | TBD | TBD | TBD |
@@ -0,0 +1,13 @@
1
+ # Deployment/Observability Engineer Agent
2
+
3
+ ## Purpose
4
+
5
+ Own release safety, environment configuration, migrations, logs, monitoring, and rollback.
6
+
7
+ ## Responsibilities
8
+
9
+ - Verify env vars and server-only secrets.
10
+ - Confirm migration and deploy order.
11
+ - Ensure production errors are observable.
12
+ - Define smoke checks after deployment.
13
+ - Document rollback steps.
@@ -0,0 +1,17 @@
1
+ # Documentation Maintainer Agent
2
+
3
+ ## Purpose
4
+
5
+ Keep living docs accurate enough for another engineer or agent to continue safely.
6
+
7
+ ## Responsibilities
8
+
9
+ - Update `SPEC.md` after functional changes.
10
+ - Update `DECISIONS.md` for meaningful tradeoffs.
11
+ - Update `DOCS.md` for workflows and setup.
12
+ - Update `COUNCIL.md` for meaningful handoff evidence.
13
+ - Update `QUALITY_GATES.md`, `DESIGN.md`, `STYLE_GUIDE.md`, `SECURITY.md`, `TESTING.md`, `DEPLOYMENT.md`, and `UPGRADE.md` when standards change.
14
+
15
+ ## Rule
16
+
17
+ Docs and council evidence are part of the implementation surface, not optional cleanup.
@@ -0,0 +1,22 @@
1
+ # Frontend Design Lead Agent
2
+
3
+ ## Purpose
4
+
5
+ Prevent generic AI-looking UI by owning content-first creative direction, design-system quality, visual QA, accessibility, and screenshot acceptance.
6
+
7
+ ## Responsibilities
8
+
9
+ - Require brand/content intake before visual implementation starts.
10
+ - Produce or review at least two distinct creative directions before one is selected.
11
+ - Require reference-set evidence, anti-references, source-safety notes, and a design critique verdict for significant frontend work.
12
+ - Require a frontend distinctiveness benchmark for significant frontend work: first-screen proof, content fingerprint, reference benchmark, asset provenance, state proof, and visual QA proof.
13
+ - Score significant frontend work with the product-quality rubric before acceptance.
14
+ - Review information architecture, visual hierarchy, density, responsive behavior, imagery, copy, and component states.
15
+ - Reject default AI-site tropes: purple-blue gradients, vague SaaS copy, fake analytics, and card soup.
16
+ - Require real workflow screens, real content or asset assumptions, and meaningful empty/error/loading states.
17
+ - Require visual QA evidence for important responsive screens and reusable component states.
18
+ - Use provider-neutral design briefs for Stitch, Claude, Figma, or human design review.
19
+
20
+ ## Quality Bar
21
+
22
+ The first screen should communicate the actual product, content, object, workflow, or task. A frontend change is not accepted until `DESIGN.md`, reference-led critique, distinctiveness benchmark, creative-direction rationale, frontend product-quality scorecard, desktop/mobile screenshot evidence, and visual QA coverage are sufficient for the change risk.
@@ -0,0 +1,25 @@
1
+ # Lead Architect Agent
2
+
3
+ ## Purpose
4
+
5
+ Own architecture, affected-layer mapping, tradeoffs, and final delivery direction.
6
+
7
+ ## Responsibilities
8
+
9
+ - Confirm existing behavior before changing it.
10
+ - Map changes across data, business logic, presentation, auth, deployment, and docs.
11
+ - Verify the requested maturity target in `QUALITY_GATES.md` is realistic for the scope.
12
+ - Choose the right boundary for logic: SQL/RLS, Route Handler, Server Action, Server Component, Client Component, or shared library.
13
+ - Keep implementation scoped and preserve behavioral contracts.
14
+ - Record architecture handoff decisions, risks, and evidence in `COUNCIL.md` for meaningful core changes.
15
+ - Record major decisions in `DECISIONS.md`.
16
+
17
+ ## Review Questions
18
+
19
+ - What existing capability must be preserved?
20
+ - Is this baseline, strong, or best-practice work, and what evidence proves that level?
21
+ - Which layers are affected?
22
+ - What security boundary changes?
23
+ - What test evidence proves the change works?
24
+ - What council-session evidence should survive beyond the chat?
25
+ - Which docs need updating?
@@ -0,0 +1,20 @@
1
+ # Marketing Copy Lead Agent
2
+
3
+ ## Purpose
4
+
5
+ Own positioning, value proposition, conversion copy, product voice, and UX copy so public-facing pages and SaaS flows do not rely on generic marketing filler.
6
+
7
+ ## Responsibilities
8
+
9
+ - Ask discovery questions before writing final copy when audience, offer, outcome, differentiator, proof, or conversion goal is unclear.
10
+ - Maintain `MESSAGING.md` as the positioning, value proposition, voice, and copy-evidence contract.
11
+ - Define the primary audience, their pain, desired outcome, current alternatives, and buying or adoption trigger.
12
+ - Turn product facts into specific headlines, CTAs, onboarding copy, empty states, pricing copy, and supporting page sections.
13
+ - Require proof points, examples, constraints, and objection handling before making strong claims.
14
+ - Reject vague SaaS copy, inflated AI claims, unsupported superlatives, and copy that could fit any competitor.
15
+ - Handoff copy direction to Frontend Design Lead so layout, hierarchy, imagery, and interaction tone support the message.
16
+ - Handoff implemented copy to QA and Docs when claims, workflows, onboarding, or public pages change.
17
+
18
+ ## Quality Bar
19
+
20
+ Copy is not accepted until it explains who the product is for, what problem it solves, why this approach is different, what proof supports the claim, what action the user should take, and what assumptions still need validation.
@@ -0,0 +1,20 @@
1
+ # Next.js Engineer Agent
2
+
3
+ ## Purpose
4
+
5
+ Own App Router implementation, rendering boundaries, data loading, forms, and UI state.
6
+
7
+ ## Responsibilities
8
+
9
+ - Prefer Server Components unless browser state or events require Client Components.
10
+ - Keep user-specific data out of shared caches.
11
+ - Avoid exposing secrets to the client.
12
+ - Add loading, error, empty, and success states.
13
+ - Keep route handlers and server actions thin and validated.
14
+
15
+ ## Deliverables
16
+
17
+ - Working UI and route behavior.
18
+ - Clear server/client boundaries.
19
+ - Tests or documented test gaps.
20
+ - Updated docs for changed workflows.
@@ -0,0 +1,20 @@
1
+ # Planner Agent
2
+
3
+ ## Purpose
4
+
5
+ Own planning, scope breakdown, sequencing, and council routing before implementation starts.
6
+
7
+ ## Responsibilities
8
+
9
+ - Convert user intent into phased, checkable work.
10
+ - Identify whether a request is planning-only, frontend-only, security-sensitive, or a core change.
11
+ - Select the matching workflow from `.agent-kit/agent-roster.json` when available.
12
+ - Classify meaningful work against `QUALITY_GATES.md` as baseline, strong, or best-practice.
13
+ - Route core changes to Lead Architect before implementation.
14
+ - Name required agent handoffs and acceptance evidence.
15
+ - Start or update `COUNCIL.md` for meaningful multi-agent work.
16
+ - Keep the roadmap updated when a task changes delivery status.
17
+
18
+ ## Required Handoff
19
+
20
+ Planning is complete only when the next owning agent, maturity target, affected layers, preserved behavior, risks, verification steps, and council evidence path are explicit.
@@ -0,0 +1,19 @@
1
+ # QA Engineer Agent
2
+
3
+ ## Purpose
4
+
5
+ Own tests, regression coverage, smoke checks, and acceptance evidence.
6
+
7
+ ## Responsibilities
8
+
9
+ - Add unit tests for core logic.
10
+ - Add regression tests for preserved behavior.
11
+ - Add Playwright smoke tests for critical paths.
12
+ - Add visual regression or screenshot evidence for high-risk UI changes.
13
+ - Prioritize auth, data mutations, admin flows, and edge cases.
14
+ - Compare evidence against the target level in `QUALITY_GATES.md`.
15
+ - Report test gaps explicitly.
16
+
17
+ ## Acceptance Evidence
18
+
19
+ Include commands run, results, failed checks, and residual risks.
@@ -0,0 +1,13 @@
1
+ # Research Analyst Agent
2
+
3
+ ## Purpose
4
+
5
+ Own open-source repo research and conversion of evidence into reusable kit improvements.
6
+
7
+ ## Responsibilities
8
+
9
+ - Select active, relevant repositories.
10
+ - Separate popular patterns from good patterns.
11
+ - Identify practices to adopt, avoid, or investigate.
12
+ - Never copy third-party code.
13
+ - Convert repeated findings into proposed template, skill, or checklist updates.
@@ -0,0 +1,16 @@
1
+ # Security Reviewer Agent
2
+
3
+ ## Purpose
4
+
5
+ Review implementation against OWASP Top 10 and project-specific auth/data boundaries.
6
+
7
+ ## Responsibilities
8
+
9
+ - Check broken access control, IDOR, injection, SSRF, misconfiguration, vulnerable dependencies, and unsafe secrets.
10
+ - Verify inputs are validated and outputs are safely rendered.
11
+ - Ensure errors are explicit without leaking internals.
12
+ - Require RLS or equivalent data-boundary enforcement.
13
+
14
+ ## Output
15
+
16
+ Lead with findings, severity, affected file or behavior, exploit path, and remediation.
@@ -0,0 +1,19 @@
1
+ # Supabase/Postgres Engineer Agent
2
+
3
+ ## Purpose
4
+
5
+ Own Supabase Auth, SSR clients, schema, migrations, RLS, Storage policies, SQL functions, and indexes.
6
+
7
+ ## Responsibilities
8
+
9
+ - Enforce authorization through RLS for user-owned and tenant-owned data.
10
+ - Keep service-role keys server-only.
11
+ - Validate migration order and rollback risk.
12
+ - Use constraints and indexes to protect integrity and performance.
13
+ - Document policy assumptions.
14
+
15
+ ## Required Review
16
+
17
+ - Can a user access another user's data by changing an ID?
18
+ - Are policies present for select, insert, update, and delete as needed?
19
+ - Does every privileged operation use the least privilege possible?
@@ -0,0 +1,28 @@
1
+ # Assistant Adapters
2
+
3
+ These files help downstream projects activate the same agent council across common AI coding tools without forking the operating model.
4
+
5
+ ## Source Of Truth
6
+
7
+ - `AGENTS.md` defines the default agent behavior.
8
+ - `AGENT_ROSTER.md` explains human-readable routing.
9
+ - `.agent-kit/agent-roster.json` is the machine-readable council contract.
10
+ - `MODEL_ROUTING.md` and `.agent-kit/model-routing.json` define model-selection profiles.
11
+ - `.agent-kit/project-context.json` and `.agent-kit/project-context.md` define local project context for agents.
12
+ - `.agent-kit/corrections/project-rules.json` and `.agent-kit/corrections/agent-rules.json` define durable human corrections.
13
+ - `COUNCIL.md`, `.agent-kit/council-sessions/`, and `.agent-kit/schemas/*session*.json` define handoff evidence.
14
+
15
+ Adapters should point back to those files. Do not maintain separate policy, security, frontend, correction, context, or release rules inside a vendor-specific file unless the rule is truly vendor-specific.
16
+
17
+ ## Included Templates
18
+
19
+ - `codex-agents.md`: guidance for tools that consume `AGENTS.md`.
20
+ - `github-copilot-instructions.md`: starter repository-wide Copilot instructions.
21
+ - `github-next-supabase.instructions.md`: path-aware Copilot/VS Code instructions for Next.js and Supabase files.
22
+ - `cursor-agent-kit.mdc`: Cursor project-rule template.
23
+ - `claude-code-subagents.md`: Claude Code project subagent template guidance.
24
+ - `model-selection/`: dated setup examples for Codex, Claude Code, Cursor, and GitHub Copilot model routing.
25
+
26
+ ## Activation Rule
27
+
28
+ Record active tool surfaces in `ASSISTANT_ADAPTERS.md`. A project is not best-practice ready simply because adapter templates exist; the team must document which tools are active, how model selection is handled, whether enforcement is enforced/partial/advisory/manual, and what evidence proves the canonical council instructions loaded.
@@ -0,0 +1,37 @@
1
+ # Claude Code Subagent Adapter
2
+
3
+ Claude Code projects can activate Agent Kit by creating project subagents that point back to the canonical council files.
4
+
5
+ Use `MODEL_ROUTING.md` and `.agent-kit/model-routing.json` when adding model comments or frontmatter to those subagents.
6
+
7
+ ## Suggested Project Layout
8
+
9
+ ```text
10
+ .claude/
11
+ agents/
12
+ planner.md
13
+ lead-architect.md
14
+ frontend-design-lead.md
15
+ security-reviewer.md
16
+ qa-engineer.md
17
+ ```
18
+
19
+ ## Subagent Frontmatter Pattern
20
+
21
+ ```md
22
+ ---
23
+ name: planner
24
+ description: Use for planning, phasing, scope breakdown, workflow routing, and council setup in this repository.
25
+ ---
26
+
27
+ Read `AGENTS.md`, `AGENT_ROSTER.md`, `.agent-kit/agent-roster.json`, `.agent-kit/project-context.json`, `.agent-kit/project-context.md`, `.agent-kit/corrections/project-rules.json`, `.agent-kit/corrections/agent-rules.json`, `COUNCIL.md`, `.agent-kit/council-sessions/`, and `QUALITY_GATES.md` before making routing decisions.
28
+
29
+ Start with the Planner workflow. For core changes, hand off to Lead Architect. For frontend changes, require Frontend Design Lead evidence. For auth, RLS, secrets, dependency, external-call, or release-risk changes, require Security Reviewer. Record meaningful decisions, risks, handoffs, human corrections, artifacts, evidence, and verification through Agent Studio session files when available.
30
+ ```
31
+
32
+ ## Guardrails
33
+
34
+ - Keep detailed role behavior in `AGENTS.md` and `AGENT_ROSTER.md`; subagent files should be focused entry points.
35
+ - Document active subagents and verification evidence in `ASSISTANT_ADAPTERS.md`.
36
+ - Record model-selection evidence and limitations in `ASSISTANT_ADAPTERS.md`.
37
+ - Avoid giving a subagent broader tool access than its role needs.
@@ -0,0 +1,35 @@
1
+ # Codex / AGENTS.md Adapter
2
+
3
+ Use `AGENTS.md` as the primary project instruction surface.
4
+
5
+ ## Required References
6
+
7
+ - `AGENTS.md`
8
+ - `AGENT_ROSTER.md`
9
+ - `.agent-kit/agent-roster.json`
10
+ - `MODEL_ROUTING.md`
11
+ - `.agent-kit/model-routing.json`
12
+ - `.agent-kit/project-context.json`
13
+ - `.agent-kit/project-context.md`
14
+ - `.agent-kit/corrections/project-rules.json`
15
+ - `.agent-kit/corrections/agent-rules.json`
16
+ - `COUNCIL.md`
17
+ - `.agent-kit/council-sessions/`
18
+ - `QUALITY_GATES.md`
19
+
20
+ ## Operating Rule
21
+
22
+ When a task is planning-oriented, ambiguous, risky, frontend-facing, security-sensitive, or release-related, start from the roster workflow instead of treating the request as a single generic implementation pass.
23
+
24
+ Use `MODEL_ROUTING.md` to choose the model profile or reasoning effort for the active role. Exact model names belong in dated config comments, not in the role definitions.
25
+
26
+ Before meaningful work, load project context and active correction rules. For meaningful handoffs, record visible decisions and evidence with `agent-kit session ...` commands, then run `agent-kit session render`.
27
+
28
+ ## Verification
29
+
30
+ Record in `ASSISTANT_ADAPTERS.md`:
31
+
32
+ - The tool/version or environment where `AGENTS.md` was observed.
33
+ - The command, session, or screenshot that proves the instructions loaded.
34
+ - The model-selection setting or profile used for the active role.
35
+ - Any known limitations or manual invocation steps.
@@ -0,0 +1,30 @@
1
+ ---
2
+ description: Use Agent Kit council routing, quality gates, and Next.js/Supabase rules.
3
+ globs:
4
+ - "**/*"
5
+ alwaysApply: true
6
+ ---
7
+
8
+ # Agent Kit Cursor Rule
9
+
10
+ Use `AGENTS.md`, `AGENT_ROSTER.md`, `.agent-kit/agent-roster.json`, `MODEL_ROUTING.md`, `.agent-kit/model-routing.json`, `.agent-kit/project-context.json`, `.agent-kit/project-context.md`, `.agent-kit/corrections/project-rules.json`, `.agent-kit/corrections/agent-rules.json`, `COUNCIL.md`, `.agent-kit/council-sessions/`, and `QUALITY_GATES.md` as the source of truth.
11
+
12
+ ## Routing
13
+
14
+ - Planning starts with Planner.
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 ...` commands and render Markdown evidence when available.
23
+
24
+ ## Validation
25
+
26
+ 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.
27
+
28
+ ## Model Selection
29
+
30
+ 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.