agentleFS
Community-AccessCommunity-Access/accessibility-agents/skills/epub-scan-config/SKILL.md

epub-scan-config

Skill458 starsChanged 34 days agoMITView on GitHub

Internal helper: manage .a11y-epub-config.json scan settings.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always validate JSON: before writing - ensure the output is valid JSON with correct field types.

    line 114
  2. Distinctive:

    Preserve unrecognised keys: - if the config has additional custom keys, do not remove them, but tell the user the schema does not allow …

    line 115
  3. Distinctive:

    Default to moderate profile: when creating a new config file unless the user specifies otherwise.

    line 117

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

You manage .a11y-epub-config.json - the scan configuration file for ePub accessibility audits run by the epub-accessibility agent. You are invoked internally by the document-accessibility-wizard when .epub files are in scope and no config file exists, or when the user wants to customise rule settings.

Configuration Schema

{
  "$schema": "https://raw.githubusercontent.com/Community-Access/accessibility-agents/main/.github/schemas/epub-config.schema.json",
  "version": "1.0",
  "description": "Profile description",
  "epub": {
    "enabled": true,
    "disabledRules": [],
    "severityFilter": ["error", "warning"],
    "maxFileSize": 104857600
  }
}

Fields

Each field, with its type and description.

FieldTypeDescription
epub.enabledbooleanEnable/disable ePub scanning entirely
epub.disabledRulesstring[]Rule IDs to skip (e.g., ["EPUB-T002", "EPUB-T003"])
epub.severityFilterstring[]Which severities to report: any combination of "error", "warning", "tip"
epub.maxFileSizenumberMaximum file size in bytes (104857600 = 100 MB)

The schema, .github/schemas/epub-config.schema.json, requires all four epub fields and allows no other keys.

The EPUB-* rule IDs below are the ones the epub-accessibility skill reports. The scan_epub_document MCP tool reads the epub block of this schema, but reports its own IDs (for example epub-title, epub-alt-text), so disabledRules for that tool must use those IDs.

Profile Presets

Strict - all rules, all severities

{
  "epub": {
    "enabled": true,
    "disabledRules": [],
    "severityFilter": ["error", "warning", "tip"],
    "maxFileSize": 104857600
  }
}

Moderate - all rules, errors and warnings only (recommended default)

{
  "epub": {
    "enabled": true,
    "disabledRules": [],
    "severityFilter": ["error", "warning"],
    "maxFileSize": 104857600
  }
}

Minimal - errors only

{
  "epub": {
    "enabled": true,
    "disabledRules": [],
    "severityFilter": ["error"],
    "maxFileSize": 104857600
  }
}

Available Rules

Each rule ID, with its name and default severity.

Rule IDNameDefault Severity
EPUB-E001missing-titleerror
EPUB-E002missing-unique-identifiererror
EPUB-E003missing-languageerror
EPUB-E004missing-nav-tocerror
EPUB-E005missing-alt-texterror
EPUB-E006unordered-spineerror
EPUB-E007missing-a11y-metadataerror
EPUB-W001missing-page-listwarning
EPUB-W002missing-landmarkswarning
EPUB-W003heading-hierarchywarning
EPUB-W004table-missing-headerswarning
EPUB-W005ambiguous-link-textwarning
EPUB-W006color-only-infowarning
EPUB-T001incomplete-a11y-summarytip
EPUB-T002missing-authortip
EPUB-T003missing-descriptiontip

Behavioural Rules

  1. Never modify files outside .a11y-epub-config.json.
  2. Always validate JSON before writing - ensure the output is valid JSON with correct field types.
  3. Preserve unrecognised keys - if the config has additional custom keys, do not remove them, but tell the user the schema does not allow them.
  4. Confirm before writing - show the proposed config to the user and confirm before saving.
  5. Default to moderate profile when creating a new config file unless the user specifies otherwise.

Output contract

Produce the file or script the task asks for. Report what you wrote as a short list of paths and what each one changes. Do not restate the file contents.

Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md. Authoritative specifications for this skill: skills/a11y-core/references/sources.md.

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.