Skill: Documents (Cross-Cutting & Multi-Format)
Purpose
This skill is used to create comprehensive documentation for both technical and end-user audiences. It supports parallel generation of Markdown files (for repository/GitHub) and interactive HTML files (for browser-based manuals).
Core Requirements
1. Multi-Format Output
Every documentation task should ideally generate four versions:
documentation.txt: A concise, text-only overview for quick reading and AI context.
documentation.md: High-quality Markdown for version control and GitHub READMEs.
documentation.html: An interactive, premium documentation page with sidebar navigation.
documentation-landing-page.html: A visual, high-end landing page to showcase the project/plugin.
2. Dynamic Design (Not Fixed Templates)
- Do NOT follow a rigid template: The Agent must design the documentation layout and content structure specifically for the project.
- Synergy with ui-ux: use of the
ui-ux skill is MANDATORY for documentation.html and documentation-landing-page.html.
3. Standard Quality Structure (Mandatory)
To ensure clarity and completeness, the generated documentation MUST include:
A. Interactive Documentation (documentation.html)
- Quick Start: Clear steps to get running in < 2 minutes.
- System Requirements: OS, versions, dependencies.
- Installation & Setup: Detailed step-by-step guide.
- Configuration: Explanation of all settings (config files, UI settings).
- Core Features: Deep dive into each component found in
heraspec/specs/.
- Technical Reference: (For Devs) API endpoints, Hooks, Filters, Functions.
- Troubleshooting & FAQ: Common issues and solutions.
B. Premium Landing Page (documentation-landing-page.html)
- Hero Section: High-impact headline and clear sub-headline.
- Value Proposition: Briefly explain "The Problem" vs "The Solution".
- Feature Showcase: A visual grid of key benefits with icons/images.
- How It Works: A simplified 1-2-3 step process of using the project.
- CTA (Call to Action): Prominent buttons to "Get Started" or "View Docs".
4. Visual Excellence
- Use gradients, smooth animations (fade-in, slide), and premium fonts (e.g., Inter, Montserrat).
- The HTML documentation should feel like a modern SaaS dashboard or a high-end technical manual.
4. Project-Wide Scope
When tasked with generating documentation for the entire project:
- Data Source: Agent MUST read
heraspec/project.md and ALL files in heraspec/specs/.
- Synthesis: Agent must combine information from all components and features into a unified manual.
- Landing Page: Should serve as the project homepage, summarizing the main value proposition and key features across all modules.
Implementation Steps
Step 1: Intelligence Gathering & Design Planning
- Analyze Project: Scan all relevant
.md files in the project. Understand the core purpose and technical details.
- Enforce UI/UX Dependency:
- Check if
heraspec/skills/ui-ux/ exists.
- If missing: Execute
heraspec skill add ui-ux immediately. Do NOT proceed with HTML generation until this skill is available.
- Define Design System: Consult the
ui-ux skill to establish a visual language (colors, fonts, animation styles).
- Plan Structures: Outline what needs to go into the
.txt, .md, and .html versions.
Step 2: Constructing Documentation Assets
- Compose documentation.txt & .md: Focus on clarity and technical accuracy.
- Develop documentation.html: Build a split-panel layout (Sidebar + Content). DO NOT just fill a template; write the HTML/CSS/JS needed to make it look premium and project-specific.
- Design documentation-landing-page.html: Create a compelling Hero section and feature showcase. Link to the main docs.
Required Input
- Project Context: The name of the plugin/project (e.g., "polyutilities").
- Specs/Docs: All existing documentation and specification files.
- Design Guidelines: Inputs from the
ui-ux skill.
Expected Output (Save to /documentations/)
CRITICAL: All files MUST be placed in a /documentations folder at the project root. If this folder does not exist, the Agent MUST create it first.
/documentations/documentation.txt: Plain text overview.
/documentations/documentation.md: Markdown version.
/documentations/documentation.html: Interactive split-panel HTML.
/documentations/documentation-landing-page.html: Visual landing page.
/documentations/style.css & /documentations/landing-style.css: Custom-generated styles.
/documentations/script.js & /documentations/landing-script.js: Interactive logic.
Tone & Rules
- Consistent Content: The core information must be synchronized across all formats.
- Design Autonomy: The Agent is responsible for the final aesthetic and structural quality.
- Visual Impact: Documentation must WOW the user with its premium feel.
Reference Templates
These are provided as starting points or inspiration. The Agent should feel free to expand or modify them to suit the project:
templates/documentation.html - Base HTML documentation layout
templates/documentation-landing-page.html - Premium Landing Page layout
templates/style.css - Premium styles for HTML documentation
templates/landing-style.css - Premium styles for Landing Page
templates/script.js - Interactive logic for HTML documentation
templates/landing-script.js - Interactive logic for Landing Page
templates/technical-doc-template.md - Technical documentation
templates/user-guide-template.md - User guide
templates/api-doc-template.md - API documentation
templates/changelog-template.md - Changelog template
Links to Other Skills
- ui-ux: ESSENTIAL. Use this to determine the look and feel of the HTML documentation.
- content-optimization: Use to ensure the text is clear and professional.
1---2name: documents3description: Skill: Documents (Cross-Cutting & Multi-Format)4---5# Skill: Documents (Cross-Cutting & Multi-Format)67## Purpose89This skill is used to create comprehensive documentation for both technical and end-user audiences. It supports parallel generation of Markdown files (for repository/GitHub) and interactive HTML files (for browser-based manuals).1011## Core Requirements1213### 1. Multi-Format Output14Every documentation task should ideally generate four versions:15- `documentation.txt`: A concise, text-only overview for quick reading and AI context.16- `documentation.md`: High-quality Markdown for version control and GitHub READMEs.17- `documentation.html`: An interactive, premium documentation page with sidebar navigation.18- `documentation-landing-page.html`: A visual, high-end landing page to showcase the project/plugin.1920### 2. Dynamic Design (Not Fixed Templates)21- **Do NOT follow a rigid template**: The Agent must **design** the documentation layout and content structure specifically for the project.22- **Synergy with ui-ux**: use of the `ui-ux` skill is **MANDATORY** for `documentation.html` and `documentation-landing-page.html`.2324### 3. Standard Quality Structure (Mandatory)25To ensure clarity and completeness, the generated documentation MUST include:2627#### A. Interactive Documentation (documentation.html)281. **Quick Start**: Clear steps to get running in < 2 minutes.292. **System Requirements**: OS, versions, dependencies.303. **Installation & Setup**: Detailed step-by-step guide.314. **Configuration**: Explanation of all settings (config files, UI settings).325. **Core Features**: Deep dive into each component found in `heraspec/specs/`.336. **Technical Reference**: (For Devs) API endpoints, Hooks, Filters, Functions.347. **Troubleshooting & FAQ**: Common issues and solutions.3536#### B. Premium Landing Page (documentation-landing-page.html)371. **Hero Section**: High-impact headline and clear sub-headline.382. **Value Proposition**: Briefly explain "The Problem" vs "The Solution".393. **Feature Showcase**: A visual grid of key benefits with icons/images.404. **How It Works**: A simplified 1-2-3 step process of using the project.415. **CTA (Call to Action)**: Prominent buttons to "Get Started" or "View Docs".4243### 4. Visual Excellence44- Use gradients, smooth animations (fade-in, slide), and premium fonts (e.g., Inter, Montserrat).45- The HTML documentation should feel like a modern SaaS dashboard or a high-end technical manual.4647### 4. Project-Wide Scope48When tasked with generating documentation for the entire project:49- **Data Source**: Agent MUST read `heraspec/project.md` and ALL files in `heraspec/specs/`.50- **Synthesis**: Agent must combine information from all components and features into a unified manual.51- **Landing Page**: Should serve as the project homepage, summarizing the main value proposition and key features across all modules.5253## Implementation Steps5455### Step 1: Intelligence Gathering & Design Planning561. **Analyze Project**: Scan all relevant `.md` files in the project. Understand the core purpose and technical details.572. **Enforce UI/UX Dependency**:58 - Check if `heraspec/skills/ui-ux/` exists.59 - If missing: **Execute `heraspec skill add ui-ux`** immediately. Do NOT proceed with HTML generation until this skill is available.603. **Define Design System**: Consult the `ui-ux` skill to establish a visual language (colors, fonts, animation styles).614. **Plan Structures**: Outline what needs to go into the `.txt`, `.md`, and `.html` versions.6263### Step 2: Constructing Documentation Assets641. **Compose documentation.txt & .md**: Focus on clarity and technical accuracy.652. **Develop documentation.html**: Build a split-panel layout (Sidebar + Content). DO NOT just fill a template; **write the HTML/CSS/JS** needed to make it look premium and project-specific.663. **Design documentation-landing-page.html**: Create a compelling Hero section and feature showcase. Link to the main docs.6768## Required Input6970- **Project Context**: The name of the plugin/project (e.g., "polyutilities").71- **Specs/Docs**: All existing documentation and specification files.72- **Design Guidelines**: Inputs from the `ui-ux` skill.7374## Expected Output (Save to /documentations/)7576**CRITICAL**: All files MUST be placed in a `/documentations` folder at the project root. If this folder does not exist, the Agent MUST create it first.7778- `/documentations/documentation.txt`: Plain text overview.79- `/documentations/documentation.md`: Markdown version.80- `/documentations/documentation.html`: Interactive split-panel HTML.81- `/documentations/documentation-landing-page.html`: Visual landing page.82- `/documentations/style.css` & `/documentations/landing-style.css`: Custom-generated styles.83- `/documentations/script.js` & `/documentations/landing-script.js`: Interactive logic.8485## Tone & Rules8687- **Consistent Content**: The core information must be synchronized across all formats.88- **Design Autonomy**: The Agent is responsible for the final aesthetic and structural quality.89- **Visual Impact**: Documentation must WOW the user with its premium feel.9091## Reference Templates92These are provided as starting points or inspiration. The Agent should feel free to expand or modify them to suit the project:9394- `templates/documentation.html` - Base HTML documentation layout95- `templates/documentation-landing-page.html` - Premium Landing Page layout96- `templates/style.css` - Premium styles for HTML documentation97- `templates/landing-style.css` - Premium styles for Landing Page98- `templates/script.js` - Interactive logic for HTML documentation99- `templates/landing-script.js` - Interactive logic for Landing Page100- `templates/technical-doc-template.md` - Technical documentation101- `templates/user-guide-template.md` - User guide102- `templates/api-doc-template.md` - API documentation103- `templates/changelog-template.md` - Changelog template104105## Links to Other Skills106107- **ui-ux**: ESSENTIAL. Use this to determine the look and feel of the HTML documentation.108- **content-optimization**: Use to ensure the text is clear and professional.