Llm friendly context

From shinpr/claude-code-workflows · View interactive version

Llm friendly context is an AI agent skill from the GitHub repository shinpr/claude-code-workflows. Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream consumers 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

The goal is stable downstream execution: the next consumer should know what to read, what to do, what counts as success, and which unresolved decisions can change the result.

Core Rules

  1. Use positive, executable instructions
  1. Make vague instructions concrete
  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 before treating a prompt, handoff, or artifact as complete.

| Ambiguous form | Rewrite as |

|---|---|

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

| Alternatives whose choice changes a protected outcome | The governing constraint or unresolved owner decision; for reversible choices, purpose, evidence and selection criteria |

| 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/behavior, allowed dependencies, and verification expectation |

| TBD used as a placeholder for required information | A blocking unresolved item with owner, required input, and decision effect |

| appropriate / proper | A measurable criterion or checklist |

Handoff Checklist

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

Generated Artifact Checklist

Before writing or finalizing a generated document:

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.