Skip to content

feat: monetize-guide skill + sell probe command#287

Open
bussyjd wants to merge 1 commit intomainfrom
feat/monetize-ux
Open

feat: monetize-guide skill + sell probe command#287
bussyjd wants to merge 1 commit intomainfrom
feat/monetize-ux

Conversation

@bussyjd
Copy link
Collaborator

@bussyjd bussyjd commented Mar 21, 2026

Closes #286

What

Three deliverables for the "monetize my machine" UX:

1. monetize-guide skill (internal/embed/skills/monetize-guide/SKILL.md)

Composition skill that teaches Claude Code the end-to-end monetization flow:

  • Phase 1: Pre-flight checks (cluster, agent RBAC, wallet)
  • Phase 2: Detect sellable resources (Ollama models, K8s services)
  • Phase 3: Research pricing via ERC-8004 registry discovery + present recommendation to user
  • Phase 4: Execute obol sell inference/http after user confirms price
  • Phase 5: Monitor 6-stage reconciliation to Ready
  • Phase 6: Probe endpoint for 402 verification
  • Phase 7: Report public URL + pricing summary

Key constraint: always confirms pricing with the user — agent researches and recommends, never decides autonomously.

2. obol sell probe command (cmd/obol/sell.go)

obol sell probe <name> -n <namespace>

Hits the public tunnel URL for a ServiceOffer and verifies:

  • Returns HTTP 402 (payment-gated, not 200/404)
  • Response contains valid x402 pricing (x402Version, accepts[])
  • Shows price, payTo, and public URL

This closes the feedback loop — Claude can confirm a service is actually live and gated.

3. Seller prompt reference (references/seller-prompt.md)

Generalized onboarding prompt template for Claude Code covering inference, HTTP API, and GPU compute service types. Includes post-sell monitoring and troubleshooting table.

Test plan

  • go build ./... passes
  • go test ./cmd/obol/... passes
  • go test ./internal/embed/... passes (skill embedded correctly)
  • Full go test ./... — all packages pass (x402/buyer failures are pre-existing on main)

Add monetize-guide skill (SKILL.md + seller-prompt reference) that teaches
Claude Code the end-to-end flow: pre-flight checks, model detection,
pricing research via ERC-8004 registry, user-confirmed pricing, sell
execution, reconciliation monitoring, and endpoint verification.

Add `obol sell probe <name> -n <ns>` command that hits the public tunnel
URL and verifies the endpoint returns 402 with valid x402 pricing headers.
Closes the feedback loop so Claude can confirm a service is live.
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.

feat: "monetize my machine" — unified sell UX for Claude Code

1 participant