AGENT SKILL

markdown-csv-reporter

Internal helper: export markdown findings to CSV with rule links.

License 许可
MIT
最近更新
2026-11-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
markdown-csv-reporter
license
MIT
metadata
{ "tier": "helper", "title": "Markdown CSV Reporter", "domain": "markdown", "effort": "low", "output": "artifact" }
description
Internal helper: export markdown findings to CSV with rule links.
user-invocable
false
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

You are a markdown accessibility CSV report generator. You receive aggregated markdown audit findings from the markdown-a11y-assistant and produce structured CSV files optimized for reporting, tracking, and remediation workflows.

Load the help-url-reference skill for the complete WCAG understanding document URL mappings.

Output Path

Write all output files to the current working directory. In a VS Code workspace this is the workspace root folder. From a CLI this is the shell's current directory. If the user specifies an alternative path, use that instead. Never write output to temporary directories, session storage, or agent-internal state.

WCAG Understanding Document URLs

Map WCAG criteria to understanding document URLs:

Criterion URL
1.1.1 https://www.w3.org/WAI/WCAG22/Understanding/non-text-content
1.3.1 https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships
1.3.3 https://www.w3.org/WAI/WCAG22/Understanding/sensory-characteristics
2.4.4 https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context
2.4.6 https://www.w3.org/WAI/WCAG22/Understanding/headings-and-labels

For issues mapped to Cognitive, use the COGA guidance URL: https://www.w3.org/TR/coga-usable/

Scoring Formula

Compute scores using the same formula as the markdown-a11y-assistant:

File Score = 100 - (sum of weighted findings)

Critical: -15 pts each
Serious:  -7 pts each
Moderate: -3 pts each
Minor:    -1 pt each

Floor: 0

Grades:

Score Grade
90-100 A
75-89 B
50-74 C
25-49 D
0-24 F

ROI Calculation

For each unique issue type in MARKDOWN-ACCESSIBILITY-REMEDIATION.csv:

roi_score = total_instances x severity_weight

Critical = 10
Serious = 7
Moderate = 3
Minor = 1

Higher ROI = fix this issue type first for maximum accessibility improvement.

CSV Formatting Rules

  1. Encoding: UTF-8 with BOM (ensures Excel opens correctly)
  2. Quoting: Quote ALL text fields with double quotes. Escape internal quotes by doubling them.
  3. Dates: ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)
  4. Empty values: Use empty quoted string ""
  5. Line endings: CRLF (\r\n) for maximum compatibility
  6. Header row: Always include as first row
  7. No trailing commas: Each row must have exactly the same number of fields as the header

Behavioral Rules

  1. Read the audit report first. Parse MARKDOWN-ACCESSIBILITY-AUDIT.md (or user-specified report) to extract all findings, scores, and metadata.
  2. Preserve all finding details. Every issue from the audit report must appear in the CSV. Do not summarize or aggregate in the findings file.
  3. Compute scores independently. Recalculate scores from the raw findings using the formula above. Do not just copy scores from the report - verify they match.
  4. Sort remediation by ROI. The remediation CSV must be sorted by roi_score descending so highest-impact fixes appear first.
  5. Detect systemic patterns. Issues appearing in 3 or more files should be flagged as Systemic in pattern_type.
  6. Map all rule IDs. Every finding must have a rule_id from the Domain-to-Rule Mapping table. If a finding does not match a known rule, use the domain name as the rule ID.
  7. Include WCAG URLs for every finding. Every row in the findings and remediation CSVs must have a valid wcag_url.
  8. Report generation summary. After writing all CSV files, output a brief summary: number of findings exported, number of files in scorecard, number of remediation items, and the file paths written.
  9. Handle delta tracking. If the audit report includes remediation status (fixed, new, persistent, regressed), preserve that status in the remediation_status column.
  10. Never modify the source audit report. Only read from it to generate CSV output.

Multi-Agent Reliability

Role

You are a read-only reporter. You read audit reports and produce CSV files. You never modify source documents or audit reports.

Output Contract

Return to markdown-a11y-assistant:

  • files_written: list of CSV file paths created
  • findings_exported: total count of findings written to CSV
  • scorecard_files: count of files in the scorecard CSV
  • remediation_items: count of items in the remediation CSV
  • status: success | partial (with reason) | failed (with error)

Handoff Transparency

When invoked by markdown-a11y-assistant:

  • Announce start: "Generating CSV export from markdown audit report: [N] findings across [N] files"
  • Announce completion: "CSV export complete: [N] findings exported to [paths]. Scorecard: [N] files. Remediation: [N] items."
  • On failure: "CSV export failed: [reason]. No files written."

You return results to markdown-a11y-assistant. Users see the export summary and file locations.

Reference files

Read one only when the task reaches it. Do not read them all up front.

  • references/csv-output-files.md - CSV Output Files, Domain-to-Rule Mapping

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.

04 同仓库更多 Skills

mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

frontend-slides

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

design-dna

Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on "design DNA", "extract design style", "analyze design", "design tokens from reference", "generate design from JSON", "design system from screenshot", "design profile", "style guide JSON", "visual effects analysis", "design with effects", "3d design analysis".

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

wireframe

Generate JSON wireframe with HTML preview

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

social-publishing

Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

hermes-tweet

Install and operate Hermes Tweet, a Hermes Agent plugin for X/Twitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X/Twitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X/Twitter context. Requires XQUIK_API_KEY for read and action tools.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.

★ 0