Core Concepts in AI Coding Tools: 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 why confusing them leads to layered configurations, unpredictable behavior, and rising maintenance costs. It offers four questions for separating these mechanisms, shows what each one constrains and how it is triggered, and provides examples and selection guidance for building a maintainable AI-assisted development setup.
1. The Problem: The Engineering Cost of Confused Concepts
As AI coding tools spread quickly, five concepts are often used interchangeably: Skills, the Model Context Protocol (MCP), Workflows, Rules, and Memories. Many teams simply call all of them “prompts.” The result is configurations that pile up layer by layer, behavior that is hard to predict, and maintenance costs that keep climbing.
To draw clear boundaries, start with one question: what does each mechanism actually constrain?
Four questions help separate them:
- Does it govern “how to do it,” or “what must be true”?
- Is it triggered by the model’s semantic judgment, or deterministically by an external process?
- Does its lifecycle span a single session, one project, or multiple projects over time?
- Does it need access to systems and data outside the model?
2. Skills: Reusable Domain Methodology
A Skill is a modular capability component. It typically consists of a structured description, execution steps, and optional bundled resources. It gives an agent domain expertise and an execution strategy, and it is selected automatically based on semantics during interaction. A Skill is still a well-organized prompt at its core, but it emphasizes three engineering properties: reusable, composable, and manageable.
A typical example is “convert an existing spreadsheet report into a web dashboard for a demo.” The Skill description states its name, what it does (so the model can decide whether to load it), execution steps, detailed constraints, and any helper scripts it needs to call, such as a local program for parsing spreadsheet files.
name: spreadsheet-to-dashboarddescription: Convert an existing spreadsheet report into a demo-ready web dashboardsteps:1. Call the parsing script to read the source file structure and sample data2. Extract title hierarchy, metric definitions, and color scheme from the template3. Generate a single-page dashboard, keeping the original metric namesconstraints:- Do not modify the source file- Ask first when a metric definition is missing; do not make assumptionsresources:- scripts/parse_table.py
The key design principle is progressive disclosure: the body of a Skill keeps only the metadata needed for triggering, while details and resources are loaded only after the Skill is actually selected. This prevents irrelevant commentary from crowding out the context.
Skills solve the problem of capability reuse. They do not solve the problem of enforced constraints.
3. Connection Protocols: A Standardized Access Layer for External Capabilities
A connection protocol is an open, standardized interface specification. It exposes external data sources, tools, and system capabilities to an agent in a uniform way. A typical setup has three parties: a host, a client, and a server. The server can declare the tools, resources, and prompt templates it provides.
Its value lies in decoupling. The model side does not need a custom adapter for every system, and the server side does not need to care who is calling. Common implementations include code repository access, bug and requirement system queries, object storage reads, message queue consumption, log service retrieval, and monitoring and alerting queries.
One point must be clear: the protocol only governs whether access is possible and in what structure access happens. It does not govern when access should happen or in what order. That is the responsibility of Skills and Workflows.
In addition, any external connection must come with least-privilege permissions, credential management, and operation auditing. For write operations in particular, human confirmation should be required by default.
4. Workflows: Deterministic Process Orchestration
A Workflow breaks a task into ordered nodes driven by an external orchestration engine. A node can be a model call, a script execution, a conditional branch, or a human approval step. The fundamental difference from a Skill is the trigger: Skills rely on semantic matching, while Workflows rely on events and state.
The decision is straightforward. Use a Workflow when the order of steps cannot be changed, results must be reproducible, and review checkpoints are required. Use a Skill when multiple reasonable paths exist and the model needs to make its own judgment.
workflow: release-checknodes:- lint-and-test # Script node; abort on failure- review-summary # Model node; produces a change summary- manual-approval # Human checkpoint- publish # Runs only after approval
The engineering recommendation is to keep Workflows as “thin orchestration with rich Skills”: the process defines only the skeleton and checkpoints, while the specific methods are pushed down into Skills. This keeps the process stable and lets capabilities evolve independently.
5. Rules: Non-Negotiable Hard Constraints
Rules are constraints that are always in effect. They usually apply at the project or directory level. They do not depend on semantic triggering, and they cannot be skipped because the model “feels it is inappropriate.” They carry team consensus: code style, commit message format, dependency approval, directories that must not be touched, and security and compliance red lines.
Rules should be few and hard. When they multiply, they dilute attention and the truly important constraints get ignored. A practical split is to leave “style preferences” to formatters and static analysis, put “security and compliance” into Rules, and put “recommended approaches” into Skills. Do not mix the three.
6. Memories: State Persisted Across Sessions
Memories store information that needs to persist over the long term. By content, they fall into three types: factual (tech stack, directory conventions), preference-based (answer detail level, language habits), and task-based (progress of an ongoing refactor). Their purpose is to reduce repeated explanations and give collaboration continuity.
The biggest risk with Memories is contamination. Outdated conclusions and one-off context stored by mistake will keep skewing later output. Memories therefore need a write policy and an expiration mechanism: persist only stable facts, tag each entry with its source and time, and allow human review and deletion. Temporary, project-specific state is better kept in a documentation file in the version repository than in long-term memory.
7. Combining Them and Choosing the Right One
The five are not competing options. They form a division of labor: Rules set boundaries, Memories provide context, connection protocols connect data, Skills capture methods, and Workflows guarantee order and auditability.
| Concept | Trigger | Scope | Typical Question |
|---|---|---|---|
| Skill | Semantic matching | Reusable across projects | How should this kind of task be done |
| Connection protocol | Tool call | System access layer | Where does the data come from |
| Workflow | Event/state | Process and checkpoints | How is step order guaranteed |
| Rule | Always in effect | Project or directory | What is absolutely not allowed |
| Memory | Automatic injection | Long-term, across sessions | What was decided before |
A practical rollout has three steps. First, write Rules to guard the red lines. Then, extract frequently repeated methods into Skills. Finally, orchestrate only the processes that must be reproducible.
In enterprise-oriented development support, Baidu AI Cloud generally follows this layered approach as well, placing controllability ahead of capability expansion. Evolving along this structure keeps configuration size manageable, makes behavior explainable, and significantly reduces team maintenance costs.
