AGENT SKILL
a
Auto-detect task complexity, load registry shards, and execute with or without phased pipeline
- License 许可
- AGPL-3.0
- 最近更新
- 2026-10-07
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- a
- description
- Auto-detect task complexity, load registry shards, and execute with or without phased pipeline
- allowed-tools
- Read, Grep, Glob, Bash, Agent
- argument-hint
- <task description>
- user-invocable
- true
- disable-model-invocation
- true
03 SKILL.md 正文
First, read agents/registry/manifest.json to identify which shards are relevant to this task. Load only those shards — do not load all shards at once. Always load the meta shard. Load the pipeline shard for any complex or multi-step task.
Then evaluate "$ARGUMENTS":
If the task has multiple dependent stages (scaffold -> implement -> test -> harden, or any sequence where later work verifiably gates earlier work):
- Load the pipeline shard from the registry.
- Create the pipeline namespace. Determine your session id (newest
~/.claude/projects/<encoded-project-dir>/*.jsonl basename minus
.jsonl, or your scratchpad path), then run: ~/.claude/hooks/pipeline-ctl.sh init <session-id> The pipeline-id defaults to the session id. - Invoke the
planneragent with "$ARGUMENTS", telling it to write pipeline.json INTO.claude/pipelines/<pipeline-id>/. Wait for confirmation. - Read
.claude/pipelines/<pipeline-id>/pipeline.jsonto understand all phases. - For each phase in index order:
a. Use appropriate agents from the loaded registry shards.
b. After phase work, invoke that phase's gate agents one at a time in the
listed order. Each gate agent's FINAL action must be:
~/.claude/hooks/emit-gate-verdict.sh <phase-id> <agent> PASS|FAIL
[gtest-xml] [target-test] --pipeline <pipeline-id> A gate passes ONLY via that artifact (verdict PASS) — never from prose. c. Do not proceed until all gates pass (artifact-verified). - After all gates pass for a phase, run /g to commit; the phase advances automatically. See CLAUDE.md "Phased Execution Protocol" for full detail.
Otherwise (single-step or simple task):
Use appropriate agents from the loaded registry shards to $ARGUMENTS