tools/sage-claude-plugin/skills/pack-validate/SKILL.md
Phase 5 of pack building. Runs automated checks, re-runs test prompts WITH the pack loaded, and measures behavior change against the Phase 3 baseline. Determines if the pack earns its context tokens.
npx skillsauth add xoai/sage pack-validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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]
testing
Root cause diagnosis with evidence, Reproducing test, Minimal patch
tools
Session resumption with context
tools
Configure Sage preset and project settings. Switch between base, startup, enterprise, or opensource constitution presets. Use when the user says "configure sage", "change preset", or "sage settings".
development
Brief (medium+ tasks), Spec, Implementation plan