Skip to content

Instantly share code, notes, and snippets.

@kzu
Created August 14, 2026 13:15
Show Gist options
  • Select an option

  • Save kzu/ddb7891749814c57daddd90d9c434cdc to your computer and use it in GitHub Desktop.

Select an option

Save kzu/ddb7891749814c57daddd90d9c434cdc to your computer and use it in GitHub Desktop.
name create-primer
description Generate a self-contained primer prompt for continuing project work in a fresh AI agent coding session. Use when the user asks for a primer, handoff prompt, session continuation prompt, or to summarize current project state for a new agent.

Create a primer prompt that can be added into a fresh AI agent coding session to continue this work.

Focus on the current state of the project rather than summarizing the entire conversation.

Include:

  • The overall goal
  • What has been implemented and verified
  • Important architectural and implementation decisions
  • Key files/components involved
  • Constraints and conventions that should be preserved
  • Known issues, failed approaches, or important gotchas
  • Anything still unresolved
  • The exact next steps we should take
  • Commands/tests that can be used to verify the current state

Make the primer self-contained so a new agent session can understand the project and immediately continue the work without access to this conversation.

Do not include conversational history that isn't useful for continuing the work.

Output the primer as a single, ready-to-paste block of text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment