Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Build And Test?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/angelscript-tools-build-and-test)
---
name: build-and-test
description: Use when validating manifests, links, Markdown samples, Python formatting, or running scenario evals in angelscript-agent-kit.
---
# Build and Test
## Steps
1. Validate manifests, directory-plugin rules, icons, the packaged skill frontmatter (`check_frontmatter()` checks `plugins/angelscript/skills/angelscript/SKILL.md` only and does not inspect `.agents/skills/*/SKILL.md`), tool names, relative Markdown links, and `evals/scenarios.json`:
```sh
python -I scripts/validate.py
```
2. Optionally compile-check every fenced `angelscript` block in Markdown files with `angelscript-cli` (`asc`):
```sh
python -I scripts/validate.py --compile /abs/path/to/asc
```
3. Check Python formatting (`scripts/*.py`, `evals/fixture.py`) against `ruff.toml` (120-column line limit):
```sh
ruff format --check scripts evals
```
`ruff format --check` only checks formatting and never modifies files. Exit status 0 means no formatting changes are needed. Existing formatting drift in `scripts/eval.py` is currently open (do not reformat source files).
4. Run live agent evals (`evals/scenarios.json`) when built `angelscript-mcp` (`dist/index.js`) and `angel_lsp` are available:
- Prerequisites on `PATH`: `node` (Node.js 20+), `npx`, and the selected agent CLI (`codex` or `agy`).
- Pass absolute paths to `--mcp-entry` and `--lsp-path` (`scripts/eval.py` forwards both paths verbatim and executes the agent inside a temporary workspace where relative paths resolve from the wrong directory):
```sh
python -I scripts/eval.py codex --mcp-entry /abs/path/to/angelscript-mcp/dist/index.js --lsp-path /abs/path/to/angel_lsp
python -I scripts/eval.py agy --mcp-entry /abs/path/to/angelscript-mcp/dist/index.js --lsp-path /abs/path/to/angel_lsp --scenario fix-errors
```
Pass `--scenario fix-errors` (or `use-host-api`, `rename-method` from `evals/scenarios.json`) to run a single scenario, or `--no-skill` to measure the baseline without the skill.
## Expected result
- `scripts/validate.py` prints `ok` and exits 0.
- `ruff format --check scripts evals` exits 0 when no files need formatting (note: existing formatting drift in `scripts/eval.py` is open).
- `scripts/eval.py` prints a `PASS <scenario-id>` line (for example, `PASS fix-errors`) and exits 0. A run succeeded only when the requested scenario prints `PASS`: an unknown `--scenario` value selects zero scenarios and still exits 0 because `all(...)` over an empty list is true.
## Rules
- Keep `plugins/angelscript/` limited to inert `.md`, `.json`, `.png`, and `LICENSE` files.
- Never reference unknown `angelscript_*` names or retired tool names in Markdown (`validate.py` rejects them).
- Keep relative Markdown links valid from each file's directory, and never include personal paths, emails, or usernames in any file.
- Only the user commits, pushes, or tags.