Federated Taxonomy Extraction
Extracts federated taxonomy tags from text for memory storage and multi-hop graph traversal. Validates LLM-extracted candidates against known vocabulary with deterministic filtering.
name: taxonomy description: > Extract Federated Taxonomy tags from text. LLM extracts candidates, deterministic validation filters to known vocabulary. Returns bridge tags for multi-hop graph traversal. allowed-tools: ["Bash", "Read"] triggers:
- taxonomy
- tag this
- classify
- what tags
- bridge tags metadata: short-description: Extract taxonomy tags for graph traversal
Taxonomy
Extract Federated Taxonomy tags from text for memory storage and multi-hop graph traversal.
Quick Start
# Extract tags from text
./run.sh --text "Error handling in the authentication module" --collection operational
# Extract from file
./run.sh --file document.txt --collection lore
# Just get bridge tags (for graph traversal)
./run.sh --text "..." --bridges-only
Output
{
"bridge_tags": ["Resilience", "Loyalty"],
"collection_tags": {"function": "Fix", "domain": "Middleware"},
"confidence": 0.8,
"worth_remembering": true
}
Bridge Tags (Tier 0)
Shared across all collections - enable cross-collection queries:
| Tag | Indicates | |-----|-----------| | Precision | Methodical, optimized, algorithmic | | Resilience | Fault tolerance, error handling, robustness | | Fragility | Technical debt, brittleness, single point of failure | | Corruption | Bugs, data corruption, silent failures | | Loyalty | Security, compliance, auth, encryption | | Stealth | Hidden, evasion, infiltration |
Collection Types
- lore - Narrative/story content (HLT vocabulary)
- operational - Code/technical lessons (Operational vocabulary)
- sparta - Security content (ATT&CK/D3FEND vocabulary)
Use Cases
- Before storing to memory: Get tags to enable graph traversal
- Filtering what to remember: Check
worth_rememberingfield - Cross-collection queries: Use bridge_tags for multi-hop search
Composing with /learn
# /learn can call /taxonomy for tag extraction
tags=$(./run.sh --text "$content" --collection operational --json)
bridge_tags=$(echo "$tags" | jq -r '.bridge_tags | join(",")')
Related skills
Prompt Engineering
Prompt engineering best practices and templates to maximize AI outputs.
Data Visualization
Generates data visualizations and charts tailored to your data.
RAG Architecture Setup
Setup guide for RAG (Retrieval-Augmented Generation) architectures.