AgentSkillsCN

documentation-organization

强制执行文档组织标准,并为Databricks项目提供全面的框架文档编写支持。该功能分为两种模式:(1) 组织强制执行——验证文件放置(根目录规则、docs/层级结构)、命名规范(短横线分隔法、带日期前缀),并主动建议清理杂乱的文件。(2) 框架文档——利用填空式模板(索引、导论、架构、组件深度解析、实施指南、操作指南、故障排除指南),结合需求收集、质量检查清单与实际示例,统筹创建完整的技术文档集。在创建任何.md文件、整理现有文档、维护项目结构,或构建全面的框架文档集时使用此功能。

SKILL.md
--- frontmatter
name: documentation-organization
description: >
  Enforces documentation organization standards and provides comprehensive framework documentation
  authoring for Databricks projects. Operates in two modes: (1) Organizational Enforcement — validates
  file placement (root directory rules, docs/ hierarchy), naming conventions (kebab-case, date-prefixed),
  and proactively suggests cleanup for misorganized files. (2) Framework Documentation — orchestrates
  creation of complete technical documentation sets using fill-in-the-blank templates (index, introduction,
  architecture, component deep dives, implementation guides, operations guides, troubleshooting guides)
  with requirements gathering, quality checklists, and worked examples. Use when creating any .md file,
  organizing existing documentation, maintaining project structure, or creating comprehensive framework
  documentation sets.
metadata:
  author: prashanth subrahmanyam
  version: "2.0.0"
  domain: admin
  role: utility
  standalone: true
  triggers:
    - "document"
    - "checklist"
    - "summary"
    - "guide"
    - "issue"
    - "steps"
    - "deployment"
    - "troubleshooting"
    - "framework documentation"
    - "documentation set"
    - "document this system"
    - "create docs"
    - "architecture docs"
    - "operations guide"
  last_verified: "2026-02-07"
  volatility: low
  upstream_sources: []  # Internal convention

Documentation Organization & Framework Authoring

This skill serves two complementary purposes:

  1. Organizational Enforcement — Ensures every documentation file lands in the right place with the right name, every time.
  2. Framework Documentation Authoring — Orchestrates creation of complete, professional documentation sets for technical frameworks and systems using structured templates.

Decision Tree: Which Mode Do I Need?

User IntentModeWhat Happens
"Create a deployment checklist"OrganizationalRoute to docs/deployment/deployment-checklist.md, suggest cleanup
"Document this issue"OrganizationalRoute to docs/troubleshooting/issue-YYYY-MM-DD-description.md
"Write next steps"OrganizationalRoute to docs/development/roadmap.md or suggest issue tracker
"Document the ML framework"FrameworkGather requirements, generate full doc set from templates
"Create architecture docs for the alerting system"FrameworkGenerate docs/alerting-framework-design/ with all templates
"Help me create comprehensive docs for this project"FrameworkRun full requirements + template workflow
File is .md and being createdOrganizationalAuto-check location before creation
Root has >3 .md filesOrganizationalProactively suggest cleanup

Mode 1: Organizational Enforcement

Auto-Trigger Conditions

I will automatically enforce organization when:

  • Creating any .md file (check location first)
  • User mentions: "document", "checklist", "summary", "guide", "issue", "steps"
  • Root directory has >3 .md files (excluding README/QUICKSTART/CHANGELOG)
  • See files matching patterns: *DEPLOYMENT*, *CHECKLIST*, ISSUE*, *STEPS*, *SUMMARY*

Root Directory Rules (Enforce Always)

ALLOWED in Root (Only These)

code
README.md              # Project hub with links
QUICKSTART.md          # Commands-only quick start  
CHANGELOG.md           # Version history (optional)
LICENSE                # License file (optional)

NEVER Allowed in Root

