AGENT SKILL

ontology-design

Design and review ontologies using Palantir Foundry Ontology best practices, structural guidance, and anti-patterns (domain-driven modeling, DRY, open/closed, composition via interfaces; System Silos, Kitchen Sink, God Object, Golden Hammer, Action Sprawl, Time Machine, Misnomer). Use when designing or reviewing object types, properties, links, interfaces, actions, pipelines vs automations, ontology proposals, or when the user mentions ontology design / anti-patterns.

License 许可
MIT
所属仓库
EnzoTironi/skills
最近更新
2026-08-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
ontology-design
description
Design and review ontologies using Palantir Foundry Ontology best practices, structural guidance, and anti-patterns (domain-driven modeling, DRY, open/closed, composition via interfaces; System Silos, Kitchen Sink, God Object, Golden Hammer, Action Sprawl, Time Machine, Misnomer). Use when designing or reviewing object types, properties, links, interfaces, actions, pipelines vs automations, ontology proposals, or when the user mentions ontology design / anti-patterns.
disable-model-invocation
true

02 资源文件 19

03 SKILL.md 正文

Ontology design

Apply Palantir Foundry Ontology design guidance as the reference pattern language. Translate patterns into the host product; do not clone Foundry product surfaces (Workshop, OSDK monorepos, Funnel internals, etc.) unless that product is the target.

If the repo has local ontology ADRs, kernel invariants, or a mapping doc (e.g. docs/research/palantir/12-zoen-mapping.md), those win on conflict — surface the conflict instead of silently overriding.

Official trilogy (read when detail is needed):

Page Local
Best practices references/best-practices.md
Structural guidance references/structural-guidance.md
Anti-patterns references/anti-patterns.md

Fetched neighbors and raw dumps: references/linked-pages.md, references/sources/README.md.

When to use

  • Designing or changing object types, properties, links, interfaces, or actions
  • Reviewing an ontology proposal / import / pack
  • Choosing action vs pipeline vs automation vs function
  • Naming, security boundaries, history/versioning of entities

Workflow

Copy and track:

Ontology design:
- [ ] 1. Domain first (entities + relationships in business language)
- [ ] 2. Canonical types (no system/dept silos)
- [ ] 3. Curate properties (no kitchen sink)
- [ ] 4. Structure (normalize, structs, interfaces, link shape)
- [ ] 5. Kinetics (right tool + cohesive business actions)
- [ ] 6. Security + naming + documentation
- [ ] 7. Anti-pattern scan
- [ ] 8. Host-product fit (local invariants / mapping)

1. Domain first

Model reality, not source schemas.

  1. Name real-world entities with stakeholders before opening tables/CSVs.
  2. One focused type per distinct entity; split identity vs observation/event.
  3. Links = meaningful relationships, not FK accidents.
  4. Names for humans and agents (lastInspectionDate, not dtLastInspMod).
  5. Map data into the model last. Mark non-semantic helpers hidden when needed.

2. Canonical types

One concept → one canonical type (or shared interface). Rule of three: one copy ok, two warn, three refactor.

Reject: System Silos (HR Employee / Badge Employee) and Department Silos (Sales Customer / Support Customer). Prefer merge in pipelines + props/links for specialty data.

3. Curate properties

Every property needs clear business or technical value. Exclude ETL/pipeline metadata from the ontology surface; keep it in backing datasets.

4. Structure

Read structural-guidance.md when shaping the model:

  • Store each fact once; prefer derived/query-time aggregates over manual copies
  • Structs for multi-field concepts (address, AI result + confidence)
  • Interfaces for shared capabilities/taxonomy; compose, do not deepen inheritance
  • Object-backed links when the relationship has its own metadata
  • Security by policy on one type — not duplicated Public/Restricted types

Protect core types in production (open for extension, closed for modification): extend via linked types and new interfaces.

5. Kinetics (right tool)

Tool Use for Avoid for
Action Human/agent decisions; immediate edits needing judgment/input Batch aggregations, scheduled refresh
Pipeline (batch/stream) Merge, cleanse, enrich, pre-compute Operational assign/notify on object events
Automation React to ontology change / schedule Heavy multi-dataset transforms
Function Live multi-object logic that cannot be pre-computed Trivial concat/derive available in pipeline

Actions name business operations that bundle related fields (Transfer Employee), not Set Property sprawl.

6. Security, naming, docs

  • Least privilege; row + column → cell-level; align policies to domain boundaries
  • Singular concrete nouns; qualify ambiguous props; name links by relationship
  • Document types, properties, links, and design decisions

7. Anti-pattern scan

Before accepting a design, check all eight — details in anti-patterns.md:

  1. System Silos
  2. Kitchen Sink
  3. Department Silos
  4. God Object
  5. Golden Hammer
  6. Action Sprawl
  7. Time Machine (version objects / yearly types)
  8. Misnomer

8. Host-product fit

After the Palantir-pattern review, apply the host system's authority model:

  1. Read local ADRs / AGENTS.md / ontology mapping docs when present.
  2. Keep business mutations on the product's governed write path (not ad-hoc direct writes).
  3. Keep system ingest semantically distinct from user/agent actions when the product separates them.
  4. Fail closed on unknown types; prefer stable business identity keys.
  5. Translate Foundry terms only where the mapping doc (or product vocabulary) defines them — e.g. Action type → governed Action/commit, pipeline → ingest/materialization.

Priority of principles

On conflict, higher wins:

  1. Domain-driven design
  2. Don't repeat yourself (rule of three)
  3. Open for extension, closed for modification
  4. Composition over deep hierarchies

Pragmatism: ship incremental value; name tradeoffs; defend naming, semantic clarity, and security invariants.

Review output format

When reviewing a proposal, report:

## Ontology review

**Verdict:** approve | approve-with-changes | revise

### Model
- Entities / links / interfaces (what is canonical)

### Risks
- Anti-patterns hit (name + evidence)
- Principle conflicts

### Kinetics
- Action vs pipeline vs automation vs function choices

### Host product
- Local invariant / mapping notes

### Required changes
1. …

Progressive disclosure

  1. This file — checklist and defaults
  2. references/best-practices.md — principles + guidelines
  3. references/structural-guidance.md — normalize, structs, interfaces, links, naming, security
  4. references/anti-patterns.md — full anti-pattern catalog
  5. references/linked-pages.md — neighbors fetched with the trilogy
  6. references/sources/ — offline dumps of official pages

04 同仓库更多 Skills

EnzoTironi
EnzoTironi/skills

zoen-product-engineering

Orchestrate Zoen product engineering from discovery to production using the curated Matt Pocock skill set, Extreme Programming, ontology-first architecture, and risk-controlled delivery. Use for any Zoen product, architecture, feature, bug, refactor, AI-agent, integration, release, or engineering-workflow decision, especially nouns-links-verbs-evidence, AgentRun/ToolCall, Action Gateway, approvals, audit and provenance, tenancy, client-owned export, or production readiness.

★ 0
EnzoTironi
EnzoTironi/skills

writing-great-skills

Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.

★ 0
EnzoTironi
EnzoTironi/skills

wayfinder

Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.

★ 0
EnzoTironi
EnzoTironi/skills

triage

Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.

★ 0
EnzoTironi
EnzoTironi/skills

to-tickets

Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker — edges as text in one file per ticket locally, or native blocking links on a real tracker.

★ 0
EnzoTironi
EnzoTironi/skills

to-spec

Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.

★ 0