Ai-Agent-Skills build-workspace-docs
Use when regenerating README.md and WORK_AREAS.md in a managed library workspace. Always dry-run first to preview changes.
install
source · Clone the upstream repo
git clone https://github.com/MoizIbnYousaf/Ai-Agent-Skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/MoizIbnYousaf/Ai-Agent-Skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/build-workspace-docs" ~/.claude/skills/moizibnyousaf-ai-agent-skills-build-workspace-docs && rm -rf "$T"
manifest:
skills/build-workspace-docs/SKILL.mdsource content
Build Workspace Docs
Goal
Keep workspace documentation in sync with the skills catalog after adding, removing, or curating skills.
Guardrails
- Always use
before regenerating docs to preview what will change.--dry-run - Only run from inside an initialized library workspace (a directory with
)..ai-agent-skills/config.json - Never hand-edit the generated sections of README.md or WORK_AREAS.md. The CLI will overwrite them.
- Use
to capture structured results for automation pipelines.--format json
Workflow
- Preview what would change.
npx ai-agent-skills build-docs --dry-run
- Regenerate the docs.
npx ai-agent-skills build-docs
- Verify the output.
npx ai-agent-skills build-docs --dry-run --format json
The JSON output includes
currentlyInSync to tell you whether docs were already up to date.
When to Run
- After
,add
,catalog
, orvendor
commands that change the skills catalog.curate - After bulk imports from a remote library.
- Before committing workspace changes to git.
Gotchas
- Running outside a workspace will fail with a clear error. Use
to create one first.init-library - The generated docs use HTML comment markers (
) as boundaries. Do not remove these markers from the template sections.<!-- GENERATED:...:start/end -->