Opquast Digital Quality 标志

Opquast Digital Quality

社区
mgifford
opquast-digital-quality

在构建、审查或审计网站和 Web 应用时,应用 Opquast 数字质量框架(245 条规则,14 个类别)。适用于 Web 开发质量保证、无障碍合规、安全加固、隐私保护实施、电商最佳实践,以及全面的数字质量检查。

Add to TypingMind

概览

发布者mgifford
代码仓库accessibility-skills
技能名称opquast-digital-quality
星标数
57
复刻数
5
附带文件
1
许可协议AGPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mgifford 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Opquast Digital Quality AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mgifford/accessibility-skills/tree/main/skills/opquast-digital-quality
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mgifford/accessibility-skills.git /tmp/accessibility-skills
mkdir -p .claude/skills
cp -r /tmp/accessibility-skills/skills/opquast-digital-quality .claude/skills/opquast-digital-quality
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Opquast Digital Quality,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Opquast Digital Quality。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Opquast Digital Quality 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Opquast Digital Quality Best Practices

Canonical source: examples/OPQUAST_DIGITAL_QUALITY_BEST_PRACTICES.md in mgifford/ACCESSIBILITY.md This skill is derived from that file. When in doubt, the example is authoritative.

Apply the Opquast Digital Quality Checklist (Version 5, 2025-2030) when building or reviewing web projects. The framework contains 245 rules across 14 categories covering content, privacy, e-commerce, forms, accessibility, security, performance, and more.

Rules are published under Creative Commons BY-SA 4.0. Agents may reference and cite rule text; attribute Opquast and respect the ShareAlike licence — derivatives must use the same licence. See opquast.com for the authoritative source.


Severity Scale (this skill)

LevelMeaning
CriticalCompletely blocks access, purchase, or task completion for a user group
SeriousSignificantly impairs access or usability; workaround unreasonable to expect
ModerateCreates friction; workaround available but burdensome
MinorBest-practice gap; marginal impact

Category-level severity guidance:

  • Security failures (HTTPS, headers, passwords): Critical to Serious
  • Forms failures (labels, error handling): Critical to Serious
  • Navigation failures (keyboard, focus): Critical to Serious
  • Images/Media missing alt/captions: Critical
  • Privacy policy missing: Serious
  • Presentation contrast: Serious; zoom blocked: Serious
  • Content, Links, Identification: Moderate to Minor in most cases
  • Server/Performance, Newsletter, Internationalisation: Minor in most cases

When to Use This Skill

  • Building a new website or web application
  • Reviewing or auditing an existing site for quality
  • Implementing accessibility, security, or privacy features
  • Creating e-commerce flows, forms, or navigation systems
  • Generating HTML/CSS code that must meet quality standards

Quick Reference by Category (245 rules across 14 categories)

CategoryRulesKey Requirements
Content1–14Metadata (description + OG tags), explicit dates, <abbr> for acronyms, data tables for charts, labelled ads, moderation/abuse-report mechanisms
Personal Data / Privacy15–29Privacy link in footer, documented data access/modification process, no third-party-only login, generic auth-failure messages, Referrer-Policy, HTTPS for sensitive data, no sensitive data in URLs
E-Commerce30–68No pre-checked opt-ins, availability/delivery time/cost before checkout, explicit pricing incl. tax, two+ payment methods, order confirmation email, invoices online
Forms69–98<label for="...">, format/case-sensitivity hints, required indicated in text, password strength + show/hide, aria-invalid, aria-describedby, preserve data on error, correct input type/autocomplete, paste not blocked, disabled buttons not aria-hidden
Identification99–115Unique page titles (Page | Site), lang attribute, favicon, address/phone in footer, two+ contact methods, response-time/hours stated
Images/Media116–127Meaningful alt, empty alt="" for decorative, image-link alt describes destination, transcripts + synchronised captions, no autoplay, pausable media
Internationalisation128–135International dialling codes, country in addresses, hreflang/visible language indicator, lang on <html> and inline changes, translated-language link labels
Links136–152Descriptive anchor text (no "click here"), tel: protocol, new-tab warning, file type + size for downloads, no broken internal links
Navigation153–172Public content without forced login, no nav pop-ups, homepage link, breadcrumbs, consistent nav placement, visible icon labels, skip links, visible :focus-visible, logical tab order, internal search, sitemap
Newsletter173–179Confirmed opt-in, unsubscribe link, one-click unsubscribe, archives online, stated frequency
Presentation180–196Consistent visual identity, no colour-only info, contrast 4.5:1 normal / 3:1 large text, meaning survives with styles off, 24×24px+ touch targets, no zoom blocking, responsive layout, print styles
Security197–217HTTPS everywhere + HSTS, no mixed content, self-service password reset, no plain-text passwords, X-Content-Type-Options, X-Frame-Options/frame-ancestors, CSP, SRI on third-party scripts, no exposed server versions, SPF/DKIM/DMARC
Server/Performance218–230robots.txt, sitemap.xml, proper 404 status (not 200), custom error page with nav, gzip/Brotli, cache-control headers, minified CSS/JS
Structure/Code231–244Machine-readable dates (<time datetime>), UTF-8, unique IDs, no meta refresh, heading hierarchy h1>h2>h3, tagged (not scanned) PDFs, <caption>/<th scope> on data tables

