π€ Modern AI Automation: MCP vs SKILL.md / agent.md (OpenCode)
A practical comparison for network & security automation engineers.
π― Introduction
As AI and Large Language Models (LLMs) evolve, the way we integrate them into real-world automation workflows is rapidly changing.
Two emerging patterns are gaining traction:
- Model Context Protocol (MCP) β Tool-driven, structured AI integration.
- SKILL.md / agent.md (OpenCode-style agents) β Prompt-driven, instruction-based AI behavior.
If you’re building AI-driven automation platforms (e.g., pyATS + Cisco + APIs + LLMs), choosing the right approach is critical for:
- Scalability
- Cost (token usage)
- Reliability
- Maintainability
In this blog, I’ll break down:
- What MCP and SKILL.md are
- Key differences
- Token usage implications
- When to use each
- Real-world architecture guidance
π§ What is MCP (Model Context Protocol)?
Model Context Protocol (MCP) is a structured way to connect LLMs to real tools and systems.
Instead of prompting the model to “figure things out,” you expose tools like:
- Python functions
- APIs (Cisco FMC, SD-WAN, DNA-C)
- Automation frameworks (pyATS)
π§ How MCP Works
- User sends a natural language request.
- LLM interprets intent.
- MCP routes the request to a tool/function.
- Tool executes (Python/API).
- Result is returned to the user.
π§ What is SKILL.md / agent.md (OpenCode Style)?
This is a prompt-engineering-based approach.
You define:
- Instructions
- Behavior
- Context
- Examples
β¦inside files like:
SKILL.mdagent.md
π§ How It Works
- LLM receives:
- Prompt
- Instructions (
SKILL.md) - Context
- LLM generates output directly.
- No strict tool execution layer.
It’s more flexible, but less structured.
βοΈ MCP vs SKILL.md β Core Comparison
| Feature | MCP | SKILL.md / agent.md |
|---|---|---|
| Architecture | Tool-based | Prompt-based |
| Execution | Real tools (Python/API) | LLM-generated |
| Reliability | High | Medium |
| Flexibility | Medium | High |
| Debugging | Easier | Harder |
| Determinism | Strong | Weak |
| Security | Controlled | Risk of hallucination |
| Best Use | Production systems | Prototyping / lightweight tasks |
π° Token Usage Comparison (CRITICAL)
This is where things get very important for real-world deployments.
πΉ SKILL.md / agent.md Token Usage
Each request includes:
- Full prompt
- Instructions
- Context
- Examples
Typical token consumption:
2,000 β 10,000 tokens per request
β Problems:
- Expensive
- Slower
- Repetitive context
πΉ MCP Token Usage
MCP minimizes token usage by:
- Sending only intent
- Offloading execution to tools
Typical token consumption:
200 β 1,000 tokens per request
β Benefits:
- Lower cost
- Faster execution
- Scalable
π Visualizing the Difference
SKILL.md Approach
User Request
β
LLM (Prompt + Context + Instructions)
β
Generated Output
Heavy token usage every time.
MCP Approach
User Request
β
LLM (Intent only)
β
Tool Call (Python/API)
β
Execution Result
Minimal tokens, real execution.
π§ͺ Real-World Example
Scenario: “Check firewall health and fix critical issues.”
πΉ SKILL.md Approach
LLM must:
- Parse logs
- Generate logic
- Suggest fixes
β Risks:
- Hallucination
- Inconsistent output
πΉ MCP Approach
LLM:
- Calls
run_pyats_health_check() - Calls
fix_firewall_policy()
Result:
- Accurate
- Repeatable
- Production-ready
β οΈ Key Limitations
β SKILL.md / agent.md
- High token cost
- Non-deterministic
- Hard to debug
- Risk of incorrect outputs
β MCP
- Requires backend development
- Needs tool integration
- Slightly more complex setup
π§ When to Use What?
β Use MCP when:
- Building production systems
- Integrating with Cisco APIs (FMC, SD-WAN)
- Using pyATS / automation frameworks
- Cost optimization matters
- Accuracy is critical
β Use SKILL.md when:
- Rapid prototyping
- Knowledge-based tasks
- Documentation generation
- Simple workflows
ποΈ Recommended Architecture (Best Practice)
For modern AI automation systems, use a hybrid approach:
LLM (Chat Interface)
β
MCP (Tool Orchestration Layer)
β
Python / APIs / pyATS / Cisco Platforms
Optional:
SKILL.mdfor the guidance layer- MCP for execution
π My Recommendation (From Real Experience)
Based on real-world automation (Cisco + AI + MCP):
MCP is the future for production AI systems.
Why?
- Lower token cost
- Higher reliability
- Better integration
- Scalable architecture
π₯ Key Takeaways
- SKILL.md = flexible but expensive and less reliable
- MCP = structured, scalable, and production-ready
- Token efficiency is a major deciding factor
- Hybrid approach = best of both worlds
π Conclusion
As AI evolves, the shift is clear:
From prompt engineering β to structured AI systems.
If you’re building:
- Network automation platforms
- Security automation (FMC, FTD, SIEM)
- AI-driven operations
β¦then MCP should be your foundation.