Skip to main content

Submit a Framework Example

Share your implementation of a prompt framework to help other members of the community.

Framework Example Structure

Below is the structure for CHAIN Framework. Your example should follow this structure while applying it to a specific use case.

Context:

Set the scene with all relevant background and constraints

Hypothesis:

Propose an initial approach or theory to test

Analysis:

Break the problem into logical sub-steps and examine each

Inference:

Draw conclusions identifying patterns and connections

Narration:

Synthesize findings into a coherent answer with reasoning trail

Example Prompt:

Context: I am a senior engineer evaluating whether to migrate our monolithic Python REST API (Django, 50+ endpoints, PostgreSQL) to a microservices architecture. The system handles 8,000 requests per minute with periodic latency spikes during peak hours. Our team has six backend developers. Hypothesis: Splitting the three highest-traffic domains (user auth, order processing, inventory) into separate services will reduce latency spikes without requiring a full rewrite. Analysis: For each of the three candidate domains, evaluate coupling with other modules, data ownership boundaries, expected latency improvement, and migration risk. Consider shared database dependencies and inter-service communication overhead. Inference: Based on the analysis, identify which domains are strong candidates for extraction, which should stay monolithic, and what the projected performance and maintenance trade-offs are. Narration: Present your reasoning as a structured recommendation document with a clear decision for each domain, supporting evidence, a phased migration timeline, and risk mitigation steps.

Tips for Great Examples

  • Follow the framework structure exactly as defined
  • Use clear, practical examples that demonstrate real-world applications
  • Include AI responses if they showcased particularly helpful results
  • Explain any unique adaptations you made to the framework
  • Apply the framework to a specific, well-defined use case

Submit Your Example

Share your implementation of the CHAIN Framework framework

Submit Your Example

Share your own example of the CHAIN Framework: Context, Hypothesis, Analysis, Inference, Narration framework to help others learn.