Confluence Hierarchy logo

Confluence Hierarchy

Community
ulises-jeremias
confluence-hierarchy

Navigate and manage Confluence page hierarchies, ancestors, descendants, and trees. ALWAYS use for parent/child relationships and page tree navigation.

Overview

Publisherulises-jeremias
Repositoryagent-toolkit
Skill nameconfluence-hierarchy
Stars
20
Forks
5
Bundled files
Instructions only
LicenseMIT
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 ulises-jeremias on GitHub. Read the source before you install it.

Installation

Install the Confluence Hierarchy 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/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/confluence-hierarchy
  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/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/confluence-hierarchy .claude/skills/confluence-hierarchy
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Confluence Hierarchy 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 Confluence Hierarchy 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 Confluence Hierarchy 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.

Confluence Hierarchy Skill


⚠️ PRIMARY USE CASE

This skill navigates page relationships. Use for:

  • Finding parent/ancestor pages
  • Listing child/descendant pages
  • Viewing page tree structure
  • Reordering child pages

When to Use / When NOT to Use

Use This SkillUse Instead
Get parent/ancestors-
List children-
View page tree-
Move pagesconfluence-page
Create pagesconfluence-page
Search pagesconfluence-search

Risk Levels

OperationRiskNotes
Get ancestors/children-Read-only
View tree-Read-only
Reorder pages-Preview only - calculates and displays proposed order, applies no changes

Overview

This skill provides operations for navigating and managing page hierarchies in Confluence, including getting ancestors, children, descendants, and full page trees.

CLI Commands

confluence-as hierarchy ancestors

Get all ancestor pages for a given page (parent, grandparent, etc.).

Usage:

bash
confluence-as hierarchy ancestors PAGE_ID
confluence-as hierarchy ancestors PAGE_ID --breadcrumb
confluence-as hierarchy ancestors PAGE_ID --output json

Options:

  • --breadcrumb - Display as breadcrumb path (Root > Parent > Current)
  • --output - Output format: text (default) or json

Examples:

  • Get ancestors: confluence-as hierarchy ancestors 12345
  • Show breadcrumb: confluence-as hierarchy ancestors 12345 --breadcrumb

confluence-as hierarchy children

Get direct child pages of a parent page (one level down only).

Usage:

bash
confluence-as hierarchy children PAGE_ID
confluence-as hierarchy children PAGE_ID --limit 50
confluence-as hierarchy children PAGE_ID --sort title

Options:

  • --limit - Maximum number of children to retrieve (default: 25, max: 250)
  • --sort - Sort by: title, id, or created
  • --output - Output format: text (default) or json

Examples:

  • Get children: confluence-as hierarchy children 12345
  • Sort by title: confluence-as hierarchy children 12345 --sort title

confluence-as hierarchy descendants

Get all descendant pages recursively (children, grandchildren, etc.).

Usage:

bash
confluence-as hierarchy descendants PAGE_ID
confluence-as hierarchy descendants PAGE_ID --max-depth 2
confluence-as hierarchy descendants PAGE_ID --limit 200
confluence-as hierarchy descendants PAGE_ID --output json

Options:

  • --max-depth - Maximum depth to traverse (default: unlimited)
  • --limit - Maximum number of descendants to retrieve (default: 100, max: 500)
  • --output - Output format: text (default) or json

Examples:

  • Get all descendants: confluence-as hierarchy descendants 12345
  • Limit depth: confluence-as hierarchy descendants 12345 --max-depth 2

confluence-as hierarchy tree

Get full hierarchical tree structure with nested children.

Usage:

bash
confluence-as hierarchy tree PAGE_ID
confluence-as hierarchy tree PAGE_ID --max-depth 3
confluence-as hierarchy tree PAGE_ID --stats

Options:

  • --max-depth - Maximum depth to traverse (default: unlimited)
  • --stats - Show tree statistics (total pages, max depth, leaf pages)
  • --output - Output format: text (default) or json

Examples:

  • Get page tree: confluence-as hierarchy tree 12345
  • With statistics: confluence-as hierarchy tree 12345 --stats

confluence-as hierarchy reorder

Calculate and display proposed child page order. This command helps plan reordering operations.

Usage:

bash
confluence-as hierarchy reorder PARENT_ID
confluence-as hierarchy reorder PARENT_ID "id1,id2,id3"
confluence-as hierarchy reorder PARENT_ID --reverse

Arguments:

  • order - (Optional) Comma-separated child page IDs in desired order (must be quoted)

Options:

  • --reverse - Sort children reverse-alphabetically by title (children are sorted alphabetically first, then reversed; only applies when no explicit order argument is given)
  • --output, -o - Output format: text (default) or json

Examples:

  • Sort alphabetically: confluence-as hierarchy reorder 12345
  • Specify custom order: confluence-as hierarchy reorder 12345 "200,201,202"
  • Reverse-alphabetical order: confluence-as hierarchy reorder 12345 --reverse

IMPORTANT: This command only CALCULATES and DISPLAYS the proposed new order - it does NOT apply changes to Confluence. To actually reorder pages, you must use the Confluence UI (drag and drop in the page tree).

Natural Language Examples

These phrases will trigger this skill:

  • "Show me the ancestors of page 12345"
  • "Get the breadcrumb path for page 12345"
  • "List all children of page 12345"
  • "Get all descendants of page 12345 up to depth 3"
  • "Show me the page tree for 12345"
  • "Reorder the children of page 12345"
  • "What is the hierarchy for page 12345?"
  • "Show the navigation path to page 12345"

API Endpoints Used

  • GET /api/v2/pages/{id}/ancestors - Get page ancestors
  • GET /api/v2/pages/{id}/children - Get direct children
  • GET /api/v2/pages/{id}/descendants - Get all descendants
  • GET /api/v2/pages/{id} - Get page information

Common Patterns

Building Breadcrumbs

bash
confluence-as hierarchy ancestors 12345 --breadcrumb
# Output: Space Root > Section > Subsection > Current Page

Visualizing Page Structure

bash
confluence-as hierarchy tree 12345 --stats
# Shows hierarchical tree with statistics

Finding All Pages Below

bash
confluence-as hierarchy descendants 12345 --output json > descendants.json
# Export all descendants to JSON

Limiting Traversal Depth

bash
confluence-as hierarchy descendants 12345 --max-depth 2
# Only get children and grandchildren

Notes

  • Depth is tracked starting from 1 for direct children
  • Tree operations can be resource-intensive for large hierarchies
  • Use --max-depth to limit traversal when needed
  • The reorder command only previews the proposed order; apply changes via the Confluence UI

Frequently asked questions

What does the Confluence Hierarchy AI skill do?

Navigate and manage Confluence page hierarchies, ancestors, descendants, and trees. ALWAYS use for parent/child relationships and page tree navigation.

Why use Confluence Hierarchy on TypingMind?

Because you install it once and use it with any model. Confluence Hierarchy 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 Confluence Hierarchy in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/confluence-hierarchy. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Confluence Hierarchy?

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 Confluence Hierarchy?

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

Is the Confluence Hierarchy AI skill free?

Yes. It is published on GitHub by ulises-jeremias under the MIT license. 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 👇