Core Concepts in AI Coding Tools: Skills, MCP, Workflows, Rules, and Memories Explained

    This article clarifies five core concepts in AI coding tools—Skills, MCP, Workflows, Rules, and Memories—and explains why they are often confused despite operating at different abstraction levels. It defines each concept, shows how they relate, and offers practical guidance on when to use each one, including a sample Skill directory structure, a SKILL.md template, MCP selection criteria, and a step-by-step adoption checklist for teams.

    1. Why These Concepts Get Confused

    In the capability stack of AI coding tools, Skills, the Model Context Protocol (MCP), Workflows, Rules, and Memories are often listed side by side, but they sit at different levels of abstraction. Mixing them up leads to three typical problems: wrapping a one-off script as a “Skill,” which fragments capabilities; stuffing team conventions that belong in a rules file into prompts, which causes constraint drift; and writing long-term experience into context, which eats into a limited window budget.

    To draw clear boundaries, start with a layered view: Rules are constraints that are always in effect; Memories are state accumulated across sessions; Skills are capability packages loaded on demand; MCP is the standard channel for connecting to external systems; and Workflows are the skeleton that orchestrates these elements into a deterministic process.

    2. Skills: Modular Capability Packages Loaded on Demand

    A Skill is a modular capability component made up of a structured description, execution logic, and optional resources. It injects domain expertise and execution strategies into an agent and triggers automatically on semantic match. The concept was first introduced by a cloud vendor in the second half of 2025 and has since been widely adopted across the industry.

    At its core, a Skill is still a carefully organized prompt, but it emphasizes three things: it can be semantically retrieved (via its name and description), it can be composed (Skills do not conflict with one another), and it can be version-controlled (the directory is the unit).

    A typical scenario: a business team has already produced report templates with a spreadsheet tool and needs an agent to read the layout and data, then generate a web dashboard suitable for presentations. This should be packaged as a Skill rather than handled in an ad-hoc conversation. A recommended directory layout:

    1. report-dashboard/
    2. ├── SKILL.md # Main doc: name, description, triggers, steps
    3. ├── reference.md # Optional: field definitions and style specs
    4. ├── examples.md # Optional: input/output samples
    5. └── scripts/
    6. └── read_table.py # Reads the table and outputs structured data

    Skeleton of a SKILL.md:

    1. ---
    2. name: report-dashboard
    3. description: Converts table templates and data into a presentable web dashboard; use when the user mentions "report demo" or "dashboard"
    4. ---
    5. ## Steps
    6. 1. Call scripts/read_table.py to parse the template and data
    7. 2. Map fields according to the definitions in reference.md
    8. 3. Generate a single-file HTML with inline styles; no external resources
    9. ## Constraints
    10. - Do not modify the original data files
    11. - Output must include the data update time

    The design hinges on three points: the description determines whether the Skill is selected, the steps determine how it is executed, and the resources determine how far it can go. The description should spell out when the Skill applies and when it does not, avoiding semantic overlap with other Skills; the steps should be verifiable; and scripts should handle deterministic computation, freeing the model from error-prone numerical processing.

    3. MCP: A Standardized Channel for External Capabilities

    MCP is an open protocol that declares tools, resources, and prompt templates in a unified way, so an agent does not need a custom adapter for every external system. Its value lies in decoupling: a Skill only describes when and how to use a capability, while connection details are pushed down to the protocol layer. Common integration targets include code repositories, defect tracking, object storage, message queues, logging services, and monitoring and alerting—general capability categories. When evaluating options, focus on three things: whether it supports credential injection with least privilege, whether the call chain can be audited, and whether it can degrade gracefully when disconnected.

    4. Workflows: Balancing Determinism and Flexibility

    A Workflow explicitly arranges steps into a directed process, making it suitable for compliance-heavy, auditable scenarios such as “requirements review → code generation → static analysis → testing → release.” The difference from a Skill: a Skill is triggered semantically with a flexible path, while a Workflow is triggered by an event or a human with a rigid path. A practical recommendation is “Workflows for the skeleton, Skills for the nodes”—allow the model to autonomously choose Skills within fixed nodes, balancing control and flexibility.

    5. Rules and Memories: Constraints and Accumulation

    Rules are global constraints that stay in effect and should be written into a separate configuration file, layered by directory (global, project, subdirectory). They focus on style, technology choices, and prohibited actions, and should stay concise to save context. Memories are state accumulated across sessions, split into project memories (architecture decisions, interface conventions) and user preferences (expression habits, output formats). The two share “low noise, updatable”; the difference is that Rules lean toward “prohibitions and standards” while Memories lean toward “facts and preferences.” It is advisable to set a write threshold and an expiration policy for Memories to prevent incorrect experience from lingering and polluting future sessions.

    6. How They Work Together and an Adoption Checklist

    The recommended combination: Rules draw the boundaries, Memories provide background, MCP connects external systems, Skills carry domain methods, and Workflows string everything into a deliverable process.

    For adoption, work through a checklist: first, identify high-frequency repetitive tasks and abstract them into Skills; then unify external integrations at the protocol layer; next, solidify critical paths into Workflows; finally, fill in governance mechanisms for Rules and Memories, including review, versioning, and periodic cleanup. If a team already uses a cloud platform with enterprise-grade governance, it can host Skills and Memories on general-purpose storage and configuration management capabilities, and use logging and monitoring to make calls traceable.