An open API service indexing awesome lists of open source software.

https://github.com/joeynyc/skillscore

CLI tool that evaluates AI agent skills and produces quality scores. Works with any SKILL.md-based skill from skills.sh, ClaHub, GitHub, or local directories.
https://github.com/joeynyc/skillscore

agent-skills ai claude-code cli evaluation openclaw quality-assurance skills typescript

Last synced: 5 days ago
JSON representation

CLI tool that evaluates AI agent skills and produces quality scores. Works with any SKILL.md-based skill from skills.sh, ClaHub, GitHub, or local directories.

Awesome Lists containing this project

README

          


SkillScore


[![npm version](https://badge.fury.io/js/skillscore.svg)](https://badge.fury.io/js/skillscore)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Node.js CI](https://github.com/joeynyc/skillscore/workflows/Node.js%20CI/badge.svg)](https://github.com/joeynyc/skillscore/actions)
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)

**The universal quality standard for AI agent skills.**

Evaluate any SKILL.md โ€” from [skills.sh](https://skills.sh), [ClawHub](https://clawhub.com), GitHub, or your local machine.

---

## โœจ Features

- ๐ŸŽฏ **Comprehensive Evaluation**: 8 scoring categories with weighted importance
- ๐ŸŽจ **Multiple Output Formats**: Terminal (colorful), JSON, and Markdown reports
- ๐Ÿ” **Deterministic Analysis**: Reliable, reproducible scoring without requiring API keys
- ๐Ÿ“‹ **Detailed Feedback**: Specific findings and actionable recommendations
- โšก **Fast & Reliable**: Built with TypeScript for speed and reliability
- ๐ŸŒ **Cross-Platform**: Works on Windows, macOS, and Linux
- ๐Ÿ™ **GitHub Integration**: Score skills directly from GitHub repositories
- ๐Ÿ“Š **Batch Mode**: Compare multiple skills with a summary table
- ๐Ÿ—ฃ๏ธ **Verbose Mode**: See all findings, not just truncated summaries

## ๐Ÿ“ฆ Installation

### Global Installation (Recommended)

```bash
npm install -g skillscore
```

### Local Installation

```bash
npm install skillscore
npx skillscore ./my-skill/
```

### From Source

```bash
git clone https://github.com/joeynyc/skillscore.git
cd skillscore
npm install
npm run build
npm link
```

## ๐Ÿš€ Quick Start

Evaluate a skill directory:

```bash
skillscore ./my-skill/
```

## ๐Ÿ“– Usage Examples

### Basic Usage

```bash
# Evaluate a skill
skillscore ./skills/my-skill/

# Evaluate with verbose output (shows all findings)
skillscore ./skills/my-skill/ --verbose
```

### GitHub Integration

```bash
# Full GitHub URL (always recognized)
skillscore https://github.com/vercel-labs/skills/tree/main/skills/find-skills

# GitHub shorthand (requires -g/--github flag)
skillscore -g vercel-labs/skills/find-skills

# Anthropic skills
skillscore -g anthropic/skills/skill-creator
```

### Output Formats

```bash
# JSON output
skillscore ./skills/my-skill/ --json

# Markdown report
skillscore ./skills/my-skill/ --markdown

# Save to file
skillscore ./skills/my-skill/ --output report.md
skillscore ./skills/my-skill/ --json --output score.json
```

### Batch Mode

```bash
# Compare multiple skills (auto-enters batch mode)
skillscore ./skill1 ./skill2 ./skill3

# Explicit batch mode flag
skillscore ./skill1 ./skill2 --batch

# Compare GitHub skills
skillscore -g user/repo1/skill1 user/repo2/skill2 --json
```

### Utility Commands

```bash
# Show version
skillscore --version

# Get help
skillscore --help
```

## ๐Ÿ“Š Example Output

### Terminal Output
```
๐Ÿ“Š SKILLSCORE EVALUATION REPORT
============================================================

๐Ÿ“‹ Skill: Weather Information Fetcher
Fetches current weather data for any city using OpenWeatherMap API
Path: ./weather-skill

๐ŸŽฏ OVERALL SCORE
A- - 92.0% (9.2/10.0 points)

๐Ÿ“ CATEGORY BREAKDOWN
------------------------------------------------------------
Structure โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100.0%
SKILL.md exists, clear name/description, follows conventions
Score: 10/10 (weight: 15%)
โœ“ SKILL.md file exists (+3)
โœ“ Clear skill name: "Weather Information Fetcher" (+2)
โœ“ Clear description provided (+2)
... 2 more findings

Clarity โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘ 90.0%
Specific actionable instructions, no ambiguity, logical order
Score: 9/10 (weight: 20%)
โœ“ Contains specific step-by-step instructions with commands (+3)
โœ“ No ambiguous language detected (+3)
โœ“ Instructions follow logical order (+2)
... 1 more finding (use --verbose to see all)

Safety โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 70.0%
No destructive commands, respects permissions
Score: 7/10 (weight: 20%)
โœ“ No dangerous destructive commands found (+3)
โœ“ No obvious secret exfiltration risks (+3)
โœ— Some potential security concerns detected

๐Ÿ“ˆ SUMMARY
------------------------------------------------------------
โœ… Strengths: Structure, Clarity, Dependencies, Documentation
โŒ Areas for improvement: Safety

Generated: 2/11/2026, 3:15:49 PM
```

### Batch Mode Output
```
๐Ÿ“Š BATCH SKILL EVALUATION
Evaluating 3 skill(s)...

[1/3] Processing: ./weather-skill
โœ… Completed

[2/3] Processing: ./file-backup
โœ… Completed

[3/3] Processing: user/repo/skill
โœ… Completed

๐Ÿ“‹ COMPARISON SUMMARY

Skill Grade Score Structure Clarity Safety Status
Weather Information Fetcher A- 92.0% 100% 90% 70% OK
File Backup Tool B+ 87.0% 95% 85% 90% OK
Advanced Data Processor A 94.0% 100% 95% 85% OK

๐Ÿ“ˆ BATCH SUMMARY
โœ… Successful: 3
๐Ÿ“Š Average Score: 91.0%
```

## ๐Ÿ† Scoring System

SkillScore evaluates skills across **8 weighted categories**:

| Category | Weight | Description |
|----------|--------|-------------|
| **Structure** | 15% | SKILL.md exists, clear name/description, file organization, artifact output spec |
| **Clarity** | 20% | Specific actionable instructions, no ambiguity, logical order |
| **Safety** | 20% | No destructive commands, respects permissions, network containment |
| **Dependencies** | 10% | Lists required tools/APIs, install instructions, env vars |
| **Error Handling** | 10% | Failure instructions, fallbacks, no silent failures |
| **Scope** | 10% | Single responsibility, routing quality, negative examples |
| **Documentation** | 10% | Usage examples, embedded templates, expected I/O |
| **Portability** | 5% | Cross-platform, no hardcoded paths, relative paths |

### Scoring Methodology

Each category is scored from 0-10 points based on specific criteria:

- **Structure**: Checks for SKILL.md existence, clear naming, proper organization, and whether outputs/artifacts are defined
- **Clarity**: Analyzes instruction specificity, ambiguity, logical flow
- **Safety**: Scans for destructive commands, security risks, permission issues, and network containment (does the skill scope network access when using HTTP/APIs?)
- **Dependencies**: Validates tool listings, installation instructions, environment setup
- **Error Handling**: Reviews error scenarios, fallback strategies, validation
- **Scope**: Assesses single responsibility, trigger clarity, conflict potential, **negative routing examples** ("don't use when..."), and **routing quality** (concrete signals vs vague descriptions)
- **Documentation**: Evaluates examples, I/O documentation, troubleshooting guides, and **embedded templates/worked examples** with expected output
- **Portability**: Checks cross-platform compatibility, path handling, limitations

### v1.1.0: Production-Validated Checks

Five new sub-criteria added in v1.1.0, inspired by [OpenAI's Skills + Shell + Compaction blog](https://developers.openai.com/blog/skills-shell-tips) and production data from Glean:

| Check | Category | Points | Why It Matters |
|-------|----------|--------|----------------|
| **Negative routing examples** | Scope | 2 | Skills that say when NOT to use them trigger ~20% more accurately (Glean data) |
| **Routing quality** | Scope | 1 | Descriptions with concrete tool names, I/O, and "use when" patterns route better than marketing copy |
| **Embedded templates** | Documentation | 2 | Real output templates inside the skill drove the biggest quality + latency gains in production |
| **Network containment** | Safety | 1 | Skills combining tools + open network access are a data exfiltration risk without scoping |
| **Artifact output spec** | Structure | 1 | Skills that define where outputs go create clean review boundaries |

### Grade Scale

| Grade | Score Range | Description |
|-------|-------------|-------------|
| **A+** | 97-100% | Exceptional quality |
| **A** | 93-96% | Excellent |
| **A-** | 90-92% | Very good |
| **B+** | 87-89% | Good |
| **B** | 83-86% | Above average |
| **B-** | 80-82% | Satisfactory |
| **C+** | 77-79% | Acceptable |
| **C** | 73-76% | Fair |
| **C-** | 70-72% | Needs improvement |
| **D+** | 67-69% | Poor |
| **D** | 65-66% | Very poor |
| **D-** | 60-64% | Failing |
| **F** | 0-59% | Unacceptable |

## ๐Ÿ“ What Makes a Good Skill?

### Required Structure

```
my-skill/
โ”œโ”€โ”€ SKILL.md # Main skill definition (REQUIRED)
โ”œโ”€โ”€ README.md # Documentation (recommended)
โ”œโ”€โ”€ package.json # Dependencies (if applicable)
โ”œโ”€โ”€ scripts/ # Executable scripts
โ”‚ โ”œโ”€โ”€ setup.sh
โ”‚ โ””โ”€โ”€ main.py
โ””โ”€โ”€ examples/ # Usage examples
โ””โ”€โ”€ example.md
```

### SKILL.md Template

```markdown
# My Awesome Skill

Brief description of what this skill does and when to use it.

## When to Use

Use this skill when you need to [specific task] with [specific tools/inputs].

## When NOT to Use

Don't use this skill when:
- The task is [alternative scenario] โ€” use [other skill] instead
- You need [different capability]

## Dependencies

- Tool 1: Installation instructions
- API Key: How to obtain and configure
- Environment: OS requirements

## Usage

1. Step-by-step instructions
2. Specific commands to run
3. Expected outputs

## Output

Results are written to `./output/` as JSON files.

## Error Handling

- Common issues and solutions
- Fallback strategies
- Validation steps

## Examples

### Example Output

```json
{
"status": "success",
"result": "Example of what the skill produces"
}
```

```bash
# Working example
./scripts/main.py --input "test data"
```

## Limitations

- Known constraints
- Platform-specific notes
- Edge cases
```

## ๐Ÿ”ง API Usage

Use SkillScore programmatically in your Node.js projects:

```typescript
import { SkillParser, SkillScorer, TerminalReporter } from 'skillscore';
import type { Reporter, SkillScore } from 'skillscore';

const parser = new SkillParser();
const scorer = new SkillScorer();
const reporter: Reporter = new TerminalReporter();

async function evaluateSkill(skillPath: string): Promise {
const skill = await parser.parseSkill(skillPath);
const score = await scorer.scoreSkill(skill);
const report = reporter.generateReport(score);

console.log(report);
return score;
}
```

All three reporters (`TerminalReporter`, `JsonReporter`, `MarkdownReporter`) implement the `Reporter` interface.

## ๐Ÿ› ๏ธ CLI Options

```
Usage: skillscore [options]

Arguments:
path Path(s) to skill directory, GitHub URL, or shorthand

Options:
-V, --version Output the version number
-j, --json Output in JSON format
-m, --markdown Output in Markdown format
-o, --output Write output to file
-v, --verbose Show ALL findings (not just truncated)
-b, --batch Batch mode for comparing multiple skills
-g, --github Treat shorthand paths as GitHub repos (user/repo/path)
-h, --help Display help for command
```

## ๐Ÿงช Testing

```bash
# Run all tests
npm test

# Run tests in watch mode
npm run test:ui

# Run tests once
npm run test:run

# Lint code
npm run lint

# Build project
npm run build
```

## ๐Ÿค Contributing

We welcome contributions! Here's how to get started:

### Development Setup

```bash
git clone https://github.com/joeynyc/skillscore.git
cd skillscore
npm install
npm run build
npm link

# Run in development mode
npm run dev ./test-skill/

# Build for production
npm run build
```

### Running Tests

```bash
npm test
```

### Submitting Changes

1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Make your changes
4. Add tests for new functionality
5. Ensure all tests pass (`npm test`)
6. Lint your code (`npm run lint`)
7. Commit your changes (`git commit -m 'Add amazing feature'`)
8. Push to the branch (`git push origin feature/amazing-feature`)
9. Open a Pull Request

### Coding Standards

- Use TypeScript for all new code
- Follow existing code style (enforced by ESLint)
- Add tests for new features
- Update documentation for API changes
- Keep commits focused and descriptive

## ๐Ÿ› Troubleshooting

### Common Issues

**Error: "Path does not exist"**
- Check for typos in the path
- Ensure you have permission to read the directory
- Verify the path points to a directory, not a file

**Error: "No SKILL.md file found"**
- Skills must contain a SKILL.md file
- Check if you're pointing to the right directory
- The file must be named exactly "SKILL.md"

**Error: "Git is not available"**
- Install Git to clone GitHub repositories
- macOS: `xcode-select --install`
- Ubuntu: `sudo apt-get install git`
- Windows: Download from git-scm.com

**Scores seem too high/low**
- Scoring is calibrated against real-world skills
- See the scoring methodology above
- Consider the specific criteria for each category

### Getting Help

- ๐Ÿ› [Report Issues](https://github.com/joeynyc/skillscore/issues)
- ๐Ÿ’ฌ [Discussions](https://github.com/joeynyc/skillscore/discussions)
- ๐Ÿ“š [Documentation](https://github.com/joeynyc/skillscore/wiki)

## ๐Ÿ“„ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## ๐Ÿ™ Acknowledgments

- Inspired by the need for quality assessment in AI agent skills
- Built for the OpenClaw and Claude Code communities
- Thanks to all contributors and skill creators
- Scoring methodology informed by software engineering best practices and [OpenAI's production skill patterns](https://developers.openai.com/blog/skills-shell-tips)

## ๐Ÿ“Š Example Scores

Here are some real-world examples of how different skills score:

- **Vercel find-skills**: 85% (B) - Well-structured, good documentation
- **Anthropic frontend-design**: 87% (B+) - Excellent clarity, minor dependency issues
- **Anthropic skill-creator**: 92% (A-) - Outstanding overall, minor safety concerns

---


Made with โค๏ธ for the AI agent community

Help us improve AI agent skills, one evaluation at a time