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.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- global-designSkill
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
- Distinctive: line 19
Delete files without explicit instruction
- Very specific: line 20
Write to stdout in mcp-server/ (use sys.stderr or logging — stdout breaks STDIO MCP transport)
- Very specific: line 21
Use from sedi.local_store import STORE_ROOT — always import sedi.local_store as _local_store to keep mock patching working
- Very specific: line 22
Add @mcp.tool() without a corresponding test in mcp-server/tests/
- Very specific: line 26
Run pytest after any Python change
- Very specific: line 27
Run python scripts/validate-industries.py after any industries/*.md change
- Very specific: line 28
Keep CHANGELOG.md up to date
- Very specific: line 29
Use utcnow() (not timezone-aware datetime.now(UTC)) in SEDI/learning modules — both sides of comparisons must match
- Very specific: line 48
Add tools inside the if FASTMCP_AVAILABLE: block only
- Very specific: line 50
All tools return str (JSON serialized)
≈ “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.
Files
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/(usesys.stderrorlogging— stdout breaks STDIO MCP transport) - Use
from sedi.local_store import STORE_ROOT— alwaysimport sedi.local_store as _local_storeto keep mock patching working - Add
@mcp.tool()without a corresponding test inmcp-server/tests/ - Introduce CRLF line endings — all files must use LF
Always:
- Run
pytestafter any Python change - Run
python scripts/validate-industries.pyafter anyindustries/*.mdchange - Keep
CHANGELOG.mdup to date - Use
utcnow()(not timezone-awaredatetime.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, neverprint()
SEDI modules (sedi/)
STORE_ROOTlives insedi/local_store.py— import the module, not the constantConflictPriorityorder: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
| Scope | Command |
| MCP server | cd mcp-server && python -m pytest tests/ -q |
| Learning modules | python -m pytest tests/learning/ -q |
| SEDI | python -m pytest sedi/tests/ -q |
| All | python -m pytest mcp-server/tests/ sedi/tests/ tests/learning/ -q |
105 tests must pass before any commit to master.
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
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.

