kb-office-remediation

kb-office-remediation is a skill for Claude Code, Codex from Community-Access/accessibility-agents. It costs 47 tokens per session (2,247 once invoked), scanned A, original, MIT.

A reference for fixing accessibility problems in Word, Excel, and PowerPoint files with Python code. It covers libraries for editing these Office document formats.

In plain words
What is it for?
It helps set document titles and languages and mark table header rows in Word documents, with related API patterns for other Office files.
Why use it?
It turns common document accessibility repairs into repeatable code instead of requiring each file to be fixed by hand.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd extracted && zip -r ../document-fixed.docx . && cd ...

Part of the accessibility-agents plugin — 113 skills, 7 hooks, 1 MCP server shipped together

Good fit It helps set document titles and languages and mark table header rows in Word documents, with related API patterns for other Office files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Community-Access/accessibility-agents
agentmods
npx agentmods add skills/community-access/accessibility-agents/kb-office-remediation

Made for: Claude Code, Codex.

Or install accessibility-agents, the plugin that ships this one along with the rest of its 113 skills, 7 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kb-office-remediation

README.md
[![agentmods](https://agentmods.dev/badge/skills/community-access/accessibility-agents/kb-office-remediation/github.svg)](https://agentmods.dev/skills/community-access/accessibility-agents/kb-office-remediation)
Your own site
<a href="https://agentmods.dev/skills/community-access/accessibility-agents/kb-office-remediation"><img src="https://agentmods.dev/badge/skills/community-access/accessibility-agents/kb-office-remediation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kb-office-remediation

Your own site · 80×15
<a href="https://agentmods.dev/skills/community-access/accessibility-agents/kb-office-remediation"><img src="https://agentmods.dev/badge/skills/community-access/accessibility-agents/kb-office-remediation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,247 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02247
Opus 5.5 $0.00019 $0.00899
Sonnet 5.5 $0.00009 $0.00449
Haiku 4.5 $0.00005 $0.00225

Measured 1mo ago against content hash d5d58e0ef446, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-office-remediation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kb-office-remediation/SKILL.md · 307 lines

How it starts

The opening of the file, as written. The whole thing — 307 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Office Remediation Patterns Skill

API reference and code patterns for programmatically fixing accessibility issues in Microsoft Office documents.


python-docx Patterns (Word .docx)

Set Document Title

from docx import Document
doc = Document("input.docx")
doc.core_properties.title = "Descriptive Title"
doc.save("output.docx")

Set Document Language

from docx import Document
from docx.oxml.ns import qn
from lxml import etree

doc = Document("input.docx")
styles_element = doc.styles.element
# qn() takes one tag, not a path; use xpath for the path
found = styles_element.xpath("w:docDefaults/w:rPrDefault/w:rPr")
rPrDefault = found[0] if found else None
if rPrDefault is not None:
    lang = rPrDefault.find(qn("w:lang"))
    if lang is None:
        lang = etree.SubElement(rPrDefault, qn("w:lang"))
    lang.set(qn("w:val"), "en-US")
doc.save("output.docx")

Set Table Header Row

from docx import Document
from docx.oxml.ns import qn
from lxml import etree

doc = Document("input.docx")
for table in doc.tables:
    first_row = table.rows[0]._tr
    trPr = first_row.get_or_add_trPr()
    existing = trPr.find(qn("w:tblHeader"))
    if existing is None:
        header_elem = etree.SubElement(trPr, qn("w:tblHeader"))
        header_elem.set(qn("w:val"), "true")
doc.save("output.docx")

Find Images Missing Alt Text

from docx import Document
from docx.oxml.ns import qn

doc = Document("input.docx")
for rel in doc.part.rels.values():
    if "image" in rel.reltype:
        # Images are referenced via <wp:docPr> in the document XML
        # Alt text is the 'descr' attribute on the docPr element
        pass

# Direct XML approach for inline images: report missing alt text.
# Write real descriptions only (docPr.set("descr", text)); never insert a
# placeholder such as "TODO", which hides the problem from checkers.
body = doc.element.body
for docPr in body.iter(qn("wp:docPr")):
    if not docPr.get("descr"):
        print(f"Image '{docPr.get('name')}' (id {docPr.get('id')}) has no alt text")

Read the full file on GitHub · 307 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines d5d58e0ef446
  2. 2mo ago First seen · 303 lines · 47 tokens per session scan A 66495fbe0728

Subscribe to this mod's changes

kb-office-remediation is a skill published in the GitHub repository Community-Access/accessibility-agents (458 stars, last pushed 7d ago), licensed MIT. It adds 47 tokens to every session and 2,247 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

kb-office-remediation compared with skills from other repositories

kb-office-remediation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kb-office-remediationCommunity-Access/accessibility-agentsSkill4587d agoMITA47Claude Code, Codex
accessibilityericrisco/rsc-harnessSkill6825d agoMITA86Claude Code, Codex
Accessibility AuditorPramodDutta/qaskillsSkill25227d agoMITA32Claude Code, Codex
Accessibility A11y EnhancedPramodDutta/qaskillsSkill25227d agoMITA34Claude Code, Codex
accessibility-commercefinsilabs/awesome-ecommerce-skillsSkill691mo agoMITA33Claude Code, Codex
accessibility-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A98Claude Code
better-accessibilityoyi77/1ai-skillsSkill19todayMITA37Claude Code