返回 Skill 列表
extension
分类: 开发与工程无需 API Key

doc-creation

建议在管理的位置创建markdown文件时使用/docs new。在任何会创建新的.md文件的写入或编辑工具调用之前使用——尤其是在目标路径位于已知的docs/或documentation/目录下时。

person作者: 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.