Ontology Generator logo

Ontology Generator

Organization
infranodus
ontology-generator

Generate comprehensive ontological knowledge graphs in [[wikilinks]] syntax for InfraNodus visualization. Use when the user requests to create an ontology, extract entities and relationships from text, or generate knowledge graph structures. Handles both topic-based ontology generation and entity extraction from existing text. Output is formatted for direct paste into InfraNodus.com for network visualization and AI-powered gap analysis.

Overview

Publisherinfranodus
Repositoryskills
Skill nameontology-generator
Stars
124
Forks
31
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by infranodus on GitHub. Read the source before you install it.

Installation

Install the Ontology Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/infranodus/skills/tree/master/skill-ontology-creator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/infranodus/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skill-ontology-creator .claude/skills/ontology-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ontology Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ontology Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ontology Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ontology Generator for InfraNodus

Generate ontological knowledge graphs in InfraNodus format using [[wikilinks]] syntax. Output can be pasted directly into InfraNodus.com to visualize as a network and develop gaps and clusters with AI.

Input Types

Accept two input types:

  1. Topic: Generate comprehensive ontology for a given domain
  2. Text: Extract ontological structure from provided text

Entity Generation Principles

Generate comprehensive responses with multiple elements. Explore the full variety of entities belonging to the domain of inquiry. Include various types of:

  • Entities
  • Classes
  • Relationships
  • Axioms
  • Rules

Critical: Avoid hierarchical structures with one central idea. First iteration should be comprehensive, long, and cover the widest possible domain. Generate network structures, not trees.

Output Format

Each entity uses [[wikilink]] syntax. Relations are described in plain text within the same paragraph. Relation codes appear at paragraph end in [squarebrackets].

Syntax Pattern

[[entity1]] relation description [[entity2]] [relationCode]

Formatting Rules

  • Each relation = separate paragraph line
  • Minimum 8 paragraphs per relationship type
  • Each statement MUST have at least 2 entities in [[wikilinks]]
  • Each statement MUST have a [relationCode]

Example

[[apple]] is an instance of [[fruit]] [isA]
[[apple]] grows as a result of [[apple blossom]] [causedBy]
[[apple]] has an oval [[shape]] [hasAttribute]

Relation Codes

Use ONLY these relation codes (unless user provides alternatives):

  • [isA] - Class membership
  • [partOf] - Component relationship
  • [hasAttribute] - Properties and characteristics
  • [relatedTo] - General associations
  • [dependentOn] - Dependencies
  • [causes] - Causal relationships
  • [locatedIn] - Spatial relationships
  • [occursAt] - Temporal relationships
  • [derivedFrom] - Origin and derivation
  • [opposes] - Contradictory relationships

Relationship Balance

Ensure relations cover both:

  • Descriptive aspects: Classes, attributes, locations
  • Functional aspects: Axioms, rules, causal chains

Entity Distribution

  • Avoid repeating the same entity excessively
  • Focus on relations between entities
  • Key entities may appear more frequently
  • Result should resemble a network, not a tree

Paragraph Structure Examples

❌ AVOID: Tree/Hierarchical Structure

This creates a hub-and-spoke pattern where one central entity dominates:

[[machine learning]] is a type of [[artificial intelligence]] [isA]
[[machine learning]] uses [[algorithms]] [relatedTo]
[[machine learning]] requires [[data]] [dependentOn]
[[machine learning]] produces [[predictions]] [causes]
[[machine learning]] has [[accuracy]] as a measure [hasAttribute]
[[machine learning]] is located in [[data science]] field [partOf]
[[machine learning]] occurs at [[training phase]] [occursAt]
[[machine learning]] is derived from [[statistics]] [derivedFrom]

Problem: "machine learning" appears in every statement, creating a star topology rather than a network.

✅ PREFERRED: Network Structure

Distribute entities across multiple interconnected relationships:

[[machine learning]] is a type of [[artificial intelligence]] [isA]
[[artificial intelligence]] enables [[automation]] of tasks [causes]
[[algorithms]] process [[training data]] to learn patterns [relatedTo]
[[training data]] must have high [[data quality]] [hasAttribute]
[[data quality]] affects [[model accuracy]] [causes]
[[model accuracy]] is measured during [[validation phase]] [occursAt]
[[validation phase]] comes after [[training phase]] [occursAt]
[[neural networks]] are derived from [[biological neurons]] [derivedFrom]
[[biological neurons]] are part of [[brain architecture]] [partOf]
[[supervised learning]] depends on [[labeled data]] [dependentOn]
[[labeled data]] opposes [[unlabeled data]] in requirements [opposes]
[[deep learning]] is a specialized form of [[neural networks]] [isA]

