Skip to content
Back to skills

Deterministic Selection

ASecurity

Use when code chooses among multiple files, providers, releases, candidates, records, plugins, matches, or equally valid options and repeatability matters.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill deterministic-selection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deterministic Selection?

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

Security grade badge for Deterministic Selection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-deterministic-selection/badge)](https://www.skillsdirectory.com/skills/shugokifable-deterministic-selection)

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: deterministic-selection
description: Use when code chooses among multiple files, providers, releases, candidates, records, plugins, matches, or equally valid options and repeatability matters.
---

# Deterministic Selection

## Core rule
Never let filesystem/API enumeration **order** become an undocumented decision rule.

Define explicit ranking keys and a stable **tie-break**: semantic version, priority, timestamp plus name, provider score plus slug, or another contract-relevant identity. Normalize inputs before comparison and make the final choice **deterministic** across machines and reruns.

When "first result" is intended, prove the upstream API guarantees ordering; otherwise sort locally. Log or return the chosen identity when selection affects correctness, cost, or reproducibility.

Test equal-primary-key cases, different casing, missing metadata, and reordered input. A selection algorithm should return the same answer when the candidate set is identical but iteration order changes.

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…