agentleFS
Crawlio-appCrawlio-app/crawlio-browser/skills/test/SKILL.md

test

Skill8 starsChanged 4 months agoApache-2.0View on GitHub

Test a page against quality assertions — accessibility, performance, security, SEO, mobile readiness

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-context-isolation, agentica-infrastructure and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 164 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run pass/fail assertions across accessibility, performance, security, SEO, and mobile readiness.

    line 9
  2. Very specific:

    Do NOT use smart.screenshot() — extractPage captures everything needed

    line 110
  3. Very specific:

    Do NOT use sleep() to wait for metrics — extractPage handles page load

    line 111
  4. Very specific:

    Do NOT use location.href — use page.capture.url

    line 112
  5. Very specific:

    Always search() first if unsure which fields extractPage returns

    line 113

“Common” is measured: kept by at least 6 in 10 of the 164 edited versions of this file we could read. “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

Test — Quality Assertions

Run pass/fail assertions across accessibility, performance, security, SEO, and mobile readiness. Every assertion becomes a finding. Confidence auto-caps when data is missing.

When to Use

  • Auditing accessibility, performance, security, SEO, or mobile readiness
  • Running pass/fail assertions against quality thresholds

Protocol

  1. search for extraction commands: search("extract page accessibility")
  2. connect_tab to the target URL with { background: true }
  3. execute Code Mode: smart.extractPage() gathers all dimensions in one call
  4. Emit one smart.finding() per assertion — claim states pass or fail
  5. Return smart.findings() + page.gaps

Code Example

const page = await smart.extractPage();

// Accessibility
if (page.accessibility) {
  smart.finding({
    claim: page.accessibility.imagesWithoutAlt === 0
      ? "All images have alt text"
      : `${page.accessibility.imagesWithoutAlt} images missing alt text`,
    evidence: [`imagesWithoutAlt: ${page.accessibility.imagesWithoutAlt}`, `nodeCount: ${page.accessibility.nodeCount}`],
    sourceUrl: page.capture.url, confidence: "high",
    method: "extractPage", dimension: "accessibility"
  });
  smart.finding({
    claim: page.accessibility.landmarkCount > 0
      ? `${page.accessibility.landmarkCount} ARIA landmarks found`
      : "No ARIA landmarks — add banner, main, contentinfo",
    evidence: [`landmarkCount: ${page.accessibility.landmarkCount}`],
    sourceUrl: page.capture.url, confidence: "high",
    method: "extractPage", dimension: "accessibility"
  });
}

// Performance
if (page.performance) {
  const lcp = page.performance.webVitals?.lcp;
  const cls = page.performance.webVitals?.cls;
  smart.finding({
    claim: lcp && lcp < 2500 ? `LCP good (${lcp}ms)` : `LCP needs work (${lcp || "unknown"}ms)`,
    evidence: [`LCP: ${lcp}ms`, `CLS: ${cls}`, `thresholds: LCP<2500, CLS<0.1`],
    sourceUrl: page.capture.url, confidence: lcp ? "high" : "low",
    method: "extractPage", dimension: "performance"
  });
}

// Security
if (page.security) {
  smart.finding({
    claim: page.security.securityState === "secure"
      ? "TLS connection is secure" : `Security state: ${page.security.securityState || "unknown"}`,
    evidence: [`protocol: ${page.security.certificate?.protocol || "unknown"}`],
    sourceUrl: page.capture.url, confidence: "high",
    method: "extractPage", dimension: "security"
  });
}

// SEO
if (page.meta) {
  const m = page.meta;
  smart.finding({
    claim: m._title && m.description ? "Title + meta description present" : "SEO meta tags incomplete",
    evidence: [`title: ${m._title || "missing"} (${m._title?.length || 0} chars)`,
               `description: ${m.description || "missing"} (${m.description?.length || 0} chars)`],
    sourceUrl: page.capture.url, confidence: "high",
    method: "extractPage", dimension: "seo"
  });
}

// Mobile readiness
if (page.mobileReadiness) {
  smart.finding({
    claim: page.mobileReadiness.hasViewportMeta ? "Viewport meta tag present" : "Missing viewport meta",
    evidence: [`viewport: ${page.mobileReadiness.viewportContent || "none"}`],
    sourceUrl: page.capture.url, confidence: "high",
    method: "extractPage", dimension: "mobile-readiness"
  });
}

// Tech stack
const tech = await smart.detectTechnologies();
if (tech.technologies?.length) {
  smart.finding({
    claim: `${tech.technologies.length} technologies detected`,
    evidence: tech.technologies.map(t => t.name),
    sourceUrl: page.capture.url, confidence: "high",
    method: "detectTechnologies", dimension: "technology"
  });
}

return { findings: smart.findings(), gaps: page.gaps };

Anti-Patterns

  • Do NOT use smart.screenshot() — extractPage captures everything needed
  • Do NOT use sleep() to wait for metrics — extractPage handles page load
  • Do NOT use location.href — use page.capture.url
  • Always search() first if unsure which fields extractPage returns

Output

The skill produces Finding[] via smart.findings(). Dimensions: accessibility, performance, security, seo, mobile-readiness, technology. When data is missing, confidence auto-caps to "low" and the gap appears in page.gaps.

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.