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.
npx claudepluginhub xoai/sageThis skill uses the workspace's default tool permissions.
Verify the pack works and earns its tokens.
Runs baseline test prompts without pack loaded to observe agent failures, recording evidence for patterns and anti-patterns in community pack building phase 3.
Evaluates Claude Code packages across 6 quality dimensions like frontmatter and structure for all 7 package types, producing scored audit reports. Use for quick single-package audits or full repository scans.
Runs multi-agent verification loop post-implementation, dispatching specialized agents for review with autonomous subagent fixes and retries until unanimous approval.
Share bugs, ideas, or general feedback.
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]