---
slug: prompts-para-a-llm
title: How to instruct the LLM
summary: Prompt templates for asking MalhaOS for work, and a table of what to ask for and what to avoid, so the LLM gets the stage right without getting around the workflow.
locale: en
section: best_practices
applies_to:
  cli: ">=0.29.0"
  skill: ">=1.4.2"
executors: [claude-code, codex, gemini-antigravity]
os: [macos]
audience: [member]
reason_codes: []
intents:
  - how to write the prompt
  - prompt template for the LLM
  - what to ask the LLM for
  - what to avoid when asking
reviewed_at: "2026-10-30"
---

# How to instruct the LLM

The MalhaOS skill already knows how to look up the workflow, take on the stage's role, and ask for authorization for each action. You don't need to explain that procedure. You need to say **which issue**, **what you want**, and **where to stop**.

## Principles

1. **Start with `/malha-os-workflow`.** That is what triggers the skill. Without the call, the LLM may answer without checking the workflow. In Codex CLI (terminal), use `$malha-os-workflow` instead of `/malha-os-workflow` in the templates below; in the ChatGPT app (Codex), keep the slash.
2. **Name the issue.** Without the ID, the LLM asks which one. An ID like `ABC-123` can exist on more than one board, so the LLM may also ask which board it is on. Answer, or paste the issue link with your request to avoid the question.
3. **Set the limits of the request.** “Only the analysis,” “until the gate passes,” “without changing the status.”
4. **Ask for the outcome, not the procedure.** The LLM works out how, within what the workflow allows.
5. **Ask it to check.** After creating or changing something, ask the LLM to confirm on the board.
6. **Ask for the list of what's missing.** When context is missing, the LLM should stop and list it, not make things up.
7. **Approve in your own words.** “Approved, go ahead” is the cue. Avoid “do it all the way through”: that pushes it to skip approval points.

## Templates

Copy them and replace `ABC-123` with your issue.

Start an issue:

```prompt
/malha-os-workflow Let's work on ABC-123. Resolve the current stage in the workflow, tell me the role and what the stage requires, and stop when that is done. Don't change the status without telling me.
```

Read only, change nothing:

```prompt
/malha-os-workflow Read ABC-123 and tell me which stage it is in and what is missing to leave it. Don't change anything.
```

Resume:

```prompt
/malha-os-workflow Resume ABC-123. Read the comments and the artifacts, resolve the stage again, and continue from where we left off.
```

Create child issues (see [Organizing work in batches](organizar-em-lotes)):

```prompt
/malha-os-workflow ABC-100 is the parent. Propose the children, with a title and a one-line scope for each, and wait for my OK. Then create them all in one step, linked to the parent, and check on the board what was created.
```

Feature QA issue (see [QA for a feature](qa-de-feature)):

```prompt
/malha-os-workflow Propose an integration QA issue for ABC-100, blocked by the children ABC-101 to ABC-105, with the end-to-end flows that must pass. Wait for my OK before creating it.
```

Look up the Wiki before answering:

```prompt
/malha-os-workflow Before answering, look up the MalhaOS Wiki on [topic] with `malha wiki search` and cite the page you used.
```

Save context (see [Cost and context](custo-e-contexto)):

```prompt
/malha-os-workflow Do only the current stage of ABC-123, record decisions and pending items in a comment on the issue, and stop. I'll open the next stage in another session.
```

Delegate reading to a sub-agent (see [Sub-agents](subagentes-no-trabalho)):

```prompt
/malha-os-workflow Use a sub-agent only to read [area]. Return up to 15 lines with file and line. It doesn't change anything or touch the board.
```

## Ask this way, avoid this

| Ask this way | Avoid |
|---|---|
| Start with `/malha-os-workflow` | Ask without the call (the LLM may answer outside the workflow) |
| “/malha-os-workflow Let's work on ABC-123. Stop when the gate passes.” | “Just resolve ABC-123.” (no limit, the LLM may advance stages) |
| “Propose and wait for my OK.” | “Create whatever you think is needed.” |
| “Check on the board what was created.” | Assuming it worked |
| “List what's missing.” | “Do it however you think best.” |
| “Record the decision in a comment on the issue.” | Leaving the decision only in the conversation |
| “Only read, don't change.” | Asking for an analysis without saying whether it may change things |

## What no template does

A template doesn't give permission. If your organization's workflow doesn't allow an action, the LLM doesn't do it and explains why, no matter how much the request insists. See [Daily use](uso-diario).

## Status

- **Available:** the templates above, validated in Claude Code and Codex.
- **Limitation:** what each template can do depends on your organization's workflow. The templates that create issues only work if the workflow allows it.
