Skip to content

feat(cli): add local-dev skill topic - #7889

Open
Prashansa-K wants to merge 1 commit into
developfrom
prashansakulshrestha/cli-3302-add-local-dev-skill-topic
Open

Prashansa-K wants to merge 1 commit into
developfrom
prashansakulshrestha/cli-3302-add-local-dev-skill-topic

Conversation

@Prashansa-K

Copy link
Copy Markdown
Contributor

Adds the local-dev topic to supabase skill display.

It covers when to run start, status and stop, reading the status values, and recovery steps for StatusDbInspectError, a stopped stack and a failed start (port conflicts, health-check timeouts, the lifecycle lock). It also describes where the experimental stack backend changes behaviour.

The overview's topic index and the db-query topic now point to it. Two sentences in migrations are trimmed so it stays within its size cap now that the footer lists one more topic.

🤖 Generated with Claude Code

@Prashansa-K
Prashansa-K requested a review from a team as a code owner December 1, 2026 05:49
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 481606e against develop at 00782d7 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 222 ms 221 ms no real change
supabase --help help 224 ms 217 ms no real change
supabase init init 229 ms 239 ms no real change
supabase migration new bench migration-new 232 ms 245 ms no real change (+5%, within normal variation)
supabase config convert config-convert 237 ms 224 ms no real change (-6%, within normal variation)
supabase config validate config-validate 250 ms 251 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 239 ms 243 ms no real change
supabase projects list projects-list 216 ms 216 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 222 ms 215 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 135.7 MB, up 16.0 KB from 135.7 MB.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 201-248 ms 197-251 ms -1 ms (0%) within noise
supabase --help help 209-299 ms 196-288 ms -7 ms (-3%) within noise
supabase init init 203-323 ms 219-311 ms +10 ms (+5%) within noise
supabase migration new bench migration-new 183-278 ms 223-262 ms +12 ms (+5%) within noise
supabase config convert config-convert 215-297 ms 183-240 ms -13 ms (-6%) within noise
supabase config validate config-validate 197-297 ms 225-274 ms +1 ms (+0%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 230-278 ms 209-268 ms +4 ms (+2%) within noise
supabase projects list projects-list 213-234 ms 203-237 ms 0 ms (0%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 210-245 ms 209-244 ms -8 ms (-3%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

CLI reference prose guidance: snapshot supabase/supabase@3dcb524 supplied to reviewers (advisory, not a style pass).

Both independent reviews were available. Their 10 findings merge into eight confirmed findings. The new local-development guide can lead agents to stop unrelated projects, misstates --exclude support, and gives conflicting or misleading recovery and status guidance. The migrations topic renders just two bytes below its test cap. The review found no breaking command changes, reference overlay drift, or fundamental conflict with the supplied next work. The changes fell outside the CLI reference prose procedure. I calculated the rendered size from the checked-out content and renderer. The unit suite was not run because workspace dependencies were absent.

Findings

Severity Location Category Sources Claim
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:29 recovery claude+codex The port-conflict instructions recommend a machine-wide supabase stop --all when a single Supabase project owns the port. Even with user approval, this can interrupt unrelated local projects.
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:43 correctness claude+codex The guide incorrectly calls --exclude stack-only, contradicting its own supabase start --exclude <service> example and obscuring the different values each backend accepts.
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:6 recovery codex The guide tells agents both to start a stopped stack directly and to stop it first. The second instruction can tear down still-running services and attributes the stop-first suggestion to the wrong command.
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:37 approval codex The experimental instructions tell agents to stop only when asked, then direct them to stop the stack during partial-lifecycle recovery without saying whether approval is required.
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:23 recovery codex The unhealthy-database recovery step assumes a start process is still running, so it gives agents no immediate action when startup has already exited and left the database unhealthy.
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:21 diagnostics codex The guide treats a missing database container as proof that the project has never been started, even after a normal stop or startup rollback.
🟡 MINOR apps/cli/src/commands/skill/content/local-dev.md:15 diagnostics codex The status guidance says to interpret any missing entry as a service being down, even though the list includes credentials that can be omitted independently of service health.
⚪ NIT apps/cli/src/commands/skill/content/migrations.md:1 maintainability claude Adding the local-dev footer entry leaves the rendered migrations topic only two bytes below its test cap. An edit or new footer entry that adds three bytes will fail the size check.

Stats

Claude findings: 3 · Codex findings: 7 · Confirmed: 8 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

@blacksmith-sh

blacksmith-sh Bot commented Dec 1, 2026

Copy link
Copy Markdown

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
src/commands/skill/content/topics.unit.test.ts/skill topic migrations content >
renders within its size cap
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@Prashansa-K

Copy link
Copy Markdown
Contributor Author

Waiting on #7891 (functions skill topic) to merge before this PR goes green.

On develop, every rendered topic ends with a footer that lists every other registered topic. Registering a new topic therefore adds a footer line to every existing topic, including migrations, which already renders close to the 12 KB cap. With this PR's topic added, migrations goes over the cap and the size test in topics.unit.test.ts fails, even though migrations.md is unchanged here.

#7891 replaces that footer with a per-topic related list, so adding a topic no longer grows the others. Once it merges, this PR will be rebased onto it and the unit tests should pass without trimming migrations.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Prashansa-K
Prashansa-K force-pushed the prashansakulshrestha/cli-3302-add-local-dev-skill-topic branch from acd332e to 1d0cb9b Compare December 2, 2026 02:11
@Prashansa-K Prashansa-K self-assigned this Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant