Generates a structured context artifact to preserve session details for AI handoffs.
# Context Preservation & Migration Prompt [ for AGENT.MD pass THE `## SECTION` if NOT APPLICABLE ] Generate a comprehensive context artifact that preserves all conversational context, progress, decisions, and project structures for seamless continuation across AI sessions, platforms, or agents. This artifact serves as a "context USB" enabling any AI to immediately understand and continue work without repetition or context loss. ## Core Objectives Capture and structure all contextual elements from current session to enable: 1. **Session Continuity** - Resume conversations across different AI platforms without re-explanation 2. **Agent Handoff** - Transfer incomplete tasks to new agents with full progress documentation 3. **Project Migration** - Replicate entire project cultures, workflows, and governance structures ## Content Categories to Preserve ### Conversational Context - Initial requirements and evolving user stories - Ideas generated during brainstorming sessions - Decisions made with complete rationale chains - Agreements reached and their validation status - Suggestions and recommendations with supporting context - Assumptions established and their current status - Key insights and breakthrough moments - Critical keypoints serving as structural foundations ### Progress Documentation - Current state of all work streams - Completed tasks and deliverables - Pending items and next steps - Blockers encountered with mitigation strategies - Rate limits hit and workaround solutions - Timeline of significant milestones ### Project Architecture (when applicable) - SDLC methodology and phases - Agent ecosystem (main agents, sub-agents, sibling agents, observer agents) - Rules, governance policies, and strategies - Repository structures (.github workflows, templates) - Reusable prompt forms (epic breakdown, PRD, architectural plans, system design) - Conventional patterns (commit formats, memory prompts, log structures) - Instructions hierarchy (project-level, sprint-level, epic-level variations) - CI/CD configurations (testing, formatting, commit extraction) - Multi-agent orchestration (prompt chaining, parallelization, router agents) - Output format standards and variations ### Rules & Protocols - Established guidelines with scope definitions - Additional instructions added during session - Constraints and boundaries set - Quality standards and acceptance criteria - Alignment mechanisms for keeping work on track # Steps 1. **Scan Conversational History** - Review entire thread/session for all interactions and context 2. **Extract Core Elements** - Identify and categorize information per content categories above 3. **Document Progress State** - Capture what's complete, in-progress, and pending 4. **Preserve Decision Chains** - Include reasoning behind all significant choices 5. **Structure for Portability** - Organize in universally interpretable format 6. **Add Handoff Instructions** - Include explicit guidance for next AI/agent/session # Output Format Produce a structured markdown document with these sections: ``` # CONTEXT ARTIFACT: [Session/Project Title] **Generated**: [Date/Time] **Source Platform**: [AI Platform Name] **Continuation Priority**: [Critical/High/Medium/Low] ## SESSION OVERVIEW [2-3 sentence summary of primary goals and current state] ## CORE CONTEXT ### Original Requirements [Initial user requests and goals] ### Evolution & Decisions [Key decisions made, with rationale - bulleted list] ### Current Progress - Completed: [List] - In Progress: [List with % complete] - Pending: [List] - Blocked: [List with blockers and mitigations] ## KNOWLEDGE BASE ### Key Insights & Agreements [Critical discoveries and consensus points] ### Established Rules & Protocols [Guidelines, constraints, standards set during session] ### Assumptions & Validations [What's been assumed and verification status] ## ARTIFACTS & DELIVERABLES [List of files, documents, code created with descriptions] ## PROJECT STRUCTURE (if applicable) ### Architecture Overview [SDLC, workflows, repository structure] ### Agent Ecosystem [Description of agents, their roles, interactions] ### Reusable Components [Prompt templates, workflows, automation scripts] ### Governance & Standards [Instructions hierarchy, conventional patterns, quality gates] ## HANDOFF INSTRUCTIONS ### For Next Session/Agent [Explicit steps to continue work] ### Context to Emphasize [What the next AI must understand immediately] ### Potential Challenges [Known issues and recommended approaches] ## CONTINUATION QUERY [Suggested prompt for next AI: "Given this context artifact, please continue by..."] ``` # Examples **Example 1: Session Continuity (Brainstorming Handoff)** Input: "We've been brainstorming a mobile app for 2 hours. I need to switch to Claude. Generate context artifact." Output: ``` # CONTEXT ARTIFACT: FitTrack Mobile App Planning **Generated**: 2026-01-07 14:30 **Source Platform**: Google Gemini **Continuation Priority**: High ## SESSION OVERVIEW Brainstormed fitness tracking mobile app for busy professionals. Decided on minimalist design with AI coaching. Ready for technical architecture phase. ## CORE CONTEXT ### Original Requirements - Target users: Working professionals 25-40, limited gym time - Must sync with Apple Watch and Fitbit - Budget: $50k for MVP - Timeline: 3 months to launch ### Evolution & Decisions - ✓ Name: "FitTrack Pro" (rejected: "QuickFit", "PowerHour") - ✓ Core feature: 15-min AI-personalized workouts (not generic plans) - ✓ Monetization: Freemium ($9.99/mo premium) - ✓ Tech stack: React Native (for iOS+Android simultaneously) ### Current Progress - Completed: Feature prioritization, user personas, monetization model - In Progress: None yet - Pending: Technical architecture, database schema, API design - Blocked: None ## KNOWLEDGE BASE ### Key Insights & Agreements - Users want "smart short" over "long complete" - brevity is premium feature - AI coaching must feel conversat
This prompt creates a detailed summary of conversational context, progress, decisions, and project structures. It organizes information into categories like requirements, tasks, architecture, and rules to enable seamless continuation. The output acts as a portable artifact that any AI can use to resume work without repetition or loss.
A markdown document with sections covering conversational context, completed tasks, pending items, project architecture, and established rules, summarizing the current session state for immediate handoff.
It focuses on available history and notes any gaps in the progress documentation section.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by joembolinas. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.