doc-creation
Installation
SKILL.md
Before creating a new .md file, check if the target directory is within a docs-manager library:
- Run
bash ${CLAUDE_PLUGIN_ROOT}/scripts/index-query.sh --search "$(dirname "$TARGET_PATH")"to check - If the directory is within a managed library:
- Suggest: "This directory is part of the [library] documentation library. Use
/docs newto create a managed document with proper frontmatter and index registration." - If the user declines, proceed with normal file creation
- Suggest: "This directory is part of the [library] documentation library. Use
- If not in a managed location: proceed normally without suggestion
This prevents untracked documents from accumulating in managed directories.
Related skills