agentleFS
agarwalvishalagarwalvishal/claude-chat-exporter/.claude/skills/add-sponsor/SKILL.md

add-sponsor

Skill732 starsChanged 3 months agoMITView on GitHub

Add, move or remove a sponsor logo in the README and on the install page. Use when a GitHub sponsor reaches the Team or Company tier, when a sponsorship lapses, or when a sponsor sends a new logo asset.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. BenedictKing/ccx★ 4ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Do not add a "still MIT / still private" line beside the logos.

    line 25
  2. Distinctive:

    Before committing, open the file and strip:

    line 57
  3. Distinctive:

    Keep the pull request or email that supplied the asset — that is the record of permission to use the mark, and the sponsor's brand …

    line 67
  4. Very specific:

    Every sponsor link carries rel="sponsored noopener".

    line 89

≈ “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

Adding a sponsor

Assets live in docs/sponsors/<name>.svg. Three edits, all by hand — there is no CI.

README — one block under the install badge, holding both tiers

Company first, Team after, the same height="28" for every logo, and no taglines (they force a vertical layout and push the project's own pitch off the screen). The label links to the Support section so the policy is one click away:

<p align="center">
  <sub><b><a href="#support-this-project">Supported by</a></b></sub><br>
  <a href="https://acme.example" rel="sponsored noopener"><img src="docs/sponsors/acme.svg" alt="Acme" height="28"></a>
  &nbsp;
  <a href="https://globex.example" rel="sponsored noopener"><img src="docs/sponsors/globex.svg" alt="Globex" height="28"></a>
</p>

Do not add a "still MIT / still private" line beside the logos. Both claims are already in the README's first sentence, above the badge.

Install page — Company tier only

A row in the footer of docs/index.html. The footer is also where the update notice sends returning users (d.onclick = window.open(P) in the shim), which is what the tier sells.

<span class="sponsors"><span class="lbl">Supported by</span>
  <a href="https://acme.example" target="_blank" rel="sponsored noopener"><img src="sponsors/acme.svg" alt="Acme" height="28"></a>
</span>
footer .sponsors { display: flex; align-items: center; gap: .5rem .9rem; flex-wrap: wrap; }
footer .sponsors .lbl { font-size: .8rem; color: var(--muted); }
footer .sponsors img { height: 28px; width: auto; max-width: 110px; opacity: .85; }
footer .sponsors a:hover img { opacity: 1; }

Accepting the asset — sanitise before committing

Committing the logo is the right call: it keeps the install page's promise that it makes no third-party requests. Hot-linking a sponsor's own domain would let them log every visitor's IP. (refined-github does the same; larger projects instead serve from their funding platform. Nobody loads a sponsor's server.)

But an SVG is executable XML, so treat every incoming file as untrusted. Rendered through <img> the browser disables scripts and external fetches — however the file stays reachable at its own URL on agarwalvishal.github.io, and opening it directly executes it in that origin. A malicious SVG committed here is stored XSS on the Pages site.

Before committing, open the file and strip:

  • <script> elements and any on* attributes (onload, onclick, …)
  • <foreignObject>, and any javascript: URI
  • external references — <image href="https://…">, <use href>, @import in a <style>. These also silently re-introduce the third-party request the same-origin rule exists to prevent.

An SVG that needs any of the above is not a logo. Ask for a plain one, or a PNG.

Keep the pull request or email that supplied the asset — that is the record of permission to use the mark, and the sponsor's brand guidelines usually ride along with it. Scale it, never recolour or crop it.

Rules

  • Team gets the README block; Company gets first position in it plus the install-page footer. Placement follows the amount, at the thresholds published on the Sponsors profile.
  • Cap: one row, four logos. A fifth becomes "and N others" linking to the README rather than shrinking the row or wrapping to a second line.
  • Order: tier first, then sponsorship start date — deterministic, so no sponsor is hand-picked and any of them can predict where they land.
  • height="28" inline and in CSS, so the row does not reflow while the SVG loads.
  • Remove ~30 days after a sponsorship lapses — a logo implies a current relationship.
  • Logos stay visually subordinate to the not-affiliated-with-Anthropic disclaimer, and a logo may be declined if it would imply Anthropic endorsement.

Verify

  1. git diff main -- claude-chat-exporter.js is empty — funding work never touches the script.
  2. grep -oE 'https?://[a-zA-Z0-9.-]+' docs/index.html lists no new host: assets are committed and served same-origin, never hot-linked.
  3. Every sponsor link carries rel="sponsored noopener".
  4. Render the install page locally and check the footer row at 360px, light and dark.

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.