chore: using mise to manage node versions and tasks (#44)

* add mise for Node.js version management

Replace ad-hoc Node version pinning with mise (mise.toml + mise.lock).
This ensures all contributors and CI use the same Node LTS version.

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

* expand mise with env loading, PATH management, and task runner

- [env] _.file loads .env files for local API keys (replaces dotenv)
- [env] _.path adds node_modules/.bin to PATH for direct tool access
- [tasks] mirrors npm scripts with sources/outputs for file-based caching
- eval tasks for running LLM evaluations via mise run
- update AGENTS.md and CONTRIBUTING.md to use mise run commands

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

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Pedro Rodrigues
2026-02-17 12:44:44 +00:00
committed by GitHub
parent 32142e85fd
commit 760460c221
5 changed files with 124 additions and 14 deletions

View File

@@ -4,6 +4,12 @@ Guidance for AI coding agents working with this repository.
> **Note:** `CLAUDE.md` is a symlink to this file.
## Prerequisites
This project uses [mise](https://mise.jdx.dev/) to manage tool versions,
environment variables, and project tasks. Run `mise install` to set up the
correct tool versions from `mise.toml`.
## Repository Structure
```
@@ -18,19 +24,30 @@ skills/
packages/
skills-build/ # Generic build system for all skills
evals/ # LLM evaluation system for skills
```
## Commands
All tasks are defined in `mise.toml` and can be run with `mise run` (or via
`npm run` which delegates to the same commands).
```bash
npm run build # Build all skills
npm run build -- {skill-name} # Build specific skill
npm run validate # Validate all skills
npm run validate -- {skill-name} # Validate specific skill
npm run check # Format and lint (auto-fix)
mise install # Install tool versions (Node.js)
mise run install # Install all npm dependencies
mise run build # Build all skills
mise run validate # Validate all skills
mise run check # Format and lint (auto-fix)
mise run test # Run tests
mise run eval # Run all LLM evals
mise run eval:code-fix # Run code-fix evals only
mise run eval:workflow # Run workflow evals only
```
**Before completing any task**, run `npm run check` and `npm run build` to
Tasks with `sources`/`outputs` defined in `mise.toml` skip automatically when
nothing has changed.
**Before completing any task**, run `mise run check` and `mise run build` to
ensure CI passes.
## Creating a New Skill
@@ -41,7 +58,7 @@ Skills follow the [Agent Skills Open Standard](https://agentskills.io/).
2. Create `SKILL.md` following the format below
3. Add `references/_sections.md` defining sections
4. Add reference files: `{prefix}-{reference-name}.md`
5. Run `npm run build`
5. Run `mise run build`
---