Review existing OntoPlato ontology and business knowledge, extract source-backed knowledge from unstructured material, import pending entries, and maintain traceable governance work records and reports.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ontoplato Knowledge Governance?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ontomato-ai-ontoplato-knowledge-governance)
---
name: ontoplato-knowledge-governance
description: Review existing OntoPlato ontology and business knowledge, extract source-backed knowledge from unstructured material, import pending entries, and maintain traceable governance work records and reports.
compatibility: Requires Node.js 24+, an OntoPlato ontology service URL, and credentials authorized for knowledge governance.
---
# Knowledge Governance
This skill governs systematic review of existing ontology and business knowledge, extraction of source-backed knowledge from unstructured material, permission-bounded pending imports, and persistent server-side governance work records.
Run commands from the workspace root as `node <this-skill>/scripts/governance.mjs <command> <json|@file>`, where `<this-skill>` is the directory containing this `SKILL.md`; `@file` paths are relative to the workspace root. Read [commands](references/commands.md) for all command arguments and [extraction](references/extraction.md) for the unstructured knowledge extraction and import workflow.
## Connection and Governance Write Windows
The script adapts connection resolution and governance write-window management to the runtime environment:
- **Platform-hosted runs**: The host injects `ONTOMATO_SKILL_SCENARIO=platform`, `ONTOMATO_GOVERNANCE_WINDOW_URL`, and `ONTOMATO_EXECUTION_CALLBACK`. Each command that uses the governance record resolves the active write window through that callback, persists only the record `id` in `work/.governance-platform-window.json` across turns, and lets the host close writes when the run ends or stops. **Never call `close` or switch to external `begin` in a platform run.**
- **External standalone runs**: Set `ONTOMATO_ONTOLOGY_URL` (or `ONTOMATO_URL`, deriving `/api/data-query`) and `ONTOMATO_GOVERNANCE_TK` / `ONTOMATO_API_KEY` / `ONTOMATO_TK` (falling back to `application.yml` in the current working directory or skill directory; `ONTOMATO_LANGUAGE` and `ONTOMATO_CORRELATION_ID` are optional). Run `begin` (`{"message":"Material to govern"}` with optional `id` to resume) to open an external window (the first ordinary command also opens one if none exists; external `begin` replaces the previous window, creates no runtime agent, and uses your own permissions), keep returned IDs in `work/.governance-run.json`, and run `close` when finished. Writes after expiry or close fail with HTTP 409—start a new round explicitly.
- **Target-domain prerequisites (Embedding model & external file sources)**:
- Before invoking `import-knowledge` or `import-pending`, **the target domain must have a configured Embedding model** (`baseUrl`, `modelName`, `dimensions` in System Settings → Model Settings). A fresh domain without an embedding model rejects imports with HTTP `422 MODEL_NOT_CONFIGURED` and performs zero writes.
- `read-input` registers the text passed in `begin.message` and does not upload arbitrary local files directly. For short local documents outside the platform, pass the document text in `begin.message`; for long documents, split by section across resumed `begin` rounds (passing the same work record `id`) or register cited excerpts.
## Review and Governance Work Records
- Always preserve host-returned source IDs, original evidence, and uncertainty; never fabricate business rules, metrics, object classes, or relationships.
- Continuously save governance progress, reviewed entries, and issues in the server-side work record (`read-work-record`, `update-work-record`) so work survives across turns or context compaction and issues stay deduplicated (always update the same issue ID for the same disagreement).
- Confirming a term's meaning never saves a knowledge asset automatically.
## Knowledge Extraction, Pending Imports, and Approval Boundaries
When asked to add or revise business knowledge, follow the [extraction workflow](references/extraction.md) and enforce these permission and approval boundaries:
- **Live page form mode** (when `present`, `fill_form`, and `page_action` are available): Run `import-knowledge` to prepare live form fields. Send `status: 0` (pending) only for new entries; for updates, **fill only changed fields and omit `status`** so the current approval state is preserved. The `form` member holds one live form at a time—present and fill one item, wait for the user to review and save it before moving to the next, keep unsaved items visible until settled, and call `page_action` to request a save only when explicitly asked.
- **Background or delegated runs without page tools**: When explicitly asked to import new pending entries, use `import-pending` through the active governance window.
- **External runs**: Use `import-knowledge` to import pending items via an external governance window using your own credentials; report an import only after the owner confirms it.
- **Approval and permission boundary**: Automated pending imports (`import-pending` and external `import-knowledge`) **can only create new pending entries (`status = 0`) and cannot update, approve, or delete existing business knowledge**. Any update, approval, deletion, or pre-save review must be returned as structured proposals to the user or delegating agent, or handled through the live form with human review and save.
- **Single chat-confirmed scope**: For submitting a single business scope confirmed by the user during a regular platform conversation turn, use the `ontoplato-knowledge-submit` skill rather than duplicating its submission rules here.
## Governance Reports and In-App Links
For human-facing governance reports, follow the `ontoplato-report` skill: write an ordinary analysis report to `outputs/reports/<name>/report.md` and link it in your final reply. Include:
- a summary and review progress at the time of writing (`reviewed N / total M` when the total is known);
- each finding's category (`ontology`/`knowledge`/`data`), status (`proposed`/`pending`/`confirmed`), problem, current wording or state, proposed change, and basis;
- cited sources as short excerpts, linking business knowledge entries to `#/ontology/knowledge` and historical runs to that conversation (`#/agents/chat?sessionId=<sessionId>`).
The report is a snapshot at the time of writing; write a new version if later runs change findings. Keep `outputs/reports/<name>/report.md` and `#/...` page links as in-app relative paths (you may adapt link text to the reader's language): **never prepend any `ONTOMATO_*_URL` host domain and never use image syntax for page links**.
## Human Decision Protocol (`needsInput`)
When human decisions are required (such as choosing which recommendation to adopt or settling a conflicting definition), ask via the native `agent` tool:
- `op: "send"`, `session: "parent"`, `needsInput: true`;
- include descriptive `options` with **exactly one** `isDefault: true`, plus `defaultAssumption`.
If there are too many decisions to ask at once, split them by priority across turns; readers may also reply directly in conversation.