code
*DEPLOYMENT*.md        → docs/deployment/deployment-history/YYYY-MM-DD-name.md
*CHECKLIST*.md         → docs/deployment/checklist-name.md
ISSUE*.md              → docs/troubleshooting/issue-YYYY-MM-DD-description.md
*STEPS*.md             → docs/development/roadmap.md (or delete if temporary)
*SUMMARY*.md           → docs/reference/ or merge into README.md
*GUIDE*.md             → docs/deployment/ or docs/operations/
.hidden-*.md           → docs/[appropriate-category]/

Standard Project Structure (Always Use)

code
project_root/
├── README.md                          
├── QUICKSTART.md                      
├── docs/
│   ├── deployment/
│   │   ├── deployment-guide.md
│   │   ├── pre-deployment-checklist.md
│   │   ├── deployment-checklist.md
│   │   └── deployment-history/
│   │       └── YYYY-MM-DD-description.md
│   ├── troubleshooting/
│   │   ├── common-issues.md
│   │   └── issue-YYYY-MM-DD-description.md
│   ├── architecture/
│   │   └── architecture-overview.md
│   ├── operations/
│   │   ├── monitoring.md
│   │   └── runbooks/
│   ├── development/
│   │   ├── roadmap.md
│   │   └── setup.md
│   ├── reference/
│   │   ├── configuration.md
│   │   └── glossary.md
│   └── {framework-name}-design/        # Framework documentation sets
│       ├── 00-index.md
│       ├── 01-introduction.md
│       └── ...
└── context/
    └── prompts/

Naming Rules (Always Enforce)

FormatUse ForExample
kebab-case.mdAll docsdeployment-guide.md
YYYY-MM-DD-description.mdHistorical/dated2025-01-15-bronze-deployment.md
NN-descriptive-name.mdFramework docs (numbered)03-feature-engineering.md
NEVER PascalCase.md--DeploymentGuide.md
NEVER ALL_CAPS.md--DEPLOYMENT_GUIDE.md
NEVER snake_case.md--deployment_guide.md

Automatic Response Pattern

Before creating any .md file, I will always check:

python
# Location routing logic (I run this mentally)
if filename in ["README.md", "QUICKSTART.md", "CHANGELOG.md"]:
    location = "root"  # OK
elif "deployment" in content or "checklist" in filename:
    location = "docs/deployment/"
elif "issue" in filename or "troubleshoot" in content:
    location = "docs/troubleshooting/"
elif "architecture" in content or "design" in content:
    location = "docs/architecture/"
elif user_intent == "framework documentation":
    location = "docs/{framework-name}-design/"  # → Switch to Mode 2
elif user_intent == "temporary notes":
    suggest_alternative = "Use issue tracker or delete after completion"

My response format:

code
I'll create that documentation in the correct location:
  docs/[category]/[kebab-case-name].md

I also notice these files should be organized:
  DEPLOYMENT_COMPLETE.md → docs/deployment/deployment-history/2025-01-15-summary.md
  .deployment-checklist.md → docs/deployment/deployment-checklist.md
  ISSUE_RESOLUTION.md → docs/troubleshooting/issue-2025-01-15-parameter-fix.md

Would you like me to reorganize these?

Proactive Cleanup Suggestions

Trigger: User Creates Documentation

User SaysI Suggest
"Create a deployment summary"docs/deployment/deployment-history/YYYY-MM-DD-summary.md
"Document this issue"docs/troubleshooting/issue-YYYY-MM-DD-brief-description.md
"Make a checklist"docs/deployment/[type]-checklist.md
"Write next steps"docs/development/roadmap.md or "Use issue tracker instead?"

Trigger: Multiple Files in Root

When I see >3 .md files in root:

code
Root directory has [N] documentation files. I recommend organizing them:

Current structure:
  7 files in root

Suggested structure:
  3 files in root (README, QUICKSTART, CHANGELOG)
  4 files in docs/deployment/
  
Would you like me to create a cleanup plan?

See scripts/organize_docs.sh for the automated cleanup script.

Special Cases

Temporary Files

If user wants "quick notes" or "temporary file":

  • Suggest: Use your IDE scratch file or issue tracker
  • Alternative: docs/development/wip-notes.md (but add reminder to delete)

Historical Records

