技能 Library
- 作者仓库星标 236
- 作者仓库 armory
Package Library
Agent-native catalog and installer for all armory package types. Provides browsing, searching, installing, updating, syncing, and removing packages directly within an agent session.
Variables
- ARMORY_REPO:
Mathews-Tom/armory - ARMORY_BRANCH:
main - ARMORY_CATALOG_URL:
https://raw.githubusercontent.com/{ARMORY_REPO}/{ARMORY_BRANCH}/manifest.yaml - DEFAULT_INSTALL_DIR:
~/.claude/ - CATALOG_CACHE_PATH:
/tmp/armory-manifest.yaml - CATALOG_CACHE_TTL:
600(seconds)
Supported Package Types
| Type | Install Target | Method |
|---|---|---|
| skill | ~/.claude/skills/ |
Copy directory |
| agent | ~/.claude/agents/ |
Copy directory |
| hook | ~/.claude/hooks/ |
Copy directory |
| rule | ~/.claude/rules/ |
Body-only file |
| command | ~/.claude/commands/ |
Body-only file |
| utility | ~/.claude/utilities/ |
Copy + chmod +x |
| preset | ~/.claude/presets/ |
Copy directory |
Command Reference
| Command | Cookbook | Purpose |
|---|---|---|
/library list |
cookbook/list.md |
Show all packages with type, version, installed status, update available |
/library list --type <type> |
cookbook/list.md |
Filter listing by package type (skill, agent, hook, rule, etc.) |
/library use <name> |
cookbook/use.md |
Pull a package from armory (auto-detects type from manifest) |
/library search <keyword> |
cookbook/search.md |
Keyword search across all package types, names, and descriptions |
/library search --category <name> |
cookbook/search.md |
Filter search by category (development, review, security, etc.) |
/library sync |
cookbook/sync.md |
Re-pull all installed packages that have updates |
/library info <name> |
cookbook/info.md |
Show full detail for a package (type, version, tags, category) |
/library update |
cookbook/update.md |
Check all installed packages for version bumps (dry-run sync) |
/library remove <name> |
cookbook/remove.md |
Remove an installed package |
/library profiles |
cookbook/profiles.md |
Show available install profiles with package counts |
Cookbook Dispatch
User commands are routed to the corresponding cookbook file based on the subcommand. When a /library command is received, extract the subcommand (the first token after /library) and load the matching cookbook file from the cookbook/ directory relative to this skill. The cookbook file contains the full execution procedure for that operation.
For example, /library use commit-standards dispatches to cookbook/use.md with commit-standards as the package name argument. /library list --type agent dispatches to cookbook/list.md with --type agent as the filter.
If the subcommand does not match any known cookbook, report the error and list the valid subcommands from the table above.
Type Detection
When /library use <name> is called, determine the package type by searching all sections of the manifest (packages.skills, packages.agents, packages.hooks, etc.). The first section containing a matching name entry determines the type. Use the type to:
- Resolve the correct source path:
{type_dir}/{name}/ - Determine the install target:
~/.claude/{install_subdir}/ - Choose the install method: directory copy or body-only extraction
Behavioral Notes
- All bash operations must use absolute paths. Never
cdinto temp dirs. - Fetch uses a 3-tier fallback chain: sparse checkout, then
gh api, thencurl. Attempt each in order; proceed to the next only on failure. - Cache lives in
/tmp/with a 10-minute TTL. A missing cache file is treated as expired (triggers a re-fetch), not as an error. - The catalog is read from
manifest.yamlon GitHub (atARMORY_CATALOG_URL), not from a separate catalog file. This is the same manifest format used by the armory repository. - All package type sections share the same entry format:
name,version,description,path,source, plus optionaltags,category,difficulty.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @Mathews-Tom · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 ARMORYREPO: Mathews-Tom/armory ARMORYBRANCH: main ARMORYCATALOGURL: https://raw.githubusercontent.com/{ARMORYREPO}/{ARMORYBRANCH}/manifest.yaml
Type · Install Target · Method skill · ~/.claude/skills/ · Copy directory agent · ~/.claude/agents/ · Copy directory
Command · Cookbook · Purpose /library list · cookbook/list.md · Show all packages with type, version, installed status, update available /library list --type <type> · cookbook/list.md · Filter listing by package type (skill, agent, hook, rule, etc.)
User commands are routed to the corresponding cookbook file based on the subcommand. When a /library command is received, extract the subcommand (the first token after /library) and load the matching cookbook file from the cookbook/ directory relative to this…
When /library use <name> is called, determine the package type by searching all sections of the manifest (packages.skills, packages.agents, packages.hooks, etc.). The first section containing a matching name entry determines the type. Use the type to:
All bash operations must use absolute paths. Never cd into temp dirs. Fetch uses a 3-tier fallback chain: sparse checkout, then gh api, then curl. Attempt each in order; proceed to the next only on failure. Cache lives in /tmp/ with a 10-minute TTL. A missing…
# Package Library
Agent-native catalog and installer for all armory package types. Provides browsing, searching, installing, updating, syncing, and removing packages directly within an agent session.
## Variables
- **ARMORY_REPO**: `Mathews-Tom/armory`
- **ARMORY_BRANCH**: `main`
- **ARMORY_CATALOG_URL**: `https://raw.githubusercontent.com/{ARMORY_REPO}/{ARMORY_BRANCH}/manifest.yaml`
- **DEFAULT_INSTALL_DIR**: `~/.claude/`
- **CATALOG_CACHE_PATH**: `/tmp/armory-manifest.yaml`
- **CATALOG_CACHE_TTL**: `600` (seconds)
## Supported Package Types
| Type | Install Target | Method |
| ------- | ---------------------- | --------------- |
| skill | `~/.claude/skills/` | Copy directory |
| agent | `~/.claude/agents/` | Copy directory |
| hook | `~/.claude/hooks/` | Copy directory |
| rule | `~/.claude/rules/` | Body-only file |
| command | `~/.claude/commands/` | Body-only file |
| utility | `~/.claude/utilities/` | Copy + chmod +x |
| preset | `~/.claude/presets/` | Copy directory |
## Command Reference
| Command | Cookbook | Purpose |
| ----------------------------------- | ---------------------- | ------------------------------------------------------------------------ |
| `/library list` | `cookbook/list.md` | Show all packages with type, version, installed status, update available |
| `/library list --type <type>` | `cookbook/list.md` | Filter listing by package type (skill, agent, hook, rule, etc.) |
| `/library use <name>` | `cookbook/use.md` | Pull a package from armory (auto-detects type from manifest) |
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Variables → Supported Package Types → Command Reference → Cookbook Dispatch → Type Detection → Behavioral Notes
要点 -> ARMORYREPO · ARMORYBRANCH · ARMORYCATALOGURL · DEFAULTINSTALLDIR · CATALOGCACHEPATH · CATALOGCACHETTL
文件/命令 -> Mathews-Tom/armory · main · https://raw.githubusercontent.com/{ARMORYREPO}/{ARMORYBRANCH}/manifest.yaml · ~/.claude/ · /tmp/armory-manifest.yaml · 600 · ~/.claude/skills/ · ~/.claude/agents/
内容 SHA-256 -> 3d9108808b53
原文结构
适用与边界
原文中的明确线索
Mathews-Tom/armory、main、https://raw.githubusercontent.com/{ARMORYREPO}/{ARMORYBRANCH}/manifest.yaml、~/.claude/、/tmp/armory-manifest.yaml、600、~/.claude/skills/、~/.claude/agents/