Skip to content
Back to skills

Linear Reward Successor Features

ASecurity

Compute linear multitask rewards, successor-feature values, and vector Bellman targets for USFA-style reinforcement-learning tasks.

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

Works with

  • terminal

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Linear Reward Successor Features?

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

Security grade badge for Linear Reward Successor Features
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-linear-reward-successor-features/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-linear-reward-successor-features)

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

SKILL.md
---
name: linear_reward_successor_features
description: Compute linear multitask rewards, successor-feature values, and vector Bellman targets for USFA-style reinforcement-learning tasks.
---

# Linear Reward Successor Features

Use this skill when a recovery or implementation needs the Universal Successor Features contract `r_w = phi^T w` and `Q = psi^T w`. Do not use it to choose candidate GPI policies; that belongs to the GPI action-selection skill.

## Inputs

- `phi`: transition feature vector.
- `w`: task reward-weight vector.
- `psi`: successor-feature vector for `(state, action, z)`.
- `next_psi`: bootstrap successor-feature vector, or zeros for terminal transitions.
- `gamma`: discount factor.

## Outputs

- Scalar linear reward.
- Scalar Q value.
- Vector Bellman target.
- Vector TD error.

## Workflow

1. Validate equal vector dimensions.
2. Compute `reward = dot(phi, w)`.
3. Compute `q_value = dot(psi, w)`.
4. Compute `target = phi + gamma * next_psi` unless terminal.
5. Compute `td_error = target - psi`.

## Validation

Run:

```bash
python tests/test_successor_features.py
```

## Limitations

This skill assumes observable transition features and linear rewards. It does not learn features from pixels or choose behavior policies.

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.