Skip to content

28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools

feat: add portable Agent Skills distribution (#5)

Travis Boudreaux32f612605ae7
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 43f8bb0..37ec5b2 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "thinking-skills",
- "description": "28 eval-informed thinking skills and mental models for Claude Code",
+ "description": "28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools",
"version": "1.0.0",
"author": {
"name": "TJ Boudreaux",
@@ -19,5 +19,6 @@
"cognitive-bias",
"strategic-thinking",
"problem-solving"
- ]
+ ],
+ "skills": ["skills/"]
}
diff --git a/.github/plugin/plugin.json b/.github/plugin/plugin.json
new file mode 100644
index 0000000..37ec5b2
--- /dev/null
+++ b/.github/plugin/plugin.json
@@ -0,0 +1,24 @@
+{
+ "name": "thinking-skills",
+ "description": "28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools",
+ "version": "1.0.0",
+ "author": {
+ "name": "TJ Boudreaux",
+ "url": "https://github.com/tjboudreaux"
+ },
+ "homepage": "https://github.com/tjboudreaux/cc-thinking-skills",
+ "repository": "https://github.com/tjboudreaux/cc-thinking-skills",
+ "license": "MIT",
+ "keywords": [
+ "mental-models",
+ "thinking",
+ "decision-making",
+ "systems-thinking",
+ "first-principles",
+ "probabilistic-reasoning",
+ "cognitive-bias",
+ "strategic-thinking",
+ "problem-solving"
+ ],
+ "skills": ["skills/"]
+}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 20e1fce..7c2c995 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,12 +1,12 @@
# Contributing to Claude Code Thinking Skills
-Thank you for your interest in contributing to this collection of thinking skills for Claude Code!
+Thank you for your interest in contributing to this portable collection of thinking skills for compatible AI coding agents!
## How to Contribute
### Adding New Thinking Skills
-We welcome new mental models and thinking frameworks that would benefit Claude Code users. Here's how to add one:
+We welcome new mental models and thinking frameworks that would benefit users of Agent Skills-compatible tools. Here's how to add one:
#### 1. Choose a Valid Mental Model
@@ -34,7 +34,7 @@ Follow this template:
````markdown
---
name: thinking-your-skill-name
-description: Brief description (1-2 sentences) that helps Claude Code understand when to invoke this skill.
+description: Brief description (1-2 sentences) that helps compatible agents understand when to invoke this skill.
---
# Skill Name
@@ -123,10 +123,11 @@ If you find problems with existing skills:
### YAML Frontmatter
-The `description` field is critical - it helps Claude Code understand when to invoke the skill:
+The `description` field is critical — compatible agents use it to decide when to invoke the skill:
- Keep under 200 characters
- Focus on the use case, not the theory
- Include keywords that users might mention
+- Quote descriptions containing YAML-significant `: ` or ` #`
### Eval Expectations
@@ -155,7 +156,7 @@ Do not claim a skill is "proven" or "firm" from pre-edit results. Re-run after e
4. **Push** to your fork: `git push origin add-thinking-skillname`
5. **Open** a Pull Request with:
- Clear description of the skill/change
- - Why it's valuable for Claude Code users
+ - Why it's valuable for users of compatible agents
- Any references to source material
## Code of Conduct
@@ -170,4 +171,4 @@ Open an issue with the "question" label if you're unsure about anything.
---
-Thank you for helping make Claude Code smarter!
+Thank you for helping AI agents think more clearly!
diff --git a/README.md b/README.md
index 64885ff..7d788d8 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,11 @@
# Claude Code Thinking Skills
-> **28 Mental Models and Critical-Thinking Frameworks for Claude Code**
+> **28 Mental Models and Critical-Thinking Frameworks for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools**
-**Claude Code Thinking Skills is a collection of 28 mental-model and critical-thinking frameworks for [Claude Code](https://claude.ai/claude-code) that give Anthropic's AI coding agent structured ways to reason about decisions, debugging, systems, risk, and strategy.** Each skill packages a proven thinking framework — from first-principles reasoning to the theory of constraints — into a Claude Code skill you can invoke by name, and the whole collection is backed by a transparent, replication-gated evaluation pipeline.
+**Claude Code Thinking Skills is a portable [Agent Skills](https://agentskills.io) catalog of 28 mental-model and critical-thinking frameworks for decisions, debugging, systems, risk, and strategy.** It originated for Claude Code and now works across GitHub Copilot, Codex, Cursor, and other compatible agents. Each skill packages a proven thinking framework — from first-principles reasoning to the theory of constraints — into a skill an agent can invoke by name, and the whole collection is backed by a transparent, replication-gated evaluation pipeline.
[![Claude Code Skills](https://img.shields.io/badge/Claude_Code-Skills-7C3AED?style=flat&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJMMiA3TDEyIDEyTDIyIDdMMTIgMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBkPSJNMiAxN0wxMiAyMkwyMiAxNyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0yIDEyTDEyIDE3TDIyIDEyIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiLz4KPC9zdmc+)](https://github.com/tjboudreaux/cc-thinking-skills)
+[![Agent Skills Compatible](https://img.shields.io/badge/Agent_Skills-compatible-0A7EA4?style=flat)](https://agentskills.io)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Skills Count](https://img.shields.io/badge/Skills-28-blue)](https://github.com/tjboudreaux/cc-thinking-skills)
@@ -14,9 +15,9 @@
| | |
|---|---|
-| **What it is** | A library of 28 mental-model and critical-thinking skills for Claude Code. |
-| **Who it's for** | Engineers, founders, and analysts who want Claude Code to reason with structured frameworks instead of ad-hoc heuristics. |
-| **How to start** | Install via the plugin marketplace, then invoke `thinking-model-router` to be routed to the right skill. |
+| **What it is** | A portable Agent Skills library of 28 mental-model and critical-thinking frameworks. |
+| **Who it's for** | Engineers, founders, and analysts who want compatible AI agents to reason with structured frameworks instead of ad-hoc heuristics. |
+| **How to start** | Run `npx skills add tjboudreaux/cc-thinking-skills`, then invoke `thinking-model-router` to be routed to the right skill. |
| **License** | MIT — free to use, modify, and distribute. |
| **Evidence** | Every skill ran through a replication-gated [Elevate-or-Kill evaluation pipeline](analysis/ELEVATE-OR-KILL-SCORECARD.md). The honest headline: **zero skills currently hold a robust, replicated ELEVATE verdict** — and we publish that result rather than hide it. |
| **Entry point** | `thinking-model-router` → **START HERE** |
@@ -48,15 +49,39 @@ That rigor is the point. These skills are useful structured-reasoning scaffolds
- **28 Thinking Frameworks** — A curated library of mental models for decision-making, debugging, and strategy.
- **Eval-Backed and Honest** — Built and tested with a rigorous, replication-gated evaluation pipeline; see the [Elevate-or-Kill Scorecard](analysis/ELEVATE-OR-KILL-SCORECARD.md).
- **Battle-Tested Foundations** — Grounded in frameworks from cognitive science, systems thinking, and strategic analysis (Munger, Meadows, Kahneman, Goldratt, Altshuller/TRIZ, Boyd/OODA).
-- **Claude Code Native** — Designed specifically for Claude Code's skill system and invocation model.
+- **Claude Code Native, Agent Skills Portable** — First-class Claude Code marketplace support plus the shared Agent Skills format used by GitHub Copilot, Codex, Cursor, and other compatible tools.
- **Quality Scripts** — Tooling to validate, score, and improve skill quality.
-- **Zero Configuration** — Install and invoke skills by name; no setup required.
+- **Zero Configuration** — Install through a supported client and invoke skills by name; no framework setup required.
## Quick Start
-### Installation via Plugin Marketplace (Recommended)
+### skills.sh / `npx skills`
-Install directly in Claude Code using the plugin system:
+Use the skills.sh CLI to discover the catalog and choose skills or target agents interactively:
+
+```bash
+npx skills add tjboudreaux/cc-thinking-skills
+```
+
+For a non-interactive all-skill, all-agent installation:
+
+```bash
+npx skills add tjboudreaux/cc-thinking-skills --all
+```
+
+### GitHub CLI
+
+Install all 28 skills from the immutable release:
+
+```bash
+gh skill install tjboudreaux/cc-thinking-skills --all --pin v1.0.0
+```
+
+The pin makes the source reproducible. Without `--pin`, GitHub Skills resolves the latest release before falling back to default-branch `HEAD`.
+
+### Claude Code Marketplace
+
+Claude Code users can install the native plugin wrapper:
```bash
# Add the marketplace
@@ -66,24 +91,35 @@ Install directly in Claude Code using the plugin system:
/plugin install thinking-skills@thinking-skills-marketplace
```
-### Alternative: Manual Installation
+### Clone and Copy Fallback
-Clone and copy skills directly:
+Clone the repository once:
```bash
-# Clone the repository
git clone https://github.com/tjboudreaux/cc-thinking-skills.git
+```
-# Copy skills to your global Claude Code config
-cp -r cc-thinking-skills/skills/* ~/.claude/skills/
+For agents using the shared project-level Agent Skills location:
-# Or copy to a specific project
-cp -r cc-thinking-skills/skills/* /path/to/your/project/.claude/skills/
+```bash
+mkdir -p /path/to/project/.agents/skills
+cp -R cc-thinking-skills/skills/* /path/to/project/.agents/skills/
```
-### Development: Load as Local Plugin
+For Claude Code, copy to the global or project-specific Claude skills directory:
+
+```bash
+mkdir -p ~/.claude/skills /path/to/project/.claude/skills
+cp -R cc-thinking-skills/skills/* ~/.claude/skills/
+# Or:
+cp -R cc-thinking-skills/skills/* /path/to/project/.claude/skills/
+```
+
+Other clients should use the skills directory documented by that client.
+
+### Development: Load as a Local Claude Code Plugin
-For testing or development:
+For Claude Code testing or development:
```bash
claude --plugin-dir ./cc-thinking-skills
@@ -91,7 +127,7 @@ claude --plugin-dir ./cc-thinking-skills
### Usage
-Once installed, invoke any skill by name in Claude Code. **If you're not sure which framework fits, start with `thinking-model-router`** and let it route you:
+Once installed, ask your compatible agent to invoke a skill by name, or use the client's documented skill command. **If you're not sure which framework fits, start with `thinking-model-router`** and let it route you:
```
> Use the thinking-model-router to pick the right framework for this problem
@@ -283,15 +319,15 @@ Attack your own plans before adversaries do. The best defense is knowing your we
## FAQ
### What are Claude Code thinking skills?
-Claude Code thinking skills are 28 reusable mental-model and critical-thinking frameworks packaged as Claude Code skills. Each one gives the AI agent a structured method — such as first-principles reasoning, probabilistic updating, or the theory of constraints — for analyzing a specific kind of problem. You invoke them by name to steer how Claude approaches decisions, debugging, and strategy.
+Claude Code Thinking Skills is a portable catalog of 28 reusable mental-model and critical-thinking frameworks in the Agent Skills format. Each one gives a compatible AI agent a structured method — such as first-principles reasoning, probabilistic updating, or the theory of constraints — for analyzing a specific kind of problem. You can invoke them by name in Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools.
-### How do I install Claude Code thinking skills?
-The recommended path is the plugin marketplace: run `/plugin marketplace add tjboudreaux/cc-thinking-skills`, then `/plugin install thinking-skills@thinking-skills-marketplace`. You can also clone the repo and copy `skills/*` into `~/.claude/skills/` (global) or your project's `.claude/skills/`, or load it locally with `claude --plugin-dir ./cc-thinking-skills`.
+### How do I install the thinking skills?
+Use `npx skills add tjboudreaux/cc-thinking-skills` for interactive installation, or add `--all` for a non-interactive all-skill, all-agent install. GitHub Skills users can run `gh skill install tjboudreaux/cc-thinking-skills --all --pin v1.0.0`; an unpinned install resolves the latest release before default-branch `HEAD`. Claude Code users can instead use the native plugin marketplace commands above. The clone/copy fallback supports `.agents/skills/`, `.claude/skills/`, or another client-documented skills directory.
### Which thinking skill should I start with?
Start with `thinking-model-router`. It's the meta-skill entry point that reads your problem and routes you to the most relevant framework, so you don't need to memorize all 28. If you already know your need — for example debugging, risk, or prioritization — you can invoke the specific skill directly.
-### Do these skills actually improve Claude's accuracy?
+### Do these skills actually improve model accuracy?
No skill is currently proven to improve accuracy. Every skill was run through a replication-gated evaluation, and **zero skills hold a robust, replicated ELEVATE verdict.** The closest candidate, `thinking-scientific-method`, scored +5.3pp (p=0.061, n=150) on its fresh primary run — directional but short of the p<0.05 gate — with a significant +8.0pp (p=0.001) replication; because a significant replication can't rescue a primary that fails the gate, its verdict is DIRECTIONAL-NOT-REPLICATED. Treat the skills as solid structured-reasoning scaffolds, not a guaranteed accuracy boost.
### What is the model-router skill?
@@ -314,7 +350,7 @@ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
```yaml
---
name: thinking-your-skill-name
-description: Brief description under 200 chars (used by Claude Code for skill matching)
+description: Brief description under 200 chars (used by compatible agents for skill matching)
---
```
3. Write comprehensive documentation with:
@@ -333,10 +369,11 @@ node scripts/validate-skills.js
## Keywords
-`claude-code` `claude` `anthropic` `ai` `skills` `claude-code-skills` `mental-models` `critical-thinking` `decision-making` `problem-solving` `ai-reasoning` `systems-thinking` `first-principles` `probabilistic-reasoning` `uncertainty-estimation` `cognitive-bias` `strategic-thinking` `frameworks` `triz` `ooda` `pre-mortem` `socratic-method` `theory-of-constraints` `cynefin` `jobs-to-be-done` `red-team`
+`agent-skills` `skills-sh` `github-copilot` `codex` `cursor` `claude-code` `claude` `anthropic` `ai` `skills` `claude-code-skills` `mental-models` `critical-thinking` `decision-making` `problem-solving` `ai-reasoning` `systems-thinking` `first-principles` `probabilistic-reasoning` `uncertainty-estimation` `cognitive-bias` `strategic-thinking` `frameworks` `triz` `ooda` `pre-mortem` `socratic-method` `theory-of-constraints` `cynefin` `jobs-to-be-done` `red-team`
## Related Resources
+- [Agent Skills specification](https://agentskills.io)
- [Claude Code Documentation](https://docs.anthropic.com/claude-code)
- [Charlie Munger's Mental Models](https://fs.blog/mental-models/)
- [Thinking in Systems - Donella Meadows](https://www.chelseagreen.com/product/thinking-in-systems/)
@@ -353,4 +390,4 @@ Created by [TJ Boudreaux](https://github.com/tjboudreaux)
---
-**Found this useful?** Give it a star and share with others who could benefit from better thinking frameworks in Claude Code.
+**Found this useful?** Give it a star and share it with others who could benefit from better thinking frameworks in their AI agents.
diff --git a/evals/results/skill-hubs-v1/tier0-structural.json b/evals/results/skill-hubs-v1/tier0-structural.json
new file mode 100644
index 0000000..b17a6fe
--- /dev/null
+++ b/evals/results/skill-hubs-v1/tier0-structural.json
@@ -0,0 +1,388 @@
+{
+ "tier": 0,
+ "validator": "scripts/validate-skills.js",
+ "catalog": {
+ "expected_count": 28,
+ "found_count": 28,
+ "catalog_errors": [],
+ "ok": true
+ },
+ "required_sections": [
+ "When to Use",
+ "When NOT to Use",
+ "Procedure",
+ "Output",
+ "Verification"
+ ],
+ "overall_structural_pct": 100,
+ "overall_loose_pct": 100,
+ "failed_skills": [],
+ "over_length_descriptions": [],
+ "over_budget": [],
+ "rows": [
+ {
+ "name": "thinking-bounded-rationality",
+ "descLen": 142,
+ "words": 419,
+ "max_words": 450,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-circle-of-competence",
+ "descLen": 143,
+ "words": 446,
+ "max_words": 450,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-cynefin",
+ "descLen": 100,
+ "words": 378,
+ "max_words": 450,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-effectuation",
+ "descLen": 169,
+ "words": 588,
+ "max_words": 700,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-first-principles",
+ "descLen": 185,
+ "words": 456,
+ "max_words": 500,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-five-whys-plus",
+ "descLen": 164,
+ "words": 540,
+ "max_words": 550,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-jobs-to-be-done",
+ "descLen": 162,
+ "words": 552,
+ "max_words": 700,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-kepner-tregoe",
+ "descLen": 158,
+ "words": 525,
+ "max_words": 700,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-lindy-effect",
+ "descLen": 157,
+ "words": 389,
+ "max_words": 400,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-map-territory",
+ "descLen": 167,
+ "words": 521,
+ "max_words": 550,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-margin-of-safety",
+ "descLen": 163,
+ "words": 499,
+ "max_words": 650,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-model-combination",
+ "descLen": 160,
+ "words": 524,
+ "max_words": 750,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-model-router",
+ "descLen": 147,
+ "words": 881,
+ "max_words": 900,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-ooda",
+ "descLen": 165,
+ "words": 493,
+ "max_words": 550,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-opportunity-cost",
+ "descLen": 157,
+ "words": 565,
+ "max_words": 600,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-pre-mortem",
+ "descLen": 173,
+ "words": 562,
+ "max_words": 700,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-probabilistic",
+ "descLen": 197,
+ "words": 716,
+ "max_words": 800,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-red-team",
+ "descLen": 193,
+ "words": 603,
+ "max_words": 800,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-reversibility",
+ "descLen": 147,
+ "words": 471,
+ "max_words": 550,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-scientific-method",
+ "descLen": 186,
+ "words": 615,
+ "max_words": 900,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-second-order",
+ "descLen": 148,
+ "words": 431,
+ "max_words": 550,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-socratic",
+ "descLen": 154,
+ "words": 539,
+ "max_words": 650,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-steel-manning",
+ "descLen": 149,
+ "words": 502,
+ "max_words": 650,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-systems",
+ "descLen": 158,
+ "words": 615,
+ "max_words": 950,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-theory-of-constraints",
+ "descLen": 158,
+ "words": 486,
+ "max_words": 750,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-thought-experiment",
+ "descLen": 188,
+ "words": 556,
+ "max_words": 650,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-triz",
+ "descLen": 155,
+ "words": 522,
+ "max_words": 700,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ },
+ {
+ "name": "thinking-via-negativa",
+ "descLen": 162,
+ "words": 434,
+ "max_words": 450,
+ "structural_pass": true,
+ "structural_score": 12,
+ "structural_max": 12,
+ "structural_pct": 100,
+ "missing": [],
+ "loose_pct": 100,
+ "gap": 0
+ }
+ ]
+}
\ No newline at end of file
diff --git a/evals/run-tool-localization-experiment.js b/evals/run-tool-localization-experiment.js
index 09f0b84..ce9ac9e 100644
--- a/evals/run-tool-localization-experiment.js
+++ b/evals/run-tool-localization-experiment.js
@@ -38,8 +38,8 @@ function stageCaps(manifest, stage) {
function loadArmDefinitions(armIds) {
const files = {
current: 'skills/thinking-scientific-method/SKILL.md',
- 'clue-first': 'evals/studies/scientific-method-vnext/variants/candidate-clue-first/SKILL.md',
- 'module-role': 'evals/studies/scientific-method-vnext/variants/candidate-module-role/SKILL.md',
+ 'clue-first': 'evals/studies/scientific-method-vnext/variants/candidate-clue-first/CANDIDATE.md',
+ 'module-role': 'evals/studies/scientific-method-vnext/variants/candidate-module-role/CANDIDATE.md',
};
return armIds.map((id) => ({
id,
diff --git a/evals/studies/scientific-method-vnext/manifest-candidate-02-confirmation.json b/evals/studies/scientific-method-vnext/manifest-candidate-02-confirmation.json
index 776ec33..359bef4 100644
--- a/evals/studies/scientific-method-vnext/manifest-candidate-02-confirmation.json
+++ b/evals/studies/scientific-method-vnext/manifest-candidate-02-confirmation.json
@@ -21,7 +21,7 @@
"variants": [
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
}
diff --git a/evals/studies/scientific-method-vnext/manifest-tool-v1.json b/evals/studies/scientific-method-vnext/manifest-tool-v1.json
index 5784c80..e3609de 100644
--- a/evals/studies/scientific-method-vnext/manifest-tool-v1.json
+++ b/evals/studies/scientific-method-vnext/manifest-tool-v1.json
@@ -49,9 +49,9 @@
"evals/studies/scientific-method-vnext/prereg-tool-v1.md": "6b6212e3d3873c8d2d2317955dab5fddd246ca835789fbf2278611b1ccb2a325",
"evals/studies/scientific-method-vnext/splits-tool-v1.json": "be1272b4c0d47d0bf1d1381764344424cefa357249ac105f9f98c44d723739ca",
"skills/thinking-scientific-method/SKILL.md": "fc0440edac8f2fc4787d7fd1daa5d465de1115dac1e8e282741908ccaf28026d",
- "evals/studies/scientific-method-vnext/variants/candidate-clue-first/SKILL.md": "c664f13a97bb2834ca9ebe279d21acb349b5f816de71f1f2b546adf83b4b13fd",
- "evals/studies/scientific-method-vnext/variants/candidate-module-role/SKILL.md": "5cdec93aea4498c83b9c9430b290d0d2de324d8af8e98a84503a64d09c83b0c2",
- "evals/run-tool-localization-experiment.js": "d0811e028357870157860a8c915062866c7ad582f1a8d672866421eee42d3f72",
+ "evals/studies/scientific-method-vnext/variants/candidate-clue-first/CANDIDATE.md": "c664f13a97bb2834ca9ebe279d21acb349b5f816de71f1f2b546adf83b4b13fd",
+ "evals/studies/scientific-method-vnext/variants/candidate-module-role/CANDIDATE.md": "5cdec93aea4498c83b9c9430b290d0d2de324d8af8e98a84503a64d09c83b0c2",
+ "evals/run-tool-localization-experiment.js": "349cddc2239f36288781077b319b945caaa0870de250d5411f5a2f91bdf3155b",
"evals/lib/droid.js": "eb16312a9f6168082d63bc334f5763ff5a698fc263fa238cab762fd77b92706d",
"evals/lib/io.js": "d2b1e2bf8f8b9be9721f989a3f1a5e9ae48b79dbaf39af2667d3df6600f8543f",
"evals/lib/result.js": "c0d50b65630cc1707e34b15d94be9617fe0308d493d4d6c043b4b6beea19e1ed",
diff --git a/evals/studies/scientific-method-vnext/manifest-v1.json b/evals/studies/scientific-method-vnext/manifest-v1.json
index 6feab2a..b96f170 100644
--- a/evals/studies/scientific-method-vnext/manifest-v1.json
+++ b/evals/studies/scientific-method-vnext/manifest-v1.json
@@ -21,37 +21,37 @@
"variants": [
{
"id": "candidate-01",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md",
"sha256": "6915b9685c05ce09d533e19f3f3e17b1ce56dffaca00140371bfb79b47b8df1e",
"bytes": 4614
},
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
},
{
"id": "candidate-03",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md",
"sha256": "7605eed80466bc26d541d6e170b042042fde1a571b4943debba1cfb38b178eb5",
"bytes": 4517
},
{
"id": "candidate-04",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md",
"sha256": "5eef9e4dd03af5c57f92796c16fd302534a06300435b18e69291444709f9e826",
"bytes": 4423
},
{
"id": "candidate-05",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md",
"sha256": "c27814ef432a0db810800f8058e465c83da7019c6fde94301ab34b680761f23d",
"bytes": 4174
},
{
"id": "candidate-06",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md",
"sha256": "b186065020e9d4c73e80145892c597c57ebad6ef890ffece5afb703299751c2b",
"bytes": 3813
}
diff --git a/evals/studies/scientific-method-vnext/manifest-v2.json b/evals/studies/scientific-method-vnext/manifest-v2.json
index c53787e..df76db1 100644
--- a/evals/studies/scientific-method-vnext/manifest-v2.json
+++ b/evals/studies/scientific-method-vnext/manifest-v2.json
@@ -21,37 +21,37 @@
"variants": [
{
"id": "candidate-01",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md",
"sha256": "6915b9685c05ce09d533e19f3f3e17b1ce56dffaca00140371bfb79b47b8df1e",
"bytes": 4614
},
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
},
{
"id": "candidate-03",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md",
"sha256": "7605eed80466bc26d541d6e170b042042fde1a571b4943debba1cfb38b178eb5",
"bytes": 4517
},
{
"id": "candidate-04",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md",
"sha256": "5eef9e4dd03af5c57f92796c16fd302534a06300435b18e69291444709f9e826",
"bytes": 4423
},
{
"id": "candidate-05",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md",
"sha256": "c27814ef432a0db810800f8058e465c83da7019c6fde94301ab34b680761f23d",
"bytes": 4174
},
{
"id": "candidate-06",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md",
"sha256": "b186065020e9d4c73e80145892c597c57ebad6ef890ffece5afb703299751c2b",
"bytes": 3813
}
diff --git a/evals/studies/scientific-method-vnext/manifest-v3.json b/evals/studies/scientific-method-vnext/manifest-v3.json
index 0434baa..4db5b77 100644
--- a/evals/studies/scientific-method-vnext/manifest-v3.json
+++ b/evals/studies/scientific-method-vnext/manifest-v3.json
@@ -21,37 +21,37 @@
"variants": [
{
"id": "candidate-01",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md",
"sha256": "6915b9685c05ce09d533e19f3f3e17b1ce56dffaca00140371bfb79b47b8df1e",
"bytes": 4614
},
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
},
{
"id": "candidate-03",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md",
"sha256": "7605eed80466bc26d541d6e170b042042fde1a571b4943debba1cfb38b178eb5",
"bytes": 4517
},
{
"id": "candidate-04",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md",
"sha256": "5eef9e4dd03af5c57f92796c16fd302534a06300435b18e69291444709f9e826",
"bytes": 4423
},
{
"id": "candidate-05",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md",
"sha256": "c27814ef432a0db810800f8058e465c83da7019c6fde94301ab34b680761f23d",
"bytes": 4174
},
{
"id": "candidate-06",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md",
"sha256": "b186065020e9d4c73e80145892c597c57ebad6ef890ffece5afb703299751c2b",
"bytes": 3813
}
diff --git a/evals/studies/scientific-method-vnext/manifest-v4.json b/evals/studies/scientific-method-vnext/manifest-v4.json
index f457e67..fbc4ef3 100644
--- a/evals/studies/scientific-method-vnext/manifest-v4.json
+++ b/evals/studies/scientific-method-vnext/manifest-v4.json
@@ -21,37 +21,37 @@
"variants": [
{
"id": "candidate-01",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md",
"sha256": "6915b9685c05ce09d533e19f3f3e17b1ce56dffaca00140371bfb79b47b8df1e",
"bytes": 4614
},
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
},
{
"id": "candidate-03",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md",
"sha256": "7605eed80466bc26d541d6e170b042042fde1a571b4943debba1cfb38b178eb5",
"bytes": 4517
},
{
"id": "candidate-04",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md",
"sha256": "5eef9e4dd03af5c57f92796c16fd302534a06300435b18e69291444709f9e826",
"bytes": 4423
},
{
"id": "candidate-05",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md",
"sha256": "c27814ef432a0db810800f8058e465c83da7019c6fde94301ab34b680761f23d",
"bytes": 4174
},
{
"id": "candidate-06",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md",
"sha256": "b186065020e9d4c73e80145892c597c57ebad6ef890ffece5afb703299751c2b",
"bytes": 3813
}
diff --git a/evals/studies/scientific-method-vnext/manifest-v5.json b/evals/studies/scientific-method-vnext/manifest-v5.json
index 2039edd..e47f3f2 100644
--- a/evals/studies/scientific-method-vnext/manifest-v5.json
+++ b/evals/studies/scientific-method-vnext/manifest-v5.json
@@ -21,37 +21,37 @@
"variants": [
{
"id": "candidate-01",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md",
"sha256": "6915b9685c05ce09d533e19f3f3e17b1ce56dffaca00140371bfb79b47b8df1e",
"bytes": 4614
},
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
},
{
"id": "candidate-03",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md",
"sha256": "7605eed80466bc26d541d6e170b042042fde1a571b4943debba1cfb38b178eb5",
"bytes": 4517
},
{
"id": "candidate-04",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md",
"sha256": "5eef9e4dd03af5c57f92796c16fd302534a06300435b18e69291444709f9e826",
"bytes": 4423
},
{
"id": "candidate-05",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md",
"sha256": "c27814ef432a0db810800f8058e465c83da7019c6fde94301ab34b680761f23d",
"bytes": 4174
},
{
"id": "candidate-06",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md",
"sha256": "b186065020e9d4c73e80145892c597c57ebad6ef890ffece5afb703299751c2b",
"bytes": 3813
}
diff --git a/evals/studies/scientific-method-vnext/manifest.json b/evals/studies/scientific-method-vnext/manifest.json
index 2039edd..e47f3f2 100644
--- a/evals/studies/scientific-method-vnext/manifest.json
+++ b/evals/studies/scientific-method-vnext/manifest.json
@@ -21,37 +21,37 @@
"variants": [
{
"id": "candidate-01",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md",
"sha256": "6915b9685c05ce09d533e19f3f3e17b1ce56dffaca00140371bfb79b47b8df1e",
"bytes": 4614
},
{
"id": "candidate-02",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md",
"sha256": "83c7664471ef0593d3e4aeb706f0c70f275669f513647e9c0f130a647754bfa3",
"bytes": 4437
},
{
"id": "candidate-03",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md",
"sha256": "7605eed80466bc26d541d6e170b042042fde1a571b4943debba1cfb38b178eb5",
"bytes": 4517
},
{
"id": "candidate-04",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md",
"sha256": "5eef9e4dd03af5c57f92796c16fd302534a06300435b18e69291444709f9e826",
"bytes": 4423
},
{
"id": "candidate-05",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md",
"sha256": "c27814ef432a0db810800f8058e465c83da7019c6fde94301ab34b680761f23d",
"bytes": 4174
},
{
"id": "candidate-06",
- "path": "evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md",
+ "path": "evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md",
"sha256": "b186065020e9d4c73e80145892c597c57ebad6ef890ffece5afb703299751c2b",
"bytes": 3813
}
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-01/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-01/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-02/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-02/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-03/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-03/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-04/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-04/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-05/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-05/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-06/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-06/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-clue-first/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-clue-first/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-clue-first/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-clue-first/CANDIDATE.md
diff --git a/evals/studies/scientific-method-vnext/variants/candidate-module-role/SKILL.md b/evals/studies/scientific-method-vnext/variants/candidate-module-role/CANDIDATE.md
similarity index 100%
rename from evals/studies/scientific-method-vnext/variants/candidate-module-role/SKILL.md
rename to evals/studies/scientific-method-vnext/variants/candidate-module-role/CANDIDATE.md
diff --git a/evals/tests/registry-validation.test.js b/evals/tests/registry-validation.test.js
index 873d934..3500aeb 100644
--- a/evals/tests/registry-validation.test.js
+++ b/evals/tests/registry-validation.test.js
@@ -12,6 +12,8 @@ const {
DEFAULT_REQUIRED_SECTIONS,
parseFrontmatter,
listSkillDirs,
+ listUnexpectedSkillFiles,
+ validatePluginManifests,
} = require('../../scripts/validate-skills');
const {
validateDatasetSplits,
@@ -131,6 +133,71 @@ test('parseFrontmatter returns identical fields for LF and CRLF', () => {
assert.equal(crlfResult.pass, true, JSON.stringify(crlfResult.failed));
});
+test('parseFrontmatter decodes quoted scalars and preserves valid bare scalars', () => {
+ const content = `---
+# full-line comments are ignored
+
+name: thinking-example
+description: 'It''s useful: when reality is expensive.'
+double-quoted: "line\\nvalue"
+disable-model-invocation: true
+---
+body
+`;
+ const parsed = parseFrontmatter(content);
+ assert.equal(parsed.has_frontmatter, true);
+ assert.deepEqual(parsed.errors, []);
+ assert.deepEqual(parsed.frontmatter, {
+ name: 'thinking-example',
+ description: "It's useful: when reality is expensive.",
+ 'double-quoted': 'line\nvalue',
+ 'disable-model-invocation': 'true',
+ });
+
+ const thoughtExperiment = fs.readFileSync(
+ path.join(REPO_ROOT, 'skills', 'thinking-thought-experiment', 'SKILL.md'),
+ 'utf8',
+ );
+ const thoughtParsed = parseFrontmatter(thoughtExperiment);
+ assert.deepEqual(thoughtParsed.errors, []);
+ assert.match(thoughtParsed.frontmatter.description, /counterfactual: isolate one variable/);
+});
+
+test('parseFrontmatter reports every malformed flat-scalar class with LF/CRLF parity', () => {
+ const cases = [
+ ['not a mapping', 'frontmatter line 2: expected key: scalar'],
+ ['name:', 'frontmatter line 2: expected key: scalar'],
+ ['name: first\nname: second', 'frontmatter line 3: duplicate key "name"'],
+ ["name: 'unclosed", 'frontmatter line 2: unclosed single-quoted scalar'],
+ ['name: "invalid\\q"', 'frontmatter line 2: invalid double-quoted scalar'],
+ ['name: ambiguous: value', 'frontmatter line 2: ambiguous bare scalar contains ": "'],
+ ['name: ambiguous # value', 'frontmatter line 2: ambiguous bare scalar contains " #"'],
+ ];
+
+ for (const [frontmatter, expectedError] of cases) {
+ const lf = `---\n${frontmatter}\n---\nbody\n`;
+ const crlf = lf.replace(/\n/g, '\r\n');
+ assert.deepEqual(parseFrontmatter(lf).errors, [expectedError]);
+ assert.deepEqual(parseFrontmatter(crlf).errors, [expectedError]);
+ }
+});
+
+test('validateSkillContent surfaces parser errors in YAML Frontmatter detail', () => {
+ const result = validateSkillContent(
+ LEAN_BODY.replace(
+ 'description: Short situation-named description under two hundred characters.',
+ 'description: ambiguous: bare scalar',
+ ),
+ { name: 'thinking-example', maxWords: 100, enforceBudget: true },
+ );
+ const yamlCheck = result.checks.find(check => check.name === 'YAML Frontmatter');
+ assert.equal(yamlCheck.pass, false);
+ assert.equal(
+ yamlCheck.detail,
+ 'frontmatter line 3: ambiguous bare scalar contains ": "',
+ );
+});
+
test('router emits invocable thinking-skills IDs; NONE means no invocation', () => {
const routerPath = path.join(REPO_ROOT, 'skills', 'thinking-model-router', 'SKILL.md');
const content = fs.readFileSync(routerPath, 'utf8');
@@ -206,6 +273,97 @@ test('current lean catalog satisfies every structural contract', () => {
}
});
+test('catalog boundary rejects stray SKILL.md files but ignores local trees and candidates', () => {
+ const repoRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'skill-catalog-'));
+ const writeFixture = (relativePath) => {
+ const absolutePath = path.join(repoRoot, relativePath);
+ fs.mkdirSync(path.dirname(absolutePath), { recursive: true });
+ fs.writeFileSync(absolutePath, 'fixture\n');
+ };
+
+ writeFixture('evals/study/SKILL.md');
+ writeFixture('evals/study/CANDIDATE.md');
+ for (const ignoredPath of [
+ '.git/cache/SKILL.md',
+ '.claude/cache/SKILL.md',
+ 'backups/cache/SKILL.md',
+ 'evals/checkouts/cache/SKILL.md',
+ 'node_modules/package/SKILL.md',
+ ]) {
+ writeFixture(ignoredPath);
+ }
+
+ assert.deepEqual(listUnexpectedSkillFiles(repoRoot), ['evals/study/SKILL.md']);
+ const report = validateAllSkills({
+ repoRoot,
+ skillsDir: path.join(REPO_ROOT, 'skills'),
+ });
+ assert.ok(report.catalog_errors.includes('unexpected SKILL.md: evals/study/SKILL.md'));
+ assert.throws(
+ () => listUnexpectedSkillFiles(path.join(repoRoot, 'missing')),
+ /ENOENT/,
+ );
+});
+
+function createManifestRepo() {
+ const repoRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'plugin-manifests-'));
+ const manifest = fs.readFileSync(
+ path.join(REPO_ROOT, '.claude-plugin', 'plugin.json'),
+ 'utf8',
+ );
+ for (const relativePath of [
+ '.claude-plugin/plugin.json',
+ '.github/plugin/plugin.json',
+ ]) {
+ const absolutePath = path.join(repoRoot, relativePath);
+ fs.mkdirSync(path.dirname(absolutePath), { recursive: true });
+ fs.writeFileSync(absolutePath, manifest);
+ }
+ return repoRoot;
+}
+
+test('plugin manifests expose the same portable skills catalog', () => {
+ assert.deepEqual(validatePluginManifests(createManifestRepo()), []);
+});
+
+test('plugin manifest validation rejects metadata drift', () => {
+ const repoRoot = createManifestRepo();
+ const githubPath = path.join(repoRoot, '.github', 'plugin', 'plugin.json');
+ const githubManifest = JSON.parse(fs.readFileSync(githubPath, 'utf8'));
+ githubManifest.version = '9.9.9';
+ fs.writeFileSync(githubPath, `${JSON.stringify(githubManifest, null, 2)}\n`);
+ assert.deepEqual(
+ validatePluginManifests(repoRoot),
+ ['manifest field mismatch: version'],
+ );
+});
+
+test('plugin manifest validation reports malformed JSON', () => {
+ const repoRoot = createManifestRepo();
+ fs.writeFileSync(
+ path.join(repoRoot, '.github', 'plugin', 'plugin.json'),
+ '{ invalid',
+ );
+ const errors = validatePluginManifests(repoRoot);
+ assert.equal(errors.length, 1);
+ assert.match(
+ errors[0],
+ /^manifest invalid JSON: \.github\/plugin\/plugin\.json:/,
+ );
+});
+
+test('plugin manifest validation rejects a noncanonical skills path', () => {
+ const repoRoot = createManifestRepo();
+ const githubPath = path.join(repoRoot, '.github', 'plugin', 'plugin.json');
+ const githubManifest = JSON.parse(fs.readFileSync(githubPath, 'utf8'));
+ githubManifest.skills = ['./skills'];
+ fs.writeFileSync(githubPath, `${JSON.stringify(githubManifest, null, 2)}\n`);
+ assert.deepEqual(validatePluginManifests(repoRoot), [
+ 'manifest skills must equal ["skills/"]: .github/plugin/plugin.json',
+ 'manifest field mismatch: skills',
+ ]);
+});
+
test('validate-skills does not write quality-report.json', () => {
const reportPath = path.join(__dirname, '..', '..', 'scripts', 'quality-report.json');
const before = fs.existsSync(reportPath) ? fs.statSync(reportPath).mtimeMs : null;
diff --git a/evals/tests/tool-localization.test.js b/evals/tests/tool-localization.test.js
index 6562932..1f6aca1 100644
--- a/evals/tests/tool-localization.test.js
+++ b/evals/tests/tool-localization.test.js
@@ -170,11 +170,11 @@ test('tool localization variants each add exactly one isolated mechanism', () =>
const current = fs.readFileSync(path.join(root, 'skills/thinking-scientific-method/SKILL.md'), 'utf8');
const clue = fs.readFileSync(path.join(
root,
- 'evals/studies/scientific-method-vnext/variants/candidate-clue-first/SKILL.md',
+ 'evals/studies/scientific-method-vnext/variants/candidate-clue-first/CANDIDATE.md',
), 'utf8');
const moduleRole = fs.readFileSync(path.join(
root,
- 'evals/studies/scientific-method-vnext/variants/candidate-module-role/SKILL.md',
+ 'evals/studies/scientific-method-vnext/variants/candidate-module-role/CANDIDATE.md',
), 'utf8');
const clueMechanism = ' Before proposing hypotheses, extract exact symbols, exception text, behavioral boundaries, lifecycle phases, and call-direction clues from the issue; spend the first observation on the rarest clue that can map directly to an owner.';
const moduleMechanism = ' Before ranking hypotheses, map each plausible file to its runtime responsibility; favor the implementation owner whose module role owns the failed behavior over a facade, caller, wrapper, test, or compatibility layer unless direct evidence points elsewhere.';
diff --git a/scripts/validate-skills.js b/scripts/validate-skills.js
index 4098149..af877a4 100755
--- a/scripts/validate-skills.js
+++ b/scripts/validate-skills.js
@@ -16,6 +16,7 @@
const fs = require('fs');
const path = require('path');
+const { isDeepStrictEqual } = require('util');
const REPO_ROOT = path.join(__dirname, '..');
const SKILLS_DIR = path.join(REPO_ROOT, 'skills');
@@ -47,16 +48,151 @@ function listSkillDirs(skillsDir = SKILLS_DIR) {
.sort();
}
+function listUnexpectedSkillFiles(repoRoot = REPO_ROOT) {
+ const skippedDirectories = new Set([
+ '.git',
+ '.claude',
+ 'backups',
+ 'evals/checkouts',
+ 'node_modules',
+ ]);
+ const unexpected = [];
+
+ function visit(directory, relativeDirectory = '') {
+ for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
+ const relativePath = relativeDirectory
+ ? `${relativeDirectory}/${entry.name}`
+ : entry.name;
+ if (entry.isDirectory()) {
+ if (!skippedDirectories.has(relativePath)) {
+ visit(path.join(directory, entry.name), relativePath);
+ }
+ continue;
+ }
+ if (!entry.isFile() || entry.name !== 'SKILL.md') continue;
+ if (!/^skills\/thinking-[^/]+\/SKILL\.md$/.test(relativePath)) {
+ unexpected.push(relativePath);
+ }
+ }
+ }
+
+ visit(repoRoot);
+ return unexpected.sort();
+}
+
+function validatePluginManifests(repoRoot = REPO_ROOT) {
+ const manifestPaths = [
+ '.claude-plugin/plugin.json',
+ '.github/plugin/plugin.json',
+ ];
+ const fields = [
+ 'name',
+ 'description',
+ 'version',
+ 'author',
+ 'homepage',
+ 'repository',
+ 'license',
+ 'keywords',
+ 'skills',
+ ];
+ const errors = [];
+ const manifests = [];
+
+ for (const relativePath of manifestPaths) {
+ const absolutePath = path.join(repoRoot, relativePath);
+ if (!fs.existsSync(absolutePath)) {
+ errors.push(`manifest missing: ${relativePath}`);
+ continue;
+ }
+ try {
+ const manifest = JSON.parse(fs.readFileSync(absolutePath, 'utf8'));
+ manifests.push({ relativePath, manifest });
+ if (!isDeepStrictEqual(manifest.skills, ['skills/'])) {
+ errors.push(`manifest skills must equal ["skills/"]: ${relativePath}`);
+ }
+ } catch (error) {
+ errors.push(`manifest invalid JSON: ${relativePath}: ${error.message}`);
+ }
+ }
+
+ if (manifests.length === manifestPaths.length) {
+ const [first, second] = manifests;
+ for (const field of fields) {
+ if (!isDeepStrictEqual(first.manifest[field], second.manifest[field])) {
+ errors.push(`manifest field mismatch: ${field}`);
+ }
+ }
+ }
+
+ return errors;
+}
+
function parseFrontmatter(content) {
- const m = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
- const fm = {};
- if (!m) return { frontmatter: fm, body: content, has_frontmatter: false };
- for (const line of m[1].split(/\r?\n/)) {
- const kv = line.match(/^(\w[\w-]*):\s*(.*)$/);
- if (kv) fm[kv[1]] = kv[2].trim();
+ const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
+ const frontmatter = {};
+ const errors = [];
+ if (!match) {
+ return { frontmatter, body: content, has_frontmatter: false, errors };
+ }
+
+ const lines = match[1].split(/\r?\n/);
+ for (let index = 0; index < lines.length; index += 1) {
+ const line = lines[index];
+ const lineNumber = index + 2;
+ if (/^\s*(?:#.*)?$/.test(line)) continue;
+
+ const keyValue = line.match(/^(\w[\w-]*):\s*(.*)$/);
+ if (!keyValue || keyValue[2].trim().length === 0) {
+ errors.push(`frontmatter line ${lineNumber}: expected key: scalar`);
+ continue;
+ }
+
+ const key = keyValue[1];
+ if (Object.prototype.hasOwnProperty.call(frontmatter, key)) {
+ errors.push(`frontmatter line ${lineNumber}: duplicate key "${key}"`);
+ continue;
+ }
+
+ const scalar = keyValue[2].trim();
+ let value;
+ if (scalar.startsWith("'")) {
+ if (!scalar.endsWith("'") || scalar.length < 2) {
+ errors.push(`frontmatter line ${lineNumber}: unclosed single-quoted scalar`);
+ continue;
+ }
+ const inner = scalar.slice(1, -1);
+ if (/(^|[^'])'(?:[^']|$)/.test(inner)) {
+ errors.push(`frontmatter line ${lineNumber}: unclosed single-quoted scalar`);
+ continue;
+ }
+ value = inner.replace(/''/g, "'");
+ } else if (scalar.startsWith('"')) {
+ try {
+ value = JSON.parse(scalar);
+ if (typeof value !== 'string') throw new TypeError('not a string');
+ } catch (_) {
+ errors.push(`frontmatter line ${lineNumber}: invalid double-quoted scalar`);
+ continue;
+ }
+ } else {
+ const ambiguousToken = [': ', ' #'].find(token => scalar.includes(token));
+ if (ambiguousToken) {
+ errors.push(`frontmatter line ${lineNumber}: ambiguous bare scalar contains "${ambiguousToken}"`);
+ continue;
+ }
+ value = scalar;
+ }
+
+ if (value.length === 0) {
+ errors.push(`frontmatter line ${lineNumber}: expected key: scalar`);
+ continue;
+ }
+ frontmatter[key] = value;
}
- const body = content.slice(m[0].length);
- return { frontmatter: fm, body, has_frontmatter: true };
+
+ const body = content.slice(match[0].length);
+ return { frontmatter, body, has_frontmatter: true, errors };
}
function countWords(text) {
@@ -102,7 +238,7 @@ function validateSkillContent(content, opts = {}) {
const requireDisableModelInvocation = opts.requireDisableModelInvocation === true;
const forbiddenSkillIds = opts.forbiddenSkillIds || [];
- const { frontmatter, has_frontmatter } = parseFrontmatter(content);
+ const { frontmatter, has_frontmatter, errors: frontmatterErrors } = parseFrontmatter(content);
const words = countWords(content);
const description = frontmatter.description || '';
const descriptionLen = description.length;
@@ -119,11 +255,14 @@ function validateSkillContent(content, opts = {}) {
checks.push({
name: 'YAML Frontmatter',
pass: has_frontmatter &&
+ frontmatterErrors.length === 0 &&
frontmatter.name === skillName &&
Boolean(frontmatter.description),
- detail: has_frontmatter
- ? `name=${frontmatter.name || 'missing'}`
- : 'missing frontmatter',
+ detail: frontmatterErrors.length > 0
+ ? frontmatterErrors.join('; ')
+ : has_frontmatter
+ ? `name=${frontmatter.name || 'missing'}`
+ : 'missing frontmatter',
});
checks.push({
name: 'Description Length',
@@ -249,7 +388,8 @@ function loadCatalogExpectations(registryPath) {
* Validate all skills under skillsDir. Pure: no file writes.
*/
function validateAllSkills(opts = {}) {
- const skillsDir = opts.skillsDir || SKILLS_DIR;
+ const repoRoot = opts.repoRoot || REPO_ROOT;
+ const skillsDir = opts.skillsDir || path.join(repoRoot, 'skills');
const catalog = loadCatalogExpectations(opts.registryPath);
const dirs = listSkillDirs(skillsDir);
const results = [];
@@ -279,6 +419,10 @@ function validateAllSkills(opts = {}) {
if (catalog.registryValidation && !catalog.registryValidation.ok) {
for (const e of catalog.registryValidation.errors) errors.push(`registry: ${e}`);
}
+ for (const skillPath of listUnexpectedSkillFiles(repoRoot)) {
+ errors.push(`unexpected SKILL.md: ${skillPath}`);
+ }
+ errors.push(...validatePluginManifests(repoRoot));
const failedSkills = results.filter(r => !r.pass);
return {
@@ -344,6 +488,8 @@ module.exports = {
DEFAULT_REQUIRED_SECTIONS,
DEFAULT_DESCRIPTION_MAX,
listSkillDirs,
+ listUnexpectedSkillFiles,
+ validatePluginManifests,
parseFrontmatter,
countWords,
hasSection,
diff --git a/skills/thinking-thought-experiment/SKILL.md b/skills/thinking-thought-experiment/SKILL.md
index 722261a..54bd1ad 100644
--- a/skills/thinking-thought-experiment/SKILL.md
+++ b/skills/thinking-thought-experiment/SKILL.md
@@ -1,6 +1,6 @@
---
name: thinking-thought-experiment
-description: When a real test is too rare, large, or irreversible, run a controlled counterfactual: isolate one variable, fix conditions, trace the mechanistic chain, and bound what the result implies.
+description: 'When a real test is too rare, large, or irreversible, run a controlled counterfactual: isolate one variable, fix conditions, trace the mechanistic chain, and bound what the result implies.'
disable-model-invocation: true
---