Llm friendly context

From shinpr/codex-workflows · View interactive version

Llm friendly context is an AI agent skill from the GitHub repository shinpr/codex-workflows. Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream agents can execute without guessing. Use when writing or revising LLM-facing prompts, handoffs, planning artifacts, reviews, reports, or generated instructions.

How to use this skill

Skill file

LLM-Friendly Context

Purpose

Use this skill when writing or revising any content another agent will execute or judge: prompts, handoffs, planning artifacts, review findings, completion reports, generated instructions, test skeleton comments, work plans, and task files.

The goal is stable downstream execution. The next agent should know the target action, required inputs, accepted decisions, observable success criteria, and the condition that requires escalation.

Core Rules

  1. Use positive, executable instructions
  1. Resolve outcome-relevant ambiguity
  1. Specify output shape
  1. Provide the smallest sufficient context
  1. Decompose complex work into verifiable steps
  1. Permit uncertainty explicitly
  1. Keep constraints proportionate

Rewrite Patterns

Use these rewrites when an ambiguity materially changes the next action or its result. Retain valid local choices within the stated boundaries.

| Ambiguous form | Rewrite as |

|---|---|

| optional used as an unresolved choice | Required, omitted, or required only under a named condition |

| Alternatives with different scope or contract effects | The accepted decision, or the evidence boundary within which the agent may choose |

| as needed / if needed | The triggering condition and required action |

| per convention | The file, function, test, or documented convention to follow |

| related files | Specific paths, globs, or search hints |

| existing behavior | The observable behavior, source file, test, API response, or UI state to preserve |

| placeholder | Exact temporary value or behavior, allowed dependencies, and verification expectation |

| TBD used for required information | A blocking unresolved item with owner, required input, or escalation condition |

| appropriate / proper with materially different interpretations | The observable success criterion that distinguishes acceptable results |

Handoff Checklist

Before sending a prompt or artifact to another agent, verify:

Generated Artifact Checklist

Before writing or finalizing a generated document:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.