Aller au contenu
Skillpedia
Tests33k · #8483

skill-test

Ce qu’il fait

Cette skill vérifie que les fichiers de skill d'agent ont une structure et un comportement corrects. Elle s'adresse aux personnes qui écrivent ou maintiennent des skills et veulent détecter les problèmes avant que d'autres ne les utilisent.

Quand l’utiliser

  • ✓Quand quelqu'un a écrit une nouvelle skill et veut vérifier sa structure avant de la partager.
  • ✓Quand une équipe veut un rapport de couverture indiquant quelles skills ont des tests et quand elles ont été exécutées pour la dernière fois.
  • ✓Quand le comportement d'une skill doit être vérifié par rapport à une spécification de test écrite.

Lien du skill

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/skill-test/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/skill-test/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Vérifie tous mes fichiers de skill pour détecter les problèmes de structure et dis-moi lesquels échouent.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill propose quatre modes : un linter statique, une vérification de la spécification de comportement, une grille par catégorie et un rapport d'audit. Chaque mode lit les fichiers de skill et signale ce qu'il a trouvé.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation

Automation mode: Resolve modes.automation (project.local.yaml → project.yaml → default collaborative). Every AskUserQuestion call and every file write follows .claude/docs/automation-modes.md (collaborative asks always · guided major-only · autonomous logs and proceeds; automation_always_ask categories always prompt).

Skill Test

Validates skills (.claude/skills/*/SKILL.md) and agents (.claude/agents/*.md) for structural compliance and behavioral correctness. No external dependencies — runs entirely within the existing skill/hook/template architecture.

Four modes:

Mode Command Purpose Token Cost
static /skill-test static [name|all] Structural linter — 7 compliance checks per skill, plus agent, delegation and compatibility observations Low (~1k/skill)
spec /skill-test spec [name] Behavioral verifier — evaluates assertions in a skill's or agent's test spec Medium (~5k each)
category /skill-test category [name|all] Category rubric — checks a skill or agent against its category-specific metrics Low (~2k each)
audit /skill-test audit Coverage report — skills, agent specs, last test dates Low (~3k total)

What a pass proves. Every mode reads files; none runs the skill. static: the file has the structure a skill needs, not that it behaves. spec: read closely, the instructions cover each case, not that Claude follows them when it runs. category: the skill meets its category's rubric as written. audit: which skills and agents have specs, and when each was last checked. What a skill does shows only when it runs: a real request in a throwaway copy of the project, on each model you use, with and without the skill (Anthropic's Agent Skills best practices, "Build evaluations first").


Phase 1: Parse Arguments

Determine mode from the first argument:

  • static [name] → run 7 structural checks on one skill, or the agent observations on one agent
  • static all → run 7 structural checks on all skills (Glob .claude/skills/*/SKILL.md), plus the observations for every agent
  • spec [name] → read the skill or agent + its test spec, evaluate assertions
  • category [name] → run category-specific rubric from studio-tests/quality-rubric.md
  • category all → run category rubric for every skill and every agent that has a category: in catalog
  • audit (or no argument) → read catalog, list all skills and agents, show coverage

If the argument is unrecognized, output usage and stop.

The old spec folder. Glob CCGS Skill Testing Framework/catalog.yaml. When it exists, say so first: "CCGS Skill Testing Framework/ was renamed studio-tests/ in 1.2.0, and this skill reads only studio-tests/. Move any specs you wrote there; UPGRADING.md (v1.1.3 → v1.2.0, studio-tests/) says how." Then go on with studio-tests/.

Resolve the name before spec or category. Look it up in studio-tests/catalog.yaml: an entry under skills: is a skill (.claude/skills/[name]/SKILL.md); an entry under agents: is an agent (.claude/agents/[name].md). With no catalog entry, use whichever of those two files exists. Only when neither exists, report "'[name]' is neither a skill in .claude/skills/ nor an agent in .claude/agents/." and stop. A name that is also an ordinary word is still a name: /skill-test spec help tests the /help skill, never a request for this skill's usage.

The 7 checks lint SKILL.md structure, so they are skills-only. Given an agent name, static runs only the observations below: an agent file has no phases or verdict keywords to lint. Never report the agent as missing.


Phase 2A: Static Mode — Structural Linter

For each skill being tested, read its SKILL.md and every file in its references/ folder fully, and run all 7 checks on them as one skill — the longest skills keep each phase in references/. The frontmatter checks (1, 6 and 7) read SKILL.md.

Check 1 — Required Frontmatter Fields

The file must contain all of these in the YAML frontmatter block:

  • name:
  • description:
  • argument-hint:
  • user-invocable:
  • allowed-tools:

FAIL if any are absent. A file whose frontmatter does not parse fails Check 1 too — malformed YAML is a structural defect this check exists to catch, not an unassessable file; see the per-skill result rule b

Questions fréquentes

Un succès prouve-t-il qu'une skill fonctionne ?

Non. La skill lit les fichiers et vérifie leur structure, donc une réussite ne prouve pas que la skill se comporte correctement.

Quel est le mode le plus léger ?

Le linter statique est le mode le plus léger, adapté à la vérification rapide de nombreuses skills.

Que montre l'audit ?

Il montre la couverture des skills et des agents, ainsi que les dates des derniers tests.

Détails

Description originale de l’auteur

Validate skill files for structural compliance and behavioral correctness. Four modes: static linter, spec, category rubric, audit.

repo: Donchitos/Claude-Code-Game-Studios

Popularité

Étoiles GitHub
33k
Position au classement
#8483
Licence
MIT
Mis à jour
18/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires