agentleFS
addyosmaniaddyosmani/web-quality-skills/AGENTS.md

web-quality-skills

AGENTS.md2.9k starsChanged 3 months agoMITView on GitHub

Web Quality Skills is a measurement-first collection of Agent Skills for Google Lighthouse, Chrome DevTools, Core Web Vitals, accessibility, SEO, best practices, and agentic browsing. Skills follow the Agent Skills specification. Each guideline should follow this pattern: Always show the problem and solution: html <img src="hero.jpg"> html <img src="hero.jpg" width="1200" height="600" alt="Hero image" loading="lazy"> Use tables for clarity:

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 2 mentionsFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 4 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 8 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the addyosmani/web-quality-skills repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about addyosmani/web-quality-skills

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

See all 21

Talked about on GitHub and Bluesky (21 times).

On GitHub · 18

13 more on GitHub
  • 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 repository7 other files it gives its agents.

The file

Show its rules and text

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

25 rules. About 0 are common, 17 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Prefer capabilities over provider-specific tool names.

    line 11
  2. Very specific:

    Run live Lighthouse audits for Accessibility, SEO, Best Practices, and Agentic Browsing.

    line 12
  3. Very specific:

    Read skills/performance/references/MEASUREMENT.md for field/lab fallbacks, CrUX scope, and repeatable comparisons.

    line 13
  4. Very specific:

    Treat a single trace or PerformanceObserver result as a lab observation, not real-user data.

    line 14
  5. Very specific:

    SKILL.md: Always uppercase, exact filename

    line 88
  6. Distinctive:

    Always show the problem and solution:

    line 117
  7. Distinctive:

    Use tables for clarity:

    line 133
  8. Very specific:

    Use set -e for fail-fast behavior

    line 146
  9. Very specific:

    Write status messages to stderr: echo "Message" >&2

    line 147
  10. Distinctive:

    Write machine-readable output (JSON) to stdout

    line 148
  11. Distinctive:

    Keep individual reference files under 200 lines when possible.

    line 179
  12. Distinctive:

    Before submitting a skill:

    line 183
  13. Distinctive:

    Verify YAML frontmatter is valid

    line 185
  14. Distinctive:

    Check that description includes activation triggers

    line 186
  15. Distinctive:

    Test that examples actually work

    line 187
  16. Distinctive:

    Ensure all referenced files exist

    line 188
  17. Distinctive:

    Run every skill validator with failure propagation:

    line 191
  18. Distinctive:

    When reviewing code, prioritize by impact:

    line 199
  19. Distinctive:

    Add framework-specific notes in separate sections

    line 211
  20. Distinctive:

    Never require a specific framework

    line 212
  21. Distinctive:

    Use standard web APIs when possible

    line 213
  22. Distinctive:

    When updating existing skills:

    line 217
  23. Distinctive:

    Update version in frontmatter metadata

    line 220
  24. Very specific:

    Document intentional behavior changes in the commit message and CHANGELOG.md

    line 221
  25. Distinctive:

    Keep existing trigger phrases working

    line 222

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

This file provides guidance to AI coding agents (Claude Code, Cursor, Copilot, etc.) when working with code in this repository.

Project overview

Web Quality Skills is a measurement-first collection of Agent Skills for Google Lighthouse, Chrome DevTools, Core Web Vitals, accessibility, SEO, best practices, and agentic browsing. Skills follow the Agent Skills specification.

Live audit routing

  • Prefer capabilities over provider-specific tool names. Record a browser performance trace and analyze focused insights; with Chrome DevTools MCP, use performance_start_trace and performance_analyze_insight.
  • Run live Lighthouse audits for Accessibility, SEO, Best Practices, and Agentic Browsing; with Chrome DevTools MCP, use lighthouse_audit. It intentionally excludes performance.
  • Read skills/performance/references/MEASUREMENT.md for field/lab fallbacks, CrUX scope, and repeatable comparisons.
  • Treat a single trace or PerformanceObserver result as a lab observation, not real-user data. When no page can run, label performance findings as source hypotheses.

Directory structure

