Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/dhaupin/vantnpx agentmods add skills/dhaupin/vant/vant-skill-proposal-agentskills-chainingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dhaupin/vant/vant-skill-proposal-agentskills-chaining)<a href="https://agentmods.dev/skills/dhaupin/vant/vant-skill-proposal-agentskills-chaining"><img src="https://agentmods.dev/badge/skills/dhaupin/vant/vant-skill-proposal-agentskills-chaining/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dhaupin/vant/vant-skill-proposal-agentskills-chaining"><img src="https://agentmods.dev/badge/skills/dhaupin/vant/vant-skill-proposal-agentskills-chaining.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Memory Poisoning · line 60 Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.02248 |
| Opus 5.5 | $0.00019 | $0.00899 |
| Sonnet 5.5 | $0.00010 | $0.00450 |
| Haiku 4.5 | $0.00005 | $0.00225 |
Grade A, and why
proposal-agentskills-chaining scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Proposal: Skill Chaining for Agent Skills
Problem
Agent Skills spec relies on "agent decides which skills to load" - no explicit ordering.
Current behavior:
- Skills are independent
- Agent decides order (implicit, unpredictable)
- No guarantee skills run in any particular sequence
- Works sometimes, fails mysteriously
Why this matters:
- Test chains need unit → integration → e2e order
- Security: scan → review → audit order
- Deploy: test → build → deploy order
- Current spec: "agent decides" is unpredictable
- Without explicit order: failures are mysterious
- Can't debug: don't know which skill ran when
Solution
Add chain field to skill metadata:
---
name: chain-test
description: Complete test chain...
metadata:
chain:
- test-smoke
- test-unit
- test-contract
- test-e2e
---
### Fields
| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `chain` | array | Yes | - | Ordered list of skill names to load |
| `async` | boolean | No | `false` | Sequential (false) or parallel (true) |
| `continue_on_error` | boolean | No | `true` | Continue if skill fails |
| `timeout` | integer | No | 0 | Max time per skill (0=unlimited) |
| `max_depth` | integer | No | 10 | Max nesting depth for nested chains |
| `parallel_limit` | integer | No | 5 | Max parallel skills when async=true |
| `validate_on_load` | boolean | No | `true` | Verify referenced skills exist |
| `cleanup_after` | boolean | No | `false` | Reset state after chain completes |
### Execution Fields
| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `early_exit_on` | string | No | `none` | Exit on: `none` `failure` `success` `critical` |
| `continue_on_success` | boolean | No | `false` | Continue only if previous skill passed |
| `pass_state` | boolean | No | `true` | Pass outputs to next skill in chain |
| `retry_count` | integer | No | 1 | Run entire chain N times |
| `retry_until` | string | No | `none` | Repeat until: `none` `stable` `success` |
| `race_mode` | boolean | No | `false` | First skill to complete wins (parallel only) |
### Subfolder Restriction
All skills in `chain` must be same parent or lower (no escape up):
- ✅ `test/chain/SKILL.md` → `test/unit/SKILL.md` (same parent)
- ✅ `test/chain/SKILL.md` → `test/e2e/smoke/SKILL.md` (lower/deeper)
- ❌ `test/chain/SKILL.md` → `../audit/SKILL.md` (escape to parent)
- ❌ `/absolute/path` (not allowed)
This enforces hierarchy: chain at level N can only call skills at level N or deeper.
### Path Resolution
When chain references a skill by name:
1. Look in same subfolder first
2. Then look in subfolders at same level or deeper
3. Fail if skill not found (if validate_on_load: true)
### Output Format
Each skill in chain should return standard output:
```yaml
output: status: success | failure | critical result: "...description..." errors: [] metrics: {}
status: outcome for chain decisionresult: human-readable summaryerrors: array of issues foundmetrics: timing, counts, etc.
State Passing
When pass_state: true, chain passes to next skill:
chain_state: previous_outputs: [] accumulated_errors: [] total_metrics: {}
- Previous skills' outputs available to next skill
- Errors accumulate across chain
- Metrics merge (sum/count)
Chain Calls Chain
Chains can call other chains (with max_depth limit):
- ✅
chain: [chain-test, chain-security] - With depth limit to prevent infinite recursion
Async Flag Explanation
async |
Behavior | Use Case |
|---|---|---|
false (default) |
Sequential: A → B → C | Dependent skills, ordered workflows |
true |
Parallel: Load all at once | Independent skills, maximum speed |
Default is sequential (false) because:
- Most workflows need order (test before deploy)
- Less surprising behavior
- Explicit beats implicit
- Can opt-in to parallel if needed
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 14d ago Changed · -31 lines 0ebbdc3a76c5
- 2mo ago First seen · 310 lines · 48 tokens per session scan A 44584bf351ab
proposal-agentskills-chaining is a skill published in the GitHub repository dhaupin/vant (16 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 2,248 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
proposal-agentskills-chaining compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| proposal-agentskills-chainingdhaupin/vant | Skill | 16 | yesterday | MIT | A | 48 | Claude Code, Codex |
| pr-writing-reviewevalstate/fast-agent | Skill | 4.0k | 3d ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| session-investigatorevalstate/fast-agent | Skill | 4.0k | 3d ago | Apache-2.0 | A | 68 | Claude Code, Codex |
| fast-agent-designevalstate/fast-agent | Skill | 4.0k | 3d ago | Apache-2.0 | A | 52 | Claude Code |
| rn-device-controlLykhoyda/rn-dev-agent | Skill | 20 | 19d ago | MIT | A | 98 | Claude Code |
| rn-feature-developmentLykhoyda/rn-dev-agent | Skill | 20 | 19d ago | MIT | A | 86 | Claude Code |
| rn-testingLykhoyda/rn-dev-agent | Skill | 20 | 19d ago | MIT | A | 106 | Claude Code |