SkillTrust

← All skills

prefer-set-has

100 / 100 · Low risk

Fine to try.

By LedgerHQ/ledger-live (GitHub) · coding · 627 stars · scanned at commit fc34951

Prefer Set.has() over Array.includes() for constant allowlists/blocklists. Read when reviewing or writing membership checks in TypeScript files.

Works with any agent that supports SKILL.md skills.

What this skill can do

We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'prefer-set-has' ] || [ -L ~/.agents/skills/'prefer-set-has' ]; then echo 'A skill folder named prefer-set-has already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/LedgerHQ/ledger-live' "$d" && git -C "$d" checkout --quiet 'fc34951404624cf04905a2bacef9f44ac179f050' -- '.agents/skills/prefer-set-has' && mkdir -p ~/.agents/skills && cp -R "$d"/'.agents/skills/prefer-set-has' ~/.agents/skills/'prefer-set-has' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'prefer-set-has' ~/.claude/skills/'prefer-set-has' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for LedgerHQ/ledger-live shows the score of its lowest-scoring skill.

SkillTrust badge for LedgerHQ/ledger-live

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/LedgerHQ/ledger-live.svg)](https://zalavijaysinh.github.io/skilltrust/repos/LedgerHQ/ledger-live/)

Score history

DateVersionScore
2026-11-13fc34951100