16 Commits

Author SHA1 Message Date
Matthew Podwysocki c482cc8c34 Fix eval.js default model: claude-sonnet-4-20250514 has been retired (#74)
npm run eval was failing with a 404 not_found_error for anyone not
overriding EVAL_MODEL/EVAL_JUDGE_MODEL, since the hardcoded default model
ID is no longer served by the API. Default to claude-sonnet-5 instead.
2026-08-05 09:27:26 -04:00
ctufts f18944fb5d fix validation check for codex plugin 2026-06-01 15:40:49 -04:00
ctufts ebf6652920 prepare as codex plugin 2026-06-01 15:28:18 -04:00
Matthew Podwysocki 11d93050c4 Add eval runner script (#64)
* Add eval runner script and update contributing guide

Adds scripts/run-evals.js — runs evals for any skill with and without the
SKILL.md as system context, grades each expectation via Claude, and reports
pass rates and delta.

Usage:
  ANTHROPIC_API_KEY=... npm run eval <skill-name>

Also updates CONTRIBUTING.md to:
- Replace the skill-creator eval command (not yet implemented) with the
  actual npm run eval command
- Clarify the difference between knowledge evals and tool-execution evals,
  and how to interpret results from each

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fix Prettier formatting in run-evals.js

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:10:13 -04:00
Mofei Zhu c42befa5b7 Format validate-skills.js with prettier 2026-03-30 21:18:12 +03:00
Mofei Zhu ed393565e0 Address PR review: drop skills-ref, own the references/ convention
- Remove skills-ref dependency, replace with enhanced self-owned validator
- Add validation for name format, description length, SKILL.md line count,
  evals/evals.json structure, and bidirectional references/ checks
- Remove all agentskills.io and external spec references from docs
- Frame references/ progressive disclosure as our own convention
- Replace skill-creator CLI references with npm run eval
- Add missing evals for mapbox-search-patterns
2026-03-30 21:17:50 +03:00
Mofei Zhu 65bab68c18 Improve eval scores: fix skill content for 5 skills to reach 100%
- mapbox-mcp-runtime-patterns: Use MCPServerHTTP for pydantic-ai, proper MCP
  client/transport for LangChain, add directions_tool parameter examples
- mapbox-store-locator-patterns: Add marker strategy table with WebGL/GPU
  explanation, clarify GeolocateControl vs getCurrentPosition separation
- mapbox-search-integration: Add session token guidance for direct API usage
- mapbox-maplibre-migration: Emphasize all MapLibre plugins need Mapbox equivalents
- mapbox-geospatial-operations: Strengthen optimization_tool vs directions/matrix
  distinction, add search_and_geocode_tool as pre-step
- mapbox-web-performance-patterns: Fix clustering threshold to 10,000+
- scripts/eval.js: Auto-load .env file
2026-03-30 16:41:50 +03:00
Mofei Zhu 7cac917a48 Split 16 skills into slim SKILL.md + references/ for progressive disclosure
Per Agent Skills Specification, move detailed content to references/ files
that agents load on demand. Total SKILL.md lines: 15,554 → 5,088 (-67%).

Skills split: search-integration (9 refs), mcp-runtime-patterns (8),
web-integration-patterns (8), style-patterns (7), data-visualization (6),
store-locator (6), google-maps-migration (5), android-patterns (5),
web-performance (5), ios-patterns (5), mcp-devkit-patterns (4),
search-patterns (3), maplibre-migration (3), style-quality (3),
token-security (2), cartography (2). Total: 81 reference files.

Only geospatial-operations not split (decision framework too interconnected).

Also adds:
- eval.js script and baseline eval results
- Updated .gitignore for eval workspaces
- package.json version bump and eval scripts
2026-03-30 15:29:32 +03:00
Mofei Zhu 8ef214bd64 update package-lock 2026-03-30 14:32:59 +03:00
Mofei Zhu 954d3d7ebc Align CONTRIBUTING.md with Agent Skills Specification
- Update skill structure with references/, assets/, scripts/ directories
  and progressive loading model per https://agentskills.io/specification
- Add references/ convention: when to split, rules for file organization
- Update SKILL.md format with full field constraints and optional fields
- Strengthen content guidelines with Mapbox-specific focus
- Replace validate-skills.js with official skills-ref validator
- Add skills-ref as devDependency
2026-03-30 14:26:37 +03:00
Matthew Podwysocki 07d73bcd79 Remove redundant bash setup script
The setup-hooks.sh bash script is redundant since we have the cross-platform
Node.js version (setup-hooks.js) that works on Windows, macOS, and Linux.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-18 13:19:57 -05:00
Matthew Podwysocki 691cb27b9b Format setup-hooks.js with Prettier 2026-02-18 12:17:06 -05:00
Matthew Podwysocki a99e5bd077 Convert setup-hooks script from bash to Node.js for cross-platform compatibility
- Replaced bash script with Node.js version using native fs/path modules
- Updated package.json to use 'node scripts/setup-hooks.js'
- Works on Windows (PowerShell/cmd), macOS, and Linux
- Handles chmod gracefully on Windows where it's not needed
2026-02-18 11:26:51 -05:00
Matthew Podwysocki 48b694835b Add pre-push git hooks to run CI checks locally
Set up automatic git hooks that run all CI validation checks before pushing code. This prevents common CI failures by catching issues early in the development workflow.

Changes:
- Add .githooks/pre-push that runs format, spell, lint, and validation checks
- Add scripts/setup-hooks.sh to install hooks into .git/hooks/
- Update package.json with setup and postinstall scripts for automatic installation
- Document git hooks setup in CONTRIBUTING.md with usage instructions

The pre-push hook runs the same checks as CI:
- Prettier formatting validation
- cspell spell checking
- markdownlint markdown linting
- Skills structure validation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-11 10:25:59 -05:00
Matthew Podwysocki 3c3702c3d7 Add Prettier formatter for consistent code formatting
- Add prettier as dev dependency
- Create .prettierrc config with markdown-specific settings
- Add .prettierignore to exclude node_modules and generated files
- Add npm scripts:
  - format: Format all files with prettier
  - format:check: Check formatting without changes
- Update npm check script to include format:check
- Add format check step to GitHub Actions CI
- Format all existing files with prettier

Prettier config:
- Preserve line wrapping in markdown (proseWrap: preserve)
- 120 char print width for markdown
- Consistent formatting for JSON and JS files

This ensures all markdown, JSON, and JS files maintain consistent
formatting across the repository.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-04 14:17:21 -05:00
Neha Gupta 2653fa88fb Initial commit 2026-01-29 16:59:42 -05:00