agentleFS
glinckerglincker/thesvg/AGENTS.md

thesvg

AGENTS.md2.8k starsChanged 59 days agoMITView on GitHub

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; i

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 5 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 3 mentionsAug 2026: 8 mentionsSep 2026: 23 mentionsOct 2026: 11 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the glincker/thesvg repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about glincker/thesvg

The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 50

Talked about on GitHub and Bluesky (50 times).

On GitHub · 48

43 more on GitHub

On Bluesky · 2

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every icon directory must have default.svg

    line 6
  2. Very specific:

    Every SVG must have a valid viewBox attribute

    line 7
  3. Very specific:

    Every SVG must contain a <title> element with the brand name

    line 8
  4. Very specific:

    No embedded raster images (<image> with base64 data)

    line 12
  5. Very specific:

    Never include a viewport-covering rectangle like <path d="M0 0h24v24H0z"/> without fill="none" - this covers the entire icon

    line 22
  6. Distinctive:

    No uppercase, no spaces, no underscores

    line 47
  7. Very specific:

    Must match the directory name under public/icons/

    line 48
  8. Distinctive:

    Never commit directly to main

    line 68
  9. Distinctive:

    No AI tool mentions in commit messages

    line 70
  10. Distinctive:

    Inconsistent viewBox: All icons in a PR should use the same coordinate space as the library standard

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

thesvg - AI Review Guidelines

SVG Icon Submission Rules

Required

  • Every icon directory must have default.svg
  • Every SVG must have a valid viewBox attribute
  • Every SVG must contain a <title> element with the brand name
  • Preferred viewBox: 0 0 24 24 (match library convention)
  • File size must be under 50KB
  • No <script> tags, event handlers, or javascript: URIs
  • No embedded raster images (<image> with base64 data)
  • No <?xml> declarations or <!DOCTYPE> preambles

Fill and Color Rules

  • default.svg: Must use the brand hex color as fill on <svg> root (not currentColor)
  • mono.svg: Must use fill="currentColor" on <svg> root
  • light.svg: Must use fill="#ffffff" or similar light color
  • dark.svg: Must use fill="#1a1a2e" or similar dark color
  • Detail elements (eyes, pupils, accents) that contrast with the body must have explicit fill overrides - they must not inherit the root fill if that makes them invisible
  • Stroke colors on antennae, lines, or accents must contrast with adjacent filled shapes - same-color strokes over same-color fills are invisible
  • Never include a viewport-covering rectangle like <path d="M0 0h24v24H0z"/> without fill="none" - this covers the entire icon

icons.json Registry

  • Located at src/data/icons.json
  • Entries must be alphabetically sorted by slug
  • Required fields: slug, title, aliases, hex, categories, variants, license, url
  • hex must not include # prefix (e.g. "f43f5e" not "#f43f5e")
  • variants object keys must match filenames in public/icons/{slug}/
  • categories must use existing category names (check existing entries)

Variant File Naming

public/icons/{slug}/
  default.svg          # Required - brand color
  mono.svg             # Recommended - inherits text color
  light.svg            # Optional - for dark backgrounds
  dark.svg             # Optional - for light backgrounds
  color.svg            # Optional - multi-color/gradient version
  wordmark.svg         # Optional - text logo
  wordmarkLight.svg    # Optional - light text logo
  wordmarkDark.svg     # Optional - dark text logo

Slug Naming Convention

  • Lowercase, hyphen-separated
  • No uppercase, no spaces, no underscores
  • Must match the directory name under public/icons/

Code Quality Rules

TypeScript

  • No any types
  • Strict mode enabled
  • Server Components by default, "use client" only when needed

Styling

  • Tailwind CSS only, no inline styles or CSS modules, except a narrow exception for CSS custom properties carrying a genuinely per-instance runtime value (e.g. a color derived from an icon's own hex) that cannot be expressed as a static utility class
  • shadcn/ui components, extend don't reinvent
  • Phosphor icons (@phosphor-icons/react/dist/ssr) for new or touched UI chrome; existing untouched Lucide usage can stay during the gradual migration, but do not add new Lucide icons

Git

  • Never commit directly to main
  • Conventional commit messages: feat:, fix:, docs:, refactor:, test:, perf:
  • No AI tool mentions in commit messages

Common Review Pitfalls

  1. Invisible elements: Fill color matches background or parent fill - always verify contrast
  2. Bounding box paths: M0 0hWvH rectangles that cover the entire icon
  3. Wrong alphabetical position: icons.json must stay sorted by slug
  4. Missing fill overrides: Child elements inheriting root fill when they need a different color
  5. Inconsistent viewBox: All icons in a PR should use the same coordinate space as the library standard
  6. Google Fonts in SVG: External @import url() for fonts will not render in most contexts
<!-- BEGIN:nextjs-agent-rules -->

This is NOT the Next.js you know

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.

This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.

<!-- END:nextjs-agent-rules -->

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.