gitlab-wiki

A guide for managing GitLab wiki pages, which are project documentation pages stored in GitLab. It supports page creation, updates, listing, deletion, and Mermaid diagrams.

In plain words
What is it for?
It helps maintain project documentation and add diagrams through GitLab's API or wiki Git repository.
Why use it?
It removes the need to remember the GitLab API commands and page formats for wiki work.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gettalon/talon-plugins/gitlab-wiki
Any agent
npx skills add gettalon/talon-plugins --skill gitlab-wiki
Clone the repo
git clone --depth 1 https://github.com/gettalon/talon-plugins

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.00744
Opus 5 $0.00018 $0.00372
Sonnet 5 $0.00007 $0.00149
Haiku 4.5 $0.00004 $0.00074

Measured 2d ago against content hash e66b67397068, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gitlab-wiki scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/talon/skills/gitlab-wiki/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitLab Wiki Management

Create and manage wiki pages via glab api. GitLab wikis render Mermaid diagrams natively in markdown.

Setup

Wiki uses glab api. Get project path first:

PROJECT_PATH=$(git remote get-url origin | sed -E 's|.*://[^/]+/||;s|\.git$||' | sed 's|/|%2F|g')

CRUD Operations

List Pages

glab api "projects/${PROJECT_PATH}/wikis" | python3 -c "
import sys,json
for w in json.load(sys.stdin):
    print(f'  {w[\"slug\"]:<40} {w[\"title\"]}')
"

Create Page

glab api "projects/${PROJECT_PATH}/wikis" --method POST \
  --field "title=Page Title" \
  --field "content=# Page Title

Content here. Mermaid works:

\`\`\`mermaid
graph LR
    A --> B --> C
\`\`\`
"

Read Page

glab api "projects/${PROJECT_PATH}/wikis/<slug>" | python3 -c "
import sys,json
w = json.load(sys.stdin)
print(w['content'])
"

Update Page

glab api "projects/${PROJECT_PATH}/wikis/<slug>" --method PUT \
  --field "content=# Updated content"

Delete Page

glab api "projects/${PROJECT_PATH}/wikis/<slug>" --method DELETE

Wiki via Git

GitLab wikis are also git repos. Clone for bulk edits:

# Clone wiki repo (append .wiki.git to project URL)
REPO_URL=$(git remote get-url origin | sed 's|\.git$|.wiki.git|')
git clone "$REPO_URL" /tmp/wiki-repo

# Edit files locally (each .md file = one wiki page)
cd /tmp/wiki-repo
# ... edit files ...
git add -A && git commit -m "Update wiki" && git push

Mermaid Diagrams

GitLab renders Mermaid in wiki markdown. Use fenced code blocks:

```mermaid
sequenceDiagram
    participant A as Client
    participant B as Server
    A->>B: Request
    B-->>A: Response
```

```mermaid
stateDiagram-v2
    [*] --> Active
    Active --> Done
```

```mermaid
flowchart TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Action]
    B -->|No| D[Skip]
```

Sprint Wiki Template

When creating sprint documentation:

glab api "projects/${PROJECT_PATH}/wikis" --method POST \
  --field "title=Sprint-YYYY-WNN" \
  --field "content=# Sprint YYYY-WNN

## Goals
- [ ] Goal 1
- [ ] Goal 2

## Issues
| ID | Title | Status |
|----|-------|--------|
| #1 | Task  | To Do  |

## Notes

## Retrospective
### What went well
### What to improve
### Action items
"

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 136 lines · 37 tokens per session scan A e66b67397068

Subscribe to this mod's changes

gitlab-wiki is a skill published in the GitHub repository gettalon/talon-plugins (6 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 744 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories