agentleFS
AndroidPoetAndroidPoet/playconsole-cli-skills/skills/gpc-purchase-orders/SKILL.md

gpc-purchase-orders

Skill4 starsChanged 9 months agoMITView on GitHub

Verify purchases, check subscription status, process refunds, and manage external transactions using gpc. Use when handling purchase verification or order management.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when verifying purchases, checking subscription status, processing refunds, or managing external transactions.

    line 8
  2. Distinctive:

    Always verify purchase token validity before taking action.

    line 80
  3. Very specific:

    Use gpc orders get to inspect before gpc orders refund.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purchases & Orders

Use this skill when verifying purchases, checking subscription status, processing refunds, or managing external transactions.

Purchase verification

Verify a purchase

gpc purchases verify --product-id premium_upgrade --token PURCHASE_TOKEN --package com.example.app

Check subscription status

gpc purchases subscription-status --product-id monthly_pro --token PURCHASE_TOKEN --package com.example.app

Acknowledge a purchase

gpc purchases acknowledge --product-id premium_upgrade --token PURCHASE_TOKEN --package com.example.app

Voided purchases

List voided purchases

gpc purchases voided list --package com.example.app

Orders

Get order details

gpc orders get --order-id GPA.1234-5678-9012 --package com.example.app

Get multiple orders

gpc orders batch-get --order-ids GPA.1234-5678-9012,GPA.9876-5432-1098 --package com.example.app

Refund an order

gpc orders refund --order-id GPA.1234-5678-9012 --confirm --package com.example.app

External transactions (alternative billing)

Create external transaction

gpc ext-tx create --file transaction.json --package com.example.app

Get external transaction

gpc ext-tx get --name transactions/12345 --package com.example.app

Refund external transaction

gpc ext-tx refund --name transactions/12345 --confirm --package com.example.app

Agent behavior

  • Always verify purchase token validity before taking action.
  • Require --confirm for refunds; never auto-confirm.
  • Show order details before processing refunds.
  • Use gpc orders get to inspect before gpc orders refund.

Notes

  • Purchase tokens come from the client app's billing library.
  • Voided purchases include refunds, chargebacks, and revocations.
  • External transactions are for apps using alternative billing (requires enrollment).
  • ext-tx is the short alias for external-transactions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.