{"data":{"slug":"discovered-1665c171fe741af766cbc31b20ecbcfae52ab841dc0847a6","title":"Devxkit Cursor Cost Policy","summary":"Prevent accidental costly Cursor backend execution by requiring explicit opt-in and dry-run validation before real execution.","url":"https:\/\/skillshunter.net\/skills\/discovered-1665c171fe741af766cbc31b20ecbcfae52ab841dc0847a6","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-1665c171fe741af766cbc31b20ecbcfae52ab841dc0847a6","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-1665c171fe741af766cbc31b20ecbcfae52ab841dc0847a6.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-1665c171fe741af766cbc31b20ecbcfae52ab841dc0847a6\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the API key is set via the `CURSOR_API_KEY_SET` environment variable before running commands; never pass `--confirm` without user instruction. The first deliverable is a dry-run log with cost profile and prompt size warnings.","instructions":"---\nname: devxkit-cursor-cost-policy\ndescription: Avoid accidental costly Cursor backend execution; require explicit opt-in.\nscope: global\ndevxkit_commands:\n  - devxkit agent run\n---\n\n# devxkit cursor cost policy\n\n## When to use\n\n- Before any `devxkit agent run <issue> --backend cursor`\n- User asks whether Cursor headless\/API execution is allowed\n- Dry-run planning for BUILD backends without spending tokens\n\n## Preconditions\n\n- Issue slice exists under `.agent-runs\/<issue>\/`\n- Understand Cursor is **costly\/manual by default** in `.project.toml` backend registry\n- Real execution needs human authorization for cost and API key usage\n\n## Commands\n\n```bash\ndevxkit agent run <issue> --backend cursor --dry-run\n# Standalone checkout dogfood: uv run --project . devxkit agent run <issue> --backend cursor --dry-run\ndevxkit agent run <issue> --backend cursor --confirm || true\ndevxkit agent run <issue> --backend cursor --confirm --allow-costly-backend\n```\n\nExpected dry-run output includes: cost profile, manual\/costly flags, prompt size warnings, confirmation required, no smoke execution.\n\n## Validation\n\n- **Dry-run:** exit 0; no smoke headless; no issue prompt executed; logs plan only\n- **`--confirm` without costly opt-in:** should **block** real execution (governance\/cost gate)\n- **Real run:** only after explicit user approval **and** `--confirm --allow-costly-backend`\n- API key checked by presence only (`CURSOR_API_KEY_SET` \/ not set) \u2014 never print the key\n\n## Common failures\n\n- **`--confirm` alone blocked** \u2192 intentional; user has not accepted costly backend\n- **Missing API key** \u2192 smoke fails; prompt not executed\n- **Accidental real run** \u2192 always dry-run first; never pass `--confirm` without user instruction\n- **Assuming monetary cost in usage** \u2192 see `devxkit-usage-observability`; `monetary_cost` is null\n\n## Stop conditions\n\n- Stop if user has **not** explicitly authorized costly Cursor\/API execution\n- Do **not** pass `--confirm --allow-costly-backend` without human instruction\n- Do **not** run smoke or full prompt \"to test\" without approval\n- Prefer **Cursor Composer manual** for daily BUILD; headless is exception\n- Do **not** use Big Pickle for code changes\n\n## Related skills\n\n- `devxkit-agent-flow`, `devxkit-usage-observability`\n","use_cases":["Validating Cursor backend execution cost before running","Ensuring user approval for costly operations","Checking API key presence before executing prompts"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jesuserro\/devxkit\/blob\/0380bd30488627f7232a08c38ebc0c7dd9a66dc3\/src\/devxkit\/assets\/skills\/devxkit\/devxkit-cursor-cost-policy\/SKILL.md","source_commit":"0380bd30488627f7232a08c38ebc0c7dd9a66dc3","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:48:44.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"Devxkit Cursor Cost Policy - Prevent Costly Backend Execution","seo_description":"A policy to avoid accidental costly Cursor backend execution by enforcing dry-run validation and explicit user approval.","seo_keywords":["Devxkit Cursor Cost Policy","Cursor backend execution","dry-run validation","cost prevention","explicit opt-in"]}}