caddy-explain

Solid

When a [CADDY] hint fires and the principal is confused why, /caddy-explain walks the scoring transparently — which trigger matched, what points it earned, what the threshold was, what other skills were close. Pairs with the legibility thesis. Caddy's decisions should be inspectable on demand.

AI & Automation 11 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
36
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Caddy Explain When Caddy surfaces a hint and you don't see why, run `/caddy-explain` to see the deterministic scoring. The scoring should never be a black box. ## When to use - A [CADDY] hint fired and you're surprised by the choice - A [CADDY] hint *didn't* fire when you expected it to - You want to verify why a particular skill won (or lost) for a recent prompt - Triggered by Caddy on prompts like: "/caddy-explain", "why did Caddy suggest", "explain that hint", "why no hint", "why this skill", "Caddy scoring", "Caddy why" ## How to execute ### Step 1 — Identify the prompt being explained If the principal provides the prompt explicitly, use it. Otherwise: - Use the immediately-preceding user prompt from the current session - If there's ambiguity ("the one before the last hint"), ask one focused question ### Step 2 — Walk the scoring deterministically For each skill in `.claude/skill-index.json`: 1. List its triggers 2. For each trigger, check whether it appears in the prompt: - Multi-word phrase match (case-insensitive substring) → 3 points - Single-word boundary match (`\bword\b` regex) → 1 point - No match → 0 points 3. Sum the per-skill score ### Step 3 — Show the result Output format: ``` 🔍 Caddy scoring for prompt: "{prompt text}" Threshold: 2 (skills below this score are silent) Max hints: 2 (top scorers above threshold are surfaced) SURFACED: /skill-a — score 5 — matched: "phrase match" (3pts), "keyword" (1pt), "another" (1pt) /skill...

Details

Author
wrg32786
Repository
wrg32786/aigent-os
Created
1 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category