Skip to content
Back to skills

Refund Rules

ASecurity

Explains and changes how Saltmarsh Booking computes refunds for cancelled stays. Use when asked to "change the refund window", "why was this guest refunded this amount", or "add a cancellation rule".

  • 198 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mblode/agent-skills --skill refund-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refund Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refund Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblode-refund-rules/badge)](https://www.skillsdirectory.com/skills/mblode-refund-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refund-rules
description: Explains and changes how Saltmarsh Booking computes refunds for cancelled stays. Use when asked to "change the refund window", "why was this guest refunded this amount", or "add a cancellation rule".
---

# Refund Rules

All refund amounts come from `packages/api/src/domain/refunds.ts`. The cases, in the order the function checks them:

1. Owner-initiated cancellation: full refund, no platform fee charged to the owner.
2. Guest cancels 48 hours or more before `checkIn` in the campsite's timezone: full refund.
3. Guest cancels inside 48 hours: booking total minus the first night.
4. Guest cancels after `checkIn`: no refund through this path. Support issues a goodwill refund by hand.

## Changing a rule

- Change the constant or the branch in `refunds.ts`, then the table in `packages/web/src/app/help/cancellations/page.tsx`, which states the rules to guests.
- A rule change applies to bookings created after it ships. Existing bookings keep the policy stored in `bookings.refund_policy`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.