Dynamic Context Selector
Mapping task types to context sources creates a reusable routing system rather than a one-size-fits-all context dump.
Build a context selection strategy for an AI assistant that handles {{task_variety}} different task types.\n\nTask types and their context needs:\n{{task_context_mapping}}\n\nAvailable context sources:\n{{all_context_sources}}\n\nDesign a dynamic context selection system that:\n1. Classifies the incoming user request into a task type\n2. Selects the relevant context sources for that type\n3. Orders and formats the context optimally\n4. Handles ambiguous requests that span multiple task types\n5. Includes a fallback context set for unrecognized requests\n\nProvide the decision logic as a flowchart description and example context assemblies for the top 3 most common task types.
Variables to customize
Why this prompt works
Mapping task types to context sources creates a reusable routing system rather than a one-size-fits-all context dump.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.