Back to skills
extension
Category: Development & EngineeringNo API key required

doc-creation

Suggests using /docs new when creating markdown files in managed locations. Use before any Write or Edit tool call that would create a new .md file — especially when the target path is under a known docs/ or documentation/ directory.

personAuthor: jakexiaohubgithub

Before creating a new .md file, check if the target directory is within a docs-manager library:

  1. Run bash ${CLAUDE_PLUGIN_ROOT}/scripts/index-query.sh --search "$(dirname "$TARGET_PATH")" to check
  2. If the directory is within a managed library:
    • Suggest: "This directory is part of the [library] documentation library. Use /docs new to create a managed document with proper frontmatter and index registration."
    • If the user declines, proceed with normal file creation
  3. If not in a managed location: proceed normally without suggestion

This prevents untracked documents from accumulating in managed directories.