Workflow

1. Identify Applicable Categories

Not all 14 categories apply to every project:

  • All web projects: Content, Forms, Identification, Images/Media, Links, Navigation, Presentation, Security, Server/Performance, Structure/Code
  • Add if applicable: E-Commerce (online sales), Newsletter (email marketing), Internationalisation (multi-language), Personal Data/Privacy (user accounts/data collection)

2. Consult the Full Rule Text

For the complete rule text, code examples, and rule numbers, consult the canonical Opquast guide or the official checklist directly — this skill summarizes the categories and highest-value patterns rather than reproducing all 245 rules verbatim.

3. Apply During Development

When generating or reviewing code, apply rules as implementation requirements:

  • HTML generation: Include metadata, semantic structure, accessible forms, proper alt text
  • CSS generation: Ensure contrast ratios, focus styles, responsive layout, print styles
  • Server configuration: Set security headers, enable compression, configure caching
  • Content review: Check date formats, link text, abbreviation expansion

4. Validate

After implementation, verify against applicable rules. Common automated checks:

  • HTML validation and heading hierarchy
  • Colour contrast ratios (4.5:1 normal text, 3:1 large text)
  • Missing alt attributes
  • Missing form labels
  • Security headers present
  • Broken internal links

Essential Code Patterns

Page Template Minimum

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="description" content="Page description here." />
  <meta property="og:title" content="Page Title | Site Name" />
  <meta property="og:description" content="Page description for sharing." />
  <title>Page Title | Site Name</title>
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
  <a href="#main" class="skip-link">Skip to main content</a>
  <nav aria-label="Main navigation"><!-- ... --></nav>
  <main id="main"><!-- ... --></main>
  <footer>
    <a href="/privacy">Privacy Policy</a>
    <a href="/terms">Terms of Use</a>
  </footer>
</body>
</html>

Accessible Form Field

Use native required on native inputs. aria-required is redundant when required is present and should be omitted to avoid accessibility tree noise (rule 98 principle: don't add ARIA states that duplicate native semantics). Use aria-required only on custom widgets (role="combobox" etc.). Also indicate required state in visible text — an asterisk alone is insufficient unless the convention is explained (rule 71).

html
<label for="email">
  Email address <span aria-hidden="true">*</span> <span class="hint">(required)</span>
  <span class="hint" id="email-hint">Example: user@example.com</span>
</label>
<input id="email" type="email" autocomplete="email"
  required aria-describedby="email-hint" />

Password Field (rules 75–76, 202–205)

html
<label for="password">Password</label>
<div class="password-wrapper">
  <input id="password" type="password" aria-describedby="password-hint" />
  <button type="button" aria-controls="password" aria-pressed="false">
    Show password
  </button>
</div>

Security Headers (Server Config)

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: default-src 'self';
Referrer-Policy: strict-origin-when-cross-origin

Do not expose server software versions in response headers (rule 213) — remove or obfuscate Server and X-Powered-By. Apply Subresource Integrity to third-party scripts/stylesheets (rule 214):

html
<script src="https://cdn.example.com/library.min.js"
  integrity="sha384-<hash>" crossorigin="anonymous"></script>

Focus and Contrast Styles

css
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}
body {
  color: #1a1a1a; /* ~16:1 contrast on white */
  background: #ffffff;
}

Print Styles

css
@media print {
  nav, header, footer, .sidebar, .no-print { display: none; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; }
}

Accessible Data Table (rules 242–243)

html
<table>
  <caption>Quarterly revenue by region (USD thousands)</caption>
  <thead>
    <tr><th scope="col">Region</th><th scope="col">Q1</th></tr>
  </thead>
  <tbody>
    <tr><th scope="row">North America</th><td>1,200</td></tr>
  </tbody>
</table>

WCAG Relationship

Opquast complements WCAG 2.2 rather than replacing it. Key mappings:

