Skip to content

feat: tag skill requests with X-Scribo-Surface - #20

Merged
luca1919 merged 1 commit into
mainfrom
feat/scribo-surface-header
Jun 26, 2026
Merged

feat: tag skill requests with X-Scribo-Surface#20
luca1919 merged 1 commit into
mainfrom
feat/scribo-surface-header

Conversation

@luca1919

Copy link
Copy Markdown
Member

What

Send X-Scribo-Surface: skill from the shared scribo_request helper (skills/scribo/scripts/_common.sh) so the Scribo API attributes invoices created through this skill to the skill surface in PostHog's cross-surface activation funnel (broken down by surface).

Why

The skill calls the public API the same way a raw API client does, so without this header skill-driven invoices fold into surface: api. This one line lets us track the skill as its own surface.

Notes

  • Additive header on every request; the API only reads it on the create path.
  • Pairs with the core-api change in causa-prima (which reads x-scribo-surface and emits the funnel events). Merge that first; then bump the client/scribo-skill submodule there to this commit.
  • Smoke test (skills/scribo/tests/smoke.sh, 11 checks) + bash -n pass.

🤖 Generated with Claude Code

Send `X-Scribo-Surface: skill` on every request from the shared
`scribo_request` helper so the Scribo API attributes invoices created through
this skill to the `skill` surface in PostHog's cross-surface activation funnel
(broken down by `surface`). Additive header; the API only reads it on the
create path. Pairs with the core-api change in causa-prima.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@luca1919
luca1919 merged commit e0bb555 into main Jun 26, 2026
9 checks passed
@luca1919
luca1919 deleted the feat/scribo-surface-header branch June 26, 2026 15:01
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