AGENT SKILL

payment-agent

Use when an org role acts as payment agent and must execute charges, refunds or subscription changes for a user with least privilege and a full audit trail. Covers idempotency keys, confirming irreversible actions, never persisting cardholder data, and relying on native PCI-compliant platforms like Stripe.

License 许可
Apache-2.0
所属仓库
monoes/monomind
最近更新
2026-11-14
Stars
★ 23
Forks
2

01 前言 Front Matter

name
payment-agent
tags
[ "engineering", "security", "stripe", "compliance" ]
tools
[ "monograph_query", "monograph_context", "monograph_impact" ]
source
https://github.com/monoes/monomind
license
Apache-2.0
description
Use when an org role acts as payment agent and must execute charges, refunds or subscription changes for a user with least privilege and a full audit trail. Covers idempotency keys, confirming irreversible actions, never persisting cardholder data, and relying on native PCI-compliant platforms like Stripe.

03 SKILL.md 正文

Payment Agent — Best Practices

Focus

Executes payment and billing operations on a user's behalf (charges, refunds, subscription changes) with strict least-privilege access, auditability, and zero tolerance for wrong or unauthorized actions.

Best practices

  • Operate under least-privilege scopes — request only the specific payment actions needed for the task, never broad account access.
  • Use idempotency keys on every mutating payment call so retries or network failures can't cause duplicate charges or refunds.
  • Never persist raw cardholder data (card numbers, CVV) even transiently in logs, memory dumps, or intermediate storage — redact before it touches any store.
  • Confirm the exact action (amount, recipient, subscription tier) with the user before executing anything irreversible — a correct-sounding but wrong mutation is worse than doing nothing.
  • Rely on native, PCI-compliant payment platform integrations (Stripe, etc.) rather than building custom cardholder-data handling.
  • Log every payment action with actor, amount, timestamp, and outcome for auditability — payments need a complete trail, not just success/failure.
  • Validate outputs against real account state before acting — don't trust a cached or inferred balance for a decision that moves money.

Common pitfalls

  • Treating "answered the billing question correctly" as equivalent to "took the correct action" — an agent that explains billing well but executes the wrong Stripe mutation is worse than one that does nothing.
  • Missing idempotency handling, causing duplicate charges/refunds on retry.
  • Over-privileged agent credentials that can perform actions well beyond what any single task requires.
  • Storing or transmitting cardholder data outside of TLS 1.2+, or logging it in plaintext during debugging.

Tools & techniques

  • Idempotency keys on all state-changing payment API calls.
  • Native payment-platform integrations that handle webhook reconciliation and idempotency out of the box, instead of hand-rolled reconciliation logic.
  • Explicit confirmation step before any irreversible financial action (charge, refund, cancellation) — never auto-execute on inference alone.
  • Access audit trail per agent identity: what it's allowed to do, and a log of what it actually did.
  • MFA / strong authentication on any credential the agent uses to reach payment infrastructure.

04 同仓库更多 Skills

monoes
monoes/monomind

zk-steward

Org role guidance for a ZK steward: engineer zero-knowledge proof systems with circuit design, SNARK vs STARK choice and security review. This is zero-knowledge cryptography, not Zettelkasten note-taking.

★ 23
monoes
monoes/monomind

writing-plans

Use when you have a spec or requirements for a multi-step coding task and must write an implementation plan before touching code. Produces bite-sized TDD tasks with exact file paths, code and commands for an engineer with zero context.

内容创作者写作与文案
★ 23
monoes
monoes/monomind

write-spec

Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.

产品经理
★ 23
monoes
monoes/monomind

write-query

Write optimized SQL for your dialect with best practices. Use when translating a natural-language data need into SQL, building a multi-CTE query with joins and aggregations, optimizing a query against a large partitioned table, or getting dialect-specific syntax for Snowflake, BigQuery, Postgres, etc.

数据分析师
★ 23
monoes
monoes/monomind

workflow-automation

Org role guidance for workflow automation: build and maintain CI/CD definitions in GitHub Actions or equivalent: triggers, jobs, matrices, caching. Covers path filters, dependency caching, parallel jobs, timeouts and fail-fast ordering.

运维与部署Skill与智能体开发
★ 23
monoes
monoes/monomind

workflow-architect

Org role guidance for a workflow architect: map full workflow trees for systems, user journeys and agents, covering every branch and failure. Covers discovering workflows from code, handoff contracts, timeouts, recovery paths and observable state.

Skill与智能体开发
★ 23