@appsforgood/next-supabase-kit 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -1
- package/DOGFOOD.md +1 -1
- package/README.md +24 -7
- package/REPOSITORY_SETTINGS.md +2 -1
- package/SUPPLY_CHAIN.md +5 -5
- package/UPGRADE.md +14 -10
- package/antigravity/commands/audit.toml +16 -0
- package/antigravity/commands/copy.toml +16 -0
- package/antigravity/commands/frontend.toml +17 -0
- package/antigravity/commands/handoff.toml +16 -0
- package/antigravity/commands/plan.toml +18 -0
- package/antigravity/commands/security.toml +16 -0
- package/antigravity/commands/setup.toml +16 -0
- package/antigravity/commands/ship.toml +17 -0
- package/antigravity/commands/upgrade.toml +17 -0
- package/antigravity/plugin.json +58 -0
- package/assistant-adapters/README.md +1 -0
- package/assistant-adapters/antigravity.md +56 -0
- package/assistant-adapters/claude-code-subagents.md +1 -1
- package/assistant-adapters/codex-agents.md +2 -1
- package/assistant-adapters/cursor-agent-kit.mdc +2 -2
- package/assistant-adapters/github-copilot-instructions.md +1 -1
- package/assistant-adapters/github-next-supabase.instructions.md +1 -1
- package/dist/index.js +3956 -1105
- package/dist/index.js.map +1 -1
- package/dist/studio/office/assets/office.css +551 -0
- package/dist/studio/office/assets/office.js +1105 -0
- package/dist/studio/wizard/assets/wizard.css +525 -0
- package/dist/studio/wizard/assets/wizard.js +692 -0
- package/examples/next-supabase-installed/.agent-kit/manifest.json +13 -12
- package/examples/next-supabase-installed/.agent-kit/model-routing.json +7 -0
- package/examples/next-supabase-installed/README.md +3 -3
- package/examples/next-supabase-installed/audit-output.json +24 -7
- package/examples/next-supabase-installed/tree.txt +6 -0
- package/model-routing/default-model-routing.json +7 -0
- package/package.json +13 -5
- package/runtime-skills/README.md +7 -0
- package/runtime-skills/accessibility-wcag/SKILL.md +8 -0
- package/runtime-skills/agent-handoff-tracing/SKILL.md +8 -0
- package/runtime-skills/best-practice-maturity-review/SKILL.md +8 -0
- package/runtime-skills/content-first-design/SKILL.md +8 -0
- package/runtime-skills/conversion-copywriting/SKILL.md +8 -0
- package/runtime-skills/deployment-observability/SKILL.md +8 -0
- package/runtime-skills/docs-maintainer/SKILL.md +8 -0
- package/runtime-skills/frontend-design-system/SKILL.md +8 -0
- package/runtime-skills/frontend-distinctiveness-benchmark/SKILL.md +8 -0
- package/runtime-skills/frontend-product-quality-rubric/SKILL.md +8 -0
- package/runtime-skills/landing-page-copy/SKILL.md +8 -0
- package/runtime-skills/nextjs-app-router/SKILL.md +8 -0
- package/runtime-skills/onboarding-empty-state-copy/SKILL.md +8 -0
- package/runtime-skills/owasp-security-review/SKILL.md +8 -0
- package/runtime-skills/planning-council/SKILL.md +8 -0
- package/runtime-skills/positioning-messaging/SKILL.md +8 -0
- package/runtime-skills/postgres-migrations/SKILL.md +8 -0
- package/runtime-skills/product-voice-tone/SKILL.md +8 -0
- package/runtime-skills/reference-led-design-critique/SKILL.md +8 -0
- package/runtime-skills/supabase-auth-rls/SKILL.md +8 -0
- package/runtime-skills/testing-qa/SKILL.md +8 -0
- package/runtime-skills/upgrade-maintenance/SKILL.md +8 -0
- package/runtime-skills/visual-regression-qa/SKILL.md +8 -0
- package/schemas/onboarding-state.schema.json +33 -0
- package/templates/next-supabase/.github/workflows/agent-kit-audit.yml +35 -0
- package/templates/next-supabase/AGENTS.md +1 -1
- package/templates/next-supabase/ASSISTANT_ADAPTERS.md +21 -3
- package/templates/next-supabase/CLAUDE.md +39 -0
- package/templates/next-supabase/DECISIONS.md +14 -0
- package/templates/next-supabase/DOCS.md +4 -0
- package/templates/next-supabase/MODEL_ROUTING.md +12 -0
- package/templates/next-supabase/QUALITY_GATES.md +4 -0
- package/templates/next-supabase/SPEC.md +2 -0
- package/templates/next-supabase/TESTING.md +3 -0
- package/templates/next-supabase/UPGRADE.md +8 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Claude Code Project Instructions
|
|
2
|
+
|
|
3
|
+
This repository uses Agent Kit. Treat the following as the source of truth for council routing, project context, correction rules, model profiles, quality gates, and handoff evidence:
|
|
4
|
+
|
|
5
|
+
- `AGENTS.md`
|
|
6
|
+
- `AGENT_ROSTER.md`
|
|
7
|
+
- `.agent-kit/agent-roster.json`
|
|
8
|
+
- `MODEL_ROUTING.md`
|
|
9
|
+
- `.agent-kit/model-routing.json`
|
|
10
|
+
- `.agent-kit/project-context.json`
|
|
11
|
+
- `.agent-kit/project-context.md`
|
|
12
|
+
- `.agent-kit/agent-briefs.md` when present
|
|
13
|
+
- `.agent-kit/corrections/project-rules.json`
|
|
14
|
+
- `.agent-kit/corrections/agent-rules.json`
|
|
15
|
+
- `COUNCIL.md`
|
|
16
|
+
- `.agent-kit/council-sessions/`
|
|
17
|
+
- `QUALITY_GATES.md`
|
|
18
|
+
|
|
19
|
+
## Subagents
|
|
20
|
+
|
|
21
|
+
Project subagents live in `.claude/agents/*.md` and are generated from `.agent-kit/agent-roster.json` when you run:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
agent-kit init --activate claude
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use the matching subagent for the active workflow instead of treating every request as a generic implementation pass.
|
|
28
|
+
|
|
29
|
+
## Validation
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
agent-kit audit --min-readiness baseline-setup
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Use `agent-kit session checkpoint --file <json>` to batch-record council evidence instead of many individual session commands.
|
|
36
|
+
|
|
37
|
+
## Model Selection
|
|
38
|
+
|
|
39
|
+
Use Claude Code model settings with the profiles in `MODEL_ROUTING.md`. Exact model names are dated recommendations — review when provider docs change.
|
|
@@ -30,6 +30,20 @@ Add new decisions above this line or keep newest first.
|
|
|
30
30
|
|
|
31
31
|
Record major frontend choices here when a creative direction, reference set, anti-reference, brand constraint, information architecture, visual QA tier, or component-system rule materially affects implementation.
|
|
32
32
|
|
|
33
|
+
## Runtime Adapter Rule
|
|
34
|
+
|
|
35
|
+
### Context
|
|
36
|
+
|
|
37
|
+
Agent Kit may expose runtime-native command surfaces such as Antigravity plugin commands.
|
|
38
|
+
|
|
39
|
+
### Decision
|
|
40
|
+
|
|
41
|
+
Runtime command files are adapters. `AGENTS.md`, `.agent-kit/agent-roster.json`, `QUALITY_GATES.md`, canonical `.agent-kit/skills/`, and Agent Studio session records remain the source of truth.
|
|
42
|
+
|
|
43
|
+
### Consequences
|
|
44
|
+
|
|
45
|
+
Native commands improve invocation ergonomics, but project policy, security gates, handoff rules, model routing, and documentation contracts stay centralized in Agent Kit files.
|
|
46
|
+
|
|
33
47
|
## Agent Kit Model Routing
|
|
34
48
|
|
|
35
49
|
### Context
|
|
@@ -17,6 +17,7 @@ Document:
|
|
|
17
17
|
|
|
18
18
|
- Agent council routing in `.agent-kit/agent-roster.json`
|
|
19
19
|
- Assistant activation surfaces in `ASSISTANT_ADAPTERS.md`
|
|
20
|
+
- Optional runtime adapter surfaces such as `.antigravity/agent-kit/` and `.antigravity/runtime-skills/`
|
|
20
21
|
- Model profile routing in `MODEL_ROUTING.md` and `.agent-kit/model-routing.json`
|
|
21
22
|
- Council-session evidence in `COUNCIL.md`
|
|
22
23
|
- Agent, council-session, model-routing, and audit-report schemas in `.agent-kit/schemas/`
|
|
@@ -38,6 +39,7 @@ Document primary workflows, including:
|
|
|
38
39
|
|
|
39
40
|
- Planning and core-change handoffs from `AGENT_ROSTER.md`
|
|
40
41
|
- Tool-specific assistant activation from `ASSISTANT_ADAPTERS.md`
|
|
42
|
+
- Runtime command validation with `agent-kit adapter validate antigravity` when Antigravity is active
|
|
41
43
|
- Model-selection setup, enforcement status, and limitations from `MODEL_ROUTING.md`
|
|
42
44
|
- Council-session evidence capture from `COUNCIL.md`
|
|
43
45
|
- Upgrade review, conflict handling, migration review, and rollback evidence from `UPGRADE.md`
|
|
@@ -53,6 +55,8 @@ Document primary workflows, including:
|
|
|
53
55
|
- Data creation and update workflow
|
|
54
56
|
- Deployment workflow
|
|
55
57
|
|
|
58
|
+
Runtime command files are adapters only. Native commands such as `/plan`, `/security`, `/frontend`, `/copy`, `/handoff`, `/audit`, `/setup`, `/upgrade`, and `/ship` should point back to `AGENTS.md`, `.agent-kit/agent-roster.json`, `QUALITY_GATES.md`, `.agent-kit/skills/`, and Agent Studio evidence.
|
|
59
|
+
|
|
56
60
|
## Integration Points
|
|
57
61
|
|
|
58
62
|
Document external APIs, webhooks, storage buckets, cron jobs, email providers, analytics, and monitoring.
|
|
@@ -40,6 +40,7 @@ Canonical source of truth:
|
|
|
40
40
|
| Claude Code | `CLAUDE.md`, `.claude/agents/*.md` | Unverified | Partial | Record date, owner, subagent files, and model frontmatter behavior. |
|
|
41
41
|
| Cursor | `.cursor/rules/*.mdc` | Unverified | Advisory | Record date, owner, model picker/team setting, and loaded rule evidence. |
|
|
42
42
|
| GitHub Copilot | `.github/copilot-instructions.md`, `.github/instructions/*.instructions.md` | Unverified | Advisory | Record date, owner, selected chat/coding-agent model, and loaded instruction evidence. |
|
|
43
|
+
| Antigravity | `.antigravity/agent-kit/plugin.json`, `.antigravity/agent-kit/commands/*.toml`, `.antigravity/runtime-skills/*/SKILL.md` | Unverified | Advisory | Record date, owner, `agent-kit adapter validate antigravity`, and optional native `agy plugin validate` output. |
|
|
43
44
|
|
|
44
45
|
## June 2026 Commented Recommendations
|
|
45
46
|
|
|
@@ -98,6 +99,17 @@ June 2026 Agent Kit suggestion:
|
|
|
98
99
|
-->
|
|
99
100
|
```
|
|
100
101
|
|
|
102
|
+
### Antigravity
|
|
103
|
+
|
|
104
|
+
```md
|
|
105
|
+
<!--
|
|
106
|
+
June 2026 Agent Kit suggestion:
|
|
107
|
+
- Use native `/plan`, `/security`, `/frontend`, `/copy`, `/handoff`, `/audit`, `/setup`, `/upgrade`, and `/ship` commands as runtime entrypoints.
|
|
108
|
+
- Keep model choice aligned with MODEL_ROUTING.md profiles, but record that Antigravity model enforcement is advisory unless the runtime/workspace provides stronger controls.
|
|
109
|
+
- Validate structural assets with `agent-kit adapter validate antigravity`; native `agy plugin validate` is optional when the CLI is installed.
|
|
110
|
+
-->
|
|
111
|
+
```
|
|
112
|
+
|
|
101
113
|
## Acceptance Evidence
|
|
102
114
|
|
|
103
115
|
Before claiming strong or best-practice maturity, record:
|
|
@@ -20,6 +20,7 @@ Baseline means the project is usable and the agent kit can audit it.
|
|
|
20
20
|
- `AGENTS.md`, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `COUNCIL.md`, `SPEC.md`, `DECISIONS.md`, `DOCS.md`, `DESIGN.md`, `MESSAGING.md`, `MODEL_ROUTING.md`, `STYLE_GUIDE.md`, `SECURITY.md`, `TESTING.md`, `DEPLOYMENT.md`, and `UPGRADE.md` exist.
|
|
21
21
|
- `.agent-kit/agent-roster.json`, `.agent-kit/model-routing.json`, and `.agent-kit/schemas/` exist.
|
|
22
22
|
- `.agent-kit/assistant-adapters/` exists.
|
|
23
|
+
- Runtime adapters such as Antigravity are validated with `agent-kit adapter validate <target>` before being treated as active.
|
|
23
24
|
- Agent Studio schemas for project context, correction rules, session events, and studio sessions exist when the installed kit version includes them.
|
|
24
25
|
- Planner is the default planning route.
|
|
25
26
|
- Lead Architect reviews core changes.
|
|
@@ -59,6 +60,7 @@ Best-practice means evidence can survive handoff, release, and later audit.
|
|
|
59
60
|
- Public-facing and conversion-facing copy starts from discovery questions, audience, pain, outcome, differentiator, proof, objections, voice/tone, and CTA hierarchy, with unsupported claims marked as assumptions.
|
|
60
61
|
- Test evidence includes the smallest useful unit/regression checks plus critical-path smoke coverage.
|
|
61
62
|
- Release evidence includes install or production smoke, migration order, dependency audit, package or deployment verification, logs, and rollback notes.
|
|
63
|
+
- Runtime adapter evidence includes command/plugin validation, portable `SKILL.md` coverage, package allowlist coverage, and proof that adapter files point back to Agent Kit source-of-truth contracts.
|
|
62
64
|
- Repo health includes issue/PR templates, CODEOWNERS, dependency updates, CodeQL or equivalent scanning, dependency review, provenance expectations, support, conduct, and governance.
|
|
63
65
|
- Public or shared package releases use Trusted Publishing or equivalent identity-bound release provenance.
|
|
64
66
|
|
|
@@ -73,6 +75,7 @@ Best-practice means evidence can survive handoff, release, and later audit.
|
|
|
73
75
|
| Marketing/copy | Marketing Copy Lead, Frontend Design Lead, QA, Docs | `MESSAGING.md`, audience and pain, value proposition, proof, objections, voice/tone, CTA hierarchy, risky-claim review |
|
|
74
76
|
| Security-sensitive | Security Reviewer, Lead Architect, QA | OWASP review, boundary validation, dependency/secret review, regression or smoke evidence |
|
|
75
77
|
| Release/package | Deployment/Observability Engineer, Security Reviewer, QA, Docs | Release gate output, dependency audit, install/deploy smoke, provenance or publish identity evidence |
|
|
78
|
+
| Runtime adapter/package | Planner, Lead Architect, Security Reviewer, QA, Docs | `agent-kit adapter validate`, `agent-kit package validate`, command/skill asset coverage, source-of-truth references, no secret-like runtime assets |
|
|
76
79
|
| Upgrade/dependency | Planner, Lead Architect, Security Reviewer, QA, Docs, Deployment/Observability Engineer | Release notes, codemods or migration guide, `agent-kit diff`, conflict review, audit output, rollback notes |
|
|
77
80
|
|
|
78
81
|
## Evidence Rules
|
|
@@ -81,6 +84,7 @@ Best-practice means evidence can survive handoff, release, and later audit.
|
|
|
81
84
|
- A test is not evidence unless it covers the behavior, risk, or contract being claimed.
|
|
82
85
|
- A screenshot is not visual QA unless it covers the important viewport, state, and content.
|
|
83
86
|
- A research finding is not a best practice until it is promoted into templates, skills, checklists, audit checks, tests, release gates, or documented decisions.
|
|
87
|
+
- A runtime command is not canonical policy; it is accepted only when it wraps `AGENTS.md`, `.agent-kit/agent-roster.json`, `QUALITY_GATES.md`, canonical skills, and Agent Studio evidence.
|
|
84
88
|
- A fresh install can be baseline setup while still warning on `TBD`, example rows, or starter instruction text; those placeholders must be replaced before claiming strong or best-practice maturity.
|
|
85
89
|
- A local customization is acceptable only when `.agent-kit/overrides.json` explains why and when it was reviewed.
|
|
86
90
|
- A human correction is not durable until it is stored in `.agent-kit/corrections/`, remains secret-safe, has a clear scope, and is visible to future agents through installed instructions.
|
|
@@ -24,6 +24,7 @@ List behavior that must be preserved during changes:
|
|
|
24
24
|
|
|
25
25
|
- Agent council routing in `.agent-kit/agent-roster.json`
|
|
26
26
|
- Model profile routing in `MODEL_ROUTING.md` and `.agent-kit/model-routing.json`
|
|
27
|
+
- Optional runtime adapter commands and portable `SKILL.md` wrappers, when activated
|
|
27
28
|
- Council-session evidence in `COUNCIL.md`
|
|
28
29
|
- Agent, council-session, model-routing, and audit-report schema contracts in `.agent-kit/schemas/`
|
|
29
30
|
- Planner default ownership for planning and Lead Architect review for core changes
|
|
@@ -65,6 +66,7 @@ Record the current maturity target and evidence.
|
|
|
65
66
|
| --- | --- | --- | --- | --- |
|
|
66
67
|
| Council routing | TBD | TBD | TBD | `AGENT_ROSTER.md`, `COUNCIL.md` |
|
|
67
68
|
| Model routing | TBD | TBD | TBD | `MODEL_ROUTING.md`, `ASSISTANT_ADAPTERS.md` |
|
|
69
|
+
| Runtime adapters | TBD | TBD | TBD | `agent-kit adapter validate antigravity`, `.antigravity/agent-kit/`, `.antigravity/runtime-skills/` |
|
|
68
70
|
| Architecture | TBD | TBD | TBD | Affected-layer map, `DECISIONS.md` |
|
|
69
71
|
| Supabase/RLS | TBD | TBD | TBD | RLS inventory, migration tests |
|
|
70
72
|
| Messaging | TBD | TBD | TBD | `MESSAGING.md`, proof map, objection handling, CTA hierarchy |
|
|
@@ -9,6 +9,7 @@ Testing should be proportional to risk. Auth, data mutations, payments, admin ac
|
|
|
9
9
|
- Integration tests for API, Server Actions, and Supabase interactions where practical.
|
|
10
10
|
- Playwright smoke tests for auth and critical user workflows.
|
|
11
11
|
- Visual QA for important user-facing screens and reusable component states.
|
|
12
|
+
- Runtime adapter validation for plugin manifests, native commands, portable `SKILL.md` wrappers, source-of-truth references, package allowlists, and secret safety.
|
|
12
13
|
|
|
13
14
|
## Critical Smoke Paths
|
|
14
15
|
|
|
@@ -52,6 +53,7 @@ Recommended baseline:
|
|
|
52
53
|
- `agent-kit audit --min-readiness baseline-setup`
|
|
53
54
|
- Playwright smoke tests for critical paths
|
|
54
55
|
- Visual QA evidence for high-risk UI changes
|
|
56
|
+
- `agent-kit adapter validate antigravity` and `agent-kit package validate` when adapter/package assets change
|
|
55
57
|
|
|
56
58
|
## Security-Focused Tests
|
|
57
59
|
|
|
@@ -62,6 +64,7 @@ Prioritize:
|
|
|
62
64
|
- Unauthorized API calls
|
|
63
65
|
- RLS-protected reads and writes
|
|
64
66
|
- Service-role-only operations
|
|
67
|
+
- Secret-like values in runtime adapter assets, generated sessions, static exports, docs, and package files
|
|
65
68
|
|
|
66
69
|
## Test Gaps
|
|
67
70
|
|
|
@@ -5,10 +5,12 @@ Use this file when upgrading Agent Kit, Next.js, Supabase, shared UI primitives,
|
|
|
5
5
|
## Agent Kit Upgrade Flow
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx @
|
|
9
|
-
npx @
|
|
10
|
-
npx @
|
|
11
|
-
npx @
|
|
8
|
+
npx @appsforgood/next-supabase-kit@latest doctor
|
|
9
|
+
npx @appsforgood/next-supabase-kit@latest diff
|
|
10
|
+
npx @appsforgood/next-supabase-kit@latest update
|
|
11
|
+
npx @appsforgood/next-supabase-kit@latest adapter validate antigravity
|
|
12
|
+
npx @appsforgood/next-supabase-kit@latest setup --status
|
|
13
|
+
npx @appsforgood/next-supabase-kit@latest audit --min-readiness baseline-setup
|
|
12
14
|
```
|
|
13
15
|
|
|
14
16
|
Use `agent-kit audit --min-readiness best-practice-candidate` only after starter placeholders and upgrade evidence are replaced with project-specific evidence.
|
|
@@ -20,6 +22,8 @@ Use `agent-kit audit --min-readiness best-practice-candidate` only after starter
|
|
|
20
22
|
- Review `.agent-kit/conflicts/` before accepting changed templates.
|
|
21
23
|
- Preserve valid local customizations in `.agent-kit/overrides.json`.
|
|
22
24
|
- Review `AGENTS.md`, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `MODEL_ROUTING.md`, `COUNCIL.md`, `QUALITY_GATES.md`, `SECURITY.md`, `TESTING.md`, and `DEPLOYMENT.md`.
|
|
25
|
+
- If using Antigravity, review `.antigravity/agent-kit/plugin.json`, `.antigravity/agent-kit/commands/*.toml`, and `.antigravity/runtime-skills/*/SKILL.md`.
|
|
26
|
+
- Validate runtime adapter assets with `agent-kit adapter validate antigravity`.
|
|
23
27
|
- Record accepted tradeoffs in `DECISIONS.md`.
|
|
24
28
|
- Update this file with package version, release notes, migration status, rollback notes, owner, and date.
|
|
25
29
|
|