AGENT SKILL
add-capability-stage
Procedural workflow for adding a new sync capability to agenteq's artifacts sync.
- License 许可
- MIT
- 所属仓库
- sunchayn/agenteq
- 最近更新
- 2026-10-29
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- add-capability-stage
- description
- Procedural workflow for adding a new sync capability to agenteq's artifacts sync.
03 SKILL.md 正文
Adding a Capability Sync Stage
1. How sync works
artifactsManager.sync() builds a SyncPayload and pipes it through ordered stages, each async (payload: SyncPayload) => Promise<SyncPayload>.
- Capability not requested: stage returns
payloadunchanged. - Otherwise: stage returns
payload.withResults(...). - Never mutate a payload in place.
sync()owns stage order. Seeartifacts-manager/index.ts.
2. Steps
- Add the capability to
AgentCapabilityinsrc/modules/artifacts/enums/agent-capability.ts. - Capability needs only a directory or file path: add a string field on
Agent, likecommandsDir/skillsDir/guidelinesPath. Needs more shape: add a plain interface undersrc/modules/agents/types/, likeMcpConfiguration. - Add stage in
src/modules/artifacts/services/artifacts-manager/stages/. Namesync{Capability}Stage. Default export. Signature(payload: SyncPayload) => Promise<SyncPayload>. Guard withpayload.wantsCapability(...). - Call from
sync()inartifacts-manager/index.ts. Pass returned payload to next call.sync()only orders stages. No capability branching inside. - One stage per capability. Share one stage across capabilities only if logic is structurally identical, not merely similar.
3. Related Skills
- General TypeScript conventions: write-typescript-code
- Adding a supported agent: add-agent-definition
04 同仓库更多 Skills
writing-commit-messages
Conventions for writing commit messages in this repo.
★ 7
review-checklist
Checklist to run through before approving a pull request.
★ 7
writing-commit-messages
Conventions for writing commit messages in this repo.
★ 7
laravel-pint
Formats PHP code with Laravel Pint before a commit.
★ 7
laravel-pint
Formats PHP code with Laravel Pint before a commit.
★ 7
example-skill
Example skill synced by agenteq
★ 7