agentleFS
staurus86staurus86/global-design-skill/AGENTS.md

global-design-skill

AGENTS.md4 starsChanged 6 months agoMITView on GitHub

Guidelines for AI agents (Codex, Copilot, Claude, Cursor, Gemini) contributing to this repository. A self-learning design system for AI-assisted frontend work. It contains: - Design rules (rules/, checklists/, quality-gates.md) - Build protocols (blueprints/) - UI patterns (patterns/) - Industry sector rules (industries/) — 13 sectors, niche auto-detected - Python MCP server (mcp-server/) — 11 tools for sector context, pattern learning, SEDI - Learning engine (learning/) — scrapes reference sites, builds local KB - SEDI architecture (sedi/) — self-evolving design intelligence…

  • 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, 1 is distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Delete files without explicit instruction

    line 19
  2. Very specific:

    Write to stdout in mcp-server/ (use sys.stderr or logging — stdout breaks STDIO MCP transport)

    line 20
  3. Very specific:

    Use from sedi.local_store import STORE_ROOT — always import sedi.local_store as _local_store to keep mock patching working

    line 21
  4. Very specific:

    Add @mcp.tool() without a corresponding test in mcp-server/tests/

    line 22
  5. Very specific:

    Run pytest after any Python change

    line 26
  6. Very specific:

    Run python scripts/validate-industries.py after any industries/*.md change

    line 27
  7. Very specific:

    Keep CHANGELOG.md up to date

    line 28
  8. Very specific:

    Use utcnow() (not timezone-aware datetime.now(UTC)) in SEDI/learning modules — both sides of comparisons must match

    line 29
  9. Very specific:

    Add tools inside the if FASTMCP_AVAILABLE: block only

    line 48
  10. Very specific:

    All tools return str (JSON serialized)

    line 50

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

AGENTS.md — Global Design Skill

Guidelines for AI agents (Codex, Copilot, Claude, Cursor, Gemini) contributing to this repository.

What this repository is

A self-learning design system for AI-assisted frontend work. It contains:

  • Design rules (rules/, checklists/, quality-gates.md)
  • Build protocols (blueprints/)
  • UI patterns (patterns/)
  • Industry sector rules (industries/) — 13 sectors, niche auto-detected
  • Python MCP server (mcp-server/) — 11 tools for sector context, pattern learning, SEDI
  • Learning engine (learning/) — scrapes reference sites, builds local KB
  • SEDI architecture (sedi/) — self-evolving design intelligence (6 layers)

Development rules

Never:

  • Delete files without explicit instruction
  • Write to stdout in mcp-server/ (use sys.stderr or logging — stdout breaks STDIO MCP transport)
  • Use from sedi.local_store import STORE_ROOT — always import sedi.local_store as _local_store to keep mock patching working
  • Add @mcp.tool() without a corresponding test in mcp-server/tests/
  • Introduce CRLF line endings — all files must use LF

Always:

  • Run pytest after any Python change
  • Run python scripts/validate-industries.py after any industries/*.md change
  • Keep CHANGELOG.md up to date
  • Use utcnow() (not timezone-aware datetime.now(UTC)) in SEDI/learning modules — both sides of comparisons must match

Industry files (industries/*.md)

Each file requires this frontmatter:

---
version: 1.0.0
last_updated: YYYY-MM-DD
source: manual
stale_after_days: 90
---

Required sections (9): Sector Profile, Mobile Rules, Required Elements, Banned Patterns, Trust Signals, Conversion Path, Page Structure, Quick Diagnosis, Disambiguation.

MCP server (mcp-server/)

  • Entry point: server.py → main() → mcp.run(transport="stdio")
  • Add tools inside the if FASTMCP_AVAILABLE: block only
  • Tool naming convention: <action>_tool (e.g. classify_niche_tool)
  • All tools return str (JSON serialized)
  • Log with logging.error() / logging.warning() to stderr, never print()

SEDI modules (sedi/)

  • STORE_ROOT lives in sedi/local_store.py — import the module, not the constant
  • ConflictPriority order: USER_OVERRIDE=1 > LEARNED=2 > STATIC=3 > GENERIC=4
  • Learned rules are only trusted when success_rate > 0.6 AND suspicion_flag == False
  • Pattern weights are bounded [0.1, 2.0], updated ±10% per interaction

Tests

ScopeCommand
MCP servercd mcp-server && python -m pytest tests/ -q
Learning modulespython -m pytest tests/learning/ -q
SEDIpython -m pytest sedi/tests/ -q
Allpython -m pytest mcp-server/tests/ sedi/tests/ tests/learning/ -q

105 tests must pass before any commit to master.

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.