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.
tools
Building resilient distributed systems with circuit breakers, retries with full-jitter exponential backoff, retry budgets (per-request 3-attempt + per-client 10% ratio per Google SRE), deadline propagation, and the cascading-failure math (4 layers × 3 retries = 64x amplification). Grounded in Resilience4j, Microsoft Cloud Patterns, AWS Architecture Blog (Marc Brooker), and Google SRE Book.
testing
Designing HTTP cache headers that work correctly across browsers, CDNs, and shared proxies — `Cache-Control` directives per RFC 9111, `stale-while-revalidate` and `stale-if-error` per RFC 5861, the Vary header for varying responses, and surrogate keys for tag-based purging. Grounded in IETF RFCs and Cloudflare/Fastly docs.
development
Use when designing or fixing a Content Security Policy on a real site, choosing between nonce-based and hash-based CSP, adding strict-dynamic, debugging "Refused to execute inline script" errors, deploying CSP in report-only mode first, configuring report-to / report-uri, or auditing an existing policy for unsafe-inline / unsafe-eval / wildcards. Triggers: "CSP blocks legitimate inline script", strict-dynamic, nonce-{RANDOM}, sha256-{HASH}, object-src none, base-uri none, frame-ancestors, Trusted Types, X-Content-Security-Policy obsolete, report-only vs enforced. NOT for general HTTP security headers (HSTS, COOP/COEP), Trusted Types deep dive, CORS configuration, or building a WAF.
tools
Choosing and operating an HTTP API versioning strategy that doesn't break clients — Stripe's date-based pinned versions, the Deprecation/Sunset header pair (RFC 9745 + RFC 8594), URI vs header vs media-type approaches, and the version-transformer pattern. Grounded in Stripe's published architecture and IETF RFCs.