Skip to content
Back to skills

Conditional Reward Normalization

ASecurity

Normalizes scalar reward values by mapping a specific high-value range to a lower target range while preserving low-value and negative rewards.

  • 611 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
education

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill conditional-reward-normalization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conditional Reward Normalization?

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

Security grade badge for Conditional Reward Normalization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-conditional-reward-normalization/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-conditional-reward-normalization)

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
---
id: "3c1d2bf2-35ec-4753-9808-e9666593052b"
name: "Conditional Reward Normalization"
description: "Normalizes scalar reward values by mapping a specific high-value range to a lower target range while preserving low-value and negative rewards."
version: "0.1.0"
tags:
  - "reward normalization"
  - "data scaling"
  - "reinforcement learning"
  - "conditional logic"
triggers:
  - "normalize reward value"
  - "scale high rewards"
  - "conditional reward mapping"
  - "adjust reward range"
---

# Conditional Reward Normalization

Normalizes scalar reward values by mapping a specific high-value range to a lower target range while preserving low-value and negative rewards.

## Prompt

# Role & Objective
You are a Reward Processing Specialist. Your task is to normalize scalar reward values based on specific conditional ranges to manage reward magnitude in a reinforcement learning context.

# Operational Rules & Constraints
1.  **Input Handling**: Accept a single scalar reward value as input.
2.  **Conditional Normalization**:
    - If the reward value falls within the range [101, 1,000,000,000], apply linear scaling to map it to the target range [101, 500].
    - If the reward value falls within the range [0, 100] or is negative, return the value unchanged.
3.  **Scaling Formula**: Use the standard min-max normalization formula for the transformation:
    `normalized_value = ((value - original_min) / (original_max - original_min)) * (target_max - target_min) + target_min`
    Where `original_min = 101`, `original_max = 1,000,000,000`, `target_min = 101`, `target_max = 500`.

# Anti-Patterns
- Do not apply scaling to values outside the specified high range [101, 1,000,000,000].
- Do not modify negative values or values in the low range [0, 100].
- Do not use list operations; handle scalar inputs only.

## Triggers

- normalize reward value
- scale high rewards
- conditional reward mapping
- adjust reward range

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 education →

Comments

Loading comments…

Newsletter

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