How AI Coding Assistants Divide Work Across Skills, MCP, Workflows, Rules, and Memories

    AI coding assistants increasingly behave like a small R&D organization: they must understand project conventions, call external capabilities, complete complex tasks step by step, and remember preferences across sessions. This article explains how five mechanisms—Skills, the Model Context Protocol (MCP), Workflows, Rules, and Memories—split these responsibilities, why they solve different problems, and how to decide which one a piece of information belongs in. It covers a four-question test for drawing boundaries, the role of each mechanism, how the five layers cooperate in a single task, and common mistakes to avoid. Readers will learn to keep methods, connections, processes, constraints, and state separate so that assistant behavior stays predictable and maintainable.

    AI coding assistants increasingly resemble a small R&D organization: they need to understand project conventions, invoke external capabilities, complete complex tasks step by step, and remember preferences across sessions. Skills, the Model Context Protocol (commonly abbreviated as MCP), Workflows, Rules, and Memories are the five mechanisms that split these responsibilities apart. They often appear together in the same session, but they do not solve the same kind of problem. The typical result of mixing them up: steps that should run reliably get written as ad-hoc prompts, actions that should be performed by external systems get “narrated” by the model instead, and conventions that should stay in effect long-term get buried inside the instructions for a single task.

    Draw the boundaries with four questions

    To decide which mechanism a piece of information belongs in, you don’t need to memorize definitions first—just ask four questions in sequence.

    First, is it a method package for “how to do a certain class of task well”? If it contains trigger conditions, steps, examples, a checklist, and optionally scripts or reference material, it is closer to a Skill.

    Second, is it a connection capability for “where to fetch data or perform an action”? If its core is exposing a file system, code repository, ticketing system, database, browser, or internal API to the model in a unified way, it belongs to the tool-access layer—that is, an MCP-type capability. The protocol itself does not define business steps; it only defines how tools are discovered, how parameters are described, and how calls and results are returned.

    Third, is it a process that must advance in order or by condition? If it has clear stages, inputs and outputs, human confirmation points, and failure fallbacks, it is a Workflow. A workflow cares about control flow and is not responsible for writing out all the domain experience behind each step.

    Fourth, is it a constraint that is always in effect, or a fact that should persist across tasks? The former is Rules—for example, language version, directory conventions, prohibitions, and code style. The latter is Memories—for example, user preferences, project background, and confirmed architecture decisions. Rules lean toward instructions; memories lean toward state.

    These four questions cannot substitute for one another. In a requirement like “generate a web report from a spreadsheet”: reading the sheet and writing out files is a tool capability; column mapping, layout, and validation steps are a Skill; going from reading, generating, and previewing to human confirmation is a Workflow; “do not fabricate numbers, keep amounts to two decimals” is a Rule; and “this team prefers dark-themed presentation pages” can be a Memory.

    Skill: a reusable way of doing things

    A Skill can be understood as modular expertise injected into the agent. It usually consists of a name, a functional description, execution instructions, and optional resources. The name and description let the model judge semantically “should I use this now”; the body spells out the steps, constraints, inputs and outputs, and how to handle failures; the resources can be reference notes, examples, or scripts that only perform deterministic work.

    Compared with a one-off prompt, the value of a Skill lies in being reusable, composable, and manageable. The same method for “generating a presentation web report” doesn’t need to be dictated again in every session. A specific description makes it easier for the model to select automatically at the right moment; a description that is too broad will trigger falsely.

    A neutral directory could look like this:

    1. report-skill/
    2. ├── SKILL.md # name, description, steps, and constraints
    3. ├── reference.md # field mapping and layout notes
    4. ├── examples.md # input/output samples
    5. └── scripts/
    6. └── read_table.py

    SKILL.md should be short and firm: first state when to use it, then list steps such as reading the table sample, checking headers, generating a static page, flagging missing values, and prohibiting fabricated data, and specify that the script is only responsible for turning the table into structured text while layout decisions are still made by the model according to the instructions. Script parameters, paths, and error messages should be written clearly, but do not put keys, accounts, or internal network addresses into the skill package.

    A Skill is not an all-purpose plugin. It does not own permissions, and it cannot bypass the tool layer to access external systems directly. When it needs to read files or query APIs, it should declare “which authorized tools it depends on.” When multiple Skills match at once, disambiguation should rely on the applicability boundaries in their descriptions, not on stuffing the full body of every Skill into the context.

    Model Context Protocol: capability access, not a business script

    The tool protocol solves “how the model uses external capabilities safely and consistently.” It usually contains a tool list, a purpose description for each tool, parameter schemas, return structures, and error semantics. Based on this, the agent decides which tool to call, what parameters to pass, and folds the result into subsequent reasoning.

    The division of labor between protocol and Skill can be summed up in one sentence: the protocol provides the hands and eyes, the Skill provides the technique. Without the protocol, a Skill can only stay at the level of written advice; without the Skill, the protocol is just a pile of scattered actions, and the model has to reinvent the steps every time. Writing a complete business process into a single tool description makes the tool hard to reuse; writing all the details of reading files and executing commands into the Skill body makes the Skill unable to adapt as the environment changes.

    Three points to keep in mind in practice. First, least privilege: expose only the read or write capabilities the current task needs, and require explicit confirmation for write operations as much as possible. Second, validatable parameters: use structured fields for paths, query conditions, and time ranges, avoiding free-form strings the model assembles that cannot be checked. Third, explainable results: keep the source, time, or line number in the return so that Rules and Skills can verify afterward. The protocol does not store long-term preferences, nor does it automatically guarantee call order; these two things are handed off to Memories and Workflows respectively.

    Workflow: putting uncertain reasoning into defined stages

    A Workflow is the control structure of a task. It can be a fixed pipeline or a state machine with branches: collect inputs, invoke Skills, use tools, generate artifacts, human review, retry on failure. Each stage should have an entry condition, a produced artifact, and an exit criterion.

    Using the report example again, a reasonable workflow is: confirm the table sample and presentation goal; call the read tool to get structured data; generate the page according to the Skill; spot-check key numbers against the source data; and overwrite an existing file only after user confirmation. If a column is missing, the process should stop at “list the missing items” rather than jumping to “fill with a close value.”

    Workflows are suited to tasks with many steps, side effects, or a need for auditing—for example, release checks, batch refactoring, and data migration. They are not suited to piling up all coding styles—that makes the process long and brittle. Styles and prohibitions should sink down into Rules; the special conventions of a particular task should stay in that task’s input, or be written into Memories after confirmation.

    Rules: constraints that are in effect by default

    Rules are persistent instructions at the session or project level, used to reduce repeated reminders. Typical content includes: target language and version, directory boundaries, naming conventions, tests that must be added, generated directories that must not be modified, logging and key-handling requirements, and the terminology to use in answers.

    Rules should be short, checkable, and low in conflict. A line saying “all public functions need a purpose description” is easier to follow than a page of prose. Conflicting rules should explicitly specify priority—for example, security rules outrank formatting preferences, and project rules outrank personal habits. Rules do not record facts like “last Friday we decided on option A,” otherwise the spec document turns into a running log and it becomes hard to tell whether a rule is still valid.

    Memories: state retained across tasks

    Memories store information that has been confirmed and may still be useful later: technology-stack trade-offs, module owners’ preferences, deprecated APIs, and the depth of explanation the user wants. They let a new session avoid starting from zero, but memory is not the single source of truth. Code, documentation, and current tool returns are usually more trustworthy than old memories.

    Good memories have scope and timeliness. Project-level memory should not include a color requirement that is only valid for a specific demo; personal preferences should not override team conventions. When a memory conflicts with a Rule, the Rule takes precedence, and the user should be prompted to update or forget the outdated memory. Memories should also not store keys, tokens, undisclosed customer data, or large blocks of source code.

    How the five mechanisms work together

    A complete task can be seen as five layers of collaboration. Rules set the baseline first; Memories provide background but accept correction from current evidence; the Workflow decides the stages and human checkpoints; a Skill provides the method at a given stage; and the tool protocol performs reads, writes, and queries when needed. The context should not keep all five layers resident in full. In practice, keep Rules concise and always resident, load Skills on demand by description, expose tools on demand by permission, put only the current stage’s instructions from the Workflow into the context, and pull only the memory entries relevant to the task.

    Selection can follow how often something changes: things that rarely change and must be obeyed go into Rules; facts that expire go into Memories; methods that recur go into Skills; ordered steps with side effects go into Workflows; the external environment goes into the tool protocol. If it’s just a one-off Q&A, engaging all five layers adds interference. If it’s a code review or report generation the team does every day, it’s worth solidifying the method and the process, and leaving personal taste in Memories.

    Common mistakes

    Treating a Skill as a longer system prompt causes unrelated tasks to be hijacked by the same set of steps. Treating the tool protocol as a Workflow leaves out confirmation and fallback. Writing Rules as a memoir makes the constraints impossible to audit. Treating Memories as an always-correct cache means old decisions keep being applied after the project changes. Another mistake is replacing instructions with scripts: scripts are good for deterministic parsing and validation, but business trade-offs, exceptions, and presentation still need to be written clearly in a Skill.

    Distinguishing these five mechanisms is not about adding concepts, but about making the AI coding assistant’s behavior predictable: methods that should be auto-selected can be selected, write operations that should be confirmed don’t happen quietly, conventions that should be followed long-term don’t need to be repeated every time, and outdated background that should be updated won’t quietly override new facts. As long as a team keeps “method, connection, process, constraint, state” separate, adding a task later mainly means adding one Skill or one process—rather than continuing to pile up an overlong prompt that no one can maintain.