Agent skill

Universe Preselection

by SilvioBaratto in SilvioBaratto/optimizer

Filter the full DB universe (~8898 names) down to a tractable candidate set using liquidity, factor-score, drop-correlated and sector-cap enums before optimization.

Custom licenceAuto-check passed

Install Universe Preselection

skills CLI
$ npx skills add SilvioBaratto/optimizer --skill universe-preselection -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SilvioBaratto/optimizer universe-preselection --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SilvioBaratto/optimizer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/fund/src/fund/skills/universe-preselection .claude/skills/universe-preselection && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
universe-preselection
GitHub stars
176
Token cost
~412 tokens
SKILL.md length
167 words
Files
2
Skills in repo
10
Repo updated
First seen
Licence
Custom licence

At a glance

Filter the full DB universe (~8898 names) down to a tractable candidate set using liquidity, factor-score, drop-correlated and sector-cap enums before optimization.

  • Works in 4 steps: Choose filters from the ConstraintSet +… → Call universe_filter(criteria) for the… → Call estimate_moments(returns_asof,… → …
  • The allocator must scope the universe for a run
  • SKILL.md covers When to use, Load-bearing rule, Procedure and Boundaries, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Universe Preselection is an agent skill from SilvioBaratto/optimizer. Filter the full DB universe (~8898 names) down to a tractable candidate set using liquidity, factor-score, drop-correlated and sector-cap enums before optimization. Use when the allocator must scope the universe for a run. Emits filter enums and thresholds only — never a hand-picked ticker list and never weights.

Its SKILL.md is about 410 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

The repository describes itself as: Quantitative portfolio construction and optimization platform built on skfolio and scikit-learn.

When your agent uses it

  • The allocator must scope the universe for a run

Example prompts

  • “/universe-preselection”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Choose filters from the ConstraintSet + regime (see reference.md): liquidity
  2. Call universe_filter(criteria) for the candidate list (big frames stay in the
  3. Call estimate_moments(returns_asof, universe, config) for mu/cov on the subset.
  4. Hand the candidate set + moments to optimization-objective-map.

What it can do on your machine

Read from SKILL.md and the folder at commit 63e897b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Universe Preselection loads about 412 tokens when it runs. Until then it costs about 84 tokens; SKILL.md has 167 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~84
When it runs · the whole SKILL.md, loaded when a task matches
~412

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 167 words (~412 tokens).

“The allocator's first step: shrink ~8898 names to a well-conditioned candidate set so the optimizer is stable. The LLM chooses the FILTERS; the pipeline applies them.”

— opening of SKILL.md by SilvioBaratto, Custom licence
name
universe-preselection

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in fund/src/fund/skills/universe-preselection of SilvioBaratto/optimizer.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 63e897b

Compare with similar skills

Universe Preselection next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Universe Preselection compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Universe Preselection this skillSilvioBaratto/optimizer176—~412Automated safety check: PassCustom licence
Filterzalando/skipper3.3k—~527Automated safety check: PassMIT
Git Branch Namingmakeplane/plane61k—~594Automated safety check: PassAGPL-3.0
Naming Conventionsthedaviddias/Front-End-Checklist74k—~481Automated safety check: PassMIT
Button Namethedaviddias/Front-End-Checklist74k—~488Automated safety check: PassMIT
Select Namethedaviddias/Front-End-Checklist74k—~451Automated safety check: PassMIT

Similar skills

  • Filter

    zalando/skipper

    Create or modify code in the filters package and all its sub-folders

    3.3k GitHub stars~527 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Git Branch Naming

    makeplane/plane

    Names a new Git branch with a type prefix, the lowercased work item ID and a short kebab-case description, so the ID can be extracted later from the branch name.

    61k GitHub stars~594 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Naming Conventions

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions.

    74k GitHub stars~481 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Button Name

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for buttons.

    74k GitHub stars~488 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Select Name

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for select elements.

    74k GitHub stars~451 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Naming

    gridaco/grida

    How to think about names in the Grida repo — not conventions, but what a name commits you to, reveals about the system, and costs to change.

    2.7k GitHub stars~2.5k tokensUpdated today
    Auto-check passed

More from SilvioBaratto/optimizer

All 10 skills in this repo
  • Yfinance

    SilvioBaratto/optimizer

    Load proactively whenever the user works with yfinance or Yahoo Finance data — pulling price history, fetching financials or analyst data, screening stocks / funds / ETFs, streaming real-time…

    176 GitHub stars~4k tokensUpdated 3 days ago
    Auto-check: notes
  • DB Context

    SilvioBaratto/optimizer

    Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions.

    176 GitHub stars~6.4k tokensUpdated 3 days ago
    Auto-check: notes
  • Fund Orchestration

    SilvioBaratto/optimizer

    Sequence the fund pipeline and delegate to the four subagents (economist, allocator, risk, executor).

    176 GitHub stars~635 tokensUpdated 3 days ago
    Auto-check passed
  • Optimization Objective Map

    SilvioBaratto/optimizer

    Map a chosen ConstraintSet.objective to the correct optimizer cone / risk-measure and factory config.

    176 GitHub stars~510 tokensUpdated 3 days ago
    Auto-check passed
  • Macro Regime Read

    SilvioBaratto/optimizer

    Read macro/FRED series from the DB and label the current market regime for the economist.

    176 GitHub stars~403 tokensUpdated 3 days ago
    Auto-check passed
  • Rebalancing Execution

    SilvioBaratto/optimizer

    Translate approved target weights into paper orders under a no-trade band and an L1 turnover penalty, then place them behind human approval.

    176 GitHub stars~425 tokensUpdated 3 days ago
    Auto-check passed

Questions about Universe Preselection

What does Universe Preselection do?

Filter the full DB universe (~8898 names) down to a tractable candidate set using liquidity, factor-score, drop-correlated and sector-cap enums before optimization. Universe Preselection is an agent skill from SilvioBaratto/optimizer. Filter the full DB universe (~8898 names) down to a tractable candidate set using liquidity, factor-score, drop-correlated and sector-cap enums before optimization.

When should I use Universe Preselection?

Universe Preselection fits situations like: the allocator must scope the universe for a run.

How do I install Universe Preselection in Claude Code?

Run `npx skills add SilvioBaratto/optimizer --skill universe-preselection -a claude-code`. Or copy the skill folder (fund/src/fund/skills/universe-preselection in SilvioBaratto/optimizer) into .claude/skills/universe-preselection in your project. Claude Code loads it when a task matches its description.

How do I install Universe Preselection in Codex?

Run `npx skills add SilvioBaratto/optimizer --skill universe-preselection -a codex`. Or copy the skill folder (fund/src/fund/skills/universe-preselection in SilvioBaratto/optimizer) into .agents/skills/universe-preselection in your project. Codex loads it when a task matches its description.

Can I use Universe Preselection in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SilvioBaratto/optimizer --skill universe-preselection -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/universe-preselection, .gemini/skills/universe-preselection, .github/skills/universe-preselection and .opencode/skills/universe-preselection in your project.

What does Universe Preselection need to run?

SKILL.md names no scripts, command-line tools or credentials: Universe Preselection is instructions for the agent only.

Does Universe Preselection access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Universe Preselection safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Universe Preselection use?

Universe Preselection has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Universe Preselection use?

About 412 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Universe Preselection?

Skills that share tags, products or a category with Universe Preselection: Filter (zalando/skipper, 3.3k stars), Git Branch Naming (makeplane/plane, 61k stars), Naming Conventions (thedaviddias/Front-End-Checklist, 74k stars) and Button Name (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Universe Preselection?

SilvioBaratto (a GitHub user) maintains it in SilvioBaratto/optimizer, which has 176 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.

Source: SilvioBaratto/optimizer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.