Always preserve, never delete:

  • docs/deployment/deployment-history/YYYY-MM-DD-description.md
  • docs/troubleshooting/issue-YYYY-MM-DD-description.md

Consolidation Opportunity

If I see duplicate content:

code
I notice:
- README.md has deployment info (100 lines)
- docs/deployment/deployment-guide.md has same content
- QUICKSTART.md duplicates some steps

Suggest:
- Keep brief summary in README with link
- Full guide in docs/deployment/deployment-guide.md
- QUICKSTART only has commands, links to guide for details

Mode 2: Framework Documentation Authoring

Use this mode when creating comprehensive documentation for a technical framework, system, or multi-component project. This is an orchestrated workflow that produces a complete, professional documentation set.

When to Activate Framework Mode

  • User asks to "document the [framework/system]"
  • User asks for "architecture docs", "comprehensive docs", or "documentation set"
  • Project has 5+ components that need structured documentation
  • User is creating documentation for training or onboarding purposes

Step 1: Requirements Gathering (5 min)

MANDATORY: Before generating any templates, gather requirements from the user.

Present the requirements table (see references/framework-examples.md for the full template):

FieldYour Input
Framework/System Name_________________
Primary Audience_________________
Secondary Audience_________________
Documentation Purpose[ ] Project Documentation [ ] Training Material [ ] Both
Technology Stack_________________
Number of Components_________________

Then determine documentation depth:

LevelDescriptionNeeded?
Executive Summary1-page overview for leadership[ ]
Architecture GuideSystem design, data flows, component interactions[ ]
Implementation GuideStep-by-step build instructions[ ]
Operations GuideDeployment, monitoring, maintenance[ ]
Reference ManualAPI docs, configurations, schemas[ ]
Troubleshooting GuideCommon errors and solutions[ ]
Best PracticesPatterns and anti-patterns[ ]

Step 2: Generate File Structure (5 min)

Based on requirements, create the numbered file structure under docs/{framework-name}-design/:

code
docs/{framework-name}-design/
├── 00-index.md                    # Always included
├── 01-introduction.md             # Always included
├── 02-architecture-overview.md    # If Architecture Guide selected
├── 03-{component-type-1}.md       # Per major component
├── 04-{component-type-2}.md       # Per major component
├── ...
├── {n}-implementation-guide.md    # If Implementation Guide selected
├── {n+1}-operations-guide.md      # If Operations Guide selected
└── appendices/
    ├── A-code-examples.md         # If Reference Manual selected
    ├── B-troubleshooting.md       # If Troubleshooting Guide selected
    └── C-references.md            # Always included

Step 3: Fill Templates (Varies — 30 min to 4 hours)

Load references/document-templates.md for complete fill-in-the-blank templates.

Templates available (load only the ones needed):

  1. 00-index.md — Document index, architecture summary, quick start, key statistics
  2. 01-introduction.md — Purpose, scope, prerequisites, timeline, success criteria
  3. 02-architecture-overview.md — Mermaid/ASCII diagrams, data flows, component inventory, design principles
  4. Component Deep Dive — Key concepts, configuration, code patterns, best practices, common issues
  5. Implementation Guide — Phased steps with validation, deployment commands, rollback procedures
  6. Operations Guide — Health checks, alerting, escalation matrix, incident response, backup/recovery
  7. Troubleshooting Guide — Error-solution matrix, diagnostic procedures, FAQ

Step 4: Quality Validation

Load references/quality-checklist.md for the comprehensive quality checklist covering:

  1. Organization & Location (7 checks)
  2. Naming Conventions (5 checks)
  3. Structure & Navigation (6 checks)
  4. Content Quality (7 checks)
  5. Usability (6 checks)
  6. Maintenance & Longevity (5 checks)
  7. Special Cases (7 checks)

Worked Examples

Load references/framework-examples.md for complete worked examples including:

  • ML Framework (25 models, 5 domains → 17 docs + 3 appendices)
  • Alerting Framework (56 alerts, 5 domains → 10 docs + 3 appendices)
  • Semantic Layer (focused scope → 7 docs + 3 appendices)
  • Scaling guidelines (small/medium/large projects)

Enforcement Checklist (I Run Mentally Before Every Response)

Before responding to any documentation request:

  • Location: Is this README/QUICKSTART/CHANGELOG? (only valid root files)
  • Routing: Propose correct docs/[category]/ location
  • Naming: Use kebab-case, add date if historical, add number if framework doc
  • Root audit: Count root .md files — suggest cleanup if >3
  • Misplaced files: Offer to move existing misplaced files
  • README links: Update README.md links if creating major new documentation
  • Mode detection: Is this organizational (quick routing) or framework (full template workflow)?

Examples

Example 1: Organizational Mode (Quick Routing)

code
User: "Create a deployment checklist"

My response:
I'll create: docs/deployment/deployment-checklist.md

I also see these in root that should be moved:
- DEPLOYMENT_COMPLETE.md → docs/deployment/deployment-history/2025-01-15-summary.md
- PRE_DEPLOYMENT_CHECKLIST.md → docs/deployment/pre-deployment-checklist.md

Want me to reorganize?

Example 2: Organizational Mode (Bad — I Never Do This)

code
User: "Create a deployment checklist"

My response:
I'll create: DEPLOYMENT_CHECKLIST.md   [WRONG — wrong location, wrong naming]
[Creates file without checking structure]  [WRONG — no proactive cleanup]

Example 3: Framework Mode (Full Workflow)

code
User: "Document the ML framework"

My response:
I'll create comprehensive framework documentation. First, let me gather requirements:

1. Framework Name: ML Framework
2. Primary Audience: ML Engineers
3. Components: 25 models across 5 domains
4. Depth needed: Architecture + Implementation + Operations + Troubleshooting

Generating docs/ml-framework-design/ with:
  00-index.md, 01-introduction.md, 02-architecture-overview.md,
  03-feature-engineering.md, ... 17-operations-guide.md
  + appendices/A-code-examples.md, B-troubleshooting.md, C-references.md

[Loads references/document-templates.md for fill-in templates]
[Generates each document from templates]
[Runs references/quality-checklist.md for validation]

Integration with Project Structure

Clear Separation of Concerns

LocationPurposeMaintained By
data_product_accelerator/skills/Agent skills (AI behavioral patterns)This skill system
context/prompts/Domain context for AIProject team
docs/Human-readable documentationThis skill (organizational + framework)

How This Skill Relates to Others

SkillRelationship
common/databricks-expert-agentExtract-don't-generate principle applies to doc content too
admin/self-improvementDocuments learnings and patterns — this skill enforces WHERE
planning/project-plan-methodologyPlans produce docs — this skill enforces structure
All domain skillsTechnical content goes in docs/ using this skill's structure

Summary: What I Will Always Do

  1. Check location before creating any .md file
  2. Suggest correct docs/[category]/ location
  3. Use kebab-case.md naming (numbered for framework docs)
  4. Add dates for historical docs (YYYY-MM-DD-)
  5. Proactively suggest cleanup when root has >3 files
  6. Offer cleanup script when I see misorganized files
  7. Never create status/summary/checklist files in root
  8. Always preserve historical records in deployment-history/
  9. Detect framework documentation requests and switch to full template workflow
  10. Gather requirements before generating framework documentation
  11. Use standardized templates from references/document-templates.md
  12. Validate all documentation against references/quality-checklist.md

Reference Files

  • Document Templates — All 7 fill-in-the-blank templates (index, introduction, architecture, component deep dive, implementation guide, operations guide, troubleshooting guide)
  • Quality Checklist — Comprehensive merged checklist (43 items across 7 categories covering organization, naming, structure, content, usability, maintenance, and special cases)
  • Framework Examples — Requirements gathering template, depth selector, 3 worked examples (ML Framework, Alerting Framework, Semantic Layer), and scaling guidelines
  • Cleanup Script — Automated script to reorganize misplaced documentation files

External References