Automated OpenClaw skills index management system. Scans, parses, and regenerates all skill index files including markdown catalogs, JSON indices, and category-organized symbolic links.
cd ~/.openclaw/workspace/skills/task-index-manager
npm install# Scan skills directory
skill-index-manager scan
# Update all index files
skill-index-manager update
# List all skills
skill-index-manager list
# Search skills by keyword
skill-index-manager search memory
# Validate index integrity
skill-index-manager validate
# Initialize directory structure
skill-index-manager init# Specify custom paths
skill-index-manager scan --path /custom/skills/path
skill-index-manager update --skills-path /custom/skills --output /custom/output
# Output formats
skill-index-manager list --format json
skill-index-manager list --format tableconst { SkillScanner, SkillParser, IndexGenerator, CategoryManager } = require('./lib');
// Scan skills
const scanner = new SkillScanner();
const result = scanner.scan();
// Parse metadata
const parser = new SkillParser();
const metadata = parser.parse('skills/my-skill/SKILL.md');
// Generate index
const generator = new IndexGenerator();
generator.generateAll(skills, 'output/path');
// Manage categories
const categoryManager = new CategoryManager();
categoryManager.updateAllSymlinks(skills, 'output/path', 'skills/path');The following files are generated in the output directory:
SKILLS_INDEX.md- Complete skill catalog with descriptionsQUICK_REFERENCE.md- Concise reference cardsskills.json- Machine-readable indexby_category/- Symbolic links organized by category
Skills are automatically categorized into:
- Core (01_core) - Infrastructure, docs, validation
- Memory (02_memory) - Persistence, caching
- Notion (03_notion) - Notion integration
- Task Workflow (04_task_workflow) - Scheduling, development
- Document (05_document) - File processing
- Security (06_security) - Auditing, scanning
- Publishing (07_publishing) - Distribution
# Run all tests
npm test
# Run unit tests only
npm run test:unit
# Run with coverage
npm run test:coverageRecommended monthly execution:
# Add to crontab (monthly on 1st at 00:00)
0 0 1 * * cd ~/.openclaw/workspace/skills/task-index-manager && node bin/skill-index-manager.js updateOr use OpenClaw cron API:
{
"name": "skill-index-monthly-update",
"schedule": "0 0 1 * *",
"command": "skill-index-manager update"
}MIT