/anglesite:donationsfrom anglesite
Adds a donation button or page supporting Stripe, Liberapay, or GitHub Sponsors with suggested amounts, recurring defaults, optional goal widget, and 501(c)(3) tax-receipt template.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add a donation flow to the owner's site. Donations are not products — copy, recurrence, and (for nonprofits) tax-receipt semantics differ from /anglesite:buy-button. Use this skill when the owner wants to accept tips, ongoing support, fundraising for a goal, or 501(c)(3) charitable contributions.
Read EXPLAIN_STEPS from .site-config. If true or not set, explain before every tool call that will trigger a permission prompt — tell the owner what you're about to do and why in plain English. If false, proceed without pre-announcing tool calls.
/anglesite:add-store routes here when the answer to "what are you selling?" is "donations" or "support"If the owner is selling a product or service (even a single one), use /anglesite:buy-button or /anglesite:add-store instead.
Ask the owner, in plain conversation:
/donate page, the homepage, the footer, or several pagesSave what's relevant to .site-config:
DONATION_PROVIDER=stripe|liberapay|github-sponsors
DONATION_RECURRING=true|false
NONPROFIT_501C3=true|false
NONPROFIT_EIN=XX-XXXXXXX # only if 501(c)(3)
NONPROFIT_LEGAL_NAME=... # only if 501(c)(3)
DONATION_GOAL_AMOUNT=5000 # optional, integer USD
DONATION_GOAL_LABEL=... # optional, what the money is for
Recommend in this priority order. Present trade-offs honestly; let the owner choose.
| Provider | Best for | Cost | Recurring | Tax receipts |
|---|---|---|---|---|
| Stripe Payment Links (recommended) | Most donors, all geographies, 501(c)(3) nonprofits | 2.9% + 30¢ | ✅ Yes (subscription mode) | ✅ Stripe can email receipts; nonprofit issues year-end statements |
| Liberapay | Open-source maintainers, creators with EU audiences | 0% (donor pays processor) | ✅ Weekly/monthly/yearly | ❌ Not a tax-receipting platform |
| GitHub Sponsors | Open-source maintainers with GitHub presence | 0% for individuals; org match programs vary | ✅ Monthly | ❌ Not designed for charitable receipts |
Routing rules:
Save the choice as DONATION_PROVIDER in .site-config.
Stripe Payment Links natively support suggested amounts, donor-chosen custom amounts, and one-time or recurring donations. The owner configures all of that in the Stripe Dashboard — no API keys live on the site.
If the owner doesn't have a Stripe account, explain:
Stripe is free to set up — you only pay when you receive a donation (2.9% + 30¢). If you're a registered 501(c)(3), Stripe can apply for nonprofit pricing through their Stripe for Nonprofits program after activation. Create your account at stripe.com, then come back here.
Once they have an account, walk them through it:
- Go to Stripe Dashboard → Payment Links → Create payment link
- Choose "Customers choose what to pay" as the price model
- Set suggested amounts (e.g., $10, $25, $50, $100) and a minimum (typically $1 or $5)
- For recurring donations: create a second Payment Link, choose "Subscription" as the type, and offer monthly options (e.g., $5/mo, $10/mo, $25/mo). Stripe lets you create multiple links — one for one-time, one for recurring. Or use a single link with both modes if you prefer simplicity.
- Under After payment, enable "Automatically send a receipt" so donors get an email confirmation
- Set the product name to your project or organization name
- Click Create link and copy the URL (it looks like
https://buy.stripe.com/...)- Paste the URL(s) here
Wait for the Payment Link URL(s) before proceeding.
The DonationButton.astro component already exists at src/components/DonationButton.astro.
For a single button:
---
import DonationButton from "../components/DonationButton.astro";
---
<DonationButton href="https://buy.stripe.com/OWNER_LINK" label="Donate" />
For one-time + recurring side-by-side (recommended when both are offered):
---
import DonationButton from "../components/DonationButton.astro";
---
<div class="donate-options">
<DonationButton href="https://buy.stripe.com/OWNER_ONE_TIME" label="Donate once" />
<DonationButton href="https://buy.stripe.com/OWNER_RECURRING" label="Donate monthly" variant="primary" />
</div>
Place donate buttons in context — near the description of the cause, after impact stories, or in the footer of every page if the project is donation-driven. Don't drop a donate button in isolation.
If the owner provided DONATION_GOAL_AMOUNT, add the DonationGoal.astro component to the donate page. Because the site is static, the raised amount is updated manually by the owner (or by a future Stripe webhook integration — out of scope for this skill).
---
import DonationGoal from "../components/DonationGoal.astro";
---
<DonationGoal goal={5000} raised={1850} label="for new community fridge equipment" />
Tell the owner: "I've added the goal widget. To update the running total, edit the raised value on the page — I can do that for you whenever you have new numbers, or you can edit it directly in your editor."
If NONPROFIT_501C3=true, render the standard charitable contribution disclosure on the donate page. Use the values from .site-config:
<aside class="tax-receipt-notice">
<p>
{NONPROFIT_LEGAL_NAME} is a registered 501(c)(3) nonprofit organization.
Federal tax ID (EIN): {NONPROFIT_EIN}.
Donations are tax-deductible to the fullest extent allowed by U.S. law.
No goods or services were provided in exchange for this contribution.
</p>
<p>
You'll receive an emailed receipt from Stripe immediately after your donation.
A year-end giving statement will be sent in January for donations totaling $250 or more.
</p>
</aside>
Also create a donation acknowledgment email template the owner can send manually for donations of $250+ (IRS threshold for written acknowledgment). Save it as docs/donation-receipt-template.md in the user's project:
# Donation acknowledgment template (501(c)(3))
Use this template when sending a year-end statement or per-donation receipt for donations of $250 or more.
---
Subject: Thank you for your tax-deductible contribution to {NONPROFIT_LEGAL_NAME}
Dear {DONOR_NAME},
Thank you for your generous donation of ${AMOUNT} on {DATE} to {NONPROFIT_LEGAL_NAME}.
This letter serves as your official receipt for tax purposes.
- Donor: {DONOR_NAME}
- Donation amount: ${AMOUNT}
- Date received: {DATE}
- Payment method: {PAYMENT_METHOD}
- Organization: {NONPROFIT_LEGAL_NAME}
- Federal tax ID (EIN): {NONPROFIT_EIN}
No goods or services were provided in exchange for this contribution. Your gift is tax-deductible to the fullest extent allowed by U.S. law.
Thank you for supporting our mission.
Sincerely,
{SIGNER_NAME}
{SIGNER_TITLE}
{NONPROFIT_LEGAL_NAME}
Tell the owner: "I've saved a tax-receipt template at docs/donation-receipt-template.md. The IRS requires written acknowledgment for donations of $250 or more — Stripe's automatic receipt covers most cases, but you'll want to send this for larger gifts and year-end statements. I'm not a tax advisor; have a CPA review your receipting practices."
Liberapay is a non-profit, open-source recurring-donation platform popular with open-source maintainers and EU creators. Donors pay processor fees, not the recipient.
- Go to liberapay.com and create an account, then create or claim your team/project
- Under your account, set your giving goal (weekly amount you'd like to receive) — this is optional but motivates donors
- Copy your profile URL (e.g.,
https://liberapay.com/your-name)- Paste it here
---
import DonationButton from "../components/DonationButton.astro";
---
<DonationButton
href="https://liberapay.com/OWNER/donate"
label="Donate via Liberapay"
provider="liberapay"
/>
The component renders an external-redirect anchor — no third-party scripts.
For open-source maintainers with a GitHub presence.
- Go to github.com/sponsors and apply (individual or organization)
- Once approved, set up tier(s) — the lowest is typically $1/mo, with optional higher tiers
- Your sponsor URL is
https://github.com/sponsors/YOUR_USERNAME- Paste it here
---
import DonationButton from "../components/DonationButton.astro";
---
<DonationButton
href="https://github.com/sponsors/OWNER_USERNAME"
label="Sponsor on GitHub"
provider="github-sponsors"
/>
Also consider adding a .github/FUNDING.yml file at the project root if there's a public source repo — that wires up GitHub's native "Sponsor" button on the repo page. (Skill scope is the website; only do this if the owner explicitly asks.)
If the owner wants a dedicated page (recommended for nonprofits and goal-based fundraisers), create src/pages/donate.astro:
---
import BaseLayout from "../layouts/BaseLayout.astro";
import DonationButton from "../components/DonationButton.astro";
import DonationGoal from "../components/DonationGoal.astro";
---
<BaseLayout title="Donate" description="Support {SITE_NAME} with a one-time or recurring donation.">
<h1>Support {SITE_NAME}</h1>
<p>{ONE_LINE_CASE_FOR_GIVING}</p>
{/* Goal widget if configured */}
<DonationGoal goal={GOAL} raised={RAISED} label={GOAL_LABEL} />
{/* Donation buttons */}
<div class="donate-options">
<DonationButton href={ONE_TIME_URL} label="Donate once" />
<DonationButton href={RECURRING_URL} label="Give monthly" variant="primary" />
</div>
{/* 501(c)(3) disclosure if applicable */}
</BaseLayout>
Add a navigation link to /donate in the site header or footer. Coordinate with src/layouts/BaseLayout.astro.
Run npm run build to confirm the site builds cleanly with the new component(s).
If the project is configured for deploys, the pre-deploy security scan will run automatically on the next /anglesite:deploy. All three donation providers used here are plain external links and pass the third-party-script scan without configuration.
<a> tag with target="_blank" — accessible, works without JavaScript, prints cleanlyWhat SKILL.md sets; muted values are Claude Code's defaults
Use when a nonprofit, creator, or open-source project wants to accept donations or sponsorships, or needs a tax-receipt template.
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job