Skip to content
Back to skills

Sar Sharpness Aware Update

ASecurity

Use this skill when implementing the SAM-like sharpness-aware two-step update used by SAR recovery experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingpythongit

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill sar_sharpness_aware_update --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sar Sharpness Aware Update?

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

Security grade badge for Sar Sharpness Aware Update
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sar-sharpness-aware-update/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sar-sharpness-aware-update)

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

SKILL.md
---
name: sar_sharpness_aware_update
description: Use this skill when implementing the SAM-like sharpness-aware two-step update used by SAR recovery experiments.
---

# Sharpness-Aware Update

## When To Use
Use this skill for SAR stable test-time adaptation work that needs: Run a two-step SAM-style update around reliable entropy minimization. Do not use it as a generic ImageNet-C runner or as permission to read the original SAR repository during recovery.

## Inputs
- trainable parameters, gradients or differentiable proxy model, reliable samples

## Outputs
- perturbation norm, first-step parameters, second-step updated parameters, loss trace

## Workflow
1. Read the caller-provided stream, logits, parameter metadata, or entropy trace.
2. Apply the SAR-specific invariant documented in this skill: SAR optimizes both entropy and entropy sharpness by minimizing entropy after an adversarial weight perturbation.
3. Produce structured numeric evidence for recovery logs.
4. Keep proxy/reduced results explicitly labeled when the full ImageNet-C runtime is unavailable.

## Validation
Run `python scripts/sharpness_aware_update.py` when the script has a CLI, then run `python -m pytest tests` or the Distiller skill validator with `--run-tests`.

## Limitations
This skill captures a reusable SAR mechanism. It does not contain pretrained weights, ImageNet-C data, or original repository code, and it should be combined with other SAR skills for end-to-end recovery.

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.

Comments

Loading comments…

Newsletter

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