Skip to content

feat: explicit billing-integration handoff in billing-setup#56

Merged
benfoster merged 2 commits into
mainfrom
claude/issue-55-lovable-integration-improvements
May 13, 2026
Merged

feat: explicit billing-integration handoff in billing-setup#56
benfoster merged 2 commits into
mainfrom
claude/issue-55-lovable-integration-improvements

Conversation

@benfoster
Copy link
Copy Markdown
Contributor

Prevents agents from improvising integration code after setup completes.

Adds a "Next step" section to billing-setup that prohibits hand-rolling SDK calls and names the billing-integration skill as the required successor. Adds a canonical-path notice at the top of billing-integration so even agents that arrive there directly get the same signal.

Closes #55

Generated with Claude Code

Prevents agents from improvising integration code after setup completes.
Adds a "Next step" section to billing-setup that prohibits hand-rolling
SDK calls and names the billing-integration skill as the required successor.
Adds a canonical-path notice at the top of billing-integration so even
agents that arrive there directly get the same signal.

Co-authored-by: Ben Foster <benfoster@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

@benfoster benfoster left a comment

Choose a reason for hiding this comment

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

@claude minor points to address

Comment thread skills/billing-setup/SKILL.md Outdated

If the skill is not available and the user has not explicitly asked you to write integration code, stop here and wait for them to install it. Do not hand-roll fetch calls or invent API endpoints.

The SDK packages are `@credyt/api-client` (TypeScript/Node.js) and `credyt-api` (Python). These are the only supported ways to call the Credyt API from application code.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These are the preferred ways - the user may opt into HTTP direct calls but we should lead with the SDKs

Comment thread skills/billing-integration/SKILL.md Outdated

# Credyt Integrate

> **This is the only supported way to wire Credyt into application code.** Do not hand-roll `fetch` calls, invent API endpoints, or guess authentication headers — use the SDK (`@credyt/api-client` for TypeScript, `credyt-api` for Python). If you arrived here without running `billing-setup` first, stop and ask the user to run that skill before proceeding.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The SDKs are preferred but the user can opt into HTTP calls if for example they're not using typescript or python.

@claude
Copy link
Copy Markdown

claude Bot commented May 13, 2026

Claude finished @benfoster's task in 50s —— View job


Changes applied

  • Read changed files and review comments
  • Updated billing-setup/SKILL.md:254 — replaced "only supported ways" with "preferred way… if neither SDK suits your stack, HTTP direct calls are also covered"
  • Updated billing-integration/SKILL.md:8 — replaced "only supported way" with "Prefer the official SDKs… if neither SDK suits your stack, HTTP direct calls are also covered below"
  • Committed and pushed

Both changes now lead with the SDKs as the recommended path while explicitly acknowledging HTTP as a valid opt-in for non-TypeScript/Python stacks.

Co-authored-by: Ben Foster <benfoster@users.noreply.github.com>
@benfoster benfoster merged commit 27648f8 into main May 13, 2026
@benfoster benfoster deleted the claude/issue-55-lovable-integration-improvements branch May 13, 2026 18:10
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.

Lovable integration improvements

1 participant