Describe optional inputs in an AI skill

Make it clear which work can proceed with an attachment, a live lookup, or just the user’s request.

Define an input contract for each path

A review skill might work with a pasted excerpt or an entire file. Those inputs support different claims. A pasted excerpt can support a decision about its wording but might omit a footnote that changes the policy. Tell the assistant what it can complete for each input. Skill-authoring guidance encourages practical workflows with decision points and observable output. 2 1

State how it selects an available source

Write which supplied file governs, when a live lookup is useful, and what to do if sources conflict. If the user gives a current attachment, a second lookup may add little. If the file is clearly historical and the task requires current details, use the allowed current source or state the gap. The context-engineering principle is to bring in information that helps the current decision. 3

Try both paths and one missing path

Use a full document, a labeled excerpt, and a task without the document. Check the scope of each result, including whether the assistant falsely claimed to review the whole file. If the excerpt path has a smaller result, name that clearly. This gives the next reviewer a reliable way to tell which checks were actually possible.

A supplied screenshot can support wording visible in the crop without confirming the current setting, so label what the picture actually shows.

Sources

  1. OpenAI’s guide to building skills for plugins
  2. Anthropic’s skill authoring best practices
  3. Anthropic’s context engineering article