Create a comprehensive, platform-agnostic Universal Context Document (UCD) to preserve AI conversation history, technical decisions, and project state with zero information loss for seamless cross-platform continuation.
# Optimized Universal Context Document Generator Prompt
**v1.1** 2026-01-20
Initial comprehensive version focused on zero-loss portable context capture
## Role/Persona
Act as a **Senior Technical Documentation Architect and Knowledge Transfer Specialist** with deep expertise in:
- AI-assisted software development and multi-agent collaboration
- Cross-platform AI context preservation and portability
- Agile methodologies and incremental delivery frameworks
- Technical writing for developer audiences
- Cybersecurity domain knowledge (relevant to user's background)
## Task/Action
Generate a comprehensive, **platform-agnostic Universal Context Document (UCD)** that captures the complete conversational history, technical decisions, and project state between the user and any AI system. This document must function as a **zero-information-loss knowledge transfer artifact** that enables seamless conversation continuation across different AI platforms (ChatGPT, Claude, Gemini, Grok, etc.) days, weeks, or months later.
## Context: The Problem This Solves
**Challenge:** Extended brainstorming, coding, debugging, architecture, and development sessions cause valuable context (dialogue, decisions, code changes, rejected ideas, implicit assumptions) to accumulate. Breaks or platform switches erase this state, forcing costly re-onboarding.
**Solution:** The UCD is a "save state + audit trail" — complete, portable, versioned, and immediately actionable.
**Domain Focus:** Primarily software development, system architecture, cybersecurity, AI workflows; flexible enough to handle mixed-topic or occasional non-technical digressions by clearly delineating them.
## Critical Rules/Constraints
### 1. Completeness Over Brevity
- No detail is too small. Capture nuances, definitions, rejections, rationales, metaphors, assumptions, risk tolerance, time constraints.
- When uncertain or contradictory information appears in history → mark clearly with `[POTENTIAL INCONSISTENCY – VERIFY]` or `[CONFIDENCE: LOW – AI MAY HAVE HALLUCINATED]`.
### 2. Platform Portability
- Use only declarative, AI-agnostic language ("User stated...", "Decision was made because...").
- Never reference platform-specific features or memory mechanisms.
### 3. Update Triggers (when to generate new version)
Generate v[N+1] when **any** of these occur:
- ≥ 12 meaningful user–AI exchanges since last UCD
- Session duration > 90 minutes
- Major pivot, architecture change, or critical decision
- User explicitly requests update
- Before a planned long break (> 4 hours or overnight)
### Optional Modes
- **Full mode** (default): maximum detail
- **Lite mode**: only when user requests or session < 30 min → reduce to Executive Summary, Current Phase, Next Steps, Pending Decisions, and minimal decision log
## Output Format Structure
```markdown
# Universal Context Document: [Project Name or Working Title]
**Version:** v[N]|[model]|[YYYY-MM-DD]
**Previous Version:** v[N-1]|[model]|[YYYY-MM-DD] (if applicable)
**Changelog Since Previous Version:** Brief bullet list of major additions/changes
**Session Duration:** [Start] – [End] (timezone if relevant)
**Total Conversational Exchanges:** [Number] (one exchange = one user message + one AI response)
**Generation Confidence:** High / Medium / Low (with brief explanation if < High)
---
## 1. Executive Summary
### 1.1 Project Vision and End Goal
### 1.2 Current Phase and Immediate Objectives
### 1.3 Key Accomplishments & Changes Since Last UCD
### 1.4 Critical Decisions Made (This Session)
## 2. Project Overview
(unchanged from original – vision, success criteria, timeline, stakeholders)
## 3. Established Rules and Agreements
(unchanged – methodology, stack, agent roles, code quality)
## 4. Detailed Feature Context: [Current Feature / Epic Name]
(unchanged – description, requirements, architecture, status, debt)
## 5. Conversation Journey: Decision History
(unchanged – timeline, terminology evolution, rejections, trade-offs)
## 6. Next Steps and Pending Actions
(unchanged – tasks, research, user info needed, blockers)
## 7. User Communication and Working Style
(unchanged – preferences, explanations, feedback style)
## 8. Technical Architecture Reference
(unchanged)
## 9. Tools, Resources, and References
(unchanged)
## 10. Open Questions and Ambiguities
(unchanged)
## 11. Glossary and Terminology
(unchanged)
## 12. Continuation Instructions for AI Assistants
(unchanged – how to use, immediate actions, red flags)
## 13. Meta: About This Document
### 13.1 Document Generation Context
### 13.2 Confidence Assessment
- Overall confidence level
- Specific areas of uncertainty or low confidence
- Any suspected hallucinations or contradictions from history
### 13.3 Next UCD Update Trigger (reminder of rules)
### 13.4 Document Maintenance & Storage Advice
## 14. Changelog (Prompt-Level)
- Summary of changes to *this prompt* since last major version (for traceability)
---
## Appendices (If Applicable)
### Appendix A: Code Snippets & Diffs
- Key snippets
- **Git-style diffs** when major changes occurred (optional but recommended)
### Appendix B: Data Schemas
### Appendix C: UI Mockups (Textual)
### Appendix D: External Research / Meeting Notes
### Appendix E: Non-Technical or Tangential Discussions
- Clearly separated if conversation veered off primary topic
It is ideal for literature reviews where consistency, clarity, and proper citation structure.
I am preparing a BibTeX file for an academic project.
Please convert the following references into a single, consistent BibTeX format with these rules:
Use a single citation key format: firstauthorlastname + year (e.g., esteva2017)
Use @article for journal papers and @misc for web tools or demos
Include at least the following fields: title, author, journal (if applicable), year
Additionally, include doi, url, and a short abstract if available
Ensure author names follow BibTeX standards (Last name, First name)
Avoid Turkish characters, uppercase letters, or long citation keys
Output only valid BibTeX entries.
Create detailed and personalized treatment plans in integrative medicine, combining conventional and holistic approaches for specific patient needs.
Act like a licensed, highly experienced practitioner_role with expertise in medical_specialties, combining conventional medicine with evidence-informed holistic and integrative care.
Your objective is to design a comprehensive, safe, and personalized treatment plan for a patient_age_group patient diagnosed with disease_or_condition. The goal is to primary_goals while supporting overall physical, mental, and emotional well-being, taking into account the patient’s unique context and constraints.
Task:
Create a tailored treatment plan for a patient with disease_or_condition that integrates conventional treatments, complementary therapies, lifestyle interventions, and natural or supportive alternatives as appropriate.
Step-by-step instructions:
1) Briefly summarize disease_or_condition, including common causes, symptoms, and progression relevant to patient_age_group.
2) Define key patient-specific considerations, including age (patient_age), lifestyle (lifestyle_factors), medical history (medical_history), current medications (current_medications), and risk factors (risk_factors).
3) Recommend conventional medical treatments (e.g., medications, procedures, therapies) appropriate for disease_or_condition, clearly stating indications, benefits, and precautions.
4) Propose complementary and holistic approaches (e.g., nutrition, movement, mind-body practices, physical modalities) aligned with the patient’s abilities and preferences.
5) Include herbal remedies, supplements, or natural alternatives where appropriate, noting potential benefits, contraindications, and interactions with current_medications.
6) Address lifestyle and environmental factors such as sleep, stress, work or daily routines, physical activity level, and social support.
7) Provide a practical sample routine or care plan (daily or weekly) showing how these recommendations can be realistically implemented.
8) Add clear safety notes, limitations, and guidance on when to consult or defer to qualified healthcare professionals.
Requirements:
- Personalize recommendations using the provided variables.
- Balance creativity with clinical responsibility and evidence-based caution.
- Avoid absolute claims, guarantees, or diagnoses beyond the given inputs.
- Use clear, compassionate, and accessible language.
Constraints:
- Format: Structured sections with clear headings and bullet points.
- Style: Professional, empathetic, and practical.
- Scope: Focus strictly on disease_or_condition and patient-relevant factors.
- Self-check: Verify internal consistency, safety, and appropriateness before finalizing.
Take a deep breath and work on this problem step-by-step.
"Curate a collection of expert tips, advanced learning strategies, and high-quality resources (such as books, courses, tools, or communities) for mastering [topic] efficiently. Emphasize credible sources and actionable advice to accelerate expertise."
For techs and engineers who need an accurate, importable I/O list from a schematic without the AI quietly guessing contact types or ranges.
I want you to act as a controls technician building an I/O list from electrical drawings. Below is the PLC I/O sheet, typed or pasted as printed: Drawing number and revision. Target platform: any.
Transcribe it into a table with one row per channel:
Rack/Slot/Channel | Address as printed | Wire number | Terminal | Field device tag | Description as printed | Device type | NO/NC | Signal type and range | Proposed PLC tag name | Notes
Rules:
1. Copy text exactly as printed. Do not correct spelling, tag names or wire numbers. Mark anything unreadable as ILLEGIBLE.
2. Do not fill NO/NC, signal type or range from typical values. If the sheet does not state it, write NOT ON DRAWING.
3. Spare channels get their own rows marked SPARE.
4. Proposed tag names follow this convention: Area_Device_Function. Keep them separate from the printed text.
5. After the table, list: duplicate addresses or wire numbers, channels with a device but no description, redlines or clouded changes you noticed, and questions for the drawing owner.
Give the table as CSV as well, so I can import it.
=== DRAWING SHEET ===
Paste or describe the I/O sheet
For controls techs and engineers preparing a FAT or SAT who want every spec clause tested, including the failure cases.
I want you to act as a commissioning engineer writing a Factory Acceptance Test (FAT) plan. Machine: a sorting conveyor with three diverters. Below is the functional specification, numbered by clause.
Write test cases as a table:
Test ID | Spec clause | Precondition | Action (what I do or force) | Expected result (exact tags, values, HMI text and timing) | Pass/Fail | Witness
Cover, for every clause:
1. Normal operation: start, run, stop, mode changes.
2. Each sensor stuck on, stuck off and flickering. Each actuator failing to move.
3. Faults during stop and during reset. Two faults at once.
4. Power cycle, controller stop/run and communication loss: what must restart, what must not.
5. Boundary values: test just under and just over every timer and setpoint in the spec.
Where the spec does not define the reaction, write NOT IN SPEC and add a question. Do not invent behaviour.
After the table give: a clause-to-test coverage matrix (any clause with no test is a gap), and the order to run the tests so I force and clear signals the fewest times.
=== FUNCTIONAL SPECIFICATION ===
Paste spec