Skill Doc Index

Description

XSpoonAi 7b36f75 3 files · 31.1 KB Updated

File contents

Description

Build an index of all skills with summaries and metadata. Creates searchable documentation index for skill discovery.

Inputs

{
  "skills_path": "Path to skills directory",
  "format": "json|markdown"
}

Outputs

{
  "ok": true,
  "data": {
    "index": [],
    "total_skills": 50
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Build Index

echo '{"skills_path":"./","format":"json"}' | python3 scripts/main.py

Examples

Example 1: Generate Skill Index

$ echo '{"skills_path":".","format":"markdown"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "index": [{"name": "dao-proposal-starter", "summary": "Create DAO proposals"}],
    "total_skills": 50
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "skills_path": "Directory not found"
  }
}

XSpoonAi/spoon-awesome-skill/tree/main/platform-challenge/skill-doc-index commit 7b36f75261

Frequently asked questions

npx skillmds@latest add xspoonai/skill-doc-index