Back to Blog

Where should AI agent instructions live? Prompts, skills, knowledge and tools

Decide which AI agent rules belong in a task prompt, reusable skill, company knowledge source or verifiable tool. See four questions, practical assignments and the work Data-DI can do at each stage.

AI lab
26/11/2026
Share this article
FacebookLinkedinLINE

When an AI agent misses a requirement, adding another sentence to the prompt is tempting. That may fix the next run. It does little for a rule that several agents must follow, a company definition that changes over time, or a calculation that must always return the same result.

‍

At Data-DI, we start by asking what the rule is supposed to do. Is it a condition for this assignment, a reusable way of working, a fact about the business, or an action that needs a predictable result? The answer determines where the rule belongs.

‍

This article is about rules that shape a task before and during execution. A stopping condition addresses a different question: when an agent that has already started should stop. Access rights and approval for consequential actions also need enforcement in system settings and tool permissions, beyond written instructions.

‍

‍

A working map for agent instructions

‍

Where to place four common kinds of AI agent rules
What the rule doesWhere it belongsExample
Sets the scope for this assignmentTask promptCompare only this quarter and put unresolved risks first.
Defines a method used across assignmentsSkillCheck sources, compare findings, then state what remains uncertain.
Defines a company term or current policyKnowledge sourceThe current definition of an active customer or an approved expense.
Requires repeatable calculation, validation or a write actionTool or workflowApply an eligibility formula and write a verified result to a specified field.

‍

One assignment may use all four. A prompt gives the current question. A skill describes how to work. A knowledge source supplies the company's current definitions. A tool performs operations whose results must be checked. The point is to make each responsibility visible when a result needs correcting.

‍

‍

What each layer is responsible for

‍

Prompts carry the conditions of the current task

‍

The audience, date range, exclusions and expected deliverable can change from one request to the next. They belong in the task prompt, where the agent sees them when it starts.

‍

If the same instruction is copied into every request, inspect it before making the prompt longer. A repeatable review sequence may belong in a skill. A product definition may belong in a maintained knowledge source. A calculation may need a tool. The question of which information the agent sees at each step is covered separately in our context engineering article.

‍

Skills describe a reusable way of working

‍

A skill should say what input it expects, which steps to follow, what to deliver and when the agent must pause. For example, a research skill can require source checks before comparison and a separate account of facts, inference and uncertainty.

‍

Agent skills are commonly loaded when a task calls for them, with their supporting resources, instead of copying every procedure into every prompt. [2] This is useful only when the skill has a clear job. A file called “strategy skill” that mixes company facts, tool permissions and writing style gives the agent another place to search without making errors easier to diagnose.

‍

Knowledge sources hold current company facts

‍

An agent needs to know what “active customer,” “approved expense” or “this quarter” means in a particular organization. Those definitions may sit in a knowledge base, a maintained data dictionary or another controlled source. The agent can then use them across tasks without scattering copies through prompts and skills.

‍

When a definition changes, update its source. Keep the method for checking and applying that definition in the skill. If the work depends on retrieving and checking company information, our RAG article explains that part of the design.

‍

Tools and workflows handle operations that must be consistent

‍

Date arithmetic, field conversion, format validation, data retrieval and authorized write actions need results that can be checked. A model can interpret incomplete information, but it should not recalculate a formal eligibility rule from prose each time. OpenAI distinguishes tools for retrieving data, taking actions and coordinating agents. [1]

‍

A workflow also makes the order of known steps and approval points explicit. Adding more agents does not remove the need to define who checks the final result. Microsoft describes orchestration patterns as choices for different tasks and tradeoffs, rather than a default requirement to involve multiple agents. [3]

‍

‍

Can one agent use several skills?

‍

Yes. A lead agent might use a research skill to check sources, a writing skill to draft an article, and a review skill to test the draft against acceptance criteria. The lead agent or an explicit workflow should decide the order, carry the handoff information and remain responsible for the final result.

‍

Problems arise when each skill quietly decides which other skill to call next. When a result fails, it becomes difficult to tell whether the wrong skill was selected, the handoff omitted a constraint or a later step changed the task. Give each skill a bounded input and output. Put the sequence between skills in the agent's task plan or workflow.

‍

Before creating another skill, we ask whether the method recurs in different tasks, whether its input and output can be described, and whether separating it will make a failed step easier to test. If those answers are unclear, another file may only hide the same rule in a new location.

‍

‍

Four questions to ask before moving a rule

‍

  1. What happens if the agent misses it? A style preference may fit in a prompt or skill. An error in a payment, date or official record calls for a tool, a check or an approval point.
  2. Does it apply to this assignment or to many assignments? “Exclude people already registered for this event” is task scope. “Identify the source and date of every comparison” is a reusable method.
  3. Is it a fact or an instruction to act? “This status means approved” is a company definition. “If approved, produce a notice in this format” describes a procedure or workflow.
  4. When it changes, should every task change with it? If so, maintain one skill, knowledge source or tool rather than copies in separate prompts.

‍

