Repository navigation
feat(cli): add storage skill topic - #7890
Prashansa-K wants to merge 4 commits into
Conversation
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.7 MB, up 12.0 KB from 135.7 MB. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: snapshot supabase/supabase@3dcb524 supplied to reviewers (advisory, not a style pass).
Both independent reviews were available. Eleven findings were confirmed and two were refuted. The highest-risk issue is that the Storage skill tells agents to ask users for privileged credentials. The skill also overstates first-run hosted approval protection and gives incorrect guidance on upload paths, overwrite risks, and transfer results. The supplied next-branch context shows no fundamental conflict. The CLI reference snapshot was available. The PR changes embedded skill guidance and adds a topic slug to help output, with no changed CLI reference prose in scope.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🔴 CRITICAL | apps/cli/src/commands/skill/content/storage.md:59 |
security |
codex | The Storage troubleshooting guide tells agents to ask users for privileged credentials without specifying a private way to configure them. |
| 🟠 MAJOR | apps/cli/src/commands/skill/content/storage.md:21 |
correctness |
claude | A non-recursive upload uses the supplied object path as-is. The topic promises that it appends the local filename to an empty or slash-terminated prefix, and the example supplies a prefix where it needs the full object key. |
| 🟠 MAJOR | apps/cli/src/commands/skill/content/storage.md:42 |
approval |
codex | The hosted approval workflow promises that a first mutation attempt changes nothing, even though the CLI can accept approval already present in the shell. |
| 🟠 MAJOR | apps/cli/src/commands/skill/content/storage.md:67 |
data-loss |
codex | The recovery guidance calls recursive uploads safe to retry after fixing a failure, even though a retry can replace destination objects written or updated since the first attempt. |
| 🟠 MAJOR | apps/cli/src/commands/skill/content/storage.md:41 |
data-loss |
codex | The approval guidance labels downloads read-only without accounting for recursive downloads that truncate existing local files. |
| 🟠 MAJOR | apps/cli/src/commands/skill/content/storage.md:33 |
data-loss |
codex | The cross-bucket move procedure can overwrite destination objects and can lead an agent to delete the originals before verifying their copies at the intended keys. |
| 🟠 MAJOR | apps/cli/src/commands/skill/content/storage.md:72 |
result-handling |
codex | The result guidance can cause agents to report a successful one-way copy as a failure because the list for the unused direction is empty. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/storage.md:22 |
correctness |
claude | A recursive upload to a bare bucket can create the bucket automatically. The topic says that case fails and sends agents to an unnecessary configuration and seeding workaround. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/storage.md:67 |
error-handling |
codex | The partial-transfer instructions direct agents to use Storage ls -r on a recursive download's local destination. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/storage.md:58 |
error-handling |
codex | The gateway error guide assumes each 401 or 403 came from one credential source, even when the command used a different source. |
| 🟡 MINOR | apps/cli/src/commands/skill/content/storage.md:63 |
error-handling |
codex | The new agent guidance suggests stopping a port listener without checking whether it belongs to the project or whether the user authorized stopping it. |
Refuted findings (kept for transparency, not posted as review comments)
apps/cli/src/commands/skill/content/storage.md:80(shell-examples): Seven Bash examples use unquoted angle-bracket placeholders that Bash would parse as redirections if run verbatim.
Refuted: The shell parsing observation is accurate for verbatim input. The documented invocation procedure explicitly requires replacing those placeholders before execution, so the use of the established placeholder convention does not break the examples.apps/cli/src/commands/skill/content/migrations.md:11(documentation): The migration comparison edit removes the guidance for recognizing a remote migration with no local file.
Refuted: The comparison step loses a duplicate sentence. Its referenced section still explicitly explains how to identify the remote-only row and what to do about it.
Stats
Claude findings: 2 · Codex findings: 11 · Confirmed: 11 · Refuted: 2 · 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.
|
Found 1 test failure on Blacksmith runners: Failure
|
|
Waiting on #7891 (functions skill topic) to merge before this PR goes green. On #7891 replaces that footer with a per-topic |
Adds the `storage` topic to `supabase skill display`, covering the `storage cp/ls/mv/rm` path format, upload versus download, hosted approval, gateway credentials, unsupported operations, and recovery steps for common failures. Trims two redundant sentences from the migrations topic so every topic stays under the size cap once the footer lists the new topic. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
971352c to
cccd5b0
Compare
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
Adds a
storagetopic tosupabase skill display.The topic covers:
storage cp,ls,mv, andrm, thess:///<bucket>/<prefix>path format, and howcppicks upload or download from the pathsrmin agent runs)The overview's topic list points to it. Two redundant sentences are trimmed from the migrations topic so it stays under the size cap once the new topic is listed in its footer.
🤖 Generated with Claude Code