AgentSkillsCN

documentation-start

若尚未搭建内存银行与文档中心,即刻启动相关建设。

SKILL.md
--- frontmatter
name: documentation-start
description: Initialize Memory Bank and Document Hub if not already set up
args:
  force:
    type: boolean
    description: Force re-initialization even if already exists
    required: false

documentation-start Skill

Initialize project documentation systems (Memory Bank + Document Hub) if needed.

Usage

bash
/documentation-start           # Initialize if needed
/documentation-start --force   # Force re-initialization

What It Does

  1. Check Memory Bank Status

    • Check if memory-bank/ directory exists
    • Check if all 6 core files present:
      • projectbrief.md
      • productContext.md
      • techContext.md
      • systemPatterns.md
      • activeContext.md
      • progress.md
  2. Check Document Hub Status

    • Check if cline-docs/ directory exists
    • Check if all 4 core files present:
      • systemArchitecture.md
      • keyPairResponsibility.md
      • glossary.md
      • techStack.md
  3. Initialize If Needed

    • If Memory Bank missing → Call /memory-bank-initialize
    • If Document Hub missing → Call /document-hub-initialize
    • If both exist → Report "Already initialized ✅"
  4. Force Mode

    • If --force flag provided:
      • Always call both initialize skills
      • Overwrites existing files

Workflow Logic

code
START
  ↓
Check memory-bank/ exists?
  ├─ NO → Call /memory-bank-initialize
  └─ YES → Validate 6 files present
      ├─ Valid → Skip Memory Bank ✅
      └─ Invalid → Call /memory-bank-initialize
  ↓
Check cline-docs/ exists?
  ├─ NO → Call /document-hub-initialize
  └─ YES → Validate 4 files present
      ├─ Valid → Skip Document Hub ✅
      └─ Invalid → Call /document-hub-initialize
  ↓
Report initialization status
  ↓
END

Output

code
🔍 Checking documentation systems...

Memory Bank:
  ✅ Already initialized (6/6 files present)

Document Hub:
  ⚠️ Not initialized
  🚀 Initializing Document Hub...
  ✅ Document Hub initialized (4/4 files created)

📊 Summary:
  Memory Bank: ✅ Ready
  Document Hub: ✅ Ready

Next steps:
  - Run /feature-new to start a new feature
  - Or use individual skills as needed

When to Use

  • First time in a project: Always run this first
  • New team members: Ensures documentation is initialized
  • After cloning repository: Sets up local documentation
  • Force re-init: Use --force to rebuild documentation

Implementation Details

This skill uses the Skill tool to invoke:

  • /memory-bank-initialize (if needed)
  • /document-hub-initialize (if needed)

No direct file manipulation - delegates to existing skills.