gitlab-wiki
GitLab wiki operations via API. ALWAYS use this skill when user wants to: (1) list wiki pages, (2) read wiki content, (3) create/update/delete wiki pages, (4) upload wiki attachments.
What this skill does
# Wiki Skill Wiki page management for GitLab using `glab api` raw endpoint calls. ## Quick Reference | Operation | Command Pattern | Risk | |-----------|-----------------|:----:| | List pages | `glab api projects/:id/wikis` | - | | Get page | `glab api projects/:id/wikis/:slug` | - | | Create page | `glab api projects/:id/wikis -X POST -f ...` | ⚠️ | | Update page | `glab api projects/:id/wikis/:slug -X PUT -f ...` | ⚠️ | | Delete page | `glab api projects/:id/wikis/:slug -X DELETE` | ⚠️⚠️ | | Upload attachment | `glab 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 ```bash # 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 ```bash # 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 ```bash # 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 ```bash # 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 ```bash # 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 ```bash # Upload image glab api projects/123/wikis/attachments --method POST \ -F "[email protected]" # The response contains the markdown link to use # {"file_name":"screenshot.png","file_path":"uploads/...","branch":"master","link":{"url":"...","markdown":""}} ``` ## Wiki Page Options | Option | Type | Description | |--------|------|-------------| | `title` | string | Page title (required for create) | | `slug` | string | Page URL slug (auto-generated from title if not provided) | | `content` | string | Page content | | `format` | string | Content format: `markdown` (default), `rdoc`, `asciidoc` | ## Format Support | Format | Extension | Description | |--------|-----------|-------------| | `markdown` | `.md` | GitHub-flavored Markdown | | `rdoc` | `.rdoc` | Ruby documentation format | | `asciidoc` | `.asciidoc` | AsciiDoc format | | `org` | `.org` | Org mode format | ## Common Workflows ### Workflow 1: Create Documentation Structure ```bash 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 ```bash # 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 ```bash # 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 ```bash # 1. Upload image response=$(glab api projects/123/wikis/attachments --method POST -F "[email protected]") # 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 ```bash glab api projects/123/wikis --paginate | \ jq -r '.[] | "[\(.title)](\(.slug))"' ``` ## Wiki Slugs Slugs are URL-safe versions of titles: - Spaces become hyphens: `Getting Started` → `Getting-Started` - Special characters are removed - Case is preserved For nested pages, use directory structure in slug: - `guides/installation` creates a page under `guides/` ## Troubleshooting | Issue | Cause | Solution | |-------|-------|----------| | 404 Not Found | Wiki disabled or page doesn't exist | Enable wiki in project settings, check slug | | 403 Forbidden | No write access | Need Developer+ role or check wiki permissions | | Empty content | Encoding issue | Check content string escaping | | Slug mismatch | Auto-generated slug differs | Explicitly set `slug` parameter | | Upload fails | Wrong content type | Use `-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 - [API Helpers](../shared/docs/API_HELPERS.md) - [Safeguards](../shared/docs/SAFEGUARDS.md) - [Quick Reference](../shared/docs/QUICK_REFERENCE.md) - [GitLab Wiki API](https://docs.gitlab.com/ee/api/wikis.html)
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.