Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

wiki-js-v3维基 js v3

Agent Skill

wiki-js-v3 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,208

周安装

135

GitHub Stars

公开资料未说明

下载量

1,123
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wiki-js-v3(维基 js v3)
来源仓库:https://github.com/nyhx1101/wiki-js-v3
安装命令:
openclaw skills install wiki-js-v3
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install wiki-js-v3

简介

wiki-js-v3 提供 Wiki.js 的全面管理,支持通过 GraphQL 和 REST API 操作页面、资产和搜索。

  • 适用于需要检索、筛选和管理结构化 wiki 内容的研究与知识管理任务。
  • 可处理标签、树形结构、历史记录和版本控制等复杂操作。
  • 安装前应核实 API 访问权限、网络连通性及数据读写需求。
  • wiki-js-v3 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
wiki-js-v3
version
1.0.0
description
All-encompassing Wiki.js Administration – GraphQL + REST API wrapper with full coverage. Pages, Assets, Search, Tags, Tree, History, Versioning, Rendering. Robust error handling with retries and chunking.
author
michael
tags
[wiki, documentation, admin, graphql, api]
homepage
https://github.com/openclaw/skills/wiki-js-v3
user-invocable
true
install
npm
env
WIKIJS_URL
https://your-wiki.example.com
WIKIJS_TOKEN
Get from Wiki.js Admin > API Keys
metadata
openclaw
requires
config
[wikijs]

Wiki.js V3 Skill – All-Encompassing Wiki Administration

Ersetzt: wiki-js-v2 (nur Pages + Assets)

🎯 Features

FeatureV2V3
Pages (CRUD)
Assets (Upload/List)
Move/Copy Pages
Page History
Version Restore
Render (HTML/PDF)
Search (Full-Text + Tags)
Page Tree/Hierarchy
Tags (CRUD)
Asset Folders
Asset Delete
Multi-Locale
Retry + Backoff
Path-First + ID

📦 Installation

# Skill bereits installiert unter:
~/.openclaw/workspace/skills/wiki-js-v3/

# CLI-Wrapper (optional, für direkten Terminal-Zugriff):
chmod +x ~/.openclaw/workspace/skills/wiki-js-v3/bin/wiki.js
ln -s ~/.openclaw/workspace/skills/wiki-js-v3/bin/wiki.js ~/.local/bin/wiki

Environment:

export WIKIJS_URL="https://your-wiki.example.com"
export WIKIJS_TOKEN="your_api_key_here"
export WIKIJS_LOCALE="de"  # Optional, default: de

🔧 API Coverage

GraphQL Operations

CategoryOperations
Pagessingle, singleByPath, list, create, update, delete, move, render, history, restoreVersion
Searchsearch(query, limit)
Tagslist, create, delete
Assetslist, createFolder, delete

REST Operations

EndpointUse Case
POST /uFile upload (multipart/form-data)
GET /f/:hash/:filenameStatic asset serving

📝 CLI Reference

Pages

# Create or update (idempotent)
wiki upsert docs/setup "Setup Guide" @content.md "setup,wiki"
wiki upsert docs/api "API Reference" "## Overview\
..." "api,docs"

# Get page content
wiki get docs/setup
wiki get 42  # by ID

# Delete page
wiki delete docs/old-page
wiki delete 42

# Move page (changes path)
wiki move docs/old docs/new

# Copy page (creates new page)
wiki copy docs/template docs/new-page

# Show page history
wiki history docs/setup

# Restore specific version
wiki restore docs/setup --version=3

# Render page
wiki render docs/setup --format=html
wiki render docs/setup --format=pdf > setup.pdf

Search

# Full-text search
wiki search "docker"

# With tag filter
wiki search "kubernetes" --tags="devops,cloud"

# Limit results
wiki search "api" --limit=50

Tree / Hierarchy

# List all pages
wiki tree

# Filter by path prefix
wiki tree --path=docs

# Control depth
wiki tree --depth=5

Tags

# List all tags
wiki tags

# Create tag
wiki tags create "new-feature"

# Delete tag
wiki tags delete "deprecated"

Assets

# List assets
wiki assets
wiki assets --folder=images
wiki assets --kind=IMAGE

