Doc Mirror Sync
Documentsdoc-mirror-syncDoc Mirror Sync is an Agent Skill for documents published in the Fu-Jie/openwebui-extensions repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Automatically synchronizes plugin READMEs to the official documentation directory (docs/). Use after editing a plugin's local documentation to keep the MkDocs site up to date.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Fu-Jie/openwebui-extensions/blob/HEAD/.gemini/skills/doc-mirror-sync/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/doc-mirror-sync, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Doc Mirror Sync
Overview
Automates the mirroring of plugins/{type}/{name}/README.md to docs/plugins/{type}/{name}.md.
Docs-Only Mode (No Release Changes)
Use this mode when the request is "only sync docs".
- Only update documentation mirror files under
docs/plugins/**. - Do not bump plugin version.
- Do not modify plugin code (
plugins/**.py) unless explicitly requested. - Do not update root badges/dates for release.
- Do not run release preparation steps.
Workflow
- Identify changed READMEs.
- Copy content to corresponding mirror paths.
- Update version badges in
docs/plugins/{type}/index.md.
Commands
Sync all mirrors (EN + ZH)
python .github/skills/doc-mirror-sync/scripts/sync.py
Sync only one plugin (EN only)
cp plugins/<type>/<name>/README.md docs/plugins/<type>/<name>.md
Sync only one plugin (EN + ZH)
cp plugins/<type>/<name>/README.md docs/plugins/<type>/<name>.md
cp plugins/<type>/<name>/README_CN.md docs/plugins/<type>/<name>.zh.md
Notes
- If asked for English-only update, sync only
README.md->.mdmirror. - If both languages are requested, sync both
README.mdandREADME_CN.md. - After syncing, verify git diff only contains docs file changes.