/gaac:docs-refactorfrom gaac
Splits large markdown files exceeding 1000 lines and validates internal links. Maintains atomic document structure with proper cross-references and manages document moves/renames with link updates.
Ships in gaac. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill handles document management for GAAC workflows:
| Size | Status | Action |
|---|---|---|
| < 1000 lines | Good | No action needed |
| 1000-1500 lines | Warning | Consider splitting |
| > 1500 lines | Required | Must split |
Check sizes of all markdown documents in the docs folder:
bash "${CLAUDE_PLUGIN_ROOT}/skills/docs-refactor/scripts/check-doc-sizes.sh"
Split a large document into multiple smaller documents:
bash "${CLAUDE_PLUGIN_ROOT}/skills/docs-refactor/scripts/split-document.sh" \
--input ./docs/draft/impl-large-feature.md \
--max-lines 1000
Validate all internal links in documentation:
bash "${CLAUDE_PLUGIN_ROOT}/skills/docs-refactor/scripts/validate-links.sh"
Move or rename a markdown document while updating all links that point to it:
bash "${CLAUDE_PLUGIN_ROOT}/skills/docs-refactor/scripts/move-doc.sh" \
--from ./docs/old-name.md \
--to ./docs/new-name.md
# Preview changes without modifying files
bash "${CLAUDE_PLUGIN_ROOT}/skills/docs-refactor/scripts/move-doc.sh" \
--from ./docs/draft/feature.md \
--to ./docs/architecture/feature-arch.md \
--dry-run
Features:
gaac.docs_paths for links to the old documentNote: Only updates links in markdown files within the configured docs paths. Links in code comments or other file types are not updated.
When splitting impl-feature.md:
impl-feature-overview.md - Introduction and overviewimpl-feature-part1.md - First major sectionimpl-feature-part2.md - Second major sectionOr by topic:
impl-feature-api.md - API-related implementationimpl-feature-data.md - Data layer implementationimpl-feature-ui.md - UI implementationAt the end of a split document:
---
**Next:** [Part 2: Data Layer](./impl-feature-part2.md)
**Related:**
- [Architecture Overview](../architecture/arch-feature.md)
- [API Reference](./impl-feature-api.md)
At the start of a continuation:
> **Continued from:** [Part 1: Overview](./impl-feature-part1.md)
---
[text](./relative/path.md) - Relative path links[text](./path.md#section-id) - Links with section anchors[text](#local-section) - In-document section links| Issue | Resolution |
|---|---|
| Broken file link | Update path or create missing file |
| Broken section link | Update anchor or add section heading |
| Orphan document | Add links from related documents |
After generating arch-*.md and impl-*.md:
split-document.shvalidate-links.shBefore creating issues:
| File | Purpose |
|---|---|
SKILL.md | This documentation |
scripts/check-doc-sizes.sh | Report document sizes |
scripts/split-document.sh | Split large documents |
scripts/validate-links.sh | Validate markdown links |
scripts/move-doc.sh | Move/rename documents with link updates |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/github-managerCore GitHub integration skill for GAAC. Manages issues, PRs, project board integration, and PR comments. Provides templates and scripts for all GitHub operations. Use for any GitHub-related actions in GAAC workflows./init-validatorValidates GAAC prerequisites and command arguments. Checks for required tools (gh, jq), validates gaac.md configuration, and validates input arguments for all GAAC slash commands. Use before starting any GAAC workflow./third-party-callUnified interface for calling external AI tools (Claude CLI, Codex, Gemini) in non-interactive mode. Use for independent code review, idea proposal, design analysis, and other tasks requiring fresh context. Centralizes all third-party tool configuration and permissions.npx claudepluginhub sihaoliu/gaac --plugin gaacOther plugins' skills for the same job