# Upload file
wiki upload screenshot.png
wiki upload doc.pdf --folder=documents --name="manual.pdf"

# Delete asset
wiki asset-delete 42

# Create folder
wiki mkdir 0 images "Bilder"

Options

--pretty, -p        Human-readable output (default: JSON)
--locale, -l de     Locale override
--private           Create private page
--draft             Create unpublished page

🔄 Error Handling

ErrorHandling
413 Payload Too LargeThrows descriptive error (chunking not auto-applied for pages)
401 UnauthorizedClear token error message
ECONNREFUSEDAuto-retry with exponential backoff (3 attempts)
Timeout30s default, configurable via WIKIJS_TIMEOUT

📐 Architecture

bin/wiki.js
├── GraphQL Client (query, mutation)
├── REST Upload (form-data)
├── Path Resolution (singleByPath)
├── CLI Parser (arg parsing)
└── Output Formatter (JSON / Pretty)

Dependencies:

  • Node.js built-in modules only
  • form-data for file uploads (installed on-demand)

🔐 Security

  • Token only via environment variable (WIKIJS_TOKEN)
  • No token logging
  • Input validation (null bytes, size limits)
  • Path sanitization (strips leading /)

📤 Examples

Create Documentation Page

# Write content to file
cat > /tmp/api.md << 'EOF'
# API Reference

## Authentication

All requests require a Bearer token...

## Endpoints

- `GET /api/v1/pages` - List pages
- `POST /api/v1/pages` - Create page
EOF

# Upsert to Wiki
wiki upsert docs/api "API Reference" @/tmp/api.md "api,reference" --pretty

Upload Screenshot and Embed

# Upload image
wiki upload screenshot.png --folder=images --name="api-auth-flow.png"
# Output: {"id":47,"url":"/f/a3f9b2/api-auth-flow.png",...}

# Create page with embedded image
wiki upsert docs/api-auth "API Authentication" '![Auth Flow](/f/a3f9b2/api-auth-flow.png)' "api"

Batch Update via Script

#!/bin/bash
for file in docs/*.md; do
  name=$(basename "$file" .md)
  wiki upsert "docs/$name" "$name Documentation" "@$file" "docs"
done

🆚 Migration from V2

V2 CommandV3 Command
wiki-v2 upsert ...wiki upsert ...
wiki-v2 get ...wiki get ...
wiki-v2 delete ...wiki delete ...
wiki-v2 search ...wiki search ...
wiki-v2 upload ...wiki upload ...
wiki-v2 assets ...wiki assets ...
wiki-v2 mkdir ...wiki mkdir ...
wiki move ...
wiki copy ...
wiki history ...
wiki restore ...
wiki render ...
wiki tree ...
wiki tags ...
wiki asset-delete ...

🐛 Troubleshooting

IssueSolution
WIKIJS_TOKEN not setexport WIKIJS_TOKEN=...
Page not foundCheck path (no leading /)
GraphQL Error: UnauthorizedToken invalid or expired
GraphQL Error: ForbiddenAPI key lacks write permissions – create new key with write access in Admin UI
Upload failed: 413File too large (>10MB)
Timeout after 30sIncrease WIKIJS_TIMEOUT=60000
Cannot read properties of undefined (reading 'map')Fixed in V3.1 – always include tags: [] in update mutations

⚠️ API Key Permissions

Wiki.js API keys have per-key permissions, not per-group permissions.

JWT ClaimMeaning
api:1API Key ID 1 – may have different permissions than Key 2
grp:1Group ID 1 – does NOT determine write access

If update returns "Forbidden":

  1. Open Wiki.js Admin UI
  2. Go to API Keys
  3. Create new key with write permissions or edit existing key
  4. Use the new key in WIKIJS_TOKEN

📚 Wiki.js API Reference

  • GraphQL Schema: {WIKIJS_URL}/graphql-playground
  • REST Upload: POST {WIKIJS_URL}/u
  • Static Assets: GET {WIKIJS_URL}/f/:hash/:filename

*Version: 3.0 | Status: All-encompassing | Replaces: wiki-js-v2*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.73%
按下载量换算963

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills