Skip to content

Rewrite the sprite-api-gateway skill around sprite-env connectors find - #34

Draft
aezell wants to merge 3 commits into
mainfrom
alex/sprite-api-gateway-connectors
Draft

aezell wants to merge 3 commits into
mainfrom
alex/sprite-api-gateway-connectors

Conversation

@aezell

@aezell aezell commented Nov 20, 2026 •

Copy link
Copy Markdown

What

Rewrites images/sprites-classic/agents/home/sprite/.sprite-shared/skills/sprite-api-gateway/SKILL.md, the skill images/sprites-classic/agents/Dockerfile copies into every agent's skills directory.

  • The body now leads with runnable sprite-env connectors find examples and explains the four outcomes. It tells agents how to call a connected connector, request access to a restricted connector, check for an existing connection before setting up an available provider, or suggest a Custom API connector when nothing matches. The dashboard setup link selects the provider. The user grants the Sprite access before the agent reruns find.
  • Raw curl -s https://api.sprites.dev/v1/gateway/list stays as the fallback, with the three buckets (connections, restricted, available) and their fields described, including setup_url, manage_url, and access_reason. Older gateway responses omit the restricted bucket and hide denied connections, so the skill directs users to check the dashboard before creating a connector in that case.
  • The skill uses the response body alongside the HTTP status to distinguish identity, access policy, credential, request, and upstream errors. For OAuth scope grants, it explains how to complete request_scopes_url with the existing and required scopes. The gateway handles credentials, and the user manages access in the dashboard.
  • The frontmatter description still triggers on external APIs and third-party services, and now also on API keys, tokens, and credentials so the skill loads before an agent asks for one.

Why

The command the skill now describes lands for S1 sprites in superfly/sprite-env#1086 and mirrors the S2 guest CLI in superfly/s2_host#286, so the same instructions hold on both. The platform side is superfly/sprites-api#2059, which adds the restricted bucket, setup_url, upstream_host, categories, and keywords to GET /v1/gateway/list.

Verification

Documentation only. The YAML frontmatter parsed, both shell blocks passed bash -n, and the example searches passed their arguments correctly. The linked matcher returned the expected outcomes for legacy and current gateway fixtures. CI (Build and test images) is green on 0646d08.

Related PRs

Draft until reviewed together. Merge after superfly/sprite-env#1086 so the command the skill names exists in the image.

  • superfly/sprites-api#2059: restricted bucket, setup_url, auth_kind, upstream_host, dashboard links
  • superfly/s2_host#286: sprite-env connectors for current Sprites, AGENTS.md and sprite skill guidance
  • superfly/sprite-env#1086: sprite-env connectors for classic Sprites
  • superfly/ui-ex#7030: dashboard honors ?type=<provider>&sprite=<name> on Add connector
  • Describe how agents discover connectors on both Sprite generations sprites-docs#288: connectors concept page, merges last

🤖 Generated with Claude Code

PR description update generated by Codex.

The skill told agents to curl the gateway list and match providers by hand,
and knew only two buckets. S1 sprites now ship `sprite-env connectors find
<service or host>` (superfly/sprite-env), which matches a name, keyword,
host, or URL against `connections`, `restricted`, and `available` and prints
one `match` with a `next_step`. The skill now leads with that command,
explains the four outcomes and the `setup_url`, `manage_url`, and
`access_reason` fields, keeps the raw curl as the fallback, and keeps the
rules: no provider authorization header, 403 is policy, 401 is not a sprite,
never weaken policy, never ask for a pasted token. The description now
triggers on API keys and credentials so the skill loads before an agent asks
for one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@aezell
aezell requested a review from a team as a code owner November 20, 2026 17:43
@sprites-ci

sprites-ci Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Image sizes

Target Layers Compressed Uncompressed
sprites-classic 29 2.2GiB 5.8GiB
sprites-classic-agents 26 2.2GiB 5.8GiB
sprites-classic-devtools unchanged
sprites-classic-languages unchanged
ubuntu-base unchanged

Run for commit 8317af6. (Run)

superfly/s2_host@c4a3a20 changed what next_step says for an available
provider (a setup link, or dashboard steps when none) and for no match.
The skill now tells agents to relay whichever next_step gives, and notes
that hosts are matched against upstream_host with an exact host first.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@sprites-ci

sprites-ci Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Image sizes

Target Layers Compressed Uncompressed
sprites-classic 29 2.2GiB 5.8GiB
sprites-classic-agents 26 2.2GiB 5.8GiB
sprites-classic-devtools unchanged
sprites-classic-languages unchanged
ubuntu-base unchanged

Run for commit 84d9db4. (Run)

@sprites-ci

sprites-ci Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Image sizes

Target Layers Compressed Uncompressed
sprites-classic 29 2.2GiB 5.8GiB
sprites-classic-agents 26 2.2GiB 5.8GiB
sprites-classic-devtools unchanged
sprites-classic-languages unchanged
ubuntu-base unchanged

Run for commit 0646d08. (Run)

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