skills/fipa-00086-ontology-service/SKILL.md
Framework for coordinating meaning across autonomous agents that use different conceptual models, vocabularies, and knowledge representations. Treats ontologies as first-class negotiable resources rather than hardcoded implementation details.
npx skillsauth add curiositech/windags-skills fipa-00086-ontology-serviceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Agent A & B have semantic mismatch:
├─ Syntactic mismatch (different formats/protocols)?
│ └─ NOT an ontology problem → use protocol adapters/formatters
│
├─ Same ontology by reference?
│ └─ SUCCESS → direct communication, no translation needed
│
├─ Different ontologies, assess relationship:
│ ├─ Equivalent conceptualizations, different vocabularies?
│ │ └─ Create bidirectional term mapping → strong translatability
│ │
│ ├─ One ontology subsumes the other?
│ │ ├─ Task requires specialized concepts → use richer ontology
│ │ └─ Task works with general concepts → use simpler ontology
│ │
│ ├─ Partial overlap with acceptable information loss?
│ │ ├─ Task tolerates approximation → implement lossy translation
│ │ └─ Task requires precision → negotiate shared ontology or mediator
│ │
│ └─ No meaningful translation possible?
│ ├─ Find mediating ontology both can translate to
│ ├─ Renegotiate task to use compatible concepts
│ └─ ESCALATE: coordination impossible at ontology level
System requirements analysis:
Will unknown agents join at runtime?
├─ YES → EXPLICIT ontologies required
│ └─ Need discovery/negotiation infrastructure
│
└─ NO → Analyze further:
│
├─ Performance critical (real-time, embedded)?
│ └─ IMPLICIT → hard-code shared conceptualization
│
├─ Requirements likely to evolve?
│ └─ EXPLICIT → enable runtime adaptation
│
└─ Stable, closed system?
└─ IMPLICIT → optimize for execution speed
Integrating existing heterogeneous systems:
Proposed approach is "find ontology intersection"?
├─ YES → RED FLAG: Bottom-up integration
│ ├─ Syntactic overlap ≠ semantic overlap
│ ├─ Risk of silent semantic failures
│ └─ ALTERNATIVE: Top-down foundation approach
│
└─ NO → Assess current approach:
│
├─ Starting with shared conceptual primitives?
│ └─ GOOD → verify intended models align
│
├─ Mapping to existing standard ontology?
│ └─ GOOD → validate translation completeness
│
└─ Building custom mediating ontology?
└─ VERIFY: covers both systems' essential concepts
Symptoms: Systems exchange messages successfully, but agents take incompatible actions based on "translated" content Detection Rule: If agents claim successful communication but exhibit contradictory behaviors, check for semantic misalignment despite syntactic compatibility Root Cause: Assumed same vocabulary means same conceptualization Fix: Verify intended models, not just formal models; implement semantic validation checks
Symptoms: Integration project finds "common concepts" between ontologies but coordination fails mysteriously during testing Detection Rule: If ontology intersection contains terms with identical names but agents interpret them differently, this is intersection illusion Root Cause: Bottom-up integration assuming syntactic overlap guarantees semantic overlap Fix: Switch to top-down approach; establish shared conceptual foundation first
Symptoms: Integration project stalls because "perfect" translation between ontologies is impossible to achieve Detection Rule: If project blocks on achieving lossless bidirectional translation when task only requires approximate coordination Root Cause: Over-engineering translation requirements beyond task needs Fix: Match translation quality to task requirements using hierarchy (identical → equivalent → strongly translatable → weakly translatable → approximate)
Symptoms: System appears to work initially but produces increasingly incorrect results over time Detection Rule: If coordination quality degrades without syntax errors, check for conceptualization divergence Root Cause: Implicit ontologies evolving independently without coordination Fix: Make ontologies explicit; implement semantic version control and change notification
Symptoms: Each agent implements its own translation logic, creating N² complexity and inconsistent translations Detection Rule: If translation code is duplicated across agents and produces different results for same inputs Root Cause: Treating ontology coordination as per-agent concern rather than system infrastructure Fix: Implement centralized Ontology Agent service; standardize on OKBC interlingua for meta-knowledge operations
Scenario: Emergency response system needs weather data from two sources: MeteoService (European, Celsius, wind in km/h) and WeatherAPI (US, Fahrenheit, wind in mph).
Symptom: Both services provide "temperature" and "wind_speed" but emergency system makes wrong evacuation decisions.
Diagnosis Process:
Decision Navigation:
Solution: Create translation service with conversion functions and explicit error bounds (±2°C, ±5km/h). Emergency system uses "hot enough for fire risk" threshold that accounts for translation uncertainty.
Expert vs Novice:
Scenario: Healthcare agents from Hospital-A (using HL7 FHIR) and Research-Lab (custom medical ontology) need to coordinate patient data for clinical trial.
Symptom: Agents exchange messages but Research-Lab misinterprets "patient status" leading to wrong treatment group assignments.
Diagnosis Process:
Decision Navigation:
Solution: Deploy Ontology Agent with mediating vocabulary covering both systems' essential concepts. Both agents translate to/from mediator rather than direct translation.
Trade-offs Discussed:
Do NOT use this skill for:
When to delegate:
data-transformation-pipelines skillknowledge-base-optimization skillsemantic-nlp-processing skillapi-design-patterns skillThis skill focuses specifically on coordination between autonomous agents with different conceptual models. It is not a general-purpose semantic technology or data integration solution.
data-ai
license: Apache-2.0 NOT for unrelated tasks outside this domain.
development
Use when designing caching strategies (cache-aside, write-through, write-behind), implementing distributed locks, building rate limiters, leaderboards, real-time streams (XADD/consumer groups), pub/sub, or tuning eviction policies. Triggers: thundering-herd on cache miss, dogpile on key expiry, Redlock vs SET-NX-PX choice, sliding-window rate limiter, hot-key on a single cluster slot, big-key blowup, MULTI/EXEC across slots, KEYS in production. NOT for Redis Cluster operations/admin (different domain), embedded KV (SQLite, leveldb), in-process LRU caches, or Memcached.
tools
Drawing the `'use client'` boundary correctly in React Server Components apps (Next.js App Router, RSC frameworks) — leaf-pushing, slot composition, serialization rules, and environment poisoning prevention. Grounded in react.dev and Next.js 16 docs.
development
Use when designing rate limiting for an API, choosing between token bucket / sliding window / leaky bucket / fixed window, implementing it in Redis, deciding edge (Cloudflare/Upstash) vs origin enforcement, sizing per-user vs per-IP vs per-endpoint quotas, returning the right 429 response with Retry-After, or fixing the boundary-burst bug in fixed-window limiters. Triggers: 429 too many requests, INCR + EXPIRE, ZADD + ZREMRANGEBYSCORE + ZCARD, X-RateLimit-Remaining header, Cloudflare WAF rate limiting rules, Upstash @upstash/ratelimit, leaky bucket shaping vs policing, distributed rate limiter consistency. NOT for DDoS mitigation specifically (different scale), CAPTCHA / bot management, full WAF design, or per-user quota billing.