From sage
Validates packs by running automated quality checks, re-running test prompts with pack loaded, measuring behavior change against baseline, and reporting if it earns context tokens.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sage:pack-validateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Verify the pack works and earns its tokens.
Verify the pack works and earns its tokens.
Core Principle: A pack that doesn't measurably change agent behavior is wasted context tokens. Validation proves the pack delivers value.
Run the pack quality checker:
bash .sage/tools/sage-check-pack.sh packs/<pack-name>
Fix all errors. Review all warnings. The checker validates:
Take the same test prompts from Phase 3. Run them again, but this time with the pack loaded in context.
For each prompt, record:
Compare Phase 3 (without pack) to Step 2 (with pack):
| Prompt | Without Pack | With Pack | Changed? | Improved? |
|--------|-------------|-----------|----------|-----------|
| 1 | [failure] | [result] | YES/NO | YES/NO |
| 2 | [failure] | [result] | YES/NO | YES/NO |
| ... | | | | |
Behavior change rate: X/Y prompts = Z%
Target: ≥70%
If behavior change rate is below 70%:
Repeat Steps 2-3 after changes until ≥70% or you've concluded the pack can't improve on the agent's baseline (rare but honest).
# Validation Report
## Automated Checks: PASS/FAIL
## Token Usage: N / limit
## Behavior Change: X/Y = Z%
## Per-Prompt Results
[table from Step 3]
## Changes Made During Iteration
- [what was changed and why]
## Verdict: READY / NEEDS WORK / NOT VIABLE
Validation for overlays is simpler:
Confirm the overlay loads correctly alongside its community pack:
type: overlay and extends: fieldGive the agent 1-2 prompts that should trigger the overlay's guidance. Verify the agent follows your project-specific conventions, not just the community pack's generic patterns.
Confirm the overlay is under 500 tokens. It should be a small delta.
Save to .sage/pack-build/validation.md:
# Validation Report
Path: [community-pack / project-overlay]
Pack: <name>
Automated checks: [PASS/FAIL]
Token usage: [N / limit]
Behavior change: [X/Y = Z%]
Verdict: [READY / NEEDS WORK / NOT VIABLE]
npx claudepluginhub xoai/sage --plugin sageValidates pack quality by running automated checks, re-running test prompts with the pack loaded, and measuring behavior change against a baseline to determine if the pack earns its context tokens.
Audits Claude Code packages across 6 quality dimensions (frontmatter, structure, content, triggers, handlers, testing) with scored reports. Supports single-package quick audits and full-repository comparative rankings.
Runs multi-agent verification loop post-implementation, dispatching specialized agents for review with autonomous subagent fixes and retries until unanimous approval.