openspec-update-docs
Synchronizes technical documentation, BLE protocols, and setup guides with actual system implementation.
Install
mkdir -p .claude/skills/openspec-update-docs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15522" && unzip -o skill.zip -d .claude/skills/openspec-update-docs && rm skill.zipInstalls to .claude/skills/openspec-update-docs
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Update, review, and validate project and API documentation following OpenSpec standards. Use when you need to align setup guides, BLE protocol specifications, or developer/agent guidelines with the current codebase.Key capabilities
- →Identify outdated documentation files
- →Verify code alignment with documentation
- →Apply Markdown standards for readability
- →Update specific sections of documentation files
- →Validate links and Markdown syntax
- →Commit updated documentation
How it works
This skill updates and validates repository documentation by scanning for outdated files, verifying code alignment, applying Markdown standards, and committing changes.
Inputs & outputs
When to use openspec-update-docs
- →Updating README with current API changes
- →Validating BLE protocol documentation
- →Syncing agent guidelines with code
About this skill
Update and validate repository documentation (including READMEs, Custom Component setup guides, BLE protocol matrix, and automated agent guidelines) to ensure it perfectly matches the system implementation.
Input: Optionally specify a documentation file or target area (e.g., README.md or protocol). If omitted, you must analyze the changes and codebase status to determine which documents require synchronization.
Steps
1. Identify Outdated Documentation
Scan the working tree to find out-of-sync documents:
- Core Readme:
README.md - Change Proposal:
openspec/changes/<name>/proposal.md - Active Specifications:
openspec/changes/<name>/specs/**/*.md - Agent Guidelines:
openspec/changes/<name>/specs/agent-guidelines/spec.md - Protocol matrix:
openspec/changes/<name>/specs/ble-protocol/spec.md
2. Pre-Update Verification
Before writing or modifying documentation, review the source code and specs:
- Code Alignment: Read the actual implementation (e.g. Python code, JSON schemas) to ensure telemetry byte offsets, parameter names, and configurations match the documentation.
- Spec Consistency: Check the active OpenSpec design and proposal files to ensure scope alignment.
3. Apply Markdown Standards
All documentation must maintain a highly premium visual aesthetic and structured readability:
- Headers: Maintain a clean hierarchical header structure (
#,##,###, etc.). Never skip levels. - Alerts: Use standard GitHub-style alerts (
> [!NOTE],> [!TIP],> [!IMPORTANT],> [!WARNING]) for highlighting important information. - Formatting:
- Keep sentences short, clear, and direct.
- Wrap code examples in appropriate fenced code blocks with language identifiers.
- Format telemetry matrices, byte offsets, and decoding registers in clean markdown tables.
- Use visual diagrams (Mermaid or ASCII flowcharts) to illustrate complex architecture or BLE communication sequences.
4. Perform the Update
Create or edit the documentation files:
- Use precise file operations to update specific sections without disrupting unrelated documentation.
- Do not use placeholders or outdated assumptions.
- Reference other files using standard Markdown links (e.g.
[README](file:///Users/yunseokoh/Projects/ha-anker-solix-f2000/README.md)).
5. Validate the Assets
Verify the updated documentation:
- Links: Ensure all relative and absolute links in the markdown files are valid.
- Render Check: Verify that there are no broken markdown syntax errors (e.g., incomplete code fences, unclosed brackets, or malformed tables).
6. Commit the Updates
Once validated, stage and commit the updated documentation using the openspec-commit-changes skill:
git add docs/ README.md
git commit -m "docs: update BLE protocol documentation and setup guides"
Output During Execution
Your response during execution should clearly log each step:
## Initiating Documentation Update
### Step 1: Scanning Documentation Assets
Analyzing differences between codebase and documentation...
Out of sync detected:
- openspec/changes/anker-solix-ble-hacs/specs/ble-protocol/spec.md (needs telemetry byte offset updates)
- README.md (needs setup guide updates)
### Step 2: Updating Assets
✓ Updated: openspec/changes/anker-solix-ble-hacs/specs/ble-protocol/spec.md
✓ Updated: README.md
### Step 3: Validation Checks
✓ Verified all markdown tables and code fences
✓ Verified all internal document links
Documentation is now fully aligned with the codebase! Run `/opsx:commit` to secure your changes.
Guardrails
- No Stale Facts: Never guess or speculate on API behavior or protocol formats; verify against actual code or verified telemetry captures.
- Aesthetic Excellence: Avoid simple unformatted text blocks. Use structured lists, tables, bold text, and code formatting to make documents extremely readable.
- No Broken Links: Double-check all file paths and references before concluding.
When not to use it
- →When the task is not about updating project or API documentation
- →When the task is not about aligning documentation with codebase changes
Limitations
- →The skill focuses on updating project and API documentation
- →The skill requires standard git workspace and markdown capabilities
- →The skill does not speculate on API behavior or protocol formats
How it compares
This skill automates the process of synchronizing documentation with the codebase, ensuring accuracy and consistency, unlike a manual update process.
Compared to similar skills
openspec-update-docs side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| openspec-update-docs (this skill) | 0 | 2mo | Review | Intermediate |
| documentation-review | 11 | 5mo | No flags | Beginner |
| docs-review | 10 | 8mo | No flags | Beginner |
| workthrough | 10 | 9mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
documentation-review
stacklok
Reviews documentation for factual accuracy
docs-review
metabase
Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.
workthrough
bear2u
Automatically document all development work and code modifications in a structured workthrough format. Use this skill after completing any development task, bug fix, feature implementation, or code refactoring to create comprehensive documentation.
claude-md-improver
anthropics
Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".
anti-slop
rand
Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design. Use when reviewing or improving content quality, preventing generic AI patterns, cleaning up existing content, or enforcing quality standards in writing, code, or design work.
agent-md-refactor
davila7
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.