@appsforgood/next-supabase-kit 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/DOGFOOD.md +14 -0
- package/README.md +432 -358
- package/REPOSITORY_SETTINGS.md +3 -1
- package/SUPPLY_CHAIN.md +3 -2
- package/dist/index.js +52 -20
- package/dist/index.js.map +1 -1
- package/examples/next-supabase-installed/.agent-kit/config.json +30 -0
- package/examples/next-supabase-installed/.agent-kit/manifest.json +9 -10
- package/examples/next-supabase-installed/audit-output.json +1 -1
- package/examples/next-supabase-installed/tree.txt +0 -3
- package/package.json +2 -1
- package/templates/next-supabase/.github/workflows/agent-kit-audit.yml +6 -7
- package/templates/next-supabase/DEPLOYMENT.md +2 -0
- package/templates/next-supabase/LOOP_CODING.md +1 -1
- package/templates/next-supabase/QUALITY_GATES.md +1 -0
- package/templates/next-supabase/TESTING.md +17 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Agent
|
|
1
|
+
# Agent Kit for Next.js + Supabase
|
|
2
2
|
|
|
3
3
|
[](https://github.com/lukey662/agentsandskills/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/@appsforgood/next-supabase-kit)
|
|
@@ -6,494 +6,568 @@
|
|
|
6
6
|
[](https://github.com/lukey662/agentsandskills/actions/workflows/codeql.yml)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
|
-
`@appsforgood/next-supabase-kit` installs
|
|
9
|
+
`@appsforgood/next-supabase-kit` installs versioned agent instructions, specialist roles, reusable skills, project documentation, security checks, UI review gates, and audit tooling into an existing repository.
|
|
10
10
|
|
|
11
|
-
It
|
|
11
|
+
It is designed for teams using AI coding tools on Next.js and Supabase projects that need the work to remain reviewable, secure, and maintainable.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## Start Here
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
- [Quick start](#quick-start)
|
|
16
|
+
- [First-run examples](#first-run-examples)
|
|
17
|
+
- [Audit examples](#audit-examples)
|
|
18
|
+
- [Common delivery workflows](#common-delivery-workflows)
|
|
19
|
+
- [Updating an existing install](#updating-an-existing-install)
|
|
20
|
+
- [Optional executable runtime](#optional-executable-runtime)
|
|
21
|
+
- [Installed project contract](#installed-project-contract)
|
|
22
|
+
- [Maintainer verification](#maintainer-verification)
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## What You Get
|
|
18
25
|
|
|
19
|
-
|
|
26
|
+
- A machine-readable council roster with explicit ownership and handoffs.
|
|
27
|
+
- Instructions and adapters for Codex, Cursor, Claude Code, GitHub Copilot, and Antigravity.
|
|
28
|
+
- Living `SPEC.md`, `DECISIONS.md`, `DESIGN.md`, `MESSAGING.md`, `SECURITY.md`, `TESTING.md`, and deployment documentation.
|
|
29
|
+
- Supabase Auth, RLS, migration, service-role, and OWASP review rules.
|
|
30
|
+
- Frontend design gates that reject generic gradients, card soup, fake metrics, vague SaaS copy, inaccessible state styling, and other common AI-generated UI patterns.
|
|
31
|
+
- Local project context, durable human corrections, council-session evidence, and static or live Agent Studio views.
|
|
32
|
+
- A CLI that detects missing setup, stale templates, unsupported claims, weak evidence, and release-readiness gaps.
|
|
33
|
+
- An optional runtime for checkpointed LangGraph execution with provider adapters, MCP policy, approvals, Docker isolation, and Git worktrees.
|
|
20
34
|
|
|
21
|
-
|
|
35
|
+
## Choose A Mode
|
|
36
|
+
|
|
37
|
+
| Mode | Package | What runs |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| Instructions and audits | `@appsforgood/next-supabase-kit` | Your coding assistant follows installed files; the CLI installs, validates, records, and audits evidence |
|
|
40
|
+
| Executable council | Add `@appsforgood/agent-kit-runtime` | The CLI compiles the roster into checkpointed workflows with approval gates and isolated worktrees |
|
|
41
|
+
|
|
42
|
+
The base kit does not call a model provider. Installing instructions does not prove that an executable council ran. Only `agent-kit orchestrate ...` produces runtime checkpoints and run evidence.
|
|
43
|
+
|
|
44
|
+
## Requirements
|
|
45
|
+
|
|
46
|
+
- Node.js 20 or newer.
|
|
47
|
+
- Git for update, session, and worktree-aware workflows.
|
|
48
|
+
- A Next.js + Supabase project is the primary profile, but the documentation and audit model can be adapted to adjacent stacks.
|
|
49
|
+
- Docker is required only for mutation commands in the optional executable runtime.
|
|
22
50
|
|
|
23
51
|
## Quick Start
|
|
24
52
|
|
|
25
|
-
|
|
53
|
+
### Zero-install trial
|
|
54
|
+
|
|
55
|
+
Run the current package directly in the repository you want to prepare:
|
|
26
56
|
|
|
27
57
|
```bash
|
|
28
|
-
npx @appsforgood/next-supabase-kit@latest init --stack next-supabase --setup --open
|
|
29
|
-
npx @appsforgood/next-supabase-kit audit
|
|
30
|
-
npx @appsforgood/next-supabase-kit audit --min-readiness baseline-setup
|
|
58
|
+
npx --yes @appsforgood/next-supabase-kit@latest init --stack next-supabase --setup --open
|
|
59
|
+
npx --yes @appsforgood/next-supabase-kit@latest audit
|
|
60
|
+
npx --yes @appsforgood/next-supabase-kit@latest audit --min-readiness baseline-setup
|
|
31
61
|
```
|
|
32
62
|
|
|
33
|
-
|
|
63
|
+
The first command installs project-owned documentation and `.agent-kit/` assets, then opens the local Agent Office setup flow. Existing customized files are preserved; changed templates are written to `.agent-kit/conflicts/` for review.
|
|
64
|
+
|
|
65
|
+
### Local development dependency
|
|
66
|
+
|
|
67
|
+
Install the CLI when the project will use it repeatedly or in CI:
|
|
34
68
|
|
|
35
69
|
```bash
|
|
36
|
-
|
|
37
|
-
npx
|
|
70
|
+
npm install --save-dev @appsforgood/next-supabase-kit
|
|
71
|
+
npx agent-kit init --stack next-supabase --setup --open
|
|
72
|
+
npx agent-kit audit --min-readiness baseline-setup
|
|
38
73
|
```
|
|
39
74
|
|
|
40
|
-
|
|
75
|
+
Add convenient package scripts:
|
|
41
76
|
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"scripts": {
|
|
80
|
+
"agent:audit": "agent-kit audit --min-readiness baseline-setup",
|
|
81
|
+
"agent:setup": "agent-kit setup --open",
|
|
82
|
+
"agent:studio": "agent-kit studio serve --open"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
45
85
|
```
|
|
46
86
|
|
|
47
|
-
|
|
87
|
+
Then run:
|
|
48
88
|
|
|
49
89
|
```bash
|
|
50
|
-
npm
|
|
51
|
-
agent-kit orchestrate validate
|
|
52
|
-
agent-kit orchestrate plan "Describe the goal"
|
|
90
|
+
npm run agent:audit
|
|
53
91
|
```
|
|
54
92
|
|
|
55
|
-
|
|
93
|
+
## First-Run Examples
|
|
94
|
+
|
|
95
|
+
### Preview before writing
|
|
56
96
|
|
|
57
|
-
|
|
97
|
+
```bash
|
|
98
|
+
npx agent-kit init --stack next-supabase --guided --dry-run --json
|
|
99
|
+
```
|
|
58
100
|
|
|
59
|
-
###
|
|
101
|
+
### Install without opening a browser
|
|
60
102
|
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
agent-kit
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
AGENT_ROSTER.md
|
|
67
|
-
ASSISTANT_ADAPTERS.md
|
|
68
|
-
...
|
|
69
|
-
.cursor/rules/cursor-agent-kit.mdc
|
|
70
|
-
.agent-kit/agent-roster.json
|
|
71
|
-
.agent-kit/model-routing.json
|
|
103
|
+
```bash
|
|
104
|
+
npx agent-kit init --stack next-supabase --no-setup
|
|
105
|
+
npx agent-kit context init
|
|
106
|
+
npx agent-kit context ask
|
|
107
|
+
```
|
|
72
108
|
|
|
73
|
-
|
|
74
|
-
Next: run agent-kit audit to check readiness.
|
|
109
|
+
GitHub Actions is off by default. Opt in to the advisory audit workflow only when the repository has working Actions entitlement:
|
|
75
110
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
evidence still needs to replace starter placeholders.
|
|
79
|
-
SUMMARY pass=60 warn=3 fail=0
|
|
80
|
-
NEXT ACTIONS
|
|
81
|
-
- Run agent-kit onboard or agent-kit init --guided so agents can start
|
|
82
|
-
with project-specific context.
|
|
111
|
+
```bash
|
|
112
|
+
npx agent-kit init --github-actions
|
|
83
113
|
```
|
|
84
114
|
|
|
85
|
-
|
|
115
|
+
The workflow runs manually by default. Set the repository variable `AGENT_KIT_ACTIONS_ENABLED=true` to enable its push and pull-request jobs. Do not make the check required until the repository can reliably start Actions jobs.
|
|
86
116
|
|
|
87
|
-
|
|
117
|
+
### Resume project onboarding
|
|
88
118
|
|
|
89
119
|
```bash
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
npm test
|
|
93
|
-
npm run release:check
|
|
120
|
+
npx agent-kit setup --open
|
|
121
|
+
npx agent-kit setup --status
|
|
94
122
|
```
|
|
95
123
|
|
|
96
|
-
|
|
124
|
+
The setup server binds to `127.0.0.1:9321` by default:
|
|
97
125
|
|
|
98
|
-
|
|
126
|
+
- `/` or `/office`: Agent Office.
|
|
127
|
+
- `/wizard`: form-based fallback.
|
|
99
128
|
|
|
100
|
-
|
|
129
|
+
Use a different port when needed:
|
|
101
130
|
|
|
102
|
-
```
|
|
103
|
-
|
|
131
|
+
```bash
|
|
132
|
+
npx agent-kit setup --port 9400 --open
|
|
104
133
|
```
|
|
105
134
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Core lifecycle commands
|
|
135
|
+
### Activate IDE adapters
|
|
109
136
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
| Build frontend/UI | `/frontend` | Content-first design | frontend-design-lead skills |
|
|
117
|
-
| Check kit readiness | `/audit` | Evidence before claims | best-practice-maturity-review |
|
|
118
|
-
| Prove behavior | `/test` | Tests are proof | testing-qa, qa-engineer |
|
|
119
|
-
| Review before merge | `/review` | Improve code health | qa-engineer + security-reviewer |
|
|
120
|
-
| Security signoff | `/security` | RLS at the boundary | owasp-security-review, supabase-auth-rls |
|
|
121
|
-
| Public copy | `/copy` | Proof before publish | marketing-copy-lead |
|
|
122
|
-
| Ship release | `/ship` | Faster is safer | deployment-observability, release gates |
|
|
123
|
-
| Upgrade kit/deps | `/upgrade` | Diff before overwrite | upgrade-maintenance |
|
|
137
|
+
```bash
|
|
138
|
+
npx agent-kit init --activate cursor
|
|
139
|
+
npx agent-kit init --activate codex
|
|
140
|
+
npx agent-kit init --activate antigravity
|
|
141
|
+
npx agent-kit adapter validate all
|
|
142
|
+
```
|
|
124
143
|
|
|
125
|
-
|
|
144
|
+
Activation promotes the relevant adapter files. The IDE or coding agent still decides when and how to load them; review `ASSISTANT_ADAPTERS.md` for the exact behavior of each tool.
|
|
126
145
|
|
|
127
|
-
|
|
146
|
+
## Audit Examples
|
|
128
147
|
|
|
129
|
-
|
|
130
|
-
| --- | --- | --- |
|
|
131
|
-
| Audit UI before release | `/ui-audit` | Detect before ship |
|
|
132
|
-
| Improve visual quality | `/ui-polish` | Scope-safe polish |
|
|
133
|
-
| Repair layout structure | `/layout-cleanup` | Hierarchy over decoration |
|
|
134
|
-
| Fix responsive behavior | `/responsive-cleanup` | Mobile is not an afterthought |
|
|
135
|
-
| WCAG 2.1 AA pass | `/accessibility-pass` | Keyboard and contrast matter |
|
|
136
|
-
| Prove product distinctiveness | `/distinctiveness-pass` | Not interchangeable SaaS |
|
|
137
|
-
| Critique screenshots | `/screenshot-critique` | Evidence over opinion |
|
|
138
|
-
| Live browser QA loop | `/browser-qa` | Measure in the real UI |
|
|
148
|
+
### Human-readable readiness report
|
|
139
149
|
|
|
140
|
-
|
|
150
|
+
```bash
|
|
151
|
+
npx agent-kit audit
|
|
152
|
+
```
|
|
141
153
|
|
|
142
|
-
###
|
|
154
|
+
### Stable JSON output
|
|
143
155
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
| Supabase/Postgres Engineer | Schema, migrations, RLS, auth | supabase-auth-rls, postgres-migrations |
|
|
149
|
-
| Next.js Engineer | App Router, Server Actions, UI state | nextjs-app-router, frontend-design-system |
|
|
150
|
-
| Frontend Design Lead | Design gates, visual QA, anti-generic UI | content-first-design, ui-improvement-harness |
|
|
151
|
-
| Marketing Copy Lead | Positioning, conversion copy, CTAs | positioning-messaging, conversion-copywriting |
|
|
152
|
-
| Security Reviewer | OWASP, auth boundaries, secrets | owasp-security-review, supabase-auth-rls |
|
|
153
|
-
| QA Engineer | Tests, regression, acceptance evidence | testing-qa, visual-regression-qa |
|
|
154
|
-
| Documentation Maintainer | Living docs, spec, decisions | docs-maintainer, planning-council |
|
|
155
|
-
| Deployment/Observability Engineer | Release, rollback, monitoring | deployment-observability |
|
|
156
|
+
```bash
|
|
157
|
+
npx agent-kit audit --json
|
|
158
|
+
npx agent-kit audit --schema-version 2 --format json
|
|
159
|
+
```
|
|
156
160
|
|
|
157
|
-
###
|
|
161
|
+
### SARIF for code-scanning systems
|
|
158
162
|
|
|
159
|
-
|
|
163
|
+
```bash
|
|
164
|
+
npx agent-kit audit --schema-version 2 --format sarif > agent-kit.sarif
|
|
165
|
+
```
|
|
160
166
|
|
|
161
|
-
|
|
167
|
+
### Fail a local or explicitly enabled CI gate below the required evidence level
|
|
162
168
|
|
|
163
|
-
|
|
169
|
+
```bash
|
|
170
|
+
npx agent-kit audit --min-readiness baseline-setup
|
|
171
|
+
```
|
|
164
172
|
|
|
165
|
-
|
|
173
|
+
Readiness levels are:
|
|
174
|
+
|
|
175
|
+
1. `needs-setup`
|
|
176
|
+
2. `baseline-setup`
|
|
177
|
+
3. `needs-improvement`
|
|
178
|
+
4. `best-practice-candidate`
|
|
179
|
+
|
|
180
|
+
Example GitHub Actions job:
|
|
181
|
+
|
|
182
|
+
```yaml
|
|
183
|
+
name: Agent Kit Audit
|
|
184
|
+
|
|
185
|
+
on:
|
|
186
|
+
pull_request:
|
|
187
|
+
push:
|
|
188
|
+
branches: [main]
|
|
189
|
+
|
|
190
|
+
jobs:
|
|
191
|
+
audit:
|
|
192
|
+
if: ${{ github.event_name == 'workflow_dispatch' || vars.AGENT_KIT_ACTIONS_ENABLED == 'true' }}
|
|
193
|
+
runs-on: ubuntu-latest
|
|
194
|
+
permissions:
|
|
195
|
+
contents: read
|
|
196
|
+
steps:
|
|
197
|
+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
198
|
+
with:
|
|
199
|
+
persist-credentials: false
|
|
200
|
+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
201
|
+
with:
|
|
202
|
+
node-version: 24
|
|
203
|
+
- run: npx --yes @appsforgood/next-supabase-kit@0.3.0 audit --min-readiness baseline-setup
|
|
204
|
+
```
|
|
166
205
|
|
|
167
|
-
|
|
206
|
+
Run `agent-kit init --github-actions` to install the maintained `.github/workflows/agent-kit-audit.yml` template. Fresh installs do not create an active hosted workflow. Account billing, spending-limit, or Actions-startup failures are external infrastructure failures; they do not replace required local test and audit evidence and do not block commit/push or normal phase progression. A project may separately make hosted checks required only after verifying Actions entitlement and branch protection.
|
|
168
207
|
|
|
169
|
-
|
|
208
|
+
## Common Delivery Workflows
|
|
170
209
|
|
|
171
|
-
|
|
172
|
-
- **Runtime wrappers** in `runtime-skills/*/SKILL.md` expose the same content to Antigravity and other skill-directory runtimes.
|
|
173
|
-
- **Roster routing** in `.agent-kit/agent-roster.json` maps `defaultFor` keywords and workflows to agents and their default skill sets—slash commands and natural-language requests both use the same contract.
|
|
210
|
+
### Plan and record a feature
|
|
174
211
|
|
|
175
|
-
|
|
212
|
+
```bash
|
|
213
|
+
npx agent-kit session start "Add organization invitations" --workflow core-change
|
|
214
|
+
npx agent-kit session decision "Keep authorization in Supabase RLS and server-side mutation boundaries."
|
|
215
|
+
npx agent-kit session handoff \
|
|
216
|
+
--from planner \
|
|
217
|
+
--to lead-architect \
|
|
218
|
+
--decision "Review the invitation data and auth boundaries." \
|
|
219
|
+
--risk "Invitation tokens and tenant isolation require explicit review."
|
|
220
|
+
npx agent-kit session artifact --file SPEC.md
|
|
221
|
+
npx agent-kit session verify \
|
|
222
|
+
--command "npm test" \
|
|
223
|
+
--result pass \
|
|
224
|
+
--notes "Invitation unit and regression tests passed."
|
|
225
|
+
npx agent-kit session render
|
|
226
|
+
npx agent-kit session close --status complete
|
|
227
|
+
```
|
|
176
228
|
|
|
177
|
-
|
|
229
|
+
### Record several events at once
|
|
230
|
+
|
|
231
|
+
```json
|
|
232
|
+
{
|
|
233
|
+
"events": [
|
|
234
|
+
{
|
|
235
|
+
"type": "decision",
|
|
236
|
+
"agent": "lead-architect",
|
|
237
|
+
"text": "Use a server action for the mutation and RLS for authorization."
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "artifact",
|
|
241
|
+
"agent": "nextjs-engineer",
|
|
242
|
+
"path": "app/invitations/actions.ts"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"type": "verification",
|
|
246
|
+
"agent": "qa-engineer",
|
|
247
|
+
"command": "npm test",
|
|
248
|
+
"result": "pass",
|
|
249
|
+
"notes": "Regression suite passed."
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
```
|
|
178
254
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
- `MODEL_ROUTING.md`: model-profile guidance for each agent and IDE.
|
|
184
|
-
- `QUALITY_GATES.md`: what separates baseline setup, strong delivery, and best-practice evidence.
|
|
185
|
-
- `DESIGN.md`: the frontend design and content contract.
|
|
186
|
-
- `MESSAGING.md`: the positioning, value proposition, proof, objections, voice, and CTA contract.
|
|
187
|
-
- `COUNCIL.md`: where meaningful handoffs and decisions are recorded.
|
|
255
|
+
```bash
|
|
256
|
+
npx agent-kit session checkpoint --file .agent-kit/checkpoint.json
|
|
257
|
+
npx agent-kit session render
|
|
258
|
+
```
|
|
188
259
|
|
|
189
|
-
|
|
260
|
+
### Review a frontend change
|
|
190
261
|
|
|
191
|
-
|
|
192
|
-
- Lead Architect reviews core changes before implementation.
|
|
193
|
-
- Security Reviewer joins auth, RLS, data mutation, dependency, secret, external-call, and release-risk work.
|
|
194
|
-
- Frontend Design Lead owns content-first design, reference-led critique, distinctiveness benchmarking, product-quality scoring, UI detector severity review, command-based polish/audit loops, and visual QA.
|
|
195
|
-
- Marketing Copy Lead owns public-facing and conversion-facing copy, positioning, proof, objections, voice, and CTA hierarchy.
|
|
196
|
-
- QA Engineer verifies behavior changes before completion.
|
|
197
|
-
- Documentation Maintainer keeps the living markdown current.
|
|
262
|
+
Use the installed command instructions as prompt prefixes in compatible coding tools, or as native commands after activating Antigravity:
|
|
198
263
|
|
|
199
|
-
|
|
264
|
+
```text
|
|
265
|
+
/frontend Build the account settings workflow.
|
|
266
|
+
/ui-audit Review the implementation against the product-quality gates.
|
|
267
|
+
/responsive-cleanup Verify 390px, tablet, and desktop layouts.
|
|
268
|
+
/accessibility-pass Check keyboard, focus, labels, contrast, and error recovery.
|
|
269
|
+
/screenshot-critique Compare desktop and mobile screenshots against DESIGN.md.
|
|
270
|
+
```
|
|
200
271
|
|
|
201
|
-
|
|
272
|
+
The UI detector checks include concrete replacements:
|
|
202
273
|
|
|
203
|
-
|
|
274
|
+
| Avoid | Prefer |
|
|
275
|
+
| --- | --- |
|
|
276
|
+
| Thick colored side rails and gradient borders on cards | Quiet 1px full borders, semantic icons, labels, and subtle state tint |
|
|
277
|
+
| Purple/blue gradient heroes and glowing blobs | Product imagery, real workflow screenshots, concrete content, or tokenized neutral surfaces |
|
|
278
|
+
| Decorative card grids | Tables, lists, forms, timelines, split panes, and task-specific grouping |
|
|
279
|
+
| Invented metrics and placeholder charts | Real data, clearly labelled samples, empty states, or connection prompts |
|
|
280
|
+
| "Supercharge your workflow" and similar copy | Specific actions, product nouns, constraints, and supported outcomes |
|
|
281
|
+
| Decorative badge or icon walls | Real integrations, security posture, support details, commands, states, and navigation |
|
|
282
|
+
| Frosted oversized panels | Normal surfaces, practical density, and clear section boundaries |
|
|
283
|
+
| Color-only status | Semantic text, icons, accessible contrast, ARIA state, and recovery actions |
|
|
204
284
|
|
|
205
|
-
|
|
285
|
+
Exceptions for an established brand system should be recorded in `DESIGN.md` or `.agent-kit/overrides.json`.
|
|
206
286
|
|
|
207
|
-
|
|
208
|
-
| --- | --- |
|
|
209
|
-
| `init` | Install docs, roster, skills, schemas, Cursor rules, and project context |
|
|
210
|
-
| `diff` | Compare local docs against bundled templates |
|
|
211
|
-
| `update` | Hash-aware upgrade: pristine docs refresh, local edits kept, conflicts for review |
|
|
212
|
-
| `add skill <name>` | Copy one skill into `.agent-kit/skills/` |
|
|
213
|
-
| `onboard` | Print the recommended first-run checklist |
|
|
287
|
+
### Review Supabase auth or RLS work
|
|
214
288
|
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
agent-kit update --dry-run
|
|
220
|
-
agent-kit add skill ui-improvement-harness
|
|
289
|
+
```text
|
|
290
|
+
/plan Add team-scoped document sharing.
|
|
291
|
+
/security Review tenant isolation, IDOR risk, service-role use, and RLS coverage.
|
|
292
|
+
/test Add cross-tenant read/write denial tests and an authorized happy path.
|
|
221
293
|
```
|
|
222
294
|
|
|
223
|
-
|
|
224
|
-
`update` flags: `--dry-run`, `--force`, `--json`.
|
|
295
|
+
Required evidence should include:
|
|
225
296
|
|
|
226
|
-
|
|
297
|
+
- Migration and rollback implications.
|
|
298
|
+
- RLS policies at the data boundary.
|
|
299
|
+
- Cross-tenant denial tests.
|
|
300
|
+
- Service-role isolation.
|
|
301
|
+
- Server-side input validation.
|
|
302
|
+
- Explicit failure and empty states.
|
|
227
303
|
|
|
228
|
-
|
|
229
|
-
| --- | --- |
|
|
230
|
-
| `setup` | Serve local Agent Office (default) and form wizard at `http://127.0.0.1:9321` |
|
|
231
|
-
| `setup --status` | Print onboarding progress as JSON |
|
|
232
|
-
|
|
233
|
-
Routes: `/` or `/office` (pixel office, default), `/wizard` (form fallback).
|
|
304
|
+
### Preserve a durable correction
|
|
234
305
|
|
|
235
306
|
```bash
|
|
236
|
-
agent-kit
|
|
237
|
-
|
|
307
|
+
npx agent-kit correction add --scope project \
|
|
308
|
+
"Use task-first operational layouts; do not add marketing heroes to authenticated tools."
|
|
309
|
+
npx agent-kit correction list
|
|
310
|
+
npx agent-kit correction apply <correction-id>
|
|
238
311
|
```
|
|
239
312
|
|
|
240
|
-
|
|
313
|
+
Applied project and agent corrections are loaded before meaningful work. Use `correction retire <id> --reason "..." ` when a rule no longer applies.
|
|
241
314
|
|
|
242
|
-
|
|
243
|
-
| --- | --- |
|
|
244
|
-
| `audit` | Readiness report with pass/warn/fail findings |
|
|
245
|
-
| `doctor` | Validate CLI runtime prerequisites |
|
|
246
|
-
| `adapter validate [target]` | Validate IDE/runtime adapter assets (`cursor`, `claude`, `codex`, `copilot`, `antigravity`, `all`) |
|
|
247
|
-
| `package validate` | Source-repo release asset validation (maintainers) |
|
|
315
|
+
### Inspect sessions in Agent Studio
|
|
248
316
|
|
|
249
317
|
```bash
|
|
250
|
-
agent-kit
|
|
251
|
-
agent-kit
|
|
252
|
-
agent-kit doctor --json
|
|
318
|
+
npx agent-kit studio export
|
|
319
|
+
npx agent-kit studio serve --open
|
|
253
320
|
```
|
|
254
321
|
|
|
255
|
-
|
|
322
|
+
- Static export: `.agent-kit/studio/index.html`.
|
|
323
|
+
- Live Studio: `http://127.0.0.1:9331` by default.
|
|
324
|
+
- Live sessions use local append-only events and Server-Sent Events.
|
|
256
325
|
|
|
257
|
-
|
|
326
|
+
## Updating An Existing Install
|
|
258
327
|
|
|
259
|
-
|
|
260
|
-
| --- | --- |
|
|
261
|
-
| `context init` | Create or refresh `.agent-kit/project-context.json` |
|
|
262
|
-
| `context scan` | Print inferred context without writing |
|
|
263
|
-
| `context ask` | List unanswered high-value context questions |
|
|
264
|
-
| `context render` | Render `.agent-kit/project-context.md` |
|
|
265
|
-
| `context validate` | Validate context against schema |
|
|
266
|
-
| `context show` | Print current context JSON |
|
|
328
|
+
Preview template drift before applying an update:
|
|
267
329
|
|
|
268
330
|
```bash
|
|
269
|
-
agent-kit
|
|
270
|
-
agent-kit
|
|
331
|
+
npx agent-kit diff --json
|
|
332
|
+
npx agent-kit update --dry-run --json
|
|
333
|
+
npx agent-kit update
|
|
334
|
+
npx agent-kit audit --min-readiness baseline-setup
|
|
271
335
|
```
|
|
272
336
|
|
|
273
|
-
|
|
337
|
+
Update behavior:
|
|
274
338
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
| `session render` / `session close` | Render Markdown and close the session |
|
|
339
|
+
- Pristine installed files are refreshed.
|
|
340
|
+
- Project-owned edits are preserved.
|
|
341
|
+
- Template changes that collide with local edits are written to `.agent-kit/conflicts/`.
|
|
342
|
+
- `--force` is explicit and should be used only after reviewing the diff.
|
|
343
|
+
- Accepted deviations belong in `.agent-kit/overrides.json`.
|
|
344
|
+
|
|
345
|
+
Example conflict review:
|
|
283
346
|
|
|
284
347
|
```bash
|
|
285
|
-
agent-kit
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
agent-kit session output "visual QA evidence" --status not-applicable --evidence "No UI change."
|
|
289
|
-
agent-kit session checkpoint --file .agent-kit/checkpoint.json
|
|
290
|
-
agent-kit session render
|
|
291
|
-
agent-kit session close --status complete
|
|
348
|
+
npx agent-kit update --dry-run
|
|
349
|
+
git diff -- .agent-kit/manifest.json
|
|
350
|
+
git status --short .agent-kit/conflicts
|
|
292
351
|
```
|
|
293
352
|
|
|
294
|
-
|
|
353
|
+
## Optional Executable Runtime
|
|
295
354
|
|
|
296
|
-
|
|
297
|
-
| --- | --- |
|
|
298
|
-
| `orchestrate validate` | Validate runtime config, roster references, and bounds without provider calls |
|
|
299
|
-
| `orchestrate plan <goal...>` | Compile the offline workflow sequence and approval envelope |
|
|
300
|
-
| `orchestrate run <goal...>` | Start a checkpointed run in an isolated worktree |
|
|
301
|
-
| `orchestrate approve <run-id>` | Approve the current gate and resume |
|
|
302
|
-
| `orchestrate resume <run-id> --decision ...` | Explicitly approve or reject a gate |
|
|
303
|
-
| `orchestrate status [run-id]` | Read persisted run state |
|
|
304
|
-
| `orchestrate cancel <run-id>` | Cancel a paused or local in-process run |
|
|
305
|
-
| `orchestrate export <run-id>` | Render redacted run evidence as Markdown |
|
|
306
|
-
| `provider probe`, `mcp probe` | Explicitly test configured external adapters |
|
|
307
|
-
| `credential set`, `credential delete` | Manage OS-keychain references without CLI value flags |
|
|
308
|
-
|
|
309
|
-
The runtime may create one approved scoped commit on `agent-kit/<run-id>`. It never merges, pushes, opens a pull request, deploys, or applies migrations. See [RUNTIME_ORCHESTRATION_SCOPE.md](RUNTIME_ORCHESTRATION_SCOPE.md) and [packages/runtime/README.md](packages/runtime/README.md).
|
|
310
|
-
|
|
311
|
-
### Corrections
|
|
312
|
-
|
|
313
|
-
| Command | Purpose |
|
|
314
|
-
| --- | --- |
|
|
315
|
-
| `correction list` | List durable project and agent correction rules |
|
|
316
|
-
| `correction add` | Add a correction (`--scope project\|agent\|session`) |
|
|
317
|
-
| `correction apply` | Promote a correction into active rules |
|
|
318
|
-
| `correction retire` | Retire a correction with reason |
|
|
319
|
-
| `correction propose-upstream` | Flag a correction for kit promotion |
|
|
355
|
+
Install both packages locally. The runtime package does not provide the `agent-kit` binary by itself.
|
|
320
356
|
|
|
321
357
|
```bash
|
|
322
|
-
|
|
323
|
-
|
|
358
|
+
npm install --save-dev \
|
|
359
|
+
@appsforgood/next-supabase-kit \
|
|
360
|
+
@appsforgood/agent-kit-runtime
|
|
361
|
+
npx agent-kit orchestrate validate
|
|
324
362
|
```
|
|
325
363
|
|
|
326
|
-
|
|
364
|
+
Fresh installs include a disabled `.agent-kit/orchestrator.json`. Configure provider model IDs that you have verified for the current provider account. Credentials must be references, not inline secret values.
|
|
365
|
+
|
|
366
|
+
Minimal configuration example:
|
|
367
|
+
|
|
368
|
+
```json
|
|
369
|
+
{
|
|
370
|
+
"schemaVersion": 1,
|
|
371
|
+
"enabled": true,
|
|
372
|
+
"defaultWorkflow": "planning",
|
|
373
|
+
"defaultAlias": "balanced",
|
|
374
|
+
"providers": {
|
|
375
|
+
"primary": {
|
|
376
|
+
"kind": "openai",
|
|
377
|
+
"credentialRef": "env:OPENAI_API_KEY"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"modelAliases": {
|
|
381
|
+
"balanced": {
|
|
382
|
+
"requiredCapabilities": ["text", "tools"],
|
|
383
|
+
"maxAttempts": 1,
|
|
384
|
+
"candidates": [
|
|
385
|
+
{
|
|
386
|
+
"provider": "primary",
|
|
387
|
+
"model": "replace-with-a-verified-provider-model-id"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
```
|
|
327
394
|
|
|
328
|
-
|
|
329
|
-
| --- | --- |
|
|
330
|
-
| `studio export` | Generate self-contained static HTML at `.agent-kit/studio/index.html` |
|
|
331
|
-
| `studio serve` | Live localhost Agent Office with SSE session events (default port `9331`) |
|
|
395
|
+
Validate and inspect the plan without calling a provider:
|
|
332
396
|
|
|
333
397
|
```bash
|
|
334
|
-
agent-kit
|
|
335
|
-
agent-kit
|
|
398
|
+
npx agent-kit orchestrate validate
|
|
399
|
+
npx agent-kit orchestrate plan "Review the authorization boundary" --workflow planning
|
|
336
400
|
```
|
|
337
401
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
Requires `GITHUB_TOKEN` in the environment.
|
|
402
|
+
Start and manage a run:
|
|
341
403
|
|
|
342
404
|
```bash
|
|
343
|
-
agent-kit
|
|
344
|
-
agent-kit
|
|
345
|
-
agent-kit
|
|
346
|
-
agent-kit
|
|
405
|
+
npx agent-kit orchestrate run "Implement the approved authorization fix" --workflow core-change
|
|
406
|
+
npx agent-kit orchestrate status
|
|
407
|
+
npx agent-kit orchestrate approve <run-id>
|
|
408
|
+
npx agent-kit orchestrate resume <run-id> --decision approve
|
|
409
|
+
npx agent-kit orchestrate export <run-id> --output .agent-kit/runtime-export.md
|
|
347
410
|
```
|
|
348
411
|
|
|
349
|
-
|
|
412
|
+
Reject or cancel:
|
|
350
413
|
|
|
351
|
-
|
|
414
|
+
```bash
|
|
415
|
+
npx agent-kit orchestrate resume <run-id> --decision reject
|
|
416
|
+
npx agent-kit orchestrate cancel <run-id>
|
|
417
|
+
```
|
|
352
418
|
|
|
353
|
-
|
|
354
|
-
AGENTS.md
|
|
355
|
-
AGENT_ROSTER.md
|
|
356
|
-
ASSISTANT_ADAPTERS.md
|
|
357
|
-
COUNCIL.md
|
|
358
|
-
SKILLS.md
|
|
359
|
-
SPEC.md
|
|
360
|
-
DECISIONS.md
|
|
361
|
-
DOCS.md
|
|
362
|
-
DESIGN.md
|
|
363
|
-
MESSAGING.md
|
|
364
|
-
MODEL_ROUTING.md
|
|
365
|
-
QUALITY_GATES.md
|
|
366
|
-
STYLE_GUIDE.md
|
|
367
|
-
SECURITY.md
|
|
368
|
-
TESTING.md
|
|
369
|
-
DEPLOYMENT.md
|
|
370
|
-
UPGRADE.md
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
The `.agent-kit/` folder includes:
|
|
374
|
-
|
|
375
|
-
- `agent-roster.json` for default workflow routing.
|
|
376
|
-
- `model-routing.json` for provider-neutral model profile routing.
|
|
377
|
-
- `project-context.json`, `project-context.md`, `corrections/`, and `council-sessions/` for local Agent Studio context, correction rules, session events, and rendered transcripts.
|
|
378
|
-
- `schemas/` for agent roster, council-session, model-routing, project context, correction rules, session events, studio sessions, and audit-report contracts.
|
|
379
|
-
- `agents/`, `skills/`, `runtime-skills/`, `prompts/`, and `checklists/`.
|
|
380
|
-
- `assistant-adapters/` for Codex/AGENTS.md-compatible tools, GitHub Copilot/VS Code, Cursor, Claude Code, and Antigravity.
|
|
381
|
-
- `antigravity/` for native command and plugin assets.
|
|
382
|
-
- `design-briefs/` for SaaS, admin, marketplace, content, tool, ecommerce, portfolio/venue, education, community/social, and AI workflow surfaces.
|
|
383
|
-
- `profiles/` for product-type and adjacent-stack adaptation.
|
|
384
|
-
|
|
385
|
-
## AI Mechanisms
|
|
386
|
-
|
|
387
|
-
Agent Kit separates the mechanisms that make AI coding repeatable:
|
|
388
|
-
|
|
389
|
-
- Instructions: `AGENTS.md`, assistant adapters, and IDE-specific rule files.
|
|
390
|
-
- Roster: `.agent-kit/agent-roster.json` chooses agents, workflows, and handoffs.
|
|
391
|
-
- Skills: `.agent-kit/skills/` keeps specialist workflows reusable.
|
|
392
|
-
- Runtime commands: Antigravity `commands/*.toml` expose `/setup`, `/spec`, `/audit`, `/plan`, `/handoff`, `/frontend`, `/test`, `/review`, focused UI improvement commands, `/security`, `/copy`, `/ship`, and `/upgrade` as native adapter entrypoints.
|
|
393
|
-
- Portable skills: `runtime-skills/*/SKILL.md` wraps canonical `skills/*.md` files for runtimes that discover skill directories.
|
|
394
|
-
- Model routing: `MODEL_ROUTING.md` and `.agent-kit/model-routing.json` map agents to model profiles.
|
|
395
|
-
- Messaging: `MESSAGING.md` records audience, pain, outcome, proof, objections, voice, and conversion evidence for public-facing copy.
|
|
396
|
-
- 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.
|
|
397
|
-
- Tools and MCP: `ASSISTANT_ADAPTERS.md` records browser, GitHub, Figma, Supabase, docs, or other connector setup.
|
|
398
|
-
- Hooks and CI: optional local enforcement plus `agent-kit audit`, tests, install smoke, SBOM, and release gates.
|
|
399
|
-
|
|
400
|
-
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.
|
|
401
|
-
|
|
402
|
-
Runtime command files are adapters only. `AGENTS.md`, `.agent-kit/agent-roster.json`, `QUALITY_GATES.md`, and Agent Studio session evidence remain the canonical operating model.
|
|
403
|
-
|
|
404
|
-
## Frontend Quality Bar
|
|
405
|
-
|
|
406
|
-
The kit is intentionally strict about frontend work because normal AI output often looks generic.
|
|
407
|
-
|
|
408
|
-
Significant UI work should prove:
|
|
409
|
-
|
|
410
|
-
- Brand/content intake and real user needs.
|
|
411
|
-
- A selected creative direction, with rejected alternatives.
|
|
412
|
-
- Reference lessons and anti-references without copied source designs.
|
|
413
|
-
- First-screen proof that the real product task, object, workflow, or content is visible.
|
|
414
|
-
- A content fingerprint: real product nouns, labels, data shapes, actions, and edge cases.
|
|
415
|
-
- Asset provenance for real, generated, licensed, and placeholder visuals.
|
|
416
|
-
- Product-quality scorecard evidence.
|
|
417
|
-
- Desktop, mobile, key states, accessibility, and visual QA evidence.
|
|
418
|
-
|
|
419
|
-
The Frontend Design Lead should reject work that would still look valid for another product after only changing the logo or headline.
|
|
420
|
-
|
|
421
|
-
Operational UI improvement workflows live in `.agent-kit/prompts/ui-command-index.md` and ship as Antigravity commands: `/ui-audit`, `/ui-polish`, `/layout-cleanup`, `/responsive-cleanup`, `/accessibility-pass`, `/distinctiveness-pass`, `/screenshot-critique`, and `/browser-qa`. Use `.agent-kit/checklists/ui-detectors.md` for deterministic blocker/major/minor findings and `.agent-kit/checklists/ui-acceptance-rubric.md` for pass/fail decisions. High-risk UI work requires desktop and mobile screenshots plus authenticated or permission-state evidence when the surface is not public.
|
|
422
|
-
|
|
423
|
-
## Security Bar
|
|
424
|
-
|
|
425
|
-
The kit treats these as defaults, not optional polish:
|
|
426
|
-
|
|
427
|
-
- OWASP Top 10 review for auth, API, Server Action, external-call, upload, and dependency changes.
|
|
428
|
-
- Supabase RLS at the data boundary.
|
|
429
|
-
- Service-role keys isolated to trusted server code.
|
|
430
|
-
- Input validation and safe output rendering.
|
|
431
|
-
- IDOR, SSRF, injection, broken auth, and misconfiguration review.
|
|
432
|
-
- Dependency audit before release.
|
|
419
|
+
Probe external adapters explicitly:
|
|
433
420
|
|
|
434
|
-
|
|
421
|
+
```bash
|
|
422
|
+
npx agent-kit provider probe
|
|
423
|
+
npx agent-kit provider probe primary
|
|
424
|
+
npx agent-kit mcp probe project-tools
|
|
425
|
+
```
|
|
435
426
|
|
|
436
|
-
|
|
427
|
+
Store a keychain-backed credential through a masked prompt:
|
|
437
428
|
|
|
438
429
|
```bash
|
|
439
|
-
agent-kit
|
|
440
|
-
agent-kit
|
|
441
|
-
agent-kit update
|
|
442
|
-
agent-kit audit --min-readiness baseline-setup
|
|
430
|
+
npx agent-kit credential set keychain:team-openai
|
|
431
|
+
npx agent-kit credential delete keychain:team-openai
|
|
443
432
|
```
|
|
444
433
|
|
|
445
|
-
|
|
434
|
+
### Runtime boundaries
|
|
446
435
|
|
|
447
|
-
|
|
436
|
+
- Mutations occur in an isolated Git worktree.
|
|
437
|
+
- Docker mutation containers use a read-only root, dropped capabilities, `no-new-privileges`, resource limits, and no network by default.
|
|
438
|
+
- File tools reject traversal, symlink escapes, Git internals, environment files, private keys, package-manager credentials, and runtime evidence paths.
|
|
439
|
+
- Network, host execution, worktree writes, and final commits require applicable approval gates.
|
|
440
|
+
- One approved scoped commit may be created on `agent-kit/<run-id>`.
|
|
441
|
+
- The runtime never merges, pushes, opens a pull request, deploys, or applies a migration automatically.
|
|
448
442
|
|
|
449
|
-
|
|
443
|
+
See [Runtime orchestration scope](RUNTIME_ORCHESTRATION_SCOPE.md) and the [runtime package README](packages/runtime/README.md) for provider, MCP, sandbox, checkpoint, and recovery details.
|
|
450
444
|
|
|
451
|
-
|
|
445
|
+
## Installed Project Contract
|
|
452
446
|
|
|
453
|
-
|
|
447
|
+
Important root documents:
|
|
454
448
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
449
|
+
| File | Purpose |
|
|
450
|
+
| --- | --- |
|
|
451
|
+
| `AGENTS.md` | High-level operating instructions and required handoffs |
|
|
452
|
+
| `AGENT_ROSTER.md` | Human-readable specialist ownership |
|
|
453
|
+
| `SPEC.md` | Current functional and technical contract |
|
|
454
|
+
| `DECISIONS.md` | Architectural decisions and consequences |
|
|
455
|
+
| `DESIGN.md` | Brand, content, UI rules, anti-references, and approved exceptions |
|
|
456
|
+
| `MESSAGING.md` | Audience, positioning, proof, objections, voice, and CTA rules |
|
|
457
|
+
| `QUALITY_GATES.md` | Evidence required for each readiness level |
|
|
458
|
+
| `SECURITY.md` | Auth, data, dependency, secret, and threat boundaries |
|
|
459
|
+
| `TESTING.md` | Unit, regression, smoke, visual, and release evidence |
|
|
460
|
+
| `DEPLOYMENT.md` | Environment, release, rollback, and observability guidance |
|
|
461
|
+
| `UPGRADE.md` | Template and dependency upgrade history |
|
|
462
|
+
|
|
463
|
+
Important `.agent-kit/` assets:
|
|
464
|
+
|
|
465
|
+
- `agent-roster.json`: workflow, agent, and handoff contract.
|
|
466
|
+
- `model-routing.json`: provider-neutral model profiles.
|
|
467
|
+
- `project-context.json` and `project-context.md`: current product and architecture context.
|
|
468
|
+
- `corrections/`: durable project and agent rules.
|
|
469
|
+
- `council-sessions/`: structured decisions, handoffs, outputs, and verification.
|
|
470
|
+
- `skills/`, `prompts/`, and `checklists/`: reusable execution and review procedures.
|
|
471
|
+
- `assistant-adapters/`: IDE-specific installation guidance.
|
|
472
|
+
- `schemas/`: validation contracts for installed evidence.
|
|
473
|
+
|
|
474
|
+
Inspect an example installation:
|
|
475
|
+
|
|
476
|
+
- [Example project README](examples/next-supabase-installed/README.md)
|
|
477
|
+
- [Example installed tree](examples/next-supabase-installed/tree.txt)
|
|
478
|
+
- [Example audit report](examples/next-supabase-installed/audit-output.json)
|
|
479
|
+
|
|
480
|
+
## Workflow Instruction Index
|
|
481
|
+
|
|
482
|
+
The kit includes 20 lifecycle and UI instruction adapters.
|
|
483
|
+
|
|
484
|
+
| Goal | Instruction |
|
|
485
|
+
| --- | --- |
|
|
486
|
+
| Capture project context | `/setup` |
|
|
487
|
+
| Define behavior and constraints | `/spec` |
|
|
488
|
+
| Plan implementation and handoffs | `/plan` |
|
|
489
|
+
| Record agent ownership changes | `/handoff` |
|
|
490
|
+
| Build or review frontend work | `/frontend` |
|
|
491
|
+
| Audit kit readiness | `/audit` |
|
|
492
|
+
| Add verification evidence | `/test` |
|
|
493
|
+
| Review code before merge | `/review` |
|
|
494
|
+
| Review auth, data, secrets, and dependencies | `/security` |
|
|
495
|
+
| Review public or conversion copy | `/copy` |
|
|
496
|
+
| Verify release and rollback evidence | `/ship` |
|
|
497
|
+
| Review template or dependency upgrades | `/upgrade` |
|
|
498
|
+
| Detect UI quality failures | `/ui-audit` |
|
|
499
|
+
| Improve an implemented UI | `/ui-polish` |
|
|
500
|
+
| Repair hierarchy and layout | `/layout-cleanup` |
|
|
501
|
+
| Verify responsive states | `/responsive-cleanup` |
|
|
502
|
+
| Verify WCAG 2.1 AA behavior | `/accessibility-pass` |
|
|
503
|
+
| Check product-specific visual identity | `/distinctiveness-pass` |
|
|
504
|
+
| Critique screenshot evidence | `/screenshot-critique` |
|
|
505
|
+
| Run a browser QA loop | `/browser-qa` |
|
|
506
|
+
|
|
507
|
+
These are instruction adapters, not proof of execution. Canonical steps live in `.agent-kit/prompts/lifecycle-command-index.md` and `.agent-kit/prompts/ui-command-index.md`.
|
|
508
|
+
|
|
509
|
+
## Output And Flag Notes
|
|
510
|
+
|
|
511
|
+
Use command help as the source of truth:
|
|
462
512
|
|
|
463
513
|
```bash
|
|
464
|
-
|
|
465
|
-
agent-kit
|
|
466
|
-
agent-kit
|
|
467
|
-
agent-kit
|
|
468
|
-
agent-kit research propose-updates
|
|
514
|
+
npx agent-kit --help
|
|
515
|
+
npx agent-kit audit --help
|
|
516
|
+
npx agent-kit session --help
|
|
517
|
+
npx agent-kit orchestrate --help
|
|
469
518
|
```
|
|
470
519
|
|
|
471
|
-
|
|
520
|
+
Commands that expose `--json` include `init`, `audit`, `diff`, `update`, `doctor`, adapter/package validation, most session mutations, corrections, orchestrator commands, provider/MCP probes, and Studio export.
|
|
472
521
|
|
|
473
|
-
|
|
522
|
+
Long-running server commands such as `setup` and `studio serve`, interactive credential entry, and maintainer research commands use their documented human output instead.
|
|
474
523
|
|
|
475
|
-
|
|
524
|
+
Commands that support `--dry-run` include `init`, `update`, and `add skill`. Review each command's `--help` output rather than assuming a global flag.
|
|
476
525
|
|
|
477
|
-
|
|
478
|
-
@appsforgood/next-supabase-kit
|
|
479
|
-
```
|
|
526
|
+
## Security Defaults
|
|
480
527
|
|
|
481
|
-
|
|
528
|
+
The installed contract requires:
|
|
529
|
+
|
|
530
|
+
- Supabase RLS at the data boundary, not only UI authorization.
|
|
531
|
+
- Service-role credentials in trusted server code only.
|
|
532
|
+
- Input validation and safe output rendering at every boundary.
|
|
533
|
+
- IDOR, SSRF, injection, broken-auth, upload, and misconfiguration review.
|
|
534
|
+
- Explicit loading, empty, error, retry, and success states.
|
|
535
|
+
- Cross-tenant denial tests for tenant-scoped data.
|
|
536
|
+
- Dependency audit and release evidence for dependency changes.
|
|
537
|
+
- No secrets, customer data, or private repository evidence in committed session files.
|
|
538
|
+
|
|
539
|
+
## Maintainer Verification
|
|
540
|
+
|
|
541
|
+
For development of this repository:
|
|
542
|
+
|
|
543
|
+
```bash
|
|
544
|
+
npm install
|
|
545
|
+
npm run build
|
|
546
|
+
npm test
|
|
547
|
+
npm run release:check
|
|
548
|
+
```
|
|
482
549
|
|
|
483
|
-
|
|
484
|
-
- Public npm access.
|
|
485
|
-
- npm Trusted Publishing through GitHub Actions OIDC.
|
|
486
|
-
- No long-lived npm publish token for automation.
|
|
487
|
-
- Dependency Review, CodeQL, OpenSSF Scorecard, Dependabot, SBOM validation, and SBOM attestation.
|
|
488
|
-
- Post-publish verification with `npm run publish:verify`.
|
|
550
|
+
`npm run release:check` runs:
|
|
489
551
|
|
|
490
|
-
|
|
552
|
+
- JSON and version consistency checks.
|
|
553
|
+
- TypeScript, ESLint, and Prettier checks.
|
|
554
|
+
- Unit and regression tests with coverage gates.
|
|
555
|
+
- Package build and asset validation.
|
|
556
|
+
- IDE adapter and example-install validation.
|
|
557
|
+
- Install, Studio, setup, and audit-gate smoke tests.
|
|
558
|
+
- Dependency audit.
|
|
559
|
+
- CycloneDX SBOM validation.
|
|
560
|
+
- Root and runtime package dry runs.
|
|
491
561
|
|
|
492
|
-
|
|
562
|
+
The release workflow uses npm Trusted Publishing through GitHub Actions OIDC, creates package-rooted SBOM attestations, publishes the runtime before the root package when needed, verifies both packages from the public registry, and creates a GitHub release only after registry verification.
|
|
493
563
|
|
|
494
|
-
|
|
564
|
+
Additional evidence:
|
|
495
565
|
|
|
496
|
-
|
|
566
|
+
- [Best-practice evidence map](BEST_PRACTICE_EVIDENCE.md)
|
|
567
|
+
- [Supply-chain policy](SUPPLY_CHAIN.md)
|
|
568
|
+
- [Maintainer release procedure](MAINTAINER_RELEASE.md)
|
|
569
|
+
- [Research citation policy](RESEARCH_CITATION_POLICY.md)
|
|
570
|
+
- [Public support policy](SUPPORT.md)
|
|
497
571
|
|
|
498
572
|
## License
|
|
499
573
|
|