Agentic Revcat
When to Use This Skill
Use this skill whenever an agent needs to run RevenueCat API operations through revcat, especially for:
- Bugfix tasks that require inspecting or reproducing API-level behavior
- Refactors that must verify command compatibility and output stability
- PR prep tasks that need reproducible command evidence and safe mutation handling
- Diagnosis of failed
revcatruns - Planning or executing mutating operations (
POST,DELETE)
Trigger phrases include:
- "run RevenueCat operation"
- "diagnose this revcat error"
- "list available RevenueCat commands"
- "create/delete/update via revcat"
Safety Contract (Non-Negotiable)
- Treat
POSTandDELETEoperations as mutating. - Never run mutating operations without both flags:
--apply--yes
- Prefer a read-only command path before mutation:
- discover operation
- inspect parameters
- validate payload/paths
- Use
--format jsonwhen command output must be consumed by automation or compared in CI.
Execution Workflow
- Pre-flight
npx revcat --helpnpx revcat doctor
- Discover
npx revcat api operations- optional tag filter:
--tag <TagName>
- Inspect
npx revcat api show <operation-id>
- Execute
- read-only first (
GET) - mutation only with
--apply --yes
- read-only first (
- Validate
- confirm command exit behavior and returned data
- prefer JSON output for deterministic checks
Task Playbooks
Bugfix Playbook
- Capture failing command and exact error output.
- Run
doctorto verify credentials/project context. - Discover and inspect target operation (
api operations,api show). - Re-run with explicit
--path/--query/--body-*values. - If mutating, enforce
--apply --yes. - Record working command in PR notes.
Refactor Playbook
- Identify command/operation IDs affected by the refactor.
- Execute representative read-only commands in JSON mode.
- Compare key output fields before/after changes.
- For any mutation smoke test, use explicit fixture payload plus
--apply --yes. - Document compatibility notes for reviewers.
PR Prep Playbook
- Add 2-5 concrete command examples used for verification.
- Include one "safe mutation" example when write paths changed.
- Include one error-recovery example if behavior changed.
- Ensure examples are script-friendly (
--format jsonwhere relevant).
Tool Routing
Use this routing when deciding which agentic tool should drive the flow:
- Codex CLI: best default for repo-aware edits, command execution, and deterministic validation.
- Claude Code: strong for drafting plans/explanations before command execution.
- Cursor: useful when working directly in Cursor projects that consume
.cursor/rulesguidance automatically. - Aider: useful for fast iterative code edits when command flow is already known.
- Gemini CLI: useful for quick command brainstorming; validate final commands with
revcathelp and operation metadata.
References
Load these references as needed:
- Command patterns and safe invocation:
references/command-templates.md
- Error diagnosis and corrective actions:
references/error-recovery.md
- Prompt adapters for each supported agentic tool:
references/tool-adapters.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.