How to Use AI at Work: Pick Tasks Where a Check Is Cheap
Learn how to use AI at work by picking tasks with a quick pass-or-fail check, then running that check before you trust the output.
Updated · Markdown version
A practical way to begin using AI at work is to choose low-risk tasks with outputs you can check cheaply, such as a test result, a diff, a formula with a known total or a rendered page. A passing check supports only the properties it tests; it does not make the whole result trustworthy or remove the need to review consequential claims and decisions.
Steps
- Sort your tasks by checkability. List the tasks you would hand to an assistant this week. Mark each one that has an output you can test: a script with an exit code, a spreadsheet total that must match a ledger, a draft that must cite facts from a source you have open. Leave judgment-only tasks for later, until you have seen how the assistant handles the checkable ones.
- Write the pass condition before the work starts. Put it in one sentence with a number or a command in it. For example: "The export has 412 rows, no duplicate IDs, and totals match the ledger." If you cannot write a useful pass condition, the task may be underspecified, judgment-heavy or too broad for one run. Clarify the desired artifact and risks, or split it into smaller outputs; task-breakdown-coach is one optional planning aid.
- Put the check in the request. Tell the assistant what to run and when to keep going. In Claude Code, a line such as "run the auth tests after, and keep going until they pass" needs no setup. If the same command recurs, add it to
CLAUDE.mdso the agent knows where to find it.
- Pick the enforcement level. In Claude Code, these mechanisms have different roles. A prompt asks the current agent to continue until a condition passes.
/goalrecords a condition that a separate model checks after turns. A Stop hook is host-enforced at the stop event: its script can block that stop with exit code 2, subject to Claude Code's documented block cap. Use hooks only for deterministic commands you understand and maintain; they are Claude Code configuration, not a feature shared by every AI assistant.
- Ask for evidence, not a summary. Request the command the assistant ran and its output, or a screenshot. "All tests pass" tells you little. Captured output can be quicker to inspect than rerunning an expensive check and provides evidence from an unattended session. It is not necessarily the only record, and stale, truncated or fabricated-looking output should be verified by rerunning the check in the relevant environment.
- For code you may ship, Claude Code's
/code-reviewcan review the diff in a fresh subagent that did not see the implementation conversation. Treat that as another model review, not approval: a person should still assess material risk, security, compliance and deployment impact.
Check that it worked: run or independently inspect the final check and confirm that its environment, input and result match what the assistant reported. If they differ, first determine whether the assistant used stale inputs, a different environment, the wrong command or an inadequate pass condition. For legal, financial, medical, security or personnel decisions, use the organization's required qualified review even when automated checks pass.
Pitfalls
- A check that tests the wrong thing. A passing test suite can still miss a broken export format. Add one check that reads the real artifact, such as opening the file or rendering the page. Claude Code's
/verifybuilds and runs the app and inspects it, which covers some problems that tests miss. - Vague pass conditions. "Looks good" gives the agent nothing to test against. Rewrite it as a count, a list of required items, or a command.
- Stopping early. An agent may end a turn with a progress summary while items remain open. Notice it by comparing open items against your list. Fix it with
/goalor a Stop hook. - Unreadable output. Ten thousand lines of log get skimmed. Ask for only the failing lines and the command that produced them.
- Confusing a passing check with a useful result. A check covers only what it tests. Read the diff or the output once for scope before you act on it.
When to use a skill instead
Ad-hoc prompting works for one-off questions. A reusable skill pays off when the same steps and checks recur across weeks. prompt-writing writes and repairs prompts for LLM apps and agents, which helps when outputs vary from run to run and the instruction needs to produce the same checkable format each time. task-breakdown-coach breaks a stalled goal into short timed steps and one clear first move, which helps when the task is too large to begin. Neither replaces a check; both make the check easier to write.
FAQ
Does an AI agent know when a task is finished? It can infer completion from the request and available evidence, but that inference may not match your acceptance criteria. Anthropic's Claude Code guidance recommends giving coding agents an observable pass-or-fail check so they can close the verification loop themselves.
Is prompt engineering always the fix for poor AI output? No. Anthropic's prompt engineering guide starts with success criteria and tests, and notes that a different model can sometimes improve latency and cost more easily than a prompt change.
What does a Stop hook do? It runs a script whenever Claude Code tries to end its turn. If the script exits with code 2, the agent keeps working instead of stopping.
These Claude Code command and hook details were checked on 2026-11-25. Recheck the linked documentation before configuring an unattended workflow because command behavior and limits can change.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Terms this guide uses
This item is a worked example in the AI glossary for:
Sources
- https://code.claude.com/docs/en/best-practices (accessed 2026-11-25)
- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview (accessed 2026-11-25)