agent-tooling

Guides decisions between MCP servers, CLIs, Mermaid rendering, and skill-versus-agent boundaries.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/leonardoacosta/skills --skill agent-tooling-leonardoacosta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-tooling
Source: https://github.com/leonardoacosta/skills/tree/main/meta/skills/agent-tooling
Command: npx skills add https://github.com/leonardoacosta/skills --skill agent-tooling-leonardoacosta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When building agent-driven workflows, engineers repeatedly face three ambiguous tooling decisions: whether a new capability warrants an MCP server or just a CLI call, how to render Mermaid diagrams without silent syntax failures, and whether reusable behavior should ship as a skill or a dedicated agent. This Skill consolidates the decision criteria, anti-patterns, and gotchas for all three. ## Core Features & Use Cases - MCP Server Selection: Apply a five-criterion checklist (repeated need, stability, no duplication, security, performance) plus concrete anti-patterns before wiring up a new MCP server. - Mermaid Diagram Rendering: Use mmdc (mermaid-cli) as the sanctioned local renderer, with syntax rules covering <br/> vs \n, comments inside subgraphs, and edge-label special characters. - Skill vs Agent Mapping: Decide whether behavior belongs in an on-demand skill or a separately-dispatched agent with its own context window and tool scope. - Use Case: You are about to add an MCP server for a public API. The Skill's anti-pattern table tells you an unauthenticated API needs no standing connection — use WebFetch or a direct HTTP call instead. ## Quick Start Ask the agent whether a new capability should be an MCP server, a CLI call, a skill, or a dedicated agent, and follow the linked reference for that decision.

Frequently Asked Questions about agent-tooling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I add an MCP server instead of using a CLI?

Add an MCP server only when it is used in more than three sessions, actively maintained, does not duplicate an existing CLI like git or gh, uses env vars for auth, and adds under two seconds of startup time. Otherwise call the CLI directly via Bash.

How do I render Mermaid diagrams locally with mmdc?

Install @mermaid-js/mermaid-cli globally, then run mmdc with -i input.mmd and -o output.png or .svg. Set PUPPETEER_EXECUTABLE_PATH to the exact resolved chrome-headless-shell path, since shell globs do not expand inside env var assignments.

What is the difference between a skill and a dedicated agent?

A skill is on-demand knowledge loaded into an existing agent's context, while an agent is a separately-dispatched actor with its own context window and tool scope. Use a skill for reusable procedures; use an agent when the task needs isolation, a narrower toolset, or parallelism.

Why does my Mermaid diagram fail to parse inside a subgraph?

Percent-percent comments break inside subgraphs and cause JSON parse errors in some renderers. Delete nodes instead of commenting them out, and avoid HTML entities or emoji in edge labels.

When should I avoid stateDiagram-v2 in Mermaid?

Avoid stateDiagram-v2 when transition labels contain colons, parentheses, <br/>, or special characters, since its strict parser fails silently. Use flowchart LR with quoted edge labels instead, which handles all special characters.