name: "potpie-context" version: "1" recommended: true description: "Use when an agent needs project context from the context engine through MCP tools. Covers context_resolve recipes for feature, debugging, review, operations, docs, and onboarding without adding separate context tools."
Potpie Agent Context
Use this skill when the task requires gathering, verifying, or recording project context through the Potpie MCP tools.
Tool Surface
Use only the minimal context port:
context_resolve— primary task context wrap.context_status— cheap pot readiness, freshness gaps, and recommended recipe.context_search— narrow follow-up lookup aftercontext_resolve.context_record— durable learnings: decisions, fixes, preferences, workflows, feature notes, doc references, incident summaries.
Do not request or invent separate tools for feature context, debugging context, operations context, source lookup, or docs context. Express those through context_resolve parameters.
Operating Loop
- Resolve or ask for the active
pot_id. - Build a narrow
scopefrom known repo, branch, files, services, features, environment, PR, ticket, user, or source refs. - Call
context_statuswhen setup or readiness is uncertain or the task is broad. - Call
context_resolvewith the matching recipe. - Inspect
coverage,freshness,quality,fallbacks,open_conflicts, andsource_refsbefore relying on the answer. - Escalate only when needed:
source_policy="summary"for compact source-backed summaries.source_policy="verify"andmode="verify"before production-impacting or disputed facts.source_policy="snippets"ormode="deep"only for bounded source detail within budget.
- Use
context_recordwhen the work discovers reusable project memory.
Recipes
Feature work:
{"intent":"feature","include":["purpose","feature_map","service_map","docs","tickets","decisions","recent_changes","owners","preferences","source_status"],"mode":"fast","source_policy":"references_only"}
Debugging:
{"intent":"debugging","include":["prior_fixes","diagnostic_signals","incidents","alerts","recent_changes","config","deployments","owners","source_status"],"mode":"fast","source_policy":"references_only"}
Review:
{"intent":"review","include":["artifact","discussions","owners","recent_changes","decisions","preferences","source_status"],"mode":"balanced","source_policy":"summary"}
Operations:
{"intent":"operations","include":["deployments","runbooks","alerts","incidents","scripts","config","owners","source_status"],"mode":"balanced","source_policy":"summary"}
Docs:
{"intent":"docs","include":["docs","decisions","source_status"],"mode":"fast","source_policy":"references_only"}
Onboarding:
{"intent":"onboarding","include":["purpose","repo_map","service_map","docs","local_workflows","agent_instructions","source_status"],"mode":"fast","source_policy":"references_only"}
Recording Durable Memory
Use context_record with record_type one of:
decision— architectural or product decision.fix— concrete fix that resolved a bug or incident.bug_pattern— recurring symptom/root-cause pattern.investigation— useful diagnostic path or ruled-out hypotheses.diagnostic_signal— log line, metric, alert, or error signature.preference— team/user/project preference.workflow— local, release, deployment, or operational workflow.feature_note,service_note,runbook_note,integration_note,doc_reference,incident_summary.
Keep records compact and source-reference-first.
Quality And Drift
quality.status=good— graph context acceptable for low-risk orientation.quality.status=watch— verify stale or unverified facts before high-impact action.quality.status=degraded— prefer source truth; consider recording an alignment correction.- Follow
quality.recommended_maintenancewhen the response suggests jobs such asverify_entity,refresh_scope,resync_source_scope,repair_code_bridges, orexpire_stale_facts.