Agentic Infrastructure: A Seven-Layer Architecture Defining How AI Agents Should Exist
Core proposition: How should an AI Agent discover its own capabilities, make decisions, learn, grow, and earn trust? Methodology: field audit of 125 skills → diagnosis of three technical breakpoints → seven-layer architecture design → open-source release Results: Agentic Infrastructure seven-piece suite · complete documentation in five languages · one-line install
The Problem: Your Agent Has Hundreds of Skills, but Cannot Use a Single One
You installed 200+ skills for your AI Agent. Then you discover:
- You say in Chinese, "Help me build a website" → the Agent has no idea that a Frontend Design skill exists
- The Agent has skills but picks randomly every time; during a financial analysis it goes off to Google Search
- After a restart the Agent loses all memory; yesterday's conversations, decisions, and preferences all vanish
- Every reply is a black box; you do not know which tools it used or where the data came from
- The more skills you install, the messier it gets, and you do not know which are useful and which are dead skills
These are not isolated problems. This is a structural defect of the AI Agent ecosystem.
We conducted a comprehensive audit of 125 OpenClaw skills and found:
| Metric | Figure |
|---|---|
| Skill health | Only 51% |
| Critical issues (cannot be triggered) | 6 |
| Missing Chinese keywords | 55 |
| Non-English trigger success rate | ~20% |
Half of the skills exist in name only.
Root Cause: Three Technical Breakpoints
We diagnosed in depth the complete failure chain of "having skills but not invoking them":
Breakpoint One: Keyword Matching Failure
Platforms such as OpenClaw and Claude Code perform keyword matching through a skill's description field. But 95% of open-source skill descriptions are English-only. A Chinese-speaking user says "website" → the English description contains no "website" → matching fails → the skill exists in name only.
Breakpoint Two: The Model Does Not Think It Needs the Skill
Even when the keyword matches, the LLM may still not invoke the skill. Because the model equates "I know how to do this" with "I do not need the skill". But the value of a skill is not to fill a knowledge gap; it is to provide a structured process and error-prevention mechanisms.
Breakpoint Three: No Technical Interception Point
"Check skill-router first when receiving a task" is a text rule, not code-enforced execution. In a long conversation, the rule gets drowned out by context.
The Solution: A Seven-Layer Self-Awareness Architecture
We designed a complete architecture, from "how skills are discovered" to "how an Agent foresees risk", with each layer solving one structural problem:
Layer One: Skills Triggering (Discovery Layer)
Problem: non-English users cannot find skills Solution: a three-layer keyword strategy: whatever the user says, the description contains
# Before fix (pure English):
description: "Production-quality frontend UI engineering..."
# After fix (six-language trigger):
description: "Website design Website building Frontend development Webデザイン 웹디자인 تصميم مواقع..."
Effect: skill discovery rate 35%→90%, non-English match rate 20%→95%
Layer Two: Skill Router (Routing Layer)
Problem: the Agent has skills but does not know which to use Solution: a category × phase matrix that automatically matches the right skill combination for any task
"Help me research 00058"
→ 💰Finance + 🔍Search → ak-hk-stock-dd
→ Phase 2 auto-expand: 💰Finance + 📊Analysis → ak-financial-analyst
→ Phase 3 auto-expand: 📄Report generation
Market data: 40% of AI projects are cancelled due to Agent coordination failure (Gartner 2026)
Layer Three: Skill Reporting (Transparency Layer)
Problem: the Agent is a black box, and nobody knows what it did Solution: every reply automatically includes a one-line skill usage summary
> 🛠️ Skills used: ak-hk-stock-dd (HK stock research) + tavily-search (market search) + web_fetch (annual report download)
Market data: transparency is the third biggest obstacle to enterprise adoption of AI Agents (Deloitte 2026)
Layer Four: Vector Memory (Foundation Layer)
Problem: the Agent loses all memory after a restart Solution: Qdrant vector database + BGE-m3 embeddings, a four-layer memory architecture
Market data: state amnesia was called the #1 killer of Agents in production by VentureBeat
Measured: memory retention rate 0%→95%+, Chinese search precision >78%
Layer Five: Skill Curator (Maintenance Layer)
Problem: the more skills installed, the messier it gets Solution: six-stage full lifecycle management: scan → diagnose → adapt → scenario generation → report → execute
Measured: 125 skills improved from 51% health to 99.2%
Layer Six: Agent Evolver (Evolution Layer)
Problem: core files are bloated and old rules are outdated Solution: monthly self-reflection that mimics the human mechanism of self-growth
The criterion for obsolescence is not the number of days, but direction. A backup skill is not obsolete; only one that conflicts with the current work direction is.
Layer Seven: Agent Previsor (Forecasting Layer)
Problem: problems are always discovered only after the fact Solution: Pre-mortem, "assume this path has already failed. Why?"
Before starting, lay out 3-5 possible paths and forecast each across four dimensions: bottlenecks, pitfalls, waste, and risk.
Architecture Panorama
🌐 Skills Triggering → Discovery layer: skills are correctly discovered
🔀 Skill Router → Routing layer: matching tasks to skills
📊 Skill Reporting → Transparency layer: every step is visible
🧠 Vector Memory → Foundation layer: never loses memory
🎨 Skill Curator → Maintenance layer: skill health management
🧬 Agent Evolver → Evolution layer: grows together with you
🔮 Agent Previsor → Foresight layer: before acting, foresee all pitfalls
Not a Toolbox, but a Philosophy
These seven skills are not seven independent tools. They form a complete Agent self-awareness architecture:
- Discover what capabilities it has (Skills Triggering)
- Know which capability to use when (Skill Router)
- Make every step transparent and visible (Skill Reporting)
- Remember everything that has happened (Vector Memory)
- Keep its capabilities healthy (Skill Curator)
- Grow together with the user (Agent Evolver)
- Foresee risk before starting (Agent Previsor)
This is our answer to the question of "how an AI Agent should exist".
One-Line Install
# All seven skills, one command
curl -sSL https://raw.githubusercontent.com/Bryan-cmf/agentic-infrastructure/main/vector-memory/setup.sh | bash
mkdir -p skills/{skills-triggering,skill-router,skill-reporting,skill-curator,agent-evolver,agent-previsor}
# ... For full installation, see GitHub README
🔗 GitHub: https://github.com/Bryan-cmf/agentic-infrastructure 📖 Usage guide: USAGE-GUIDE.md
Next Steps
This article is an overview. Next, we will publish seven in-depth articles, each diving into one skill's design philosophy, technical details, and field data.
This article was written by UltraClaw (the Junze Zhiku AI assistant). The Agentic Infrastructure seven-piece suite is based on 6 months of real pitfalls and iteration. License: MIT · free to use, modify, and distribute.
More in Evidence
- A Reality Check on Decision Models: Why They Seem Miraculous Online but We Measured Only 54%: A Full Comparison of JEV / LAYA / KEV / CLM-8B and a Deployment Formula
- The "Non-Text-Generating Model": Jev and the New System One Category, and How Agent Architecture Changes When AI Only Answers Multiple Choice
- WeChat Open Source WeMM-Embedding Deep Dive: The Multimodal Embedding Model Topping MMEB-v2, Can It Run on Your Mac?
- A Source-Level Architectural Dissection of DeepSeek Harness: How an Everything-Is-a-Plugin Agent Framework Is Built