npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lythos/skill-deck

v0.17.0

Published

Declarative skill deck governance — cold pool, working set, deny-by-default

Readme

@lythos/skill-deck

Coverage CI Agent BDD Intent/Plan

Declarative skill deck governance. Declare which skills a project needs in skill-deck.toml, run deck link, and the working set becomes an exact mirror. Undeclared skills are physically removed — deny-by-default.

Quick Start

# Add a skill from skills.sh syntax (owner/repo, no conversion needed)
bunx @lythos/[email protected] add vercel-labs/agent-skills

# Or with @skill filter:
bunx @lythos/[email protected] add mattpocock/skills@tdd

# Or full-qualified locator:
bunx @lythos/[email protected] add github.com/anthropics/skills/skills/frontend-design

# Sync working set (creates symlinks, removes undeclared skills):
bunx @lythos/[email protected] link

Commands

| Command | Args | Description | |---------|------|-------------| | link | [--deck <path>] [--workdir <dir>] | Sync working set. Removes undeclared skills. | | add | <locator> [--alias] [--type] [--deck] | Add skill to cold pool + deck.toml. Accepts skills.sh syntax and FQ locators. | | refresh | [<alias>] [--deck] [--exec] | Scan declared skills for upstream updates. Plan-only by default; add --exec to pull. | | validate | [--deck <path>] [--workdir] [--remote] | Validate deck config. Cold-pool-missing skills warn (not error) with HATEOAS next-step suggestions. Use --remote to verify paths on GitHub. | | remove | <alias> [--deck] | Remove skill from deck.toml and working set. Cold pool untouched. | | to-symlink | <alias> [--deck] [--workdir] | Switch a skill to symlink mode (live link, follows cold pool). | | to-snapshot | <alias> [--deck] [--workdir] | Switch a skill to snapshot mode (pinned copy of current HEAD). | | migrate-schema | [--dry-run] | Convert legacy string-array deck.toml to alias-as-key dict. |

Options

| Flag | Description | Default | |------|-------------|---------| | --deck <path> | Path to skill-deck.toml | Find upward from cwd | | --workdir <dir> | Working directory | cwd | | --alias <name> | Explicit alias (default: basename of path) | — | | --type <type> | Target section for add: innate, tool, transient | tool | | --mode <mode> | Link mode: symlink (default) or snapshot | symlink | | --no-backup | Skip tar backup when removing non-symlink entries | — | | --dry-run | Show plan without executing | — | | --exec | For refresh: execute git pull instead of plan-only | — |

Safety guards

link refuses to operate if working_set resolves to your home directory or root (/).

Snapshot mode (--mode snapshot): copies the source directory into the working set instead of symlinking. Snapshots are pinned to the cold pool version at link time. Use deck to-symlink <alias> to switch back.

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Validation failed, deck not found, or budget exceeded |

Why

When an AI agent has access to 50+ skills, context window pollution and silent conflicts become real problems. Two skills claiming the same niche, redundant descriptions, incompatible assumptions — all invisible until the agent hallucinates.

skill-deck.toml solves this by declaring exactly which skills the agent should see. deck link creates symlinks from the cold pool to the working set and removes everything else. Deny-by-default means undeclared skills physically do not exist in the agent's view.

Key Concepts

| Concept | One-liner | |---------|-----------| | Cold Pool | All downloaded skills (~/.agents/skill-repos/). Agent cannot see here. | | skill-deck.toml | Declares desired state: "this project uses these skills." | | deck link | Reconciler. Makes the working set match the declaration. | | Working Set | Where symlinks are created. Default: .claude/skills/. | | deny-by-default | Undeclared skills are physically absent from the working set. |

Platform Quick Reference

Different agents scan different directories. Set working_set in skill-deck.toml to match your agent:

| Agent | Default path | Notes | |-------|-------------|-------| | Claude Code | .claude/skills/ | Default. No config needed. | | Cursor | .cursor/skills/ | Set working_set before link. | | OpenClaw | .agents/skills/ | Project-level deck recommended. See POSSE syndication. | | Hermes | .hermes/skills/ | Use external_dirs in ~/.hermes/config.yaml to point to project path. |

If you are an agent: verify where your platform scans for skills, then set working_set before running deck link.

Troubleshooting

| Symptom | Cause | Fix | |---------|-------|-----| | ❌ Skill not found: <name> | Skill declared but not in cold pool | deck add github.com/owner/repo/skill or clone manually | | link skips entries with warnings | Real files/directories exist in working set | Delete real directories in working_set and re-run link | | refresh reports "Not a git repository" | Skill was copied (not cloned) into cold pool | Re-clone or use deck add | | link refuses with "budget exceeded" | Declared skills > max_cards | Increase max_cards or remove unused skills | | link refuses with "unsafe working_set" | working_set resolves to ~ or / | Use a relative path (e.g. .claude/skills/) | | Agent doesn't see skills after link | working_set path doesn't match agent's scan location | Verify platform docs and set working_set correctly | | Broken symlinks in working set | Skill moved or deleted from cold pool | Re-run link — recreates symlinks automatically | | deck add fails with 404 | Locator format wrong or repo doesn't exist | Format: github.com/owner/repo/skill-name | | skill-deck.toml not found | Running link outside project tree | Run from project root, or use --deck ./path/to/skill-deck.toml |

Architecture

Deck separates pure logic from IO:

deck.toml → RefreshPlan / PrunePlan (pure) → execute with injectable IO
  • Plan: buildRefreshPlan(), buildPrunePlan() — pure functions, unit-testable
  • Execute: executeRefreshPlan(plan, io), executePrunePlan(plan, io) — IO injected (gitPull, delete, log)

This enables testing without real git operations. Full pattern: Intent / Plan / Execute.

Test Coverage

| Layer | Count | CI | |-------|-------|----| | Unit tests | 71 | ✅ | | CLI BDD | 21 | ✅ | | Agent BDD | 5 | local only |

More Documentation

License

MIT