@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,45 @@
1
+ # Best-Practice Evidence Matrix
2
+
3
+ This repository treats the 100-repo research pass as input, not proof. A practice only counts as part of the kit when it is promoted into at least one durable artifact and one validation path.
4
+
5
+ ## Evidence Rule
6
+
7
+ - Research findings identify repeated gaps or strong patterns.
8
+ - Promoted behavior must appear in installed templates, agents, skills, checklists, schemas, prompts, or repository workflows.
9
+ - Validation must exist through audit checks, schema contracts, tests, release gates, install smoke, or documented external repository settings.
10
+ - Fresh installs are only `baseline-setup` until project-specific evidence replaces starter placeholders.
11
+
12
+ ## Promotion Matrix
13
+
14
+ | Research signal | Scan evidence | Promoted behavior | Installed or repo artifact | Validation path |
15
+ | --- | --- | --- | --- | --- |
16
+ | Supabase/Auth/RLS expectations are often weak or hard to discover. | 88 of 100 findings had weak or non-discoverable Supabase/Auth/RLS signals. | Make RLS, auth boundaries, service-role isolation, and migration review explicit defaults. | `templates/next-supabase/SECURITY.md`, `templates/next-supabase/SPEC.md`, `skills/supabase-auth-rls.md`, `skills/postgres-migrations.md`, `checklists/rls.md`. | `agent-kit audit`, template hash checks, install smoke, public-readiness tests. |
17
+ | Agent handoff and AI-workflow contracts are immature. | 66 of 100 findings had immature agent handoff or AI-workflow signals. | Require Planner-first routing, Lead Architect ownership for core changes, council handoffs, and evidence records. | `rosters/next-supabase-default-council.json`, `templates/next-supabase/COUNCIL.md`, `schemas/agent-roster.schema.json`, `schemas/council-session.schema.json`, `skills/planning-council.md`, `skills/agent-handoff-tracing.md`. | Roster schema validation, council-session schema validation, `agent-kit audit`, `tests/audit.test.ts`, `tests/public-readiness.test.ts`. |
18
+ | Agent instructions need to load in the tools teams actually use. | Follow-up review of current Codex/AGENTS.md, GitHub Copilot, VS Code, Cursor, and Claude Code instruction surfaces showed that each tool has its own activation path. | Keep the council roster as the source of truth and ship thin adapters for AGENTS.md-compatible tools, Copilot instructions, Cursor rules, and Claude Code subagents. | `templates/next-supabase/ASSISTANT_ADAPTERS.md`, `assistant-adapters/*`, `AGENTS.md`, `AGENT_ROSTER.md`, `.agent-kit/agent-roster.json`. | `agent-kit audit`, public-readiness tests, install smoke, project-specific adapter evidence. |
19
+ | Reusable kits need a safe upgrade lifecycle. | Follow-up review of framework and tooling upgrade practices showed repeated use of upgrade guides, codemods, migration history, diff flows, release notes, and rollback evidence. | Separate initial install from upgrade review and require diff, update, migration, audit, release-note, and rollback evidence. | `UPGRADE.md`, `templates/next-supabase/UPGRADE.md`, `skills/upgrade-maintenance.md`, `checklists/upgrade.md`, `prompts/upgrade-review.md`. | `agent-kit audit`, public-readiness tests, install smoke, release check. |
20
+ | Accessibility evidence is commonly too implicit. | 57 of 100 findings had weak accessibility signals. | Make WCAG-oriented review part of frontend and QA work instead of a late checklist. | `skills/accessibility-wcag.md`, `checklists/accessibility.md`, `checklists/frontend-quality.md`, `templates/next-supabase/TESTING.md`, `templates/next-supabase/STYLE_GUIDE.md`. | Public-readiness tests, install smoke, project maturity evidence in `QUALITY_GATES.md`. |
21
+ | Security expectations are often incomplete. | 54 of 100 findings had implicit or incomplete security expectations. | Treat OWASP, least privilege, input validation, output encoding, dependency risk, and disclosure process as release concerns. | `agents/security-reviewer.md`, `skills/owasp-security-review.md`, `checklists/owasp.md`, `SECURITY.md`, `.github/workflows/codeql.yml`, `.github/workflows/dependency-review.yml`. | `npm audit --audit-level=moderate`, Dependency Review, CodeQL, public-readiness tests, release check. |
22
+ | Reusable components and tokens do not prevent generic AI-looking UI. | Follow-up design review found frontend scoring over-weighted components, tokens, and states. | Require content-first creative direction, brand/content intake, real workflow screens, and screenshot evidence. | `templates/next-supabase/DESIGN.md`, `skills/content-first-design.md`, `skills/frontend-design-system.md`, `agents/frontend-design-lead.md`, `prompts/brand-content-intake.md`, `prompts/creative-direction-matrix.md`, `design-briefs/*`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, screenshot review prompt. |
23
+ | Frontend critique needs reference and distinctiveness evidence. | Follow-up review of design-system and component-state practices showed that strong primitives and screenshots do not prove a product-specific visual direction. | Require reference sets, anti-references, source-safety notes, and a written design critique verdict before accepting significant frontend work. | `skills/reference-led-design-critique.md`, `prompts/design-critique-gate.md`, `checklists/design-critique.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
24
+ | Frontend distinctiveness needs proof, not taste. | Focused follow-up review of design-system, service-design, content, accessibility, and visual-testing guidance showed that a polished UI can still be interchangeable without first-screen proof, content fingerprint, safe reference learning, asset provenance, state proof, and visual QA proof. | Require a frontend distinctiveness benchmark before accepting significant UI work. | `skills/frontend-distinctiveness-benchmark.md`, `prompts/frontend-distinctiveness-benchmark.md`, `checklists/frontend-distinctiveness.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`, `research/summaries/frontend-distinctiveness-benchmark-patterns.md`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
25
+ | Frontend acceptance needs a repeatable product-quality threshold. | Focused follow-up review of design-system, service-design, component-state, and accessibility guidance showed that good primitives do not prove product-specific quality. | Score significant UI work against user/task fit, content specificity, visual identity, information architecture, component states, accessibility and interaction, and source safety. | `skills/frontend-product-quality-rubric.md`, `prompts/frontend-product-quality-scorecard.md`, `checklists/frontend-product-quality.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
26
+ | Visual QA needs a path beyond manual taste review. | Follow-up visual-testing review identified Storybook, Playwright screenshots, Chromatic, Argos, Loki, and baseline evidence as repeatable patterns. | Provide visual QA tiers that scale from screenshot review to regression evidence. | `skills/visual-regression-qa.md`, `checklists/visual-regression.md`, `prompts/visual-qa-plan.md`, `templates/next-supabase/TESTING.md`. | Public-readiness tests, `QUALITY_GATES.md` maturity evidence, downstream visual QA artifacts. |
27
+ | Public OSS maintainability needs more than a package tarball. | Repository-health follow-up identified structured intake, ownership, labels, support, and governance as durable signals. | Ship contributor intake, labels, CODEOWNERS, support, conduct, governance, and repository settings guidance. | `.github/ISSUE_TEMPLATE/*`, `.github/pull_request_template.md`, `.github/CODEOWNERS`, `.github/labels.yml`, `SUPPORT.md`, `GOVERNANCE.md`, `REPOSITORY_SETTINGS.md`. | Public-readiness tests, PR labeler workflow, documented branch and repository settings. |
28
+ | Supply-chain trust must be visible before publish. | Supply-chain follow-up identified OIDC publishing, provenance, dependency review, Scorecard, SBOMs, workflow controls, and release gates. | Use Trusted Publishing, avoid long-lived npm publish tokens, generate and attest a CycloneDX SBOM for the package tarball, and verify release integrity before publish. | `.github/workflows/release.yml`, `.github/workflows/scorecard.yml`, `.github/workflows/dependency-review.yml`, `SUPPLY_CHAIN.md`, `scripts/release-check.mjs`, `scripts/sbom-check.mjs`. | `npm run release:check`, `npm run sbom:check`, OpenSSF Scorecard, Dependency Review, npm Trusted Publishing, SBOM attestation, pack dry run. |
29
+ | Best-practice claims need a maturity model. | Follow-up review showed a green build alone does not prove best-practice readiness. | Separate setup validity from project evidence and best-practice candidacy. | `templates/next-supabase/QUALITY_GATES.md`, `schemas/audit-report.schema.json`, `skills/best-practice-maturity-review.md`, `src/install/audit.ts`. | `agent-kit audit --min-readiness`, audit-report schema validation, install smoke, release check. |
30
+ | Downstream adoption evidence must stay current. | Current read-only dogfood audits of two older installs both produced `11 pass / 20 warn / 7 fail`, proving that later hardening made older installs drift below baseline setup. | Publish a sanitized dogfood summary and keep detailed local-path evidence repo-only. Treat stale dogfood findings as upgrade inputs. | `DOGFOOD.md`, `dogfood/*.md`, `UPGRADE.md`, `agent-kit audit`, `agent-kit update`, `tests/public-readiness.test.ts`. | Public-readiness tests, release check, read-only dogfood audit snapshots, package dry run. |
31
+ | Older installs need a conflict-safe upgrade proof. | Dogfood audits showed both older installs lacked current roster schemas, assistant adapters, maturity gates, upgrade docs, and design critique assets. | Add a deterministic old-install fixture that proves diff previews missing/conflicting assets and update adds missing current assets while preserving customized docs through conflicts. | `tests/update.test.ts`, `src/install/diff.ts`, `src/install/install.ts`, `UPGRADE.md`, `DOGFOOD.md`. | Unit tests, audit report on upgraded fixture, release check. |
32
+ | Public examples must not drift from CLI behavior. | Repeated package hardening changed installed docs, roster messages, manifest hashes, and audit output. Hand-maintained examples can look trustworthy while going stale. | Regenerate a clean install with the built CLI and compare committed example roster, stable manifest fields, audit output, and tree summary before release. | `examples/next-supabase-installed/*`, `scripts/example-check.mjs`, `scripts/release-check.mjs`. | `npm run examples:check`, `npm run release:check`, public-readiness tests. |
33
+ | Package version metadata must agree before release. | Public npm release workflows can publish a package whose lockfile, changelog, or GitHub tag no longer matches `package.json`. | Validate SemVer shape, package-lock root version, changelog section, and release tag before release gates proceed. | `scripts/version-check.mjs`, `package.json`, `package-lock.json`, `CHANGELOG.md`, `.github/workflows/release.yml`. | `npm run version:check`, `npm run release:check`, public-readiness tests. |
34
+
35
+ ## What This Does Not Claim
36
+
37
+ - A fresh install is not a completed best-practice project.
38
+ - The kit does not copy source code, policy wording, or brand systems from reviewed repositories.
39
+ - External settings such as branch protection, npm Trusted Publishing, and private vulnerability reporting still need to be configured in GitHub and npm.
40
+ - Tool-specific adapters still need to be activated in each downstream project and verified in `ASSISTANT_ADAPTERS.md`.
41
+ - Real upgrade evidence still needs to be recorded per downstream project in `UPGRADE.md`.
42
+ - Real frontend quality still requires project-specific content, creative direction, screenshot review, and visual evidence.
43
+ - Real frontend distinctiveness still requires project-specific references, anti-references, source-safety review, and a critique verdict.
44
+ - Real frontend distinctiveness still requires first-screen proof, content fingerprint, asset provenance, state proof, visual QA proof, and product-specific acceptance evidence.
45
+ - Public-safe dogfood summaries do not replace full downstream branch updates, adapter activation, or post-publish `npx` verification.
package/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ - Initial public package scaffold.
6
+ - Added CLI commands for install, audit, diff, update, add skill, doctor, and research workflows.
7
+ - Added Next.js + Supabase markdown templates.
8
+ - Added core agent roles, skills, prompts, checklists, and provider-neutral design adapters.
9
+ - Added CI and public npm release workflows with dry-run validation.
10
+ - Added template-hash manifest tracking and `agent-kit audit --json`.
11
+ - Added compatibility profiles, product-specific design briefs, screenshot review prompt, and sample installed output.
12
+ - Promoted 100-repo research findings from `research/summaries/scan-overview.md` and `research/proposed-updates.md`.
13
+ - Promoted downstream dogfood findings from `dogfood/qrcode-audit.md` and `dogfood/ai-news-audit.md`.
14
+ - Added npm publish-token preflight and prepared draft GitHub Release `v0.1.0`.
15
+ - Fixed package bin metadata so `agent-kit` is preserved during npm publish.
16
+ - Replaced publish-token CI authentication with npm Trusted Publishing and optional read-token install verification.
17
+ - Added a Planner agent, Planning and Agent Council skill, and machine-readable default council roster enforced by audit.
18
+ - Rebranded package for public OSS as `@agent-skills/next-supabase-kit` with MIT license, citation policy, and public-readiness tests.
19
+ - Added content-first design, visual QA, schema-backed council traceability, and public OSS repo-health hardening.
20
+ - Added issue forms, PR template, CODEOWNERS, Dependabot, CodeQL, support, conduct, governance docs, and repo-health research signals.
21
+ - Added label source of truth, PR labeler workflow, and repository-settings checklist for branch protection, release environment, private vulnerability reporting, and required labels.
22
+ - Added shared `npm run release:check` gate for local, CI, and release readiness.
23
+ - Added version consistency validation for package metadata, lockfile, changelog section, and release tags.
24
+ - Added supply-chain hardening with `SUPPLY_CHAIN.md`, Dependency Review, OpenSSF Scorecard, workflow controls, provenance documentation, and supply-chain research signals.
25
+ - Added lockfile-derived CycloneDX SBOM validation and release-workflow SBOM attestation for the npm package tarball.
26
+ - Added committed example consistency validation so sample install output cannot drift from the current CLI.
27
+ - Added `QUALITY_GATES.md` maturity model with audit coverage for baseline, strong, and best-practice evidence.
28
+ - Added project-evidence placeholder warnings so fresh setup success is not confused with completed maturity evidence.
29
+ - Added audit readiness verdicts: `needs-setup`, `baseline-setup`, `needs-improvement`, and `best-practice-candidate`.
30
+ - Added `agent-kit audit --min-readiness <level>` so downstream projects can enforce readiness thresholds in CI.
31
+ - Added `schemas/audit-report.schema.json` and runtime audit-report contract tests for machine-readable audit consumers.
32
+ - Added `ASSISTANT_ADAPTERS.md` and provider-neutral assistant adapter templates for AGENTS.md-compatible tools, GitHub Copilot/VS Code, Cursor, and Claude Code.
33
+ - Added `UPGRADE.md`, upgrade-maintenance skill, upgrade checklist, upgrade-review prompt, and audit coverage for reviewable updates and rollback evidence.
34
+ - Added reference-led design critique skill, checklist, prompt, roster routing, and audit coverage so frontend work requires references, anti-references, source-safety notes, and a distinctiveness verdict.
35
+ - Added frontend product-quality rubric skill, checklist, prompt, roster routing, audit coverage, and `DESIGN.md` scorecard fields so significant UI work has a repeatable acceptance threshold.
36
+ - Added public-safe `DOGFOOD.md` and current read-only dogfood audit refreshes so downstream adoption evidence stays visible as the kit hardens.
37
+ - Added older-install upgrade regression coverage proving diff previews missing/conflicting assets, update preserves customized docs, writes conflicts, installs new baseline assets, and audits with zero failures.
38
+ - Added reusable post-publish verification script for `npm view`, public `npx doctor`, clean temp `init`, and `audit --json` with zero failures.
39
+ - Added model-routing docs, schema, adapter examples, install/update/diff support, and audit warnings for per-agent model-selection setup.
40
+ - Added Marketing Copy Lead, `MESSAGING.md`, copywriting skills, copy-review prompt, marketing-copy checklist, roster/model routing, and audit coverage for positioning, proof, objections, voice, and CTA evidence.
41
+ - Added automatic assistant adapter rule installation to `.cursor/rules/` during `agent-kit init`, plus activation guidance in `ASSISTANT_ADAPTERS.md`.
42
+ - Added `npm run smoke:audit-gate` and CI baseline readiness enforcement with `agent-kit audit --min-readiness baseline-setup`.
43
+ - Added [PUBLISH.md](PUBLISH.md) release runbook and [RUNTIME_ORCHESTRATION_SCOPE.md](RUNTIME_ORCHESTRATION_SCOPE.md) for deferred Milestone 9 orchestration work.
44
+ - Fixed Windows-safe npm/tar spawning in release and smoke scripts, cross-platform audit path handling for Agent Studio sessions, and cross-platform research scoring path normalization.
@@ -0,0 +1,26 @@
1
+ # Code Of Conduct
2
+
3
+ ## Standard
4
+
5
+ Contributors should keep discussion professional, specific, and focused on improving reusable project quality.
6
+
7
+ Expected behavior:
8
+
9
+ - Treat maintainers and contributors with respect.
10
+ - Critique ideas, code, evidence, and tradeoffs rather than people.
11
+ - Keep issue and PR discussion actionable.
12
+ - Respect security reporting boundaries and do not disclose private vulnerability details publicly.
13
+ - Avoid publishing private downstream project details, customer data, secrets, or copied third-party source.
14
+
15
+ Unacceptable behavior:
16
+
17
+ - Harassment, threats, discrimination, or personal attacks.
18
+ - Deliberate disruption of issues, reviews, or releases.
19
+ - Public disclosure of vulnerabilities before maintainers can respond.
20
+ - Posting secrets, exploit details, private project data, or non-public third-party code.
21
+
22
+ ## Enforcement
23
+
24
+ Maintainers may edit, hide, or remove content that violates this policy. Repeated or severe violations may lead to blocked participation in the repository.
25
+
26
+ Report conduct concerns privately to the maintainers.
@@ -0,0 +1,48 @@
1
+ # Contributing
2
+
3
+ Contributions should improve reusable project setup, not encode one-off project preferences.
4
+
5
+ ## Contribution Rules
6
+
7
+ - Add or update tests for CLI behavior.
8
+ - Keep templates concise and actionable.
9
+ - Do not copy source code from researched repositories.
10
+ - Cite research findings when promoting a pattern into a core template.
11
+ - Use the research-promotion issue form when proposing a pattern from public repos.
12
+ - Use the PR template and include council scope, verification, security, docs, and citation evidence.
13
+ - Use labels from `.github/labels.yml`; update the labels file when adding new issue-template labels.
14
+ - Keep frontend guidance domain-aware and avoid generic AI-site defaults.
15
+ - Keep security guidance aligned with OWASP Top 10 and Supabase RLS practices.
16
+ - Keep public package contents neutral, reusable, and free of project-specific secrets or proprietary assumptions.
17
+ - Treat workflow, dependency, and release changes as supply-chain risk changes requiring security review.
18
+
19
+ ## Research Contributions
20
+
21
+ When adding a repo finding:
22
+
23
+ 1. Explain why the repo was selected.
24
+ 2. List strong practices.
25
+ 3. List weak practices that should not be copied.
26
+ 4. Identify patterns that affect kit templates, agents, skills, or checklists.
27
+
28
+ ## Downstream Dogfood Contributions
29
+
30
+ When an existing project installs the kit:
31
+
32
+ 1. Run `agent-kit init --stack next-supabase` without `--force`.
33
+ 2. Run `agent-kit audit --json` and `agent-kit diff`.
34
+ 3. Run `agent-kit audit --min-readiness baseline-setup` when the project should at least preserve installed contracts.
35
+ 4. Record the project type, created files, conflict files, audit summary, readiness level, and top gaps in `dogfood/<project>-audit.md`.
36
+ 5. Promote repeated gaps into this package's templates, skills, checklists, prompts, profiles, or audit rules.
37
+ 6. Keep project-specific wording in the downstream project unless the pattern generalizes.
38
+ 7. Re-run package tests, `npm run examples:check`, and a temporary install smoke test before committing kit changes.
39
+
40
+ ## Release Checklist
41
+
42
+ - `npm run release:check`
43
+ - `npm run version:check`
44
+ - `npm run examples:check`
45
+ - Public-readiness tests
46
+ - Dependency audit and package dry run
47
+ - Dependency Review and Scorecard workflows configured
48
+ - Manual install into a temporary Next.js/Supabase-like project
package/DOGFOOD.md ADDED
@@ -0,0 +1,121 @@
1
+ # Dogfood Evidence
2
+
3
+ This file is the public-safe summary of downstream adoption evidence. Detailed local-path notes live in `dogfood/` and are intentionally excluded from the npm package.
4
+
5
+ ## Evidence Rule
6
+
7
+ - Dogfood evidence must run against the current built CLI, not an older remembered result.
8
+ - Real-project audits may fail. Failure is useful when it proves the kit catches setup drift.
9
+ - Public summaries use project archetypes instead of local paths or private project details.
10
+ - A dogfood item only counts as promoted when it leads to an installed asset, audit check, test, release gate, or documented decision.
11
+
12
+ ## Current Read-Only Audit Snapshot
13
+
14
+ Date: 2026-06-03
15
+ CLI source: current `dist/index.js`
16
+ Command: `node dist/index.js audit --json`
17
+ Mode: read-only audit; no downstream files were modified.
18
+
19
+ | Project Archetype | Summary | Readiness | Highest-Value Gaps Caught |
20
+ | --- | --- | --- | --- |
21
+ | SaaS/tool hybrid | 11 pass, 20 warn, 7 fail | `needs-setup` | Missing `.agent-kit/agent-roster.json`, schema contracts, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `COUNCIL.md`, `DESIGN.md`, `QUALITY_GATES.md`, `UPGRADE.md`, assistant adapters, visual QA evidence, reference-led design critique, and stale templates. |
22
+ | Content/admin hybrid | 11 pass, 20 warn, 7 fail | `needs-setup` | Missing `.agent-kit/agent-roster.json`, schema contracts, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `COUNCIL.md`, `DESIGN.md`, `QUALITY_GATES.md`, `UPGRADE.md`, assistant adapters, visual QA evidence, reference-led design critique, and stale/customized templates. |
23
+
24
+ ## What This Proves
25
+
26
+ - The audit distinguishes older valid installs from the current best-practice setup.
27
+ - Current audits catch the exact post-research hardening areas: schema-backed council routing, assistant activation, maturity gates, upgrade lifecycle, visual QA, and reference-led frontend critique.
28
+ - Real projects installed before later hardening phases need `agent-kit update` and conflict review before they can claim baseline setup under the current package.
29
+
30
+ ## What This Does Not Prove
31
+
32
+ - These two projects are not yet best-practice candidates.
33
+ - The public npm package has not yet been published and verified with `npx`.
34
+ - Assistant adapters and upgrade lifecycle still need real activation/dogfood evidence after publication.
35
+ - Reference-led design critique still needs a real UI change dogfood pass with screenshots or equivalent visual evidence.
36
+
37
+ ## 2026-06-07 Agent Studio Dogfood Snapshot
38
+
39
+ Date: 2026-06-07
40
+ CLI source: current `dist/index.js`
41
+ Mode: downstream update, guided context generation, session recording, static Studio export, and final audit.
42
+
43
+ | Project Archetype | Stage | Summary | Readiness | Notes |
44
+ | --- | --- | --- | --- | --- |
45
+ | Content/admin hybrid | Before update | 11 pass, 31 warn, 8 fail | `needs-setup` | Older partial install was missing current roster, schemas, docs, context, and Agent Studio assets. |
46
+ | Content/admin hybrid | After update/onboard/export | 54 pass, 17 warn, 0 fail | `baseline-setup` | `agent-kit update` preserved customized docs through `.agent-kit/conflicts/`; `onboard`, session render, and `studio export` worked locally. |
47
+ | Content/admin hybrid | After `session output` fix and completed session | 52 pass, 19 warn, 0 fail | `baseline-setup` | Completed planning session has all required outputs marked complete, verification recorded, rendered Markdown current, static Studio export regenerated, and 14 valid Agent Studio events. Extra warnings reflect template changes made during this fix and remaining project-specific evidence gaps. |
48
+
49
+ ### Finding Promoted Back Into The Kit
50
+
51
+ Dogfood exposed that sessions could define required outputs but lacked a CLI command to update their status. The fix adds `agent-kit session output <name...> --status <missing|partial|complete|not-applicable> --evidence <evidence>`, a `required_output_updated` event type, renderer/static-export support, CLI smoke coverage, and completed-session regression tests.
52
+
53
+ ### Remaining Dogfood Gaps
54
+
55
+ - Project context still needs real product summary, audience, workflows, auth/tenant model, UI direction, value proposition, and quality target answers.
56
+ - Assistant adapter rows still need active-tool verification evidence in downstream projects beyond the kit repo itself.
57
+ - Project-owned docs need conflict review before adopting newer template wording.
58
+ - A real UI change still needs reference-led design critique and desktop/mobile visual QA evidence.
59
+ - Public npm publish and `npm run publish:verify` still need maintainer release execution. See [PUBLISH.md](PUBLISH.md).
60
+
61
+ ## 2026-06-07 Release Gate Snapshot
62
+
63
+ Date: 2026-06-07
64
+ CLI source: current built CLI
65
+ Command: `npm run release:check`
66
+ Result: passed locally on Windows after assistant adapter install on init, baseline audit gate smoke, install smoke, Agent Studio smoke, SBOM check, and npm pack dry run.
67
+
68
+ | Gate | Result |
69
+ | --- | --- | --- |
70
+ | Tests | 65 passed |
71
+ | Example install shape | `baseline-setup`, 0 failures |
72
+ | Install smoke | IDE adapter rules installed, `baseline-setup`, 0 failures |
73
+ | Agent Studio smoke | `baseline-setup`, 0 failures |
74
+ | Baseline audit gate smoke | `baseline-setup`, 0 failures |
75
+ | npm pack dry run | `@agent-skills/next-supabase-kit@0.1.0` tarball validated |
76
+
77
+ Remaining publish action: execute [PUBLISH.md](PUBLISH.md), then run `npm run publish:verify`.
78
+
79
+ ## 2026-06-07 Assistant Adapter Activation On Init
80
+
81
+ Date: 2026-06-07
82
+ CLI source: current built CLI
83
+ Mode: init-time assistant adapter rule installation for downstream projects.
84
+
85
+ | Surface | Path | Status | Evidence |
86
+ | --- | --- | --- | --- |
87
+ | Downstream init | `.cursor/rules/cursor-agent-kit.mdc` | Active on `agent-kit init` | `smoke:install`, `smoke:audit-gate`, and `tests/update.test.ts` verify rule installation. |
88
+ | Downstream init | `.cursor/rules/cursor-model-selection.mdc` | Active on `agent-kit init` | Same smoke and update coverage as council rule. |
89
+ | Template docs | `ASSISTANT_ADAPTERS.md` | Updated | Adapter activation steps and init-time install behavior documented for downstream projects. |
90
+
91
+ ## Promotion Back Into The Kit
92
+
93
+ | Dogfood Finding | Promoted Kit Behavior |
94
+ | --- | --- |
95
+ | Older installs drift as the package improves. | Template hashes, `agent-kit diff`, `agent-kit update`, `UPGRADE.md`, upgrade checklist, and upgrade audit warnings. |
96
+ | Existing project docs vary and must be preserved. | Conflict-safe writes and `.agent-kit/overrides.json`. |
97
+ | Agent instructions can exist without machine-readable council routing. | `.agent-kit/agent-roster.json`, roster schema validation, and council-session evidence. |
98
+ | AI tool activation cannot be assumed from `AGENTS.md` alone. | `ASSISTANT_ADAPTERS.md` and `.agent-kit/assistant-adapters/`. |
99
+ | Frontend docs can miss product-specific design evidence. | `DESIGN.md`, content-first design skill, reference-led design critique, visual QA tiers, and screenshot review. |
100
+ | Required session outputs were hard to complete without manual JSON edits. | `agent-kit session output`, `required_output_updated` events, renderer/export support, and completed-session audit coverage. |
101
+
102
+ ## Upgrade Regression Fixture
103
+
104
+ The package also includes a deterministic test for an older install shape:
105
+
106
+ - Older install has customized root docs and no current roster, schemas, assistant adapters, `DESIGN.md`, `QUALITY_GATES.md`, or `UPGRADE.md`.
107
+ - `agent-kit update` behavior preserves customized docs and writes new template versions into `.agent-kit/conflicts/`.
108
+ - `agent-kit diff` previews missing docs, changed docs, roster status, missing library folders, files update would create, and files update would write to conflicts.
109
+ - Missing current baseline docs and `.agent-kit/agent-roster.json` are added.
110
+ - `.agent-kit/schemas/`, `.agent-kit/assistant-adapters/`, and the reference-led design critique skill are installed.
111
+ - The upgraded fixture audits with `0` failures and readiness `baseline-setup`.
112
+
113
+ Covered by `tests/update.test.ts`.
114
+
115
+ ## Next Dogfood Passes
116
+
117
+ - Review generated conflicts in the dogfood project and decide which project-owned docs should adopt the latest template wording.
118
+ - Run `agent-kit update` on another real project on a dedicated branch and record conflict-review outcomes.
119
+ - Activate at least one assistant adapter in a real project and record whether the chosen tool loads the canonical council instructions.
120
+ - Apply the reference-led design critique gate to one real frontend change with desktop/mobile screenshot evidence.
121
+ - After public publish, run `npm run publish:verify` to verify registry visibility, public `npx doctor`, clean temp `init`, and `audit --json` with zero failures.
package/GOVERNANCE.md ADDED
@@ -0,0 +1,45 @@
1
+ # Governance
2
+
3
+ ## Maintainer Model
4
+
5
+ This project is maintained as a small public OSS package. Maintainers own release approval, public-package safety, research promotion, and final merge decisions.
6
+
7
+ ## Decision Rules
8
+
9
+ Changes should improve reusable setup quality for many projects. Project-specific preferences belong downstream unless repeated evidence shows they generalize.
10
+
11
+ Promoted best practices need at least one of:
12
+
13
+ - Repeated findings from repository research.
14
+ - Dogfood evidence from downstream installs.
15
+ - Official framework or platform documentation.
16
+ - A clear security, release, or maintainability requirement.
17
+
18
+ Promotion targets should be explicit:
19
+
20
+ - Installed root template.
21
+ - Agent role.
22
+ - Skill.
23
+ - Prompt.
24
+ - Checklist.
25
+ - Schema.
26
+ - Audit rule.
27
+ - Research scanner signal.
28
+ - CI or release gate.
29
+
30
+ ## Release Rules
31
+
32
+ Releases require:
33
+
34
+ - Passing CI.
35
+ - Passing install smoke.
36
+ - Passing dependency audit.
37
+ - Passing package dry run.
38
+ - Branch protection and repository settings reviewed when workflows, permissions, or release controls changed.
39
+ - Public package metadata review.
40
+ - No secrets, copied third-party source, or private downstream details.
41
+ - Trusted Publishing or another npm-approved secure publish path.
42
+
43
+ ## Research Rules
44
+
45
+ Research findings are evidence, not implementation. A pattern only becomes kit behavior after it is promoted into an installed asset, CLI/audit behavior, test, release gate, or recorded decision.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Agent Skills Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,251 @@
1
+ # Agent Skills Next/Supabase Kit
2
+
3
+ `@agent-skills/next-supabase-kit` installs an agent operating system for Next.js + Supabase projects.
4
+
5
+ It gives agentic coders a default council roster, reusable skills, handoff rules, model-routing guidance, markdown docs, frontend design gates, Supabase/RLS security checks, upgrade workflows, and audit commands.
6
+
7
+ The package answers one practical question:
8
+
9
+ > Does this project have the setup needed for secure, maintainable, non-generic Next.js + Supabase delivery?
10
+
11
+ This is not just a prompt bundle. A project gets machine-readable agent routing, model profile routing, schema-backed council evidence, living documentation templates, research-backed quality gates, and CLI checks for drift.
12
+
13
+ It also includes a local Agent Studio workflow: project context, durable human corrections, append-only session events, and rendered Markdown transcripts that work without a database, web server, background daemon, or separate model API key.
14
+
15
+ ## Quick Start
16
+
17
+ Use this in a Next.js + Supabase project after the public package is available on npm:
18
+
19
+ ```bash
20
+ npx @agent-skills/next-supabase-kit init --stack next-supabase
21
+ npx @agent-skills/next-supabase-kit audit
22
+ npx @agent-skills/next-supabase-kit audit --min-readiness baseline-setup
23
+ ```
24
+
25
+ The installer preserves existing docs. If a file already exists and differs from the template, the new version is written to `.agent-kit/conflicts/` for review.
26
+
27
+ For local development of this repo:
28
+
29
+ ```bash
30
+ npm install
31
+ npm run build
32
+ npm test
33
+ npm run release:check
34
+ ```
35
+
36
+ `npm run release:check` is the main pre-release proof command. It typechecks, tests, builds, install-smokes the package, checks examples, runs dependency audit, validates SBOM generation, and dry-runs packaging.
37
+
38
+ ## How Agentic Coders Should Use It
39
+
40
+ Start with the installed files:
41
+
42
+ - `AGENTS.md`: the high-level operating instructions.
43
+ - `.agent-kit/agent-roster.json`: the machine-readable source of truth for agent routing.
44
+ - `AGENT_ROSTER.md`: the human-readable roster summary.
45
+ - `SKILLS.md`: when each reusable skill should be used.
46
+ - `MODEL_ROUTING.md`: model-profile guidance for each agent and IDE.
47
+ - `QUALITY_GATES.md`: what separates baseline setup, strong delivery, and best-practice evidence.
48
+ - `DESIGN.md`: the frontend design and content contract.
49
+ - `MESSAGING.md`: the positioning, value proposition, proof, objections, voice, and CTA contract.
50
+ - `COUNCIL.md`: where meaningful handoffs and decisions are recorded.
51
+
52
+ Default routing:
53
+
54
+ - Planner handles plans, roadmaps, scope, and ambiguous requests first.
55
+ - Lead Architect reviews core changes before implementation.
56
+ - Security Reviewer joins auth, RLS, data mutation, dependency, secret, external-call, and release-risk work.
57
+ - Frontend Design Lead owns content-first design, reference-led critique, distinctiveness benchmarking, product-quality scoring, and visual QA.
58
+ - Marketing Copy Lead owns public-facing and conversion-facing copy, positioning, proof, objections, voice, and CTA hierarchy.
59
+ - QA Engineer verifies behavior changes before completion.
60
+ - Documentation Maintainer keeps the living markdown current.
61
+
62
+ For meaningful multi-agent work, record the decision, risk, next handoff, required outputs, and verification evidence in `COUNCIL.md` or `.agent-kit/council-sessions/*.json`.
63
+
64
+ For local Agent Studio sessions, use:
65
+
66
+ ```bash
67
+ agent-kit init --guided
68
+ agent-kit context validate
69
+ agent-kit session start "Build checkout flow" --workflow frontend-change
70
+ agent-kit session decision --agent planner --risk "Generic UI risk" "Use frontend-change workflow."
71
+ agent-kit session handoff --from planner --to frontend-design-lead --decision "Start design intake." --risk "Generic UI risk."
72
+ agent-kit session correct --agent frontend-design-lead --scope project "Keep UI dense and operational."
73
+ agent-kit session verify --command "npm test" --result pass --notes "Tests passed."
74
+ agent-kit session output "visual QA evidence" --status not-applicable --evidence "No UI change."
75
+ agent-kit session render
76
+ agent-kit correction list
77
+ agent-kit studio export
78
+ agent-kit audit --json
79
+ ```
80
+
81
+ ## What Gets Installed
82
+
83
+ Root markdown docs:
84
+
85
+ ```text
86
+ AGENTS.md
87
+ AGENT_ROSTER.md
88
+ ASSISTANT_ADAPTERS.md
89
+ COUNCIL.md
90
+ SKILLS.md
91
+ SPEC.md
92
+ DECISIONS.md
93
+ DOCS.md
94
+ DESIGN.md
95
+ MESSAGING.md
96
+ MODEL_ROUTING.md
97
+ QUALITY_GATES.md
98
+ STYLE_GUIDE.md
99
+ SECURITY.md
100
+ TESTING.md
101
+ DEPLOYMENT.md
102
+ UPGRADE.md
103
+ ```
104
+
105
+ The `.agent-kit/` folder includes:
106
+
107
+ - `agent-roster.json` for default workflow routing.
108
+ - `model-routing.json` for provider-neutral model profile routing.
109
+ - `project-context.json`, `project-context.md`, `corrections/`, and `council-sessions/` for local Agent Studio context, correction rules, session events, and rendered transcripts.
110
+ - `schemas/` for agent roster, council-session, model-routing, project context, correction rules, session events, studio sessions, and audit-report contracts.
111
+ - `agents/`, `skills/`, `prompts/`, and `checklists/`.
112
+ - `assistant-adapters/` for Codex/AGENTS.md-compatible tools, GitHub Copilot/VS Code, Cursor, and Claude Code.
113
+ - `design-briefs/` for SaaS, admin, marketplace, content, tool, ecommerce, portfolio/venue, education, community/social, and AI workflow surfaces.
114
+ - `profiles/` for product-type and adjacent-stack adaptation.
115
+
116
+ ## Everyday Commands
117
+
118
+ ```bash
119
+ agent-kit audit
120
+ agent-kit audit --json
121
+ agent-kit audit --min-readiness baseline-setup
122
+ agent-kit context init
123
+ agent-kit session start "Short task name"
124
+ agent-kit session output "verification evidence" --status complete --evidence "npm test"
125
+ agent-kit session render
126
+ agent-kit correction list
127
+ agent-kit studio export
128
+ agent-kit diff
129
+ agent-kit update
130
+ agent-kit add skill frontend-design-system
131
+ agent-kit doctor
132
+ ```
133
+
134
+ Readiness levels from `agent-kit audit --json`:
135
+
136
+ - `needs-setup`: required install or council contracts are failing.
137
+ - `baseline-setup`: setup is valid, but starter evidence placeholders remain.
138
+ - `needs-improvement`: no failures, but warnings remain.
139
+ - `best-practice-candidate`: static audit found no failures or warnings.
140
+
141
+ Use `agent-kit audit --min-readiness <level>` in CI when a project wants a merge or release threshold.
142
+
143
+ ## AI Mechanisms
144
+
145
+ Agent Kit separates the mechanisms that make AI coding repeatable:
146
+
147
+ - Instructions: `AGENTS.md`, assistant adapters, and IDE-specific rule files.
148
+ - Roster: `.agent-kit/agent-roster.json` chooses agents, workflows, and handoffs.
149
+ - Skills: `.agent-kit/skills/` keeps specialist workflows reusable.
150
+ - Model routing: `MODEL_ROUTING.md` and `.agent-kit/model-routing.json` map agents to model profiles.
151
+ - Messaging: `MESSAGING.md` records audience, pain, outcome, proof, objections, voice, and conversion evidence for public-facing copy.
152
+ - Local Agent Studio: `.agent-kit/project-context.*`, `.agent-kit/corrections/*.json`, and `.agent-kit/council-sessions/*` keep context, corrections, decisions, handoffs, required-output status, artifacts, verification, and rendered Markdown transcripts local.
153
+ - Tools and MCP: `ASSISTANT_ADAPTERS.md` records browser, GitHub, Figma, Supabase, docs, or other connector setup.
154
+ - Hooks and CI: optional local enforcement plus `agent-kit audit`, tests, install smoke, SBOM, and release gates.
155
+
156
+ Some IDEs can partially enforce model settings; others only let project files advise the user. The kit records that difference instead of pretending every tool can force per-agent model selection.
157
+
158
+ ## Frontend Quality Bar
159
+
160
+ The kit is intentionally strict about frontend work because normal AI output often looks generic.
161
+
162
+ Significant UI work should prove:
163
+
164
+ - Brand/content intake and real user needs.
165
+ - A selected creative direction, with rejected alternatives.
166
+ - Reference lessons and anti-references without copied source designs.
167
+ - First-screen proof that the real product task, object, workflow, or content is visible.
168
+ - A content fingerprint: real product nouns, labels, data shapes, actions, and edge cases.
169
+ - Asset provenance for real, generated, licensed, and placeholder visuals.
170
+ - Product-quality scorecard evidence.
171
+ - Desktop, mobile, key states, accessibility, and visual QA evidence.
172
+
173
+ The Frontend Design Lead should reject work that would still look valid for another product after only changing the logo or headline.
174
+
175
+ ## Security Bar
176
+
177
+ The kit treats these as defaults, not optional polish:
178
+
179
+ - OWASP Top 10 review for auth, API, Server Action, external-call, upload, and dependency changes.
180
+ - Supabase RLS at the data boundary.
181
+ - Service-role keys isolated to trusted server code.
182
+ - Input validation and safe output rendering.
183
+ - IDOR, SSRF, injection, broken auth, and misconfiguration review.
184
+ - Dependency audit before release.
185
+
186
+ ## Updating An Existing Install
187
+
188
+ Use the upgrade flow instead of overwriting project-owned docs:
189
+
190
+ ```bash
191
+ agent-kit diff
192
+ agent-kit update
193
+ agent-kit audit --min-readiness baseline-setup
194
+ ```
195
+
196
+ Document accepted local deviations in `.agent-kit/overrides.json`. Record version changes, conflicts, migration impact, rollback notes, and verification evidence in `UPGRADE.md`.
197
+
198
+ ## Research Evidence
199
+
200
+ The repo includes a 100-repo research workflow plus focused follow-up summaries.
201
+
202
+ Research volume does not count as proof by itself. A repeated pattern only becomes part of the kit when it is promoted into installed assets, audit checks, tests, release gates, schemas, workflows, or documented decisions.
203
+
204
+ Useful evidence files:
205
+
206
+ - `BEST_PRACTICE_EVIDENCE.md`: maps research signals to enforceable assets and validation paths.
207
+ - `research/summaries/`: public-safe research summaries.
208
+ - `research/proposed-updates.md`: promoted and future updates.
209
+ - `DOGFOOD.md`: public-safe downstream adoption evidence.
210
+ - `ROADMAP.md`: the phased done/left tracker.
211
+
212
+ Research commands:
213
+
214
+ ```bash
215
+ export GITHUB_TOKEN=ghp_replace_me
216
+ agent-kit research discover --limit 100
217
+ agent-kit research scan
218
+ agent-kit research summarize
219
+ agent-kit research propose-updates
220
+ ```
221
+
222
+ Detailed per-repo findings are committed for repository development, but the public npm package ships generalized summaries and promoted decisions only. See `RESEARCH_CITATION_POLICY.md`.
223
+
224
+ ## Public Release And Supply Chain
225
+
226
+ Public package name:
227
+
228
+ ```text
229
+ @agent-skills/next-supabase-kit
230
+ ```
231
+
232
+ Release expectations:
233
+
234
+ - MIT license.
235
+ - Public npm access.
236
+ - npm Trusted Publishing through GitHub Actions OIDC.
237
+ - No long-lived npm publish token for automation.
238
+ - Dependency Review, CodeQL, OpenSSF Scorecard, Dependabot, SBOM validation, and SBOM attestation.
239
+ - Post-publish verification with `npm run publish:verify`.
240
+
241
+ Public release remains gated until the npm scope/package exists, Trusted Publishing is configured, and post-publish `npx` verification succeeds.
242
+
243
+ ## Repository Health
244
+
245
+ The repo includes issue forms, PR template, labels, CODEOWNERS, Dependabot, CodeQL, Dependency Review, OpenSSF Scorecard, `CODE_OF_CONDUCT.md`, `SUPPORT.md`, `GOVERNANCE.md`, `REPOSITORY_SETTINGS.md`, and `SUPPLY_CHAIN.md`.
246
+
247
+ These files are tested as public-readiness assets so the package can be maintained as public OSS, not just published as a tarball.
248
+
249
+ ## License
250
+
251
+ MIT.