Core Concepts in AI Coding Tools Explained: Skills, MCP, Workflows, Rules, and Memories
This article breaks down five core concepts in AI coding tools—Skills, MCP, Workflows, Rules, and Memories—and explains how they differ in where capabilities come from, who controls execution, and where state is stored. It covers what each concept does, how they work together, and how to choose the right one for a given engineering scenario.
1. The Problem: The Engineering Cost of Confused Concepts
As intelligent coding tools spread quickly, five concepts keep appearing in documentation, community discussions, and product updates: Skills, the Model Context Protocol (MCP), Workflows, Rules, and Memories. Many developers and enterprise users, however, lump them together as “adding instructions to an AI” or “extending AI capabilities.” In practice, this leads to three common problems:
- One-off procedures get hardcoded into prompts, making them hard to reuse.
- External system integration logic is scattered across the codebase, so permissions and auditing cannot be consolidated.
- Long-term preferences are mixed with short-term context, causing inconsistent model output.
The key to separating these five concepts is not memorizing definitions but grasping three orthogonal dimensions: where capabilities come from, who decides what executes, and where state lives. Each concept is examined below.
2. Skills: Reusable Packages of Domain Expertise
A Skill is a modular capability component made up of three parts: a structured description, execution logic, and optional resources. It injects domain expertise and execution strategies into an agent and is triggered automatically based on semantics during interaction with the user or environment. It was first introduced by a cloud vendor in October 2025 and has since become a common industry approach.
From an engineering perspective, a Skill is essentially a constrained prompt. It tells the model which methods, steps, examples, and callable tools to follow for a certain type of task—including external tools exposed through the connection protocol. The value of a Skill is that it extracts “expert experience” from a conversation and turns it into an asset that can be versioned, reviewed, and shared.
A typical example: a data analysis team has already built report templates using spreadsheet files and wants the model to generate browser-viewable dashboard pages based on the existing format and data. The Skill content roughly contains four parts:
name: spreadsheet-to-dashboarddescription: Generate presentation dashboards from existing spreadsheet templates and data; triggered when the user mentions "report demo/dashboard"steps:1. Read the template file and identify headers, merged cells, and styles2. Extract the data region and infer types3. Generate page structure by mapping to the template4. Output a static page and self-check the rendered resultrules:- Preserve the original field order and naming- Keep numeric values to two decimal places; display empty values as "-"resources:- script: read_spreadsheet.py # parses spreadsheet content
The name and description determine “when it is selected,” the steps and rules determine “how it is done,” and the resource scripts handle deterministic computation. This layering lets the model focus on semantic judgment while delegating precise computation to code—a general practice for improving reliability.
3. MCP: A Unified Access Layer for External Systems and Tools
MCP is an open standard that lets agents discover and invoke external data sources and tools in a unified way. It reduces the adaptation between models and tools from N×M private integrations to a standardized N+M interface. Common capabilities include tool discovery, parameter schema declaration, resource reading, and sampling callbacks.
It is important to note that the protocol itself carries no business logic; it only handles “reachability” and “invocability.” Permission control, audit trails, and rate limiting/circuit breaking still need to be implemented by the host environment on top of the protocol. In practice, credentials should be stored in a key management service or environment variables, and long-term keys must never be written into Skill files. Write-operation tools should require a second confirmation, and high-risk actions such as bulk deletion should be constrained by a whitelist.
4. Workflows: A Deterministic Orchestration Skeleton
A Workflow is an execution orchestration built from explicit nodes and edges, where the path is predefined by the developer rather than decided entirely by the model in real time. It suits scenarios with stable steps and high compliance requirements, such as static checks, builds, tests, artifact archiving, and release approval before a code commit.
The key difference from a Skill is “who holds control”: a Skill hands decision-making to the model’s semantic judgment, while a Workflow hands it to the orchestration engine. The two are not mutually exclusive. Mature solutions typically “use a Workflow for the skeleton, Skills for the details, and the protocol for tools.”
[Pull changes] -> [Static check] -> [Unit tests] -> (Pass?) -> [Generate review summary] -> [Archive]|Nov[Report metrics and logs]
5. Rules: Always-On Hard Constraints
Rules are mandatory conventions that stay resident in context and do not depend on semantic triggering. They cover code style, directory structure, dependency introduction policies, security red lines, and commit conventions. The difference from Skills is “always present” versus “on-demand entry.” Rules should be concise and decidable, avoid duplicating Skill content, and be placed hierarchically by repository or directory so that local constraints take precedence over global ones. Conflicting entries should be cleaned up regularly.
6. Memories: State Persisted Across Sessions
Memories store long-term information across sessions, such as user preferences, project conventions, past decisions, and known pitfalls. Engineering practice should distinguish three types of state: short-term context (the current conversation), working memory (intermediate artifacts of the current task), and long-term memory (cross-session preferences and facts). Long-term memory must support source attribution, confidence levels, and expiration to prevent incorrect information from polluting output over time. When personal information is involved, the principle of minimum necessity should be followed, along with an entry point to view and delete data.
7. How They Work Together and How to Choose
The division of labor can be summarized in one sentence: Rules set boundaries, the protocol connects to the external world, Skills package expert methods, Workflows ensure process determinism, and Memories maintain long-term consistency.
To choose, consider four questions: Do you need consistency across sessions (Memories)? Is it an unconditional constraint (Rules)? Are the steps fixed and auditability required (Workflows)? Is it a reusable domain method (Skills)? Do you need to access external systems (the protocol)? In general practice on cloud platforms such as Baidu AI Cloud, these capabilities are typically combined with foundational categories like object storage, message queues, container platforms, log services, and monitoring/alerting to achieve version management, asynchronous decoupling, elastic execution, and observability—bringing prompt assets into the software engineering system so they can be reviewed, rolled back, and measured.
