Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

gitlab-wikiGitLab wiki 搜索

Agent Skill

用于围绕 GitLab 项目、Merge Request、Issue、分支、流水线和代码审查流程提供辅助能力。它适合让 Agent 查询项目状态、整理提交差异、辅助检查合并请求或汇总 CI 结果。使用时需要确认项目权限、访问 token 和目标分支范围;涉及合并、推送、改工单或触发流水线时,应先预览影响并核对团队流程。

总安装

1,976

周安装

84

GitHub Stars

1

下载量

692
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:gitlab-wiki(GitLab wiki 搜索)
来源仓库:https://github.com/grandcamel/gitlab-assistant-skills
仓库路径:skills/gitlab-wiki
安装命令:
npx skills add https://github.com/grandcamel/gitlab-assistant-skills --skill gitlab-wiki
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/grandcamel/gitlab-assistant-skills --skill gitlab-wiki

简介

用于围绕 GitLab 项目、合并请求、Issue、分支和流水线提供辅助能力。

  • 适合查询项目状态、整理提交差异、检查合并请求或汇总 CI 结果。
  • 通过命令行安装并配置访问 token 后,支持对 Wiki 内容的搜索与检索。
  • 涉及合并、推送或改工单时,应先预览影响并核对团队流程。
  • gitlab-wiki 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Wiki Skill

Wiki page management for GitLab using glab api raw endpoint calls.

Quick Reference

OperationCommand PatternRisk
List pagesglab api projects/:id/wikis-
Get pageglab api projects/:id/wikis/:slug-
Create pageglab api projects/:id/wikis -X POST -f...⚠️
Update pageglab api projects/:id/wikis/:slug -X PUT -f...⚠️
Delete pageglab api projects/:id/wikis/:slug -X DELETE⚠️⚠️
Upload attachmentglab api projects/:id/wikis/attachments -X POST...⚠️

Risk Legend: - Safe | ⚠️ Caution | ⚠️⚠️ Warning | ⚠️⚠️⚠️ Danger

When to Use This Skill

ALWAYS use when:

  • User mentions "wiki", "wiki page", "documentation page"
  • User wants to create/edit project documentation in GitLab
  • User mentions wiki slugs or wiki content
  • User wants to upload images to wiki

NEVER use when:

  • User wants README files (use gitlab-file)
  • User wants to search wiki content (use gitlab-search with wiki_blobs scope)
  • User wants external documentation (not GitLab wiki)

API Prerequisites

Required Token Scopes: api

Permissions:

  • Read wiki: Reporter+ (for private repos)
  • Write wiki: Developer+ (or based on project settings)

Note: Wiki must be enabled for the project.

Available Commands

List Wiki Pages

# List all wiki pages
glab api projects/123/wikis --method GET

# With pagination
glab api projects/123/wikis --paginate

# Using project path
glab api "projects/$(echo 'mygroup/myproject' | jq -Rr @uri)/wikis"

Get Wiki Page

# Get page by slug
glab api projects/123/wikis/home --method GET

# Get page with spaces in slug (URL-encode)
glab api "projects/123/wikis/$(echo 'Getting Started' | jq -Rr @uri)" --method GET

# Get nested page
glab api "projects/123/wikis/$(echo 'docs/installation' | jq -Rr @uri)" --method GET

# Get page with specific version
glab api "projects/123/wikis/home?version=abc123" --method GET

# Render HTML
glab api "projects/123/wikis/home?render_html=true" --method GET

Create Wiki Page

# Create simple page
glab api projects/123/wikis --method POST \
  -f title="Getting Started" \
  -f content="# Getting Started\n\nWelcome to the project!"

# Create with Markdown format
glab api projects/123/wikis --method POST \
  -f title="Installation Guide" \
  -f content="# Installation\n\n## Prerequisites\n\n- Node.js 18+\n- npm" \
  -f format="markdown"

# Create with custom slug
glab api projects/123/wikis --method POST \
  -f title="API Reference" \
  -f slug="api-docs" \
  -f content="# API Documentation\n\nEndpoints..."

# Create nested page (using directory in slug)
glab api projects/123/wikis --method POST \
  -f title="Database Setup" \
  -f slug="guides/database-setup" \
  -f content="# Database Setup\n\nConfiguration steps..."

Update Wiki Page

# Update content
glab api "projects/123/wikis/$(echo 'Getting Started' | jq -Rr @uri)" --method PUT \
  -f content="# Getting Started\n\n## Updated content\n\nNew information..."

