Skip to content
Back to skills

Model Upgrade Audit

ASecurity

Usar cuando hay un modelo nuevo disponible y se quiere detectar prompt debt en el workspace.

  • 52 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 27, 2026
ai-agentsgobash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 28, 2026

npx -y skills add gonzalezpazmonica/savia --skill model-upgrade-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Upgrade Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Upgrade Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gonzalezpazmonica-model-upgrade-audit/badge)](https://www.skillsdirectory.com/skills/gonzalezpazmonica-model-upgrade-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
layer: peripheral
name: model-upgrade-audit
description: Usar cuando hay un modelo nuevo disponible y se quiere detectar prompt debt en el workspace.
allowed-tools: [Read, Write, Glob, Grep, Bash, Task]
metadata:
  # --- metadata.savia.* (SE-333) ---
  savia.category: governance
  savia.maturity: beta
  savia.disable-model-invocation: false
  savia.priority: medium
  savia.summary: "Audita agentes y prompts para detectar workarounds que modelos nuevos ya no necesitan. Propone simplificaciones con evidencia. Ejecutar al cambiar de modelo (ej: Sonnet 4 a 4.5)."
  savia.tags: "model, upgrade, prompt-debt, simplification, audit"
  savia.user-invocable: True
---

# Model Upgrade Audit

Analyzes agents, skills, and prompts for workarounds that newer models handle natively. Proposes token-saving simplifications backed by evidence.

## Decision Checklist

1. Is a new model available in config? If NO -> abort, nothing to audit.
2. Scope defined? (full | list | changed-since) If NO -> default to full.
3. Are evals available for target components? If NO -> warn, audit without comparison.
4. Is this a major model jump (e.g., Sonnet -> Opus)? If YES -> recommend full scope.
5. Has previous audit been run? If YES -> show delta since last audit.

## Parameters

| Param | Required | Default | Description |
|---|---|---|---|
| scope | No | full | `full`, `agents`, `skills`, `rules`, or comma-separated list |
| model_new | No | (auto-detect) | Model to audit against |
| changed_since | No | - | Only audit components changed since Era N |

## Workaround Patterns

| Pattern | Signal | Severity |
|---|---|---|
| Emphatic repetition | Same instruction >= 2x | Medium |
| Negative overload | >3 "don't/never/avoid" per prompt | Low |
| Compensatory few-shot | Basic capability examples | Medium |
| Defensive parsing | Regex fallback for bad output | High |
| Coded retries | Retry loops for model failure | High |
| Bloated prompt | >2000 tokens procedural | Medium |

## Execution Flow

```
1. Inventory: glob agents/*.md + skills/*/SKILL.md + rules/domain/*.md
2. For each component:
   a. Count tokens (wc -w * 1.3)
   b. Scan for workaround patterns (regex)
   c. Classify: simplifiable | no_change | review_needed
3. For simplifiable components:
   a. Propose simplified version
   b. Estimate token reduction
4. Generate YAML report -> output/model-audit/
5. Summary in chat (output-first pattern)
```

## Output

Report: `output/model-audit/{date}-audit.yaml`

Summary:
```
Model Audit: {model_old} -> {model_new}
Components: {N} audited | {N} simplifiable | {N} no change
Token savings: ~{N} tokens/session ({pct}% reduction)
Risk: {N} low | {N} medium | {N} high
```

## Application Flow

- `APPLY` (risk: low) -> auto-apply with backup
- `REVIEW` (risk: medium) -> Draft PR for human review
- `SKIP` (risk: high) -> log for manual review

## Integration

- Consumes feasibility-probe historical data for comparison
- Feeds into `/agent-efficiency` for token tracking
- Triggers after model config change in pm-config.md

Files in this skill

  • DOMAIN.md1.8 KB
  • SKILL.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.