This skill helps document custom Magento 2 site functionality in the project wiki for client handover and developer onboarding.
npx playbooks add skill proxiblue/claude-skills --skill wiki-docs
This skill provides a systematic approach to documenting custom Magento 2 site functionality in the project's GitHub wiki. It ensures custom features, modules, configurations, and business logic are properly documented for client handover, developer onboarding, and long-term maintenance.
The wiki is located at the project root in a directory with the pattern:
<project_name>.wiki/
For this project:
m2_ntotank.wiki/git@github.com:uptactics/m2_ntotank.wiki.gitFor other Magento 2 projects, determine wiki location:
# Find wiki directory
find . -maxdepth 1 -type d -name "*.wiki"
# Or check CLAUDE.md for wiki configuration
grep -i "wiki" CLAUDE.md
The wiki is a separate git repository (GitHub Wiki standard):
# Navigate to wiki directory
cd <project_name>.wiki/
# Check status
git status
# Pull latest changes before editing
git pull origin master
# After making changes
git add .
git commit -m "docs: <description of changes>"
git push origin master
# Return to main project
cd ..
Ask yourself:
Trigger events for documentation:
Skip documentation for:
For custom modules and features:
Example topics:
For custom configurations:
Example topics:
For workflows and procedures:
Example topics:
For known issues and solutions:
Example topics:
Check for existing pages:
cd <project_name>.wiki/
ls -la *.md
Common wiki pages:
Home.md - Wiki home page with indexMagento-2-Site-Docs.md - General site documentationData-Migration.md - Migration-specific docsGrouping-Related-Products.md)Update existing page if:
Magento-2-Site-Docs.md)Create new page if:
Naming convention for new pages:
Custom-Shipping-Calculator.mdHyva-Theme-Customizations.mdProduct-ViewModels.mdIMPORTANT: Structure Documentation for End Users First
The wiki is primarily used by clients, site administrators, and non-technical users. Always structure documentation with user-facing content first, followed by technical details at the end.
Recommended Structure:
---)# [Feature/Module Name]
## Overview
Brief 2-3 sentence description of what this feature does and why it exists. Focus on business value and what users can accomplish with it.
## Managing [Feature Name]
### Admin Access
**Path:** Section > Subsection > Page
From here you can:
- Action 1
- Action 2
- Action 3
### Creating/Configuring [Feature]
Step-by-step guide for admin users:
1. Navigate to [path]
2. Configure [settings]
- **Setting 1:** Description of what it does
- **Setting 2:** Description of what it does
3. Save and flush cache
### Available Options
**Option 1** - What this option provides
**Option 2** - What this option provides
**Option 3** - What this option provides
## Advanced Features
(If applicable - optional features or advanced usage)
### Import/Export
(If applicable)
### Bulk Operations
(If applicable)
## Troubleshooting
### Issue: [Common Problem]
**Symptoms:** What the user sees
**Possible Causes:**
1. Cause 1
2. Cause 2
**Solution:**
### Issue: [Another Problem]
**Symptoms:** What the user sees
**Solution:**
1. Clear browser cache
2. Contact developer if issue persists
## Documentation
**Official Documentation:** [External Docs](https://example.com)
**Key Pages:**
- [Page 1](https://example.com/page1)
- [Page 2](https://example.com/page2)
---
## Technical Details
### Module Location
**Module:** `Vendor_ModuleName`
**Version:** X.Y.Z
**Path:** `app/code/Vendor/ModuleName/`
**Dependencies:**
- Magento_Backend
- Magento_Catalog
**Custom Templates:**
- Template 1: `path/to/template.phtml`
- Template 2: `path/to/template2.phtml`
### Features
Technical features list:
- Feature 1
- Feature 2
### Architecture
The system consists of:
1. **Backend Component:** Purpose
2. **Frontend Component:** Purpose
3. **Data Model:** Purpose
### Database Schema
**Tables:**
- `table_name` - Purpose
**Key Fields:**
- `field_1` - Description
- `field_2` - Description
### Key Components
#### [Component 1 - e.g., ViewModel]
**File:** `path/to/file.php:line`
**Purpose:** What this component does
// Key code snippet if helpful
### Configuration
**Admin Path:** Stores > Configuration > Section > Subsection
**Settings:**
- `config/path/setting1` - Description
- `config/path/setting2` - Description
### Customization
#### Template Customization
How developers can customize templates
#### Styling
How developers can customize styling
### CLI Commands
bin/magento command:name
### API Access
REST or GraphQL API examples (if applicable)
### Related Features
- [Related Page](Related-Page) - Description
- [Another Feature](Another-Feature) - Description
### Technical Documentation
**Developer Documentation:** [Dev Docs](https://example.com/dev)
**Developer Pages:**
- [Setup](https://example.com/setup)
- [API](https://example.com/api)
## Migration from Magento 1
(If applicable - include migration details at the very end)
### Overview
Migration strategy and approach
### Migration Process
Step-by-step migration details
### Migration Challenges & Solutions
Technical challenges encountered
---
## Maintenance
**Last Updated:** YYYY-MM-DD
**Last Reviewed By:** Developer Name
**Magento Version:** 2.4.x / Mage-OS 1.x.x
Key Principles:
--- horizontal rule to separate user content from technical content# [Configuration Topic]
## Overview
What this configuration controls and why it's important.
## Admin Path
**Location:** Stores > Configuration > [Section] > [Subsection]
**Or:** [Alternative location if not in standard config]
## Configuration Options
### [Setting 1 Name]
**Config Path:** `section/group/field`
**Type:** [Text/Select/Yes-No/etc.]
**Default Value:** `value`
**Purpose:** What this setting controls
**Valid Values:**
- `value1` - Description of effect
- `value2` - Description of effect
**Dependencies:**
- Requires [module] to be enabled
- Affects [other setting]
**Example:**
bin/magento config:set section/group/field value1
### [Setting 2 Name]
...
## Use Cases
### Use Case 1: [Scenario]
**Configuration:**
setting1 = value
setting2 = value
**Result:** What happens with this configuration
## Troubleshooting
Common issues related to these configurations
## Related Documentation
Links to related wiki pages or external docs
# [Process Name]
## Overview
What this process does and when to use it.
## Prerequisites
- Requirement 1
- Requirement 2
- Access needed
## Process Steps
### Step 1: [Action]
**Command/Action:**
command to run
**Expected Output:**
what you should see
**Troubleshooting:**
- If X happens, do Y
### Step 2: [Action]
...
## Verification
How to confirm the process completed successfully:
verification command
## Rollback
If something goes wrong, how to undo:
rollback command
## Frequency
How often this process should be performed.
## Automation
Whether this process is automated and how:
- Cron job configuration
- CI/CD integration
## Related Processes
Links to related procedures
Include screenshots for:
Include diagrams for:
How to add images to GitHub Wiki:
https://github.com/user/repo/assets/...Or use images directory:
cd <project_name>.wiki/
mkdir -p images
/bin/cp /path/to/screenshot.png images/
git add images/screenshot.png
Reference in markdown:

After creating or updating documentation, ensure it's discoverable in both the Home page and sidebar.
Update Home.md with:
## Custom Functionality
- [Feature Name](Feature-Name) - Brief description
- [Another Feature](Another-Feature) - Brief description
## Configuration
- [Config Topic](Config-Topic) - Brief description
## Processes
- [Process Name](Process-Name) - Brief description
CRITICAL: GitHub Wiki Link Format
[Link Text](Page-Name) (no .md extension)[Link Text](Page-Name#anchor)[Link Text](Page-Name.md) - Causes raw markdown view[Link Text](Page-Name.md#anchor) - Causes raw markdown viewIMPORTANT: Always maintain a custom _Sidebar.md file to prevent navigation issues.
Why _Sidebar.md is Required:
_Sidebar.md doesn't existCreate/Update _Sidebar.md:
### Wiki Home
[Home](Home)
---
### Site Management
**[Homepage Management](Homepage-Management)**
- [Configure Category List](Homepage-Management#configure-category-list)
**[General Site Docs](Magento-2-Site-Docs)**
- [Categories](Magento-2-Site-Docs#categories)
---
### Custom Features
[Feature Name](Feature-Name)
[Another Feature](Another-Feature)
---
### Configuration
[Config Topic](Config-Topic)
---
### Troubleshooting
[Issue Name](Issue-Name)
Sidebar Best Practices:
bold for main section links- for subsections--- horizontal rules for visual separators.md extensions)cd <project_name>.wiki/
# Check what changed
git status
git diff
# Stage changes (including _Sidebar.md if updated)
git add .
# Commit with descriptive message
git commit -m "docs: Add documentation for [feature/topic]
- Added [new page] documenting [feature]
- Updated [existing page] with [new information]
- Updated _Sidebar.md with new navigation links
- Added screenshots for [feature]
Co-Authored-By: Claude <noreply@anthropic.com>"
# Push to wiki repository
git push origin master
# Return to main project
cd ..
Files to Always Check Before Committing:
_Sidebar.md (update if pages added/removed)Home.md (update index if major pages added)images/ directory.md extensions)Add wiki references in module README or docblocks:
Module README.md:
# Vendor_ModuleName
Brief description.
## Documentation
Full documentation available in the [project wiki](https://github.com/user/repo/wiki/Feature-Name).
## Quick Start
...
PHP Docblock:
/**
* Custom ViewModel for product data
*
* @see https://github.com/uptactics/m2_ntotank/wiki/Product-ViewModels
*/
class ProductData extends AbstractViewModel
{
// ...
}
app/code/Vendor/Module/Model/Example.php:123What to document:
Wiki page:
Custom-Module-Name.mdHome.md with linkWhat to document:
Wiki page:
Third-Party-Module-Customizations.mdWhat to document:
Wiki page:
Data-Migration.mdWhat to document:
Wiki page:
Magento-2-Site-Docs.md or create specific config pageWhat to document:
Wiki page:
Custom-Feature-Name.mdWhat to document:
Wiki page:
The project's CLAUDE.md should reference the wiki for detailed documentation:
## Documentation
Custom functionality is documented in the [project wiki](https://github.com/user/repo/wiki):
- [Feature Name](https://github.com/user/repo/wiki/Feature-Name)
- [Another Feature](https://github.com/user/repo/wiki/Another-Feature)
See the wiki for detailed documentation on custom modules, configurations, and processes.
Bad: [Link](Page-Name.md) or `[Lin
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.