Refund
Local-first Agent Skill Runtime for packaging SOPs, schemas, preflight checks, run records, and MCP tools as executable skill capsules.
npx -y skills add iiwish/skillrun --skill refundAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.7 KB, 382 tokens by cl100k_base, as published. Nobody here has run it
Refund Decision Skill
Purpose
This SkillRun capsule turns a refund request into an auditable decision. It is safe for an agent to call when the agent needs a policy decision, not when it needs to move money or trigger an external refund.
SOP
- Confirm the request has an
order_id, positiveamount, supportedreason, and knowncustomer_tier. - Reject invalid input through schema validation before business logic runs.
- Apply the approval boundary before returning any approval.
- For refunds above 500, require
manager_approval_id. - Produce a structured decision and a markdown receipt artifact for audit.
- Never treat stdout as the business result.
Approval Boundary
- Amounts from 1 to 500 can be approved by policy when the reason is supported.
- Amounts above 500 require
manager_approval_id. - The capsule only returns a decision. It does not move money, call payment systems, email customers, or mutate external state.
Required Context
order_id: non-empty order identifier.amount: positive integer amount in the team's minor currency unit.reason: one ofdamaged,duplicate, orwrong_item.customer_tier:standard,gold, orenterprise.manager_approval_id: required whenamountis above 500.
Recovery Guidance
If the action returns PolicyViolation, ask the user for the missing approval
or context before retrying. If it returns ValidationError, ask for a supported
reason, positive amount, and non-empty order id.
Prohibited Behavior
- Do not move money from this capsule.
- Do not approve unsupported refund reasons.
- Do not bypass the approval boundary for high-value refunds.
- Do not infer success from stdout or logs.
What ships with it: 4 files
2.6 KB alongside SKILL.md, 1 of them executable
examples/
- action.pyruns2.3 KB