Opquast RulesWCAG Criteria
116 (decorative images alt="")1.1.1 Non-text Content (A)
117-118 (meaningful alt text)1.1.1 Non-text Content (A)
121-122 (transcripts, captions)1.2.2, 1.2.3, 1.2.5
124-127 (no autoplay, pausable)1.4.2, 2.2.2
131-132 (lang attribute)3.1.1, 3.1.2
164 (skip links)2.4.1 Bypass Blocks (A)
165 (focus visible)2.4.7, 2.4.11 Focus Visible/Appearance
166 (keyboard operable)2.1.1 Keyboard (A)
167 (logical tab order)2.4.3 Focus Order (A)
181 (not colour alone)1.4.1 Use of Color (A)
182 (contrast)1.4.3, 1.4.6, 1.4.11 Contrast
186 (touch targets 24×24px min)2.5.8 Target Size Minimum (AA, WCAG 2.2)
193 (no zoom block)1.4.4 Resize Text (AA)
69-70 (labels, instructions)1.3.1, 3.3.2
79-80 (error identification)3.3.1, 3.3.3

Use Opquast as a holistic quality baseline and layer WCAG testing for full accessibility compliance.


Sustainability Connection

Several Opquast categories directly align with SUSTAINABILITY.md and the Web Sustainability Guidelines:

  • Server/Performance (rules 226-230): compression, caching, minification — directly reduce data transfer and energy per page view
  • Presentation (rule 193): not blocking zoom; (rule 194): responsive layout — reduce need for separate mobile sites
  • Structure/Code (rule 239): no meta refresh — avoids unnecessary page reloads

When applying Opquast Server/Performance rules, cross-reference with SUSTAINABILITY.md for additional guidance on carbon-aware delivery and asset optimisation.


Definition of Done Checklist

Apply to every project; skip categories not in scope:

Content & Identification

  • <meta name="description"> and OG tags on every page
  • Unique <title> in Page | Site format
  • <html lang="..."> present and correct
  • <link rel="icon"> present
  • Privacy policy linked from footer
  • At least two contact methods available

Forms

  • Every field has programmatically associated <label>
  • Native required used; aria-required omitted on native inputs
  • Required state indicated in visible text, not asterisk/colour alone
  • aria-invalid="true" set on invalid fields
  • Error messages associated via aria-describedby; prior data preserved on error
  • Correct input type and autocomplete values
  • Paste not blocked; disabled buttons not hidden via aria-hidden

Images & Media

  • Decorative images have alt=""
  • Informative images have descriptive alt; image links describe the destination
  • All video has synchronised captions
  • All audio has text transcript
  • No autoplay (audio or video); all media pausable

Navigation & Keyboard

  • Skip link present and functional
  • :focus-visible styles defined; outline: none not used without replacement
  • All content keyboard operable; logical tab order
  • Breadcrumbs or equivalent location indicator present

Presentation

  • Contrast ≥ 4.5:1 for normal text; ≥ 3:1 for large text and UI components
  • Information not conveyed by colour alone
  • user-scalable=no and maximum-scale not used
  • Touch targets ≥ 24×24px (44×44 recommended)
  • Print styles hide navigation; reveal link URLs

Security

  • HTTPS on all pages; HTTP redirects to HTTPS; no mixed content
  • HSTS header present
  • X-Content-Type-Options: nosniff present
  • X-Frame-Options or CSP frame-ancestors present
  • CSP header present
  • SRI on all third-party scripts/stylesheets
  • Server/framework version headers not exposed

Server/Performance

  • robots.txt present; sitemap.xml present
  • Proper 404 status for missing pages (not 200)
  • Compression enabled (gzip or Brotli)
  • Cache-control headers on static assets
  • CSS and JS minified

Structure/Code

  • <meta charset="UTF-8"> in every <head>
  • No duplicate id attributes within a page
  • No <meta http-equiv="refresh">
  • Heading hierarchy correct (h1 > h2 > h3, no skips)
  • Data tables have <caption> and <th scope="...">
  • Internal PDFs are tagged (selectable text), not scanned images

Key WCAG Criteria

See WCAG relationship table above. Opquast covers all of WCAG 2.2 AA and extends well beyond it into security, privacy, e-commerce, and performance.


References

Standards horizon: These rules target WCAG 2.2 AA alongside Opquast v5 (2025-2030). WCAG 3.0 is in development. Monitor: https://www.w3.org/TR/wcag-3.0/

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Opquast Digital Quality AI 技能有什么作用?

在构建、审查或审计网站和 Web 应用时,应用 Opquast 数字质量框架(245 条规则,14 个类别)。适用于 Web 开发质量保证、无障碍合规、安全加固、隐私保护实施、电商最佳实践,以及全面的数字质量检查。

为什么在 TypingMind 中使用 Opquast Digital Quality?

因为您只需安装一次,就能搭配任何模型使用。Opquast Digital Quality 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Opquast Digital Quality?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mgifford/accessibility-skills/tree/main/skills/opquast-digital-quality。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Opquast Digital Quality?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Opquast Digital Quality 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Opquast Digital Quality 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Opquast Digital Quality AI 技能免费吗?

是的。mgifford 已在 GitHub 上根据 AGPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