一键导入
ontotwin-library-adoption
Use when Claude Code is extracting, packaging, installing, or adopting the OntoTwin atlas as a reusable React library.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when Claude Code is extracting, packaging, installing, or adopting the OntoTwin atlas as a reusable React library.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when Claude Code is changing OntoTwin dense semantic atlas visuals, lenses, point styling, labels, rails, responsive behavior, or analyst workflow UI.
Use when Claude Code is mapping a real ontology corpus into the OntoTwin atlas manifest, adapters, groups, labels, lenses, counts, search, or tile APIs.
| name | ontotwin-library-adoption |
| description | Use when Claude Code is extracting, packaging, installing, or adopting the OntoTwin atlas as a reusable React library. |
Use this project skill when the task is to turn the local OntoTwin atlas into an installable React library or adopt that library in another Claude Code workspace.
Current repo state: the root package exposes a locally packable @ontotwin/atlas-react entrypoint with package metadata, public types, style export, and local pack/build scripts. Treat fresh-playground install, browser adoption proof, clean post-fix autoreview, and a user-confirmed publication license as required evidence before claiming external adoption complete.
Portability level: harness-specific. The package boundary and adapter checks are portable, but the invocation examples, .claude/skills/ location, and subagent names are Claude Code project conventions.
Before spec-sensitive work, check the active FPF runtime with get_fpf_index_status or the available FPF MCP equivalent. Stop and report the missing access if no FPF runtime or generated spec docs are available.
Prefer the local fpf-memory-mcp skill when that skill is explicitly part of the task, and use the current FPF Reference runtime label fpf_reference for spec lookup. Use available runtime tools such as get_fpf_index_status and query_fpf_spec; do not invent FPF selectors or canonical wording from memory.
Use these FPF selectors as the minimum frame:
A.7 Strict Distinction: do not collapse role, method, work, status, description, and specification.A.15 Role-Method-Work Alignment: keep role, method, capability, plan, and actual work separate.E.10 LEX-BUNDLE: keep Service/Promise, Capability/Ability, and Work/Performance terminology distinct.E.10.D2 Intension-Description-Specification Discipline: keep the thing, description, and specification layers separate.F.18 Local-First Unification Naming Protocol: name the local context, reference plane, version, and mapping target explicitly.Read these before editing:
README.mddocs/react-library-representation-strategy.mddocs/atlas-adapter-contract.mddocs/production-manifest-schema.mddocs/adoption-decision-framework.mddocs/claude-code-subagent-interest-model.mddocs/atlas-configuration-boundaries.mdpackage.jsonvite.lib.config.jssrc/index.jssrc/index.d.tssrc/library.jsxsrc/adapters.jssrc/atlasManifest.js, src/atlasLookup.js, src/atlasInteraction.js, src/atlasLabels.js, and src/main.jsxFrame the task before editing:
Bounded context:
Promise:
Ability:
Performance:
Evidence:
Work scope:
Out of scope:
Stop/replan trigger:
Default boundaries:
package.json must declare name, version, type, license, exports, types, files, React peer dependencies, build scripts, and a CSS subpath export for ./styles.css.Use Explore -> Shape -> Evidence -> Operate.
.claude/agents/ before broad edits:
react-library-boundary-revieweratlas-adapter-contract-reviewerqa-evidence-gate-reviewerhealth-privacy-disclosure-reviewer, security-audit-boundary-reviewer, and deployment-licensing-reviewer when tiles, counts, exports, auth, package publication, renderer choice, or deployment assumptions change.If Claude Code subagents are unavailable because of auth, quota, model, or tool limits, do not treat a local checklist as subagent approval. Record the blocker, perform a provisional local review by the same interests, and keep the readiness claim open until real subagent review can run.
If autoreview is unavailable because of auth, quota, model, or CLI limits, record the exact command and blocker. Do not claim autoreview clean.
Prefer this package surface unless the repo docs have been updated:
export {
OntologyAtlas,
AtlasProvider,
useAtlasController,
useAtlasSelection,
createSyntheticDemoAdapter,
createHttpAtlasAdapter,
resolveCanvasActivation,
clamp,
hitTestLabelTargets,
labelFontSize,
makeLabelHitTarget
};
export type {
AtlasAdapter,
AtlasManifest,
AtlasSessionAccess,
TileRequest,
DensityTile,
PointTile,
LabelTile,
SearchRequest,
SearchResult,
RecordRequest,
RecordDetail,
RecordsBatchRequest,
RecordsBatchResult,
TableRequest,
TableResult,
LassoRequest,
LassoResult,
ExportRequest,
ExportStatusRequest,
ExportResult,
SelectionTarget,
CountSource,
Point2D,
LabelHitTarget,
CanvasActivation
};
Required stylesheet export:
import "@ontotwin/atlas-react/styles.css";
Minimal adoption example for a Claude Code-generated playground:
import "@ontotwin/atlas-react/styles.css";
import { OntologyAtlas, createSyntheticDemoAdapter } from "@ontotwin/atlas-react";
const adapter = createSyntheticDemoAdapter();
export default function App() {
return <OntologyAtlas adapter={adapter} />;
}
HTTP adapter example for a job app:
import "@ontotwin/atlas-react/styles.css";
import { OntologyAtlas, createHttpAtlasAdapter } from "@ontotwin/atlas-react";
const adapter = createHttpAtlasAdapter({
baseUrl: "/api/atlas",
atlasVersion: "atlas_2026_05_31"
});
export function App() {
return <OntologyAtlas adapter={adapter} />;
}
The work is not done until current evidence proves:
disclosure_policy_id fails closed for counts, lasso, table, and export.value, source, method, disclosure_policy_id, privacy_transform, and exactness_scope.npm test and the relevant package/playground build commands pass in the changed workspace. A root Vite demo build alone is not enough after package extraction.license, and external publishing waits for the user's explicit license and access-policy decision./ontotwin-library-adoption
Task: extract the current Vite demo into @ontotwin/atlas-react and keep this repo as examples/playground.
Use active FPF selectors A.7, A.15, E.10, E.10.D2, and F.18.
Do not change the production ontology to fit the demo.
Keep library-owned behavior separate from production-owned data jobs, privacy policy, auth, and deployment.
Before broad edits, invoke react-library-boundary-reviewer, atlas-adapter-contract-reviewer, and qa-evidence-gate-reviewer.
Return claim scope, files changed, proof run, residual gaps, and stop/replan triggers.