Skip to content

Update stripe-projects skill for preflight and error codes#457

Closed
rami-stripe wants to merge 1 commit into
mainfrom
rami/update-stripe-projects-skill-for-preflight
Closed

Update stripe-projects skill for preflight and error codes#457
rami-stripe wants to merge 1 commit into
mainfrom
rami/update-stripe-projects-skill-for-preflight

Conversation

@rami-stripe

Copy link
Copy Markdown

Summary

  • Add --preflight --json check before stripe projects init to surface all blockers in one pass
  • Use --accept-tos --yes on the init command (previously missing --accept-tos, which caused TOS_ACCEPTANCE_REQUIRED failures)
  • Rewrite browser auth guidance: wait for auto-poll instead of stopping; only stop on BROWSER_AUTH_REQUIRED exit code
  • Expand error handling table with new standardized codes: BROWSER_AUTH_REQUIRED, ACCOUNT_NOT_ELIGIBLE, TOS_ACCEPTANCE_REQUIRED, PLAN_REQUIRED

Context

These changes pair with stripe-cli-projects-plugin#345 which adds the --preflight flag and standardized error codes to the CLI, and #346 which auto-opens the browser in agent sessions.

Test plan

  • Manual: invoke the stripe-projects skill in a fresh project and confirm the preflight check runs before init
  • Manual: confirm the skill hands off to stripe-projects-cli after successful init

Generated with Claude Code

…auth

- Step 3: run --preflight --json before init to surface all blockers at
  once; stop on BROWSER_AUTH_REQUIRED or ACCOUNT_NOT_ELIGIBLE
- Step 3: use --accept-tos --yes for the init command
- Step 3: rewrite browser auth guidance — wait for auto-poll instead of
  stopping; only stop on BROWSER_AUTH_REQUIRED exit code
- Error table: add BROWSER_AUTH_REQUIRED, ACCOUNT_NOT_ELIGIBLE,
  TOS_ACCEPTANCE_REQUIRED, PLAN_REQUIRED with recovery actions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude

@stripe-ai-sync stripe-ai-sync 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.

This PR modifies files that are automatically synced from a centrally maintained copy at docs.stripe.com/.well-known/skills. Any changes made here will be overwritten by the next sync.

To make lasting changes, apply them to the source. You can find instructions at go/add-stripe-skill.

@matv-stripe

Copy link
Copy Markdown
Contributor

Bot is correct ^

@matv-stripe matv-stripe closed this Jul 1, 2026
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.

2 participants