skills/creating-mcp-code-mode-skills/SKILL.md
A meta-skill for authoring high-performance, verifiable, long-running MCP skills using Code Mode. This skill blends Anthropic and OpenAI skill-authoring guidance with Code-Mode-first, MCP-backed execution, dynamic context discovery, and file-backed agent harnesses.
npx skillsauth add aufrank/agent-skills creating-mcp-code-mode-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill teaches how to author agent skills, not how to prompt models. You are designing deterministic scaffolding for a probabilistic system. Assume the model is capable. Favor constraints, structure, and files over prose.
The model reasons.
Code executes.
The filesystem remembers.
A Code Mode MCP skill is a closed-loop control system, not a function call.
If information is large, fragile, repetitive, or stateful, it does not belong in the context window.
Before you start skill creation, and if you have any questions about how to proceed, check the following references (you can examine the first line of the file to understand its contents before deciding whether to read it):
A skill is:
Every skill must clearly define:
Use metadata in frontmatter for custom attributes (one level deep, lists allowed). Preferred keys:
short-descriptionaudiencestabilityownertagsAvoid adding other top-level frontmatter keys; migrate them into metadata.
Follow the Agent Skills spec: optional frontmatter fields are license, compatibility, metadata, allowed-tools.
When code execution is available:
Models are more reliable at writing code than emitting fragile tool calls.
Static context is a liability.
Do NOT preload:
Instead:
Context must be discoverable, queryable, and discardable.
Dynamic context patterns (do these instead of dumping blobs into chat):
For long-running agents, files are the only reliable memory.
Anything that must survive:
must be written to disk.
Canonical artifacts:
plan.json — immutable intentprogress.txt — append-only logresults.json — structured outputs # you can use more output files than just results.json, and you should be thoughtful about clobberingerrors.log — diagnosticsMake examples cross-platform and low-friction:
text fences and Python one-liners over bash heredocs.<CODEX_HOME>, <REPO_ROOT>, <TOOL_HOME> instead of hard-coded paths.cd into the skill directory.Use gerund form to describe capability:
provisioning-infrastructuresyncing-databasesauditing-permissionsSkills describe process, not outcome.
SKILL.md
scripts/
references/
mcp_tools/
templates/
mcpc --json.mcpc <target> tools-get <tool-name> --json
All MCP interaction MUST go through mcpc. Use mcpc --help to learn the tool. All arguments to tool calls are bound via :=. session names must be quoted in powershell, '@session'.
Required properties:
--json output onlyjq or equivalentExample:
mcpc --json @session tools-call get_data id:="123" | jq '{id, status, summary}' > results.json
The model may then read only results.json.
plan.json, approvals, reportsGood references:
Bad references:
Each skill MUST define its own trust policy.
Defaults are a baseline only.
Skills SHOULD extend these rules.
Match freedom to task fragility and variability. Each level constrains context, reasoning, and tools.
Rule: Never mix freedom levels. Split workflows: decide → configure → execute.
Assume interruption. Design for restart:
If the agent restarts, it should know exactly where it is.
plan.jsonIf it matters, write it down.
Code Mode MCP skills move truth out of the model and into code, files, and structure. The model is a strategist — not a storage device.
tools
Build and execute modular DAG workflows for long-context processing using slice/map/reduce/recurse/compact/filter operators. Use for one-shot batch jobs, standalone map-reduce pipelines, or when the context-dag plugin is not installed. Trigger when input exceeds the model's context window, when reproducible logged pipelines are needed, or when multi-level recursive processing is required. If context-dag is installed, the plugin's bundled dag_runner.py provides the same capability with persistent artifact storage.
documentation
Write in Austin Frank's voice and style. Use this skill whenever generating text that should sound like Austin — strategy docs, charters, proposals, business cases, vision documents, staffing requests, stakeholder updates, cover letters, mission statements, org design documents, or any professional prose where the user wants Austin's distinctive voice. Also use when the user asks to review, edit, or improve a draft for voice consistency, or when they reference "my style", "my voice", "write like me", or "Austin's style".
tools
Use mcpc to interact with the Notion MCP server: connect sessions, search workspace content, fetch pages/databases, and run helper scripts for common Notion actions.
tools
Decide between a scripted workflow and an autonomous agent harness, then scaffold the chosen path. Use when scoping new agentic systems or tool integrations.