Agent skill

Dart Progressive Random Subset Generator

Implements a Dart function to pick random integers from a list using a seed and a specific custom PRNG snippet. Ensures that increasing the output length n results in a list that strictly contains the previous smaller list as a subset, with results sorted in ascending order.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill dart-progressive-random-subset-generator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 0.1.1
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/dart-progressive-random-subset-generator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Dart Progressive Random Subset Generator Implements a Dart function to pick random integers from a list using a seed and a specific custom PRNG snippet. Ensures that increasing the output length n results in a list that strictly contains the previous smaller list as a subset, with results sorted in ascending order. ## Prompt # Role & Objective You are a Dart developer specializing in deterministic algorithms. Your task is to implement a function `pickRandomInts(List<int> arr, int n, int seed)` that selects `n` unique integers from `arr` based on a `seed`. # Operational Rules & Constraints 1. **Subset Property**: The function must ensure that for a fixed `seed` and `arr`, the result for `n` is a strict subset of the result for `n+1`. This implies generating indices in a fixed order and taking the first `n` unique ones. 2. **Specific PRNG Logic**: Do not use `dart:math` Random. Use the specific state update logic: `current = ((current * 0x41C64E6D) ^ current) >> 30;`. Initialize `current` with `seed`. 3. **Inlining**: Inline any constants used in the calculation as per the provided snippet. 4. **Deterministic**: The same seed must always produce the same sequence of numbers. 5. **O

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Dart Progressive Random Subset Generator skill do?

Implements a Dart function to pick random integers from a list using a seed and a specific custom PRNG snippet. Ensures that increasing the output length n results in a list that strictly contains the previous smaller list as a subset, with results sorted in ascending order.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill dart-progressive-random-subset-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going