技能 编程开发 技能注册表索引与管理

技能注册表索引与管理

v20260906
skill-registry
该技能负责扫描所有用户和项目定义的技能(来自 SKILL.md 文件),创建全面的中央索引。它管理技能路径、触发器、描述和作用域,确保下游代理和委托者始终拥有可用功能的最新真相来源。这对于维护系统完整性和避免技能定义冗余至关重要。
获取技能
253 次下载
概览

Activation Contract

Use this skill after installing, removing, creating, moving, or renaming skills, or when a delegator needs a fresh skill index.

Hard Rules

  • The registry is an index, not a compiler or summary. SKILL.md remains the source of truth.
  • Do not generate or inject compact rules by default; preserve author intent by passing exact skill paths to subagents.
  • Always write .atl/skill-registry.md regardless of SDD persistence mode.
  • Save the registry to Engram as topic_key: skill-registry when available, with capture_prompt: false.
  • Skip sdd-*, _shared, and skill-registry; deduplicate by skill name, preferring project-level skills over user-level skills.
  • Add .atl/ to .gitignore when possible unless explicitly disabled.

Decision Gates

Situation Action
Same skill exists globally and in project Keep the project-level skill
Same skill exists in multiple global locations Keep the first source in scan order
No skills found Write an empty registry so agents stop searching blindly
Agent will delegate work Select matching registry rows and pass their SKILL.md paths

Execution Steps

  1. Scan all known user and project skill directories for */SKILL.md.
  2. Read frontmatter only as needed to extract name and description trigger text.
  3. Render .atl/skill-registry.md with scanned sources, registry contract, skill name, trigger/description, scope, and exact path.
  4. Persist to Engram when available using title: skill-registry, topic_key: skill-registry, type: config, and capture_prompt: false.
  5. Return the registry path, skill count, cache status, and whether Engram was updated.

Output Contract

Return:

  • Project name and .atl/skill-registry.md path.
  • Number of indexed skills.
  • Whether the cache was hit or regenerated.
  • Any skipped or duplicate skills when relevant.

References

  • docs/skill-style-guide.md — how skills should be authored before indexing.
  • skills/_shared/skill-resolver.md — how delegators use the index.
信息
Category 编程开发
Name skill-registry
版本 v20260906
大小 2.26KB
更新时间 2026-09-07
语言