Entity resolution

From hugoduncan/psi · View interactive version

Entity resolution is an AI agent skill from the GitHub repository hugoduncan/psi. Resolve ambiguous references in user requests into concrete entities, project-specific terms, and project paths before acting. Use when a request contains pronouns, deixis, aliases, shorthand, informal names, or path-like references that may map to project concepts or files.

How to use this skill

Skill file

Entity Resolution

Use this skill before acting when the user's request contains ambiguous or underspecified references, including:

Goal

Convert the user's surface language into a concrete, evidence-backed mapping:

surface reference → canonical project entity/path/term → evidence → confidence

Then proceed only when the mapping is sufficiently unambiguous.

Method

  1. Collect local context
  1. Identify referring expressions
  1. Generate candidates
  1. Score candidates
  1. Normalize to project terms
  1. Act or ask

Output Shape

For internal reasoning, keep a compact table:

| Surface | Canonical | Type | Evidence | Confidence |

| --- | --- | --- | --- | --- |

In the final response, include only the mapping needed for clarity, e.g.:

Interpreting “that workflow” as .psi/workflows/task-lifecycle.edn because it was the last workflow mentioned.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.