Core Components of AI Coding Agents: Skills, MCP, Workflows, Rules, and Memory

    This article breaks down five core components of AI coding agents—Skills, the Model Context Protocol (MCP), Workflows, Rules, and Memories—and explains why they are often confused. It clarifies the distinct abstraction layer each one occupies, how they collaborate during execution, and offers a practical four-question framework for choosing the right component when designing reliable agent architectures.

    1. Why These Concepts Are Easy to Confuse

    In the documentation for AI coding tools and general-purpose agent platforms, Skills, the Model Context Protocol (MCP), Workflows, Rules, and Memories almost always appear together. The confusion does not come from missing definitions. It comes from the fact that these five components sit at different abstraction layers: some describe how capabilities are packaged, some describe how external systems are connected, some describe how steps are fixed, some describe how behavior is constrained, and some describe how historical information is reused. Comparing them on a single dimension inevitably creates ambiguity.

    It is also worth noting that AI coding is just one vertical form of an agent. Any automation system that requires multi-step reasoning, tool invocation, and state maintenance will reuse this same component system. Understanding the boundaries between these components is therefore a prerequisite for designing a reliable agent architecture.

    2. Skills: Modular Capability Packages Triggered Semantically

    A Skill is a modular component that packages domain expertise and execution strategy. It typically consists of three parts: a structured metadata description, executable operational logic, and optional bundled resources such as templates, examples, scripts, and reference material. Its defining feature is how it is triggered—at runtime, it is loaded automatically through semantic matching against user intent, rather than being hard-coded by the developer.

    In essence, the body of a Skill is still prompt engineering, but with an emphasis on engineering discipline: an explicit statement of when it applies, step-by-step instructions, positive and negative examples, and a list of required tools (which may include external tools connected through a standard protocol). The loading mechanism usually follows a progressive disclosure approach: a short capability summary is injected first, and the full body is loaded only after a match, which keeps context overhead under control.

    A typical scenario is “generating a visualization report page.” The Skill defines the page structure, color scheme and interaction constraints, data aggregation rules, and exception-handling strategy, and provides a reusable page skeleton. Developers do not have to restate these preferences every time, and the model can consistently produce results in a uniform style.

    Practical guidelines for writing Skills include: keep a single responsibility; describe “when to use it” rather than “what it is”; externalize volatile business parameters; and provide verifiable completion criteria for key steps.

    3. Connector Protocol: A Standardized Access Layer for External Systems

    The connector protocol solves the problem of how an agent sees and operates on the external world. It defines a standard interaction specification between clients and servers, exposing the capabilities of databases, code repositories, defect tracking, object storage, message queues, logging services, and monitoring and alerting systems uniformly as callable tools, readable resources, and reusable prompt templates.

    Its value lies in decoupling: a tool provider only needs to implement the server once, and any client that supports the protocol can connect to it; the agent side does not need to write custom adapter code for each system. Security boundaries are equally clear—access control, auditing, and data minimization can be enforced centrally on the server side, avoiding credentials scattered across prompts.

    It is important to emphasize that the protocol itself carries no business knowledge. It defines what can be done, while when to do it, in what order, and what counts as done are still determined jointly by Skills, Rules, and Workflows.

    4. Workflows: Deterministic Process Orchestration

    A Workflow turns a multi-step task into a predictable orchestration structure. Common forms include sequential execution, conditional branching, parallel fan-out with result aggregation, loop retries, and human approval nodes. Its fundamental difference from a Skill lies in the source of determinism: a Skill relies on the model’s semantic judgment to decide the path, while a Workflow has its path decided by code or configuration.

    This makes the selection criteria relatively clear: chains with stable steps and decision conditions, a need for auditing and replay, and sensitivity to latency and cost are well suited to Workflows; exploratory tasks with open-ended paths that require on-the-spot judgment are better served by Skills plus tools. In engineering practice, a hybrid model is more common: use a Workflow to build the main skeleton and embed Skill invocations inside certain nodes, balancing controllability and flexibility.

    5. Rules: Always-On Behavioral Constraints

    Rules are a persistent set of constraints. They do not depend on semantic triggering and remain in effect throughout an entire session or project lifecycle. They typically carry coding standards, directory and naming conventions, dependency management policies, paths that must not be touched, and commit and review requirements.

    The key difference between Rules and Skills is scope and how they take effect: a Skill is “a method loaded only when needed,” while a Rule is “a bottom line that must never be violated.” Putting security policies and compliance requirements in Rules rather than Skills significantly reduces the chance that they are bypassed or forgotten. Rules should stay concise and decidable; vague value statements cannot be translated into stable behavior.

    6. Memories: State Accumulated Across Sessions

    Memories address continuity along the time dimension. They are generally divided into short-term context, project-level long-term facts, and experience records archived by task. They allow an agent to carry over existing decisions, user preferences, and pitfalls already encountered into new sessions, reducing repeated confirmation.

    Three points need attention in practice: writes should have selection criteria to avoid noise pollution; reads should recall by relevance rather than injecting everything, to control context usage; and sensitive information should be redacted or isolated by permission. Memories and Rules are easy to confuse—the way to tell them apart is to check whether the content changes over time: what gets updated is a Memory, and what stays constant is a Rule.

    7. How the Five Collaborate and How to Choose

    A complete execution often goes like this: Rules draw the boundaries, Memories provide history and preferences, a Workflow or Skill determines the path forward, external systems are called through the connector protocol along that path, and key conclusions produced are written back into Memories.

    The selection can be reduced to four questions: Do you need fixed steps? (If yes, use a Workflow.) Do you need to access external systems? (If yes, connect a standard protocol.) Do you need a reusable domain method? (If yes, package a Skill.) Do you need long-term invariant constraints or cross-session facts? (These correspond to Rules and Memories respectively.) Once these four questions are clear, most of the conceptual entanglement in agent architecture design naturally dissolves.