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
- 最近更新
- 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
- 参考文档agents/openai.yaml395 B
- 参考文档references/anti-patterns.md7.6 KB
- 参考文档references/best-practices.md6.8 KB
- 参考文档references/linked-pages.md4.9 KB
- 参考文档references/sources/configuring-rv-access-controls.md5.8 KB
- 参考文档references/sources/derived-properties.md2.7 KB
- 参考文档references/sources/document-processing.md7.0 KB
- 参考文档references/sources/interfaces-interface-metadata.md2.6 KB
- 参考文档references/sources/interfaces-interface-overview.md5.0 KB
- 参考文档references/sources/law-of-the-instrument-wikipedia.md12.6 KB
- 参考文档references/sources/metadata-statuses.md8.3 KB
- 参考文档references/sources/ontology-anti-patterns.md31.5 KB
- 参考文档references/sources/ontology-best-practices.md6.9 KB
- 参考文档references/sources/ontology-structural-guidance.md21.2 KB
- 参考文档references/sources/overview-semantic-search.md2.4 KB
- 参考文档references/sources/README.md2.1 KB
- 参考文档references/sources/using-custom-models-semantic-search.md14.0 KB
- 参考文档references/sources/using-palantir-provided-models-semantic-search.md7.0 KB
- 参考文档references/structural-guidance.md5.3 KB
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.
- Name real-world entities with stakeholders before opening tables/CSVs.
- One focused type per distinct entity; split identity vs observation/event.
- Links = meaningful relationships, not FK accidents.
- Names for humans and agents (
lastInspectionDate, notdtLastInspMod). - 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:
- System Silos
- Kitchen Sink
- Department Silos
- God Object
- Golden Hammer
- Action Sprawl
- Time Machine (version objects / yearly types)
- Misnomer
8. Host-product fit
After the Palantir-pattern review, apply the host system's authority model:
- Read local ADRs /
AGENTS.md/ ontology mapping docs when present. - Keep business mutations on the product's governed write path (not ad-hoc direct writes).
- Keep system ingest semantically distinct from user/agent actions when the product separates them.
- Fail closed on unknown types; prefer stable business identity keys.
- 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:
- Domain-driven design
- Don't repeat yourself (rule of three)
- Open for extension, closed for modification
- 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
- This file — checklist and defaults
- references/best-practices.md — principles + guidelines
- references/structural-guidance.md — normalize, structs, interfaces, links, naming, security
- references/anti-patterns.md — full anti-pattern catalog
- references/linked-pages.md — neighbors fetched with the trilogy
- references/sources/ — offline dumps of official pages
04 同仓库更多 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.
writing-great-skills
Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
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.
triage
Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.
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.
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.