Entity Retrieval
Overview
This skill retrieves relevant entities from a stored knowledge base based on the current task context. It loads all stored entities and presents them to Claude for relevance filtering.
How It Works
- •Hook fires on user prompt submission
- •Script reads prompt from stdin (JSON with
promptfield) - •Loads all entities from the entities JSON file
- •Outputs formatted entities to stdout
- •Claude receives entities as additional context and applies relevant ones
Entities Storage
Entities are stored in .claude/entities.json in the project root:
json
{
"entities": [
{
"content": "Use context managers for file operations",
"rationale": "Ensures proper resource cleanup",
"category": "strategy",
"trigger": "When processing files or managing resources"
}
]
}