@atheory-ai/skillex
v0.11.0
Published
Skill management for AI agents in Node.js projects
Maintainers
Readme
Skillex
Skill management for AI agents in polyglot projects.
Skillex helps agents load the right guidance for the code they are working on without dumping an entire repo's docs into context. It indexes repo skills, package skills, packs, scope rules, and installed package versions, then answers targeted queries in microseconds.
What Skillex does
- Resolves the right skills for a file path, package, topic, or tag
- Handles monorepos and multiple installed versions of the same package
- Separates public consumer skills from private maintainer skills
- Activates pack-shipped skills from project files, dependencies, and detectors
- Lets packages and Go modules ship
skillex/pack.yamlwith their code - Exposes the index through both MCP and a CLI fallback
- Can experimentally discover and invoke trusted downstream MCP capabilities without registering them individually with the host
- Generates
AGENTS.mdinstructions for agents that cannot use MCP directly
Recommended install
For cross-ecosystem use, install Skillex as a global platform utility. See the main project README for the universal installer.
Node dev dependency
Use this npm package when a Node.js project wants Skillex pinned as local dev tooling:
npm install --save-dev @atheory-ai/skillex
# or
pnpm add -D @atheory-ai/skillex
# or
yarn add -D @atheory-ai/skillexGitHub Releases are the canonical signed binaries. This package contains only a
wrapper, with no native payload or platform dependencies. Postinstall downloads
and SHA-256-verifies the archive from v<package-version>; runtime retries if
installation was offline or scripts were disabled, and verifies the cached archive
before extracting and executing a fresh binary.
Requires Node.js 18+ and tar (ZIP-capable tar is included in Windows 10+).
Supports macOS arm64/x64, Linux arm64/x64, and Windows x64. Downloads require HTTPS
access to GitHub and its asset CDN. Checksum verification does not validate cosign
signatures.
Set SKILLEX_CACHE_DIR to override the default $XDG_CACHE_HOME/skillex or
~/.cache/skillex archive cache. SKILLEX_SKIP_DOWNLOAD=1 skips postinstall only;
first use still acquires the release. SKILLEX_OFFLINE=1 forbids downloads and
requires a valid cache. Warm the cache online, or seed
<cache>/<package-version>/<platform>-<arch>/ with the matching canonical archive
and checksums.txt. Missing or corrupt offline archives fail clearly. Registry
access alone is insufficient for a first run. Cached releases survive removal of
node_modules; remove a version directory to evict it.
Experimental downstream MCP broker
Skillex 0.9.0 includes an explicitly opt-in downstream MCP capability broker. The host registers only Skillex; enabled projects can discover contextual MCP capabilities and have Skillex invoke the selected trusted server lazily. Existing skills-only projects are unchanged.
This broker and its authentication integrations are experimental. The protocol flows have automated conformance coverage, but interoperability is not certified for every MCP server, identity provider, or enterprise deployment. See the main project documentation for configuration, security boundaries, and the current support matrix.
Quick start
Initialize Skillex in your repository:
skillex initRebuild the local skill index:
skillex refreshQuery the skills that apply to a file:
skillex query --path packages/app-a/src/auth.tsQuery by topic, tag, or package:
skillex query --topic auth
skillex query --tags migration,breaking-change
skillex query --package @acme/fooUse a selected result to read only the guidance needed:
skillex query --path packages/app-a/src/auth.ts --search "session handling"
skillex read --ref <ref-from-query> --section <optional-section-id>query returns bounded discovery summaries. Narrow broad results before reading a
selected skill or section. --format content is retained for backward compatibility,
but is not the recommended agent workflow.
Example workflow
- Add repo skills in
skills/and configure scopes inskillex.json - Run
skillex refreshafter changingskills/, configuration, packs, or installed dependencies. A running MCP server updates project skill directories already in the index, such as.cursor/skills, without another refresh - Let your agent query, narrow, and read only the skills relevant to its current task
Packs
Packs are Skillex's ecosystem extension mechanism. A pack bundles skill files with activation rules and optional detectors:
skillex/
pack.yaml
usage.mdname: my-framework
version: 1.0.0
detectors:
my-framework:
matches:
- dependency:
source: npm-package
name: my-framework
skills:
- file: usage.md
activate-when:
detector: my-framework
scope: boundaryProjects can commit packs locally, and libraries can ship packs with their
package/module source. Go modules are supported through go.mod, local
replace, and vendor module roots; Skillex does not download dependencies
during refresh or query.
Why this exists
Without scoped skill retrieval, agents either get too little context or far too much of it. Skillex moves scope resolution into deterministic indexing so the model receives the small, correct slice of guidance for the current path and dependency boundary.
Repository
- Source: https://github.com/atheory-ai/skillex
- Documentation: https://github.com/atheory-ai/skillex/blob/main/README.md
