example-layered-skill

example-layered-skill is a skill for Claude Code from dcc-mcp/dcc-mcp-core. It costs 70 tokens per session (732 once invoked), scanned A, original, MIT.

A reference skill showing how to organise a complex skill into separate tool, service, and utility layers. Tools handle inputs and outputs, services hold shared business logic, and utilities contain small reusable helpers.

In plain words
What is it for?
Using the example as a template for skills with multiple asset-management actions, shared services, reusable helpers, tool declarations, and an optional system prompt.
Why use it?
It gives developers a structure to follow when a skill becomes too large for one script, while keeping the example clearly separate from production code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Using the example as a template for skills with multiple asset-management actions, shared services, reusable helpers, tool declarations, and an optional system prompt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dcc-mcp/dcc-mcp-core/example-layered-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dcc-mcp/dcc-mcp-core --skill example-layered-skill
Clone the repo
git clone --depth 1 https://github.com/dcc-mcp/dcc-mcp-core

Made for: Claude Code.

Wrote 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.

agentmods badge for example-layered-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/example-layered-skill/github.svg)](https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/example-layered-skill)
Your own site
<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/example-layered-skill"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/example-layered-skill/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.

agentmods 80×15 button for example-layered-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/example-layered-skill"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/example-layered-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 732 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00732
Opus 5.5 $0.00028 $0.00293
Sonnet 5.5 $0.00014 $0.00146
Haiku 4.5 $0.00007 $0.00073

Measured 27d ago against content hash a62c73699a4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

example-layered-skill 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 27d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/__init__.py, scripts/create_asset.py, scripts/publish_asset.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

examples/skills/example-layered-skill/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Layered Skill Architecture — Reference

This skill demonstrates the internal layered organisation recommended for complex skills (see docs/guide/skills.md section "Complex Skill Architecture").

It is intentionally simple — three asset-management tools that share a small service object — so the structure, not the business logic, is the focus.

Layout

example-layered-skill/
├── SKILL.md            ← this file (frontmatter + prose)
├── tools.yaml          ← MCP tool declarations (sibling, per #356)
├── scripts/
│   ├── __init__.py
│   ├── create_asset.py  ← thin tool adapters (parse params, return envelope)
│   ├── publish_asset.py
│   ├── validate_asset.py
│   ├── services/       ← business logic (orchestration, error handling)
│   │   ├── __init__.py
│   │   └── asset_service.py
│   └── utils/          ← pure helpers (no I/O, no DCC calls, fully unit-testable)
│       ├── __init__.py
│       └── path_utils.py
└── prompts/
    └── system.md       ← optional system prompt sidecar

Layer responsibilities

Layer Responsibility Size guidance
tool scripts Parse JSON params from stdin, validate, delegate, return envelope. < 30 lines
services/ Orchestrate DCC commands. Easily unit-testable in isolation. Grows with feature
utils/ Pure functions — path normalisation, primitive helpers. No side effects. Grows with feature

Tools exposed

Tool Description
example_layered_skill__create_asset Create a new asset record
example_layered_skill__publish_asset Publish an existing asset
example_layered_skill__validate_asset Validate an asset against project rules (read-only)

Why a sibling tools.yaml

Per #356, tool declarations live in a sibling YAML referenced from metadata.dcc-mcp.tools so that SKILL.md frontmatter stays agentskills.io 1.0 compliant.

Read the full file on GitHub · 80 lines

Changes

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.

  1. 27d ago Changed · +5 lines a62c73699a4a
  2. 1mo ago First seen · 75 lines · 70 tokens per session scan A 600adfeac88e

Subscribe to this mod's changes

example-layered-skill is a skill published in the GitHub repository dcc-mcp/dcc-mcp-core (70 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 732 once invoked, about $0.0003 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-30.