Skip to content
Back to skills

Off Policy Value

ASecurity

"Guides minimalRL DQN, ACER, and V-trace replay, target-network,

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
code-qualitypythongobashdebuggingapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill off-policy-value --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Off Policy Value?

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

Security grade badge for Off Policy Value
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-off-policy-value/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-off-policy-value)

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
---
name: off-policy-value
description: "Guides minimalRL DQN, ACER, and V-trace replay, target-network,
  and off-policy correction workflows for discrete control."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Off-Policy Value Workflows

Use this sub-skill when a task asks about minimalRL's discrete value-learning, replay-buffer, target-network, ACER, or V-trace correction logic.

## Route by task

- **DQN / replay buffer / target network**: read [references/api-reference.md](references/api-reference.md) for `ReplayBuffer`, `Qnet`, and `train` contracts, then [references/workflows.md](references/workflows.md) for the safe update flow.
- **ACER**: read [references/workflows.md](references/workflows.md) for sequence replay and truncated importance sampling, then [references/troubleshooting.md](references/troubleshooting.md) for probability-ratio failures.
- **V-trace off-policy correction**: use the V-trace section in [references/api-reference.md](references/api-reference.md) and [references/workflows.md](references/workflows.md); route single-process policy/value architecture questions to [../on-policy-discrete/SKILL.md](../on-policy-discrete/SKILL.md).
- **Shape-only or pre-training checks**: run [scripts/smoke_off_policy_value.py](scripts/smoke_off_policy_value.py).

## Do not use this sub-skill for

- REINFORCE, actor-critic, PPO, or recurrent PPO route selection; use [../on-policy-discrete/SKILL.md](../on-policy-discrete/SKILL.md).
- DDPG, continuous PPO, or SAC; use [../continuous-control/SKILL.md](../continuous-control/SKILL.md).
- A2C/A3C multiprocessing and worker lifecycle; use [../parallel-actor-critic/SKILL.md](../parallel-actor-critic/SKILL.md).

## Quick operating workflow

1. Identify whether the user is debugging value targets, replay sampling, behavior-policy probabilities, or target-network synchronization.
2. Check tuple contracts in [references/api-reference.md](references/api-reference.md) before changing replay buffer contents.
3. Use [references/workflows.md](references/workflows.md) to preserve the update order: sample replay, compute detached targets, optimize current network, then update target/behavior state as appropriate.
4. Run the bundled smoke helper before long training:

   ```bash
   python sub-skills/off-policy-value/scripts/smoke_off_policy_value.py --algorithm all
   ```

5. For `ValueError: Sample larger than population`, NaN ratios, gather shape failures, or stale target behavior, read [references/troubleshooting.md](references/troubleshooting.md).

## Bundled runtime files

- [references/api-reference.md](references/api-reference.md) records replay tuple contracts, classes, functions, hyperparameters, and tensor shapes.
- [references/workflows.md](references/workflows.md) explains DQN, ACER, and V-trace update sequences and adaptation rules.
- [references/troubleshooting.md](references/troubleshooting.md) gives symptom-to-fix guidance for replay and correction failures.
- [scripts/smoke_off_policy_value.py](scripts/smoke_off_policy_value.py) validates replay sampling and off-policy tensor contracts without importing the original repository or running full training.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-reference.md3.8 KB
  • references/troubleshooting.md2.9 KB
  • references/workflows.md3.3 KB
  • scripts/smoke_off_policy_value.py4.3 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.

Comments

Loading comments…

Newsletter

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