revealui-skills-test
Static validator for Studio Agent Skills. Dry-runs skill roots (revskills SoT + equal-adapter command/skill homes), validates referenced scripts exist, flags stale ~/suite/ paths and rule violations. Read-only.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- revealui-skills-test
- license
- MIT
- metadata
- { "author": "RevealUI Studio", "version": "0.2.1", "website": "https://revealui.com" }
- description
- Static validator for Studio Agent Skills. Dry-runs skill roots (revskills SoT + equal-adapter command/skill homes), validates referenced scripts exist, flags stale ~/suite/ paths and rule violations. Read-only.
- allowed-tools
- Bash, Read, Glob, Grep
03 SKILL.md 正文
Validate skill installs without requiring a Claude-only command dir. Goal: catch broken skills (stale paths, missing scripts, rule-violating commands) before invoke.
Load helpers:
. "$REVEALFLEET_ROOT/revskills/scripts/lib/session-state.sh"
Roots to scan (in order)
- SoT (always):
$REVEALFLEET_ROOT/revskills/skills/*/SKILL.md - Adapter homes (when present):
~/.claude/commands/*.md(Claude slash / command links)~/.grokskill pointers if listed in config, or paths under[skills].paths- Optional:
REVSKILLS_COMMAND_DIRScolon list (same as lint-all-skills)
Never FAIL solely because ~/.claude/commands is missing.
For each skill file
1. Frontmatter
- If frontmatter present, confirm valid YAML-ish (
---open/close). - Confirm
descriptionis non-empty when frontmatter exists.
2. Referenced scripts
Extract paths matching:
$HOME/.claude/...or~/.claude/...$HOME/.grok/...or~/.grok/...$REVEALFLEET_ROOT/revskills/...bash "<path>"/node "<path>"/tsx "<path>"
Assert each target exists. Missing = FAIL.
3. Referenced repos
Extract $REVEALFLEET_ROOT/..., ~/projects/..., ~/suite/....
~/suite/* = FAIL (retired). Missing $REVEALFLEET_ROOT/* = FAIL.
4. Rule compliance (awk linter)
awk -f "$REVEALFLEET_ROOT/revskills/scripts/lib/lint-skill.awk" <skill>
Tags: stale-suite-path, git-C-violates-bash.md, pnpm-dir-violates-bash.md, inline-node-e-violates-hooks.md, tmux-legacy.
5. CLI soundness
For known CLIs (revvault, pnpm, nix, gh, git, …): presence on PATH when invoked in skill code blocks.
6. Status marker
DISABLED in first H1/frontmatter → SKIP.
Batch / CI (no interactive harness required)
bash "$REVEALFLEET_ROOT/revskills/scripts/lint-all-skills.sh"
bash "$REVEALFLEET_ROOT/revskills/scripts/lint-all-skills.sh" --json
Exits 0 on clean, 1 on violation. Preferred pre-push path.
Output
skill status issues
revealui-recover PASS -
…
JSON sidecar: /tmp/revealui-skills-test-last.json.
Do not
- Do not execute skill bodies — parse statically only.
- Do not modify any file — read-only validator.
04 同仓库更多 Skills
good-skill
A minimal valid skill fixture used to prove the skills-lint and plugin-lint validators accept well formed input. Covers frontmatter shape only.
bad-skill-missing-field
暂无简介
bad-skill-awk
Fixture skill whose fenced shell block violates lint-skill.awk. skills-lint must reject it.
yjs-collaboration
Yjs CRDT collaboration patterns for real-time and offline-first editing. Use when building collaborative documents, shared scratchpads, or multi-user editing. Covers Y.Doc, Y.Map, Y.Array, Y.Text, state encoding, structured patches, server-side document manipulation, and conflict-free merge semantics.
vitest-testing
Vitest testing patterns for production TypeScript projects. Use when writing tests, fixing test failures, configuring coverage, mocking modules, debugging flaky tests, or setting up Vitest in a monorepo. Covers Vitest 3+, vi.mock, vi.fn, React Testing Library, PGlite in-memory PostgreSQL, pool forks, maxWorkers, and hookTimeout.
tailwind-v4
Tailwind CSS v4 patterns, CSS-first configuration, and v3 migration guide. Use when writing styles, configuring @theme variables, creating components with CVA, migrating from tailwind.config.js, or using container queries, dark mode, and new v4 utility syntax. Covers @import tailwindcss, custom properties, oklch colors, and clsx.