Benefit: Multiple entities interconnect, creating a web of relationships rather than radiating from one center.

Example: Topic-Based Ontology (Climate Change)

Generate 8+ paragraphs per relationship type, distributed across entities:

[[climate change]] is caused by [[greenhouse gases]] [causes]
[[greenhouse gases]] include [[carbon dioxide]] as a component [partOf]
[[carbon dioxide]] has increasing [[atmospheric concentration]] [hasAttribute]
[[fossil fuels]] produce [[carbon dioxide]] when burned [causes]

[[global temperature]] is rising as an effect of [[climate change]] [causes]
[[ocean acidification]] is related to [[carbon dioxide]] absorption [relatedTo]
[[ice sheets]] are located in [[polar regions]] [locatedIn]
[[sea level rise]] depends on [[ice sheet melting]] [dependentOn]

[[renewable energy]] opposes [[fossil fuels]] as energy source [opposes]
[[solar power]] is a type of [[renewable energy]] [isA]
[[wind turbines]] generate [[electricity]] from wind [causes]
[[carbon capture]] is derived from [[industrial processes]] [derivedFrom]

Example: Text-Based Extraction

When extracting from user-provided text, identify key entities and their explicit/implicit relationships:

User text: "Photosynthesis converts light energy into chemical energy. Chloroplasts contain chlorophyll which absorbs sunlight."

Ontology output:

[[photosynthesis]] converts [[light energy]] into forms [causes]
[[light energy]] becomes [[chemical energy]] through conversion [derivedFrom]
[[chloroplasts]] are located in [[plant cells]] [locatedIn]
[[chloroplasts]] contain [[chlorophyll]] as component [partOf]
[[chlorophyll]] has [[green color]] as property [hasAttribute]
[[chlorophyll]] absorbs [[sunlight]] for energy [relatedTo]
[[sunlight]] is a form of [[light energy]] [isA]
[[chemical energy]] is stored in [[glucose molecules]] [locatedIn]

Balancing Relationship Types

Ensure each relation code appears 8+ times across different entity pairs:

[isA] examples: taxonomic/class relationships [partOf] examples: compositional structures [hasAttribute] examples: descriptive properties [causes] examples: causal chains [dependentOn] examples: prerequisite relationships [relatedTo] examples: general associations [locatedIn] examples: spatial positioning [occursAt] examples: temporal sequencing [derivedFrom] examples: origins and evolution [opposes] examples: contrasts and alternatives

Handling Follow-up Requests

When asked clarifying questions, provide responses in the same syntax. Only output ontologies developing in the requested direction:

  • More entities requested → provide more entities
  • More relations requested → provide more relations
  • Specific domain expansion → develop that area

Output Requirements

Critical output format:

  1. Output ONLY the ontology
  2. Use simple code snippet format for easy copying
  3. NO explanations before or after
  4. NO descriptions of what was done
  5. NO metadata or commentary
  6. JUST the ontology in specified format

The user will paste results directly into InfraNodus for visualization.

InfraNodus Tool Handoff

If the user asks, you can provide the ontology generated directly to the InfraNodus tool to generate a knowledge graph for it and the important metrics. You can ask the user additionally if they want to save the graph to their InfraNodus account or if they just need a one-off analysis.

If the user asks to create and save the graph, you can use the create_knowledge_graph tool from InfraNodus.

If the user asks to just generate the graph, you can use the generate_knowledge_graph tool from InfraNodus. The output of this tool can also be useful for you to improve the ontology and make it more balanced. You can also use the cognitive_variability skill for that.

If the user asks to save the generated ontology as a memory, you can use the memory_add_relations tool from InfraNodus. To retrieve memories related to ontologies, you can use the memory_get_relations tool from InfraNodus.

If the user wants you to connect the ontology to the already existing graphs in his account, you can use the search tool from InfraNodus.

Frequently asked questions

What does the Ontology Generator AI skill do?

Generate comprehensive ontological knowledge graphs in [[wikilinks]] syntax for InfraNodus visualization. Use when the user requests to create an ontology, extract entities and relationships from text, or generate knowledge graph structures. Handles both topic-based ontology generation and entity extraction from existing text. Output is formatted for direct paste into InfraNodus.com for network visualization and AI-powered gap analysis.

Why use Ontology Generator on TypingMind?

Because you install it once and use it with any model. Ontology Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ontology Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/infranodus/skills/tree/master/skill-ontology-creator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ontology Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ontology Generator?

As many as you like. As long as a model supports skills, you can use Ontology Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ontology Generator AI skill free?

It is published on GitHub by infranodus. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