Back to guide/General Productivity

Dynamic Context Selector

Mapping task types to context sources creates a reusable routing system rather than a one-size-fits-all context dump.

context-engineering-guidetask_varietytask_context_mappingall_context_sources
Edit View
Prompt
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

{{task_variety}}{{task_context_mapping}}{{all_context_sources}}

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.