# Update title and content
glab api projects/123/wikis/home --method PUT \
  -f title="Home Page" \
  -f content="# Welcome\n\nUpdated home page content."

# Change format (markdown, rdoc, asciidoc)
glab api projects/123/wikis/readme --method PUT \
  -f format="asciidoc" \
  -f content="= README\n\nAsciidoc content here."

Delete Wiki Page

# Delete page
glab api projects/123/wikis/old-page --method DELETE

# Delete nested page (URL-encode)
glab api "projects/123/wikis/$(echo 'drafts/temp-page' | jq -Rr @uri)" --method DELETE

Upload Attachment

# Upload image
glab api projects/123/wikis/attachments --method POST \
  -F "file=@screenshot.png"

# The response contains the markdown link to use
# {"file_name":"screenshot.png","file_path":"uploads/...","branch":"master","link":{"url":"...","markdown":"![screenshot](uploads/...)"}}

Wiki Page Options

OptionTypeDescription
titlestringPage title (required for create)
slugstringPage URL slug (auto-generated from title if not provided)
contentstringPage content
formatstringContent format: markdown (default), rdoc, asciidoc

Format Support

FormatExtensionDescription
markdown.mdGitHub-flavored Markdown
rdoc.rdocRuby documentation format
asciidoc.asciidocAsciiDoc format
org.orgOrg mode format

Common Workflows

Workflow 1: Create Documentation Structure

project_id=123

# Create home page
glab api projects/$project_id/wikis --method POST \
  -f title="Home" \
  -f content="# Project Wiki\n\n- [Getting Started](Getting-Started)\n- [API Reference](API-Reference)\n- [FAQ](FAQ)"

# Create getting started guide
glab api projects/$project_id/wikis --method POST \
  -f title="Getting Started" \
  -f content="# Getting Started\n\n## Installation\n\n\`\`\`bash\nnpm install\n\`\`\`"

# Create API reference
glab api projects/$project_id/wikis --method POST \
  -f title="API Reference" \
  -f content="# API Reference\n\n## Endpoints\n\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /users | List users |"

Workflow 2: Backup Wiki Content

# List all pages and save content
mkdir -p wiki_backup
glab api projects/123/wikis --paginate | jq -r '.[].slug' | while read slug; do
  echo "Backing up: $slug"
  glab api "projects/123/wikis/$(echo "$slug" | jq -Rr @uri)" | \
    jq -r '.content' > "wiki_backup/${slug//\//_}.md"
done

Workflow 3: Migrate Wiki Content

# Get page from source project
content=$(glab api projects/123/wikis/home | jq -r '.content')
title=$(glab api projects/123/wikis/home | jq -r '.title')

# Create in target project
glab api projects/456/wikis --method POST \
  -f title="$title" \
  -f content="$content"

Workflow 4: Add Image to Wiki Page

# 1. Upload image
response=$(glab api projects/123/wikis/attachments --method POST -F "file=@diagram.png")

# 2. Get markdown link
markdown_link=$(echo "$response" | jq -r '.link.markdown')

# 3. Update page to include image
current_content=$(glab api projects/123/wikis/architecture | jq -r '.content')
new_content="$current_content

## Diagram

$markdown_link"

glab api projects/123/wikis/architecture --method PUT \
  -f content="$new_content"

Workflow 5: List All Wiki Pages with Titles

glab api projects/123/wikis --paginate | \
  jq -r '.[] | "[\(.title)](\(.slug))"'

Wiki Slugs

Slugs are URL-safe versions of titles:

  • Spaces become hyphens: Getting StartedGetting-Started
  • Special characters are removed
  • Case is preserved

For nested pages, use directory structure in slug:

  • guides/installation creates a page under guides/

Troubleshooting

IssueCauseSolution
404 Not FoundWiki disabled or page doesn't existEnable wiki in project settings, check slug
403 ForbiddenNo write accessNeed Developer+ role or check wiki permissions
Empty contentEncoding issueCheck content string escaping
Slug mismatchAuto-generated slug differsExplicitly set slug parameter
Upload failsWrong content typeUse -F flag for file uploads

Best Practices

  1. Use meaningful slugs: Keep URLs readable and consistent
  2. Create a home page: Start with a home/index page
  3. Use relative links: Link between wiki pages using slugs
  4. Organize with structure: Use slug directories for organization
  5. Include images: Upload screenshots and diagrams for clarity

Related Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.36%
按下载量换算245

Claude

29.44%
按下载量换算204

Cursor

17.99%
按下载量换算124

Gemini CLI

10.84%
按下载量换算75

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills