Universal Context Document (UCD) Generator
TEXT# 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 topicOverview
Universal Context Document (UCD) Generator is a free prompt on OpenRuna. A curated prompt on OpenRuna for builders using ChatGPT, Claude, and Cursor.
What this prompt does
"Universal Context Document (UCD) Generator" is designed to help you get reliable results from AI assistants for real prompt tasks. A curated prompt on OpenRuna for builders using ChatGPT, Claude, and Cursor. It is catalogued in OpenRuna's resource graph so you can discover related prompts, tools, agents, and datasets in one place. Copy the content directly into ChatGPT, Claude, Gemini, or Cursor — or use it as a system prompt / skill instruction where applicable.
Use cases
- Use "Universal Context Document (UCD) Generator" when you need a repeatable prompt for professional workflows without writing instructions from scratch each time.
- Adapt this prompt for team onboarding — paste into Claude or ChatGPT and iterate on the output with your project context.
- Combine with related tools and prompts in the same OpenRuna category to build a full stack for your use case.
- Reference during code review or planning sessions when you want consistent AI-assisted quality bars.
Example output
When you run this prompt, expect structured output similar to: # 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 G… Outputs vary by model and temperature; treat the first response as a draft and refine with follow-up prompts.
Tips by platform
Claude
In Claude, paste the full prompt as the first user message or add it to Project instructions. Ask Claude to confirm assumptions before executing. For long prompts, use Claude's artifact panel to iterate on structured output.
ChatGPT
In ChatGPT, start a new chat and paste this prompt verbatim. Enable GPT-4o or your preferred model for coding tasks. Use follow-ups like "apply this to [your context]" for best results.
Cursor
In Cursor, add key instructions from this prompt to .cursorrules or a SKILL.md file. Reference it in Agent mode with @ mentions. Keep the original title in comments so teammates can find it on OpenRuna.
Frequently asked questions
- What is "Universal Context Document (UCD) Generator"?
- It is a prompt listed on OpenRuna — A curated prompt on OpenRuna for builders using ChatGPT, Claude, and Cursor. You can copy and adapt it for ChatGPT, Claude, Cursor, or other AI tools.
- Is this prompt free to use?
- Most OpenRuna resources are open or CC0-licensed. Check the license on this page before commercial use. Premium collections are clearly marked.
- How do I get the best results?
- Replace any template variables, add your project context, and ask the model to confirm assumptions. Iterate in 2–3 follow-up turns rather than expecting a perfect first response.
- Can I use this with Claude and ChatGPT?
- Yes. The prompt is model-agnostic text. Tips on this page cover Claude, ChatGPT, and Cursor specifically.
- Where can I find related resources?
- Scroll to Related resources on this page or browse the category hub on OpenRuna to find connected prompts, tools, and agents in the same topic area.
Related resources
- Agent
PraisonAI
24/7 AI employee team for automating complex challenges. Low-code multi-agent framework with handoffs, guardrails, memory, RAG, and 100+ LLM providers
- Agent
Prompt Optimizer
AI prompt optimization tool with multi-round iterative improvements, dual-mode optimization for system and user prompts, and multi-model support. Available as web app, desktop app, Chrome extension, and Docker deployment. AGPL-3.0 licensed
- Agent
Archon
Workflow engine for deterministic AI coding agents. Define development processes as YAML workflows (planning → implementation → validation → review → PR) with isolated Git worktrees for parallel execution. MIT licensed
- Agent
A2A Protocol
Agent2Agent (A2A) open protocol enabling communication and interoperability between opaque agentic applications. Donated to Linux Foundation by Google with 50+ technology partners. Apache 2.0 licensed
- Agent
CAMEL
First and best multi-agent framework for building scalable agent systems. Apache 2.0 licensed with extensive tooling for agent communication and task automation
- Agent
Neuron AI
PHP Agentic Framework for building production-ready AI driven applications. Connect components (LLMs, vector DBs, memory) to agents that can interact with your data. MIT licensed
- Agent
smolagents
Lightweight agent framework centered on tool use and code-executing workflows
- Agent
Supermemory
Memory API and app for AI agents that provides fast, scalable, context-aware storage and retrieval across projects. MIT licensed