The distinction between a skill and a knowledge source is especially useful during a policy update. The current policy and effective date are facts. “Check the effective version, cite the relevant clause and ask when information is missing” is a method. Changing the policy should not require rewriting that method in every agent.

‍

‍

How the distinction works in actual assignments

‍

In an anonymized market analysis situation, the agent needed a research sequence, company-specific market categories and a reliable way to retrieve data. The prompt carried the market, period and decision question. The skill carried source checking and comparison. The knowledge source carried the categories. Data retrieval and output checks belonged to tools or a workflow. This describes the design of the assignment, not a measured customer outcome.

‍

Audience selection changes the balance. The current campaign may exclude existing registrants or use a specific interaction window; those conditions belong in the prompt. Importing records, applying field rules and producing a list are repeatable operations with downstream consequences, so a workflow should handle them.

‍

Consider two further illustrative cases. For an employee asking whether travel expenses are reimbursable, the current policy, limits and effective dates belong in a knowledge source. The skill says to find the applicable version, cite it and avoid guessing when a condition is missing. An eligibility calculation or creation of a formal request belongs in a tool or workflow.

‍

For a monthly operations report, the prompt states which month and decision are in scope. The skill says how to review anomalies and distinguish observations from possible causes. A data dictionary defines “revenue” or “active customer”; a tool calculates and validates the figures. These two cases are examples for planning, not claims about completed Data-DI customer projects.

‍

A policy update shows why methods and facts need separate owners
ContentPlace to maintain itReason
Current expense limits and effective dateKnowledge sourceThey are company facts that may change.
Check the effective version before answeringSkillThis method remains useful when the limit changes.
Only review claims from this department todayTask promptThis request sets the scope.
Calculate eligibility and create a requestTool or workflowThe action needs a consistent result and a record.

‍

‍

After launch, fix the layer that failed

‍

When an agent repeatedly skips a review step, inspect the skill. When different tasks interpret the same company term differently, inspect the knowledge source and its version. When calculations or file operations vary, move them to a verifiable tool. When several skills conflict, make the selection and handoff order explicit in the lead agent or workflow.

‍

Move one type of rule at a time, then rerun the same assignments. Include a task that should select the skill, one that should not, and one that previously failed. Check skill selection, task completion and the original acceptance criteria. Google Developers describes testing agent skills against tasks to see whether the added instructions help. [4] Our harness engineering article covers repeatable checks in more detail.

‍

‍

Where Data-DI can help

‍

Data-DI support at different stages of an AI agent assignment
StageQuestion to answerWork we can do with you
Before choosing a taskWhich decision can the agent make, and what is the cost of an error?Map the human judgment, rules, sources and acceptance criteria; identify a bounded first use case.
During designWhich conditions change by task, and which methods or definitions are shared?Assign each rule to a prompt, skill, knowledge source or tool, then test that split on a real assignment.
Before launchWhat happens when data is missing or an action needs approval?Test normal and exception cases; identify calculations, approval points and records that need a fixed workflow.
After useDid the error come from a definition, method or operation?Review execution records, adjust the responsible layer and rerun the same acceptance tasks.

‍

AltaBots.ai is Data-DI's enterprise AI agent platform. The examples above are ways to plan an agent assignment; they are not a list of built-in workflows. If you are assessing a use case, bring us one rule that is hard to explain or repeatedly causes errors. We can work through where it belongs and what would count as a successful test.

‍

References

[1] OpenAI. (2026.01). A practical guide to building agents. OpenAI.
‍https://openai.com/business/guides-and-resources/a-practical-guide-to-building-ai-agents/

[2] Google Cloud. (2026.08). What are agent skills? Google Cloud.
‍https://cloud.google.com/discover/ai-agent-skills

[3] Microsoft. (2026.02). AI agent orchestration patterns. Microsoft Learn.
‍https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns/

[4] Google Developers. (2026.03). Closing the knowledge gap with agent skills. Google Developers Blog.
‍https://developers.googleblog.com/closing-the-knowledge-gap-with-agent-skills/

FAQ

FAQ

FAQs about this article

Should every AI agent rule go in the prompt?

No. Use the prompt for conditions of the current task. Put reusable methods in skills, current company definitions in maintained knowledge sources, and repeatable calculations or official actions in tools or workflows.

What is the difference between a skill and a knowledge source?

A skill explains how to handle a task: the sequence, checks and deliverable. A knowledge source contains the current facts and definitions the agent applies. A policy change should update its source without rewriting the method in every skill.

Can one AI agent use several skills?

Yes. The lead agent or a defined workflow should choose the order, pass the necessary context between skills and check the final result. Each skill needs a clear input and output so a failed step can be found.

When should a rule become a tool or workflow?

Use a verifiable tool or workflow when identical inputs require a consistent result, or when an action changes official data. Date calculations, field conversion and approval before writing records are examples.

How do we test whether moving a rule into a skill helped?

Run the same real assignments before and after the change. Include a task that should use the skill, one that should not and one that previously failed. Check selection, completion and the original acceptance criteria.

Newsletter

訂閱我們的電子報

每月 8 日定期發送最新趨勢與實用資訊!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.