AI Coding Tools Explained: Skills, Connection Protocols, Workflows, Rules, and Memory
This article breaks down the core concepts behind AI coding tools—skills, connection protocols, workflows, rules, and memory—using a layered model that shows how each solves a different engineering problem. It explains what each layer does, how the layers reinforce one another from boundaries to continuity, and how to combine them in practice. Readers will also find common misconceptions and practical selection guidance for choosing the right layer for a given task.
1. Why These Concepts Get Confused
In AI coding tools, “skills,” “connection protocols,” “workflows,” “rules,” and “memory” are often discussed interchangeably. The reason is simple: in the UI, each appears as a piece of configuration, a directory, or context within a conversation, and the end result always looks like “the AI behaves differently.” From an engineering perspective, however, they solve problems at completely different layers.
A layered model makes the distinctions clear:
- Rules layer: defines what can and cannot be done—a set of boundaries and preferences.
- Memory layer: records what happened in the past—state and experience carried across sessions.
- Skills layer: packages how to do a certain class of work—reusable methodology and execution strategy.
- Connection protocol layer: defines what can be reached—a standardized interface between the model and external systems.
- Workflow layer: orchestrates the order of operations—turning multiple steps and roles into a deterministic process.
These five layers increase determinism from the bottom up: rules provide boundaries, memory provides continuity, skills provide expertise, connection protocols provide reach, and workflows provide a predictable execution path. Once you understand this layering, most conceptual confusion disappears.
2. Skills: Packaging Domain Expertise as Reusable Components
The concept of a skill (often called an Agent Skill) was systematically introduced in the industry in the second half of 2025. At its core, it can be defined as a modular capability component made up of a structured description, execution logic, and optional resources. It injects domain expertise and execution strategy into an agent and is triggered automatically based on semantics during interaction.
A well-formed skill typically has four parts:
- Metadata: name and functional description, so the model can decide “when to use me.”
- Trigger semantics: applicable scenarios, prerequisites, and out-of-scope cases.
- Execution strategy: steps, rules, caveats, and failure fallback.
- Optional resources: scripts, templates, reference docs, and sample data.
A schematic structure looks like this:
skill/name: report-html-renderdescription: Generate a demo-ready HTML report based on the structure and styling of a spreadsheetsteps:1. Read the source spreadsheet and identify headers, merged cells, and number formats2. Extract style rules (color scheme, font size, alignment, conditional formatting)3. Generate a static page skeleton and inject the data4. Self-check: broken links, overflow, empty values, time zones, and thousands separatorsresources:- scripts/parse_table.py- templates/dashboard.html
It is worth emphasizing that a skill is still essentially a highly structured set of prompts and resources. It does not change the model’s capability boundaries; it makes “expert practice” explicit and versionable. Its value comes from three things: reusability (capture once, call many times), composability (multiple skills working together on complex tasks), and manageability (review, canary release, rollback, and effectiveness measurement).
3. Connection Protocols: A Standardized Way to Integrate External Systems
Connection protocols (often referred to as MCP in the industry) solve the “reach” problem. They abstract external system capabilities into three unified primitives—resources, tools, and prompts—so an agent can discover and invoke capabilities in a consistent way without writing a private adapter for every system.
Their value shows up mainly in:
- Decoupling: the model side and the system side communicate through a standard contract, so evolution on one side does not force changes on the other.
- Reuse: one protocol implementation can serve multiple agents and many scenarios.
- Governance: permissions, auditing, and rate limiting can be enforced centrally at the protocol layer.
In engineering practice, it is recommended to apply three constraints at the protocol layer: least-privilege authorization, full-chain call tracing, and explicit timeout and retry policies. Only then can you balance “open capabilities” with “controlled risk.”
4. Workflows: Converging Uncertainty into a Predictable Path
Workflows emphasize orchestration and determinism. Skills and connection protocols provide “capabilities and means”; a workflow specifies “what to do first, what to do next, under what conditions to branch, and how to compensate on failure.” Typical forms include sequential orchestration, conditional branching, parallel aggregation, human approval nodes, and loop-back retries.
A minimal example:
workflow: weekly-insightnodes:- fetch: pull metrics data (via connection protocol)- analyze: call the analysis skill- render: call the reporting skill to generate a demo page- review: human approval- publish: archive and notifyedges:- fetch -> analyze -> render -> review -> publish- review -> analyze (loop back on rejection)
The point of a workflow is to turn a free-form conversation that “might go off track” into an engineering asset that is testable, observable, and rollback-able.
5. Rules and Memory: Two Main Lines of Boundaries and Continuity
Rules are hard constraints and preferences—for example, the allowed tech stack, code style, prohibited resources, and checks that must pass before a commit. Rules should be as “decidable” as possible; vague phrasing makes it hard for the model to execute them consistently.
Memory carries state and experience across sessions, typically divided into short-term context, project-level long-term memory, and team-level shared knowledge. The key to memory governance is three points: writes need admission control (to avoid pollution), reads need relevance-based recall (to avoid noise), and expiration needs eviction (to avoid stale information misleading the model).
6. How to Combine Them: A Practical Pattern
The recommended combination order is: first use rules to set boundaries, then use connection protocols to connect data and tools, then capture high-frequency expert practices as skills, solidify stable processes as workflows, and finally use memory to maintain continuity. Schematic:
Rules (boundaries) -> Connection protocols (reach) -> Skills (expertise) -> Workflows (orchestration) -> Memory (continuity)
In practice with Baidu AI Cloud, these capabilities are typically combined with common cloud product categories such as object storage, message queues, container platforms, log services, and monitoring and alerting, forming a closed loop of “versionable configuration, auditable calls, and measurable effectiveness.”
7. Common Misconceptions and Selection Guidance
- Misconception 1: Writing every requirement as a rule. Too many rules conflict with each other; keep only a small number of strong constraints.
- Misconception 2: The finer the skill, the better. Overly fine granularity leads to a combinatorial explosion; divide skills by “delivering value independently.”
- Misconception 3: Ignoring protocol-layer governance. Integration without permissions and auditing will spiral out of control at scale.
- Misconception 4: Memory that is only written and never cleared. Without an eviction mechanism, effectiveness decays over time.
For selection: prefer workflows for one-off, strongly deterministic tasks; prefer skills for high-frequency expert practices reused across projects; prefer connection protocols for cross-system data and operations; prefer rules for global baselines; and prefer memory for context that needs to persist across sessions. The five are not mutually exclusive—a mature system usually has all five layers in place, with clear boundaries and measurable evolution.
