@atheory-ai/skillex

中文文档
0.11.1发布于 2026/10/23Apache-2.0零依赖构建来源已验证近 30 天下载 3530

Skill management for AI agents in Node.js projects

原始使用文档
文档目录9 节
  1. What Skillex does
  2. Recommended install
  3. Node dev dependency
  4. Experimental downstream MCP broker
  5. Quick start
  6. Example workflow
  7. Packs
  8. Why this exists
  9. Repository

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.yaml with 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.md instructions for agents that cannot use MCP directly

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/skillex

GitHub 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 init

Rebuild the local skill index:

skillex refresh

Query the skills that apply to a file:

skillex query --path packages/app-a/src/auth.ts

Query by topic, tag, or package:

skillex query --topic auth
skillex query --tags migration,breaking-change
skillex query --package @acme/foo

Use 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

  1. Add repo skills in skills/ and configure scopes in skillex.json
  2. Run skillex refresh after changing skills/, configuration, packs, or installed dependencies. A running MCP server updates project skill directories already in the index, such as .cursor/skills, without another refresh
  3. 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.md
name: 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: boundary

Projects 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

版本与发布记录

@atheory-ai/skillex 共发布 12 个版本,首次发布于 2026/04/07;过去 12 个月发布了 12 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.11.1latest2026/10/2315 天前
0.11.02026/10/1721 天前
0.10.02026/10/031 个月前
0.9.12026/09/301 个月前
0.9.02026/09/151 个月前
0.8.32026/07/313 个月前

关于 @atheory-ai/skillex 的常见问题

@atheory-ai/skillex 是什么?

Skill management for AI agents in Node.js projects

如何安装 @atheory-ai/skillex?

在项目目录运行 npm install @atheory-ai/skillex,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 skillex,可以用 npx skillex 直接运行。

@atheory-ai/skillex 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/atheory-ai__skillex 是否存在。

@atheory-ai/skillex 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@atheory-ai/skillex 可以商用吗?

@atheory-ai/skillex 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@atheory-ai/skillex 的下载量有多少?

根据 npm 官方下载统计,@atheory-ai/skillex 在 2026/10/07 – 2026/11/05 这 30 天内被下载 3,530 次,日均约 118 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@atheory-ai/skillex 还在维护吗?

最新版本 0.11.1 发布于 2026/10/23(15 天前);至今共发布 12 个版本,其中过去 12 个月发布了 12 个;首次发布于 2026/04/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。