web-quality-skills/
├── README.md                    # Project documentation
├── AGENTS.md                    # This file
├── LICENSE                      # MIT License
└── skills/
    ├── web-quality-audit/       # Comprehensive audit skill
    │   ├── SKILL.md
    │   ├── scripts/
    │   └── references/
    ├── performance/             # Performance optimization
    │   ├── SKILL.md
    │   ├── scripts/
    │   └── references/
    ├── accessibility/           # Accessibility guidelines
    │   ├── SKILL.md
    │   ├── scripts/
    │   └── references/
    ├── seo/                     # SEO best practices
    │   ├── SKILL.md
    │   ├── scripts/
    │   └── references/
    ├── best-practices/          # General best practices
    │   ├── SKILL.md
    │   ├── scripts/
    │   └── references/
    └── core-web-vitals/         # CWV-specific optimization
        ├── SKILL.md
        ├── scripts/
        └── references/

Skill format

SKILL.md structure

---
name: skill-name
description: One sentence describing when to use this skill. Include trigger phrases.
license: MIT
metadata:
  author: web-quality-skills
  version: "1.0"
---

# Skill title

Brief description of what the skill does.

## How it works

Numbered steps explaining the process.

## Guidelines

Categorized rules with clear formatting.

## Examples

Practical code examples with before/after.

## References

Links to additional documentation files.

Naming conventions

  • Skill directory: kebab-case (e.g., core-web-vitals, best-practices)
  • SKILL.md: Always uppercase, exact filename
  • Scripts: kebab-case.sh (e.g., analyze-performance.sh)
  • References: UPPERCASE.md (e.g., LCP.md, WCAG.md)

Content guidelines

  1. Keep SKILL.md under 500 lines — use references/ for detailed material
  2. Write specific descriptions — include trigger phrases for skill activation
  3. Use progressive disclosure — main instructions in SKILL.md, details in references
  4. Prefer scripts for automation — script output doesn't consume context
  5. Include practical examples — real code patterns, not just theory

Writing guidelines

For guidelines

Each guideline should follow this pattern:

* **Guideline title.** Concise explanation of what to do. Include specific values or thresholds when applicable.

Example:

* **Images have dimensions.** Set explicit `width` and `height` attributes on `<img>` to prevent layout shifts. Use CSS `aspect-ratio` as a fallback.

For code examples

Always show the problem and solution:

**Bad:**
```html
<img src="hero.jpg">

Good:

<img src="hero.jpg" width="1200" height="600" alt="Hero image" loading="lazy">

### For thresholds

Use tables for clarity:

```markdown
| Metric | Good | Needs improvement | Poor |
|--------|------|-------------------|------|
| LCP | ≤ 2.5s | 2.5s – 4.0s | > 4.0s |

Script requirements

Scripts in scripts/ should:

  1. Use #!/bin/bash shebang
  2. Use set -e for fail-fast behavior
  3. Write status messages to stderr: echo "Message" >&2
  4. Write machine-readable output (JSON) to stdout
  5. Include cleanup traps for temp files
  6. Be self-contained or clearly document dependencies

Example:

#!/bin/bash
set -e

cleanup() {
  rm -f "$TEMP_FILE"
}
trap cleanup EXIT

TEMP_FILE=$(mktemp)

echo "Analyzing..." >&2
# ... analysis logic ...

echo '{"score": 85, "issues": []}'

Reference material

Reference files in references/ should:

  1. Focus on a single topic
  2. Be loadable independently
  3. Include practical examples
  4. Link back to authoritative sources

Keep individual reference files under 200 lines when possible.

Testing skills

Before submitting a skill:

  1. Verify YAML frontmatter is valid
  2. Check that description includes activation triggers
  3. Test that examples actually work
  4. Ensure all referenced files exist
  5. Validate against the Agent Skills specification

Run every skill validator with failure propagation:

for skill in skills/*/; do npx skills-ref validate "$skill" || exit 1; done

Priority rules

When reviewing code, prioritize by impact:

  1. Critical — Security vulnerabilities, complete failures
  2. High — Core Web Vitals failures, major accessibility barriers
  3. Medium — Performance opportunities, SEO improvements
  4. Low — Code style, minor optimizations

Framework agnosticism

Skills must work across frameworks. When providing examples:

  • Show vanilla HTML/CSS/JS first
  • Add framework-specific notes in separate sections
  • Never require a specific framework
  • Use standard web APIs when possible

Updating skills

When updating existing skills:

  1. Maintain backward compatibility in descriptions
  2. Update version in frontmatter metadata
  3. Document intentional behavior changes in the commit message and CHANGELOG.md
  4. Keep existing trigger phrases working

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.