[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79D86NHSVETYHJFSS0HDTM9":3,"skill-same:01M79D86NHSVETYHJFSS0HDTM9":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M79D86NHSVETYHJFSS0HDTM9","glab",null,"Use when the user mentions `glab`, `glab api`, the GitLab CLI, the GitLab API, or wants to view, query, search, or change GitLab. Covers querying the GitLab API, raw API calls, MRs\u002Fmerge requests, review comment replies, issues, CI\u002FCD pipelines, releases, repos, notifications, status, and any task that views or queries GitLab data.","bigcalm\u002Fwimpysworld-nix-config-agents","bigcalm","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F146745?v=4","01M79D85C4CBJJ69B4QRGH1N8G","Iain Cuthbertson","01M79D85CS4TTED1XJPCMFGBR4",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbigcalm\u002Fwimpysworld-nix-config-agents\u002Fblob\u002Fmain\u002Flocal\u002Fopencode\u002Fskills\u002Fglab\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: glab\ndescription: \"Use when the user mentions `glab`, `glab api`, the GitLab CLI, the GitLab API, or wants to view, query, search, or change GitLab. Covers querying the GitLab API, raw API calls, MRs\u002Fmerge requests, review comment replies, issues, CI\u002FCD pipelines, releases, repos, notifications, status, and any task that views or queries GitLab data.\"\nuser-invocable: true\n---\n\n# GitLab CLI (glab) Reference\n\n## Fence policy\n\nCoding agents run fenced. Fence permits the everyday mutations:\n`git push`, `glab mr comment`, `glab mr approve`, `glab mr create`,\n`glab issue create`, `glab issue update`, `glab ci retry`,\nand `glab mr merge`. Invoking a command that names a mutation\nis the consent for that mutation, so run it rather than asking again.\n\nFence denies raw `glab api`, `glab repo create` and `glab repo edit`,\n`glab config`, `glab auth`, and the other destructive namespaces. Output\nthose for the operator to run in an unfenced shell. Raw reads go through\n`glab-api-safe`.\n\n## Body text policy\n\nEvery command below that carries a `-d`\u002F`--description` or `-m`\u002F`--message`\npublishes under the user's name. Load the `contribution-voice` skill and follow it\nbefore writing that text. It governs the structure: length, layout,\nsign-offs, and the cut pass.\n\nThis covers `glab mr create`, `glab mr note`, `glab issue create`,\nand `glab issue note`.\n\nPrefer the dedicated commands where one fits. Reach for a bare `glab` call\nonly when no command covers the case.\n\n## Merge Requests\n\n```bash\n# List\nglab mr list\nglab mr list -M --per-page 10                                            # merged MRs\nglab mr list --assignee @me\n\n# View\nglab mr view 123\nglab mr view 123 --comments\nglab mr view 123 --web\n\n# Create\nglab mr create --fill                                                 # title\u002Fdescription from commits\nglab mr create --title \"feat: add X\" --description \"...\" --draft\nglab mr create --target-branch main --reviewer alice,bob --label \"needs-review\"\n\n# Merge\nglab mr merge 123 --squash --remove-source-branch\nglab mr merge 123 --auto-merge                                         # merge once CI passes\n\n# Approve & comment\nglab mr approve 123\nglab mr unapprove 123\nglab mr note 123 -m \"Please fix X\"                                     # note\u002Fcomment; also `glab mr comment`\n\n# CI status\nglab ci status                                                         # pipeline status for current branch\nglab ci status -b main --live                                          # stream until complete\n\n# Edit\nglab mr update 123 --label \"bug\" --reviewer charlie\nglab mr update 123 --target-branch develop --title \"Updated title\"\n\n# Other\nglab mr checkout 123\nglab mr diff 123\nglab mr subscribe 123\nglab mr unsubscribe 123\nglab mr reopen 123\nglab mr close 123\n```\n\n## Issues\n\n```bash\n# List\nglab issue list\nglab issue list --assignee @me                                        # open issues (default)\nglab issue list --label \"bug\"\n\n# View\nglab issue view 456\nglab issue view 456 --comments\nglab issue view 456 --web\n\n# Create\nglab issue create --title \"Bug: X fails\" --description \"Steps...\" --label \"bug\" --assignee @me\n\n# Manage\nglab issue update 456 --label \"priority\" --milestone \"v2.0\"\nglab issue close 456\nglab issue reopen 456\nglab issue note 456 -m \"Fixed in !123\"                                # note\u002Fcomment; also `glab issue comment`\nglab issue subscribe 456\nglab issue unsubscribe 456\n```\n\n## CI \u002F Pipelines\n\n```bash\n# List pipelines\nglab ci list\nglab ci list -r main --per-page 5                                      # by ref\nglab ci list -s failed                                                 # by status\n\n# View a pipeline (branch\u002Ftag positional, or -w for the web UI)\nglab ci view main\nglab ci view --web\n\n# Job logs\nglab ci trace \u003Cjob-id>                                                  # live log tail for a job\nglab ci view                                                           # interactive job\u002Ftrace browser\n\n# Retry \u002F cancel\nglab ci retry 12345678\nglab ci cancel pipeline 12345678                                       # namespace: pipeline or job\n\n# Trigger pipeline\nglab ci run -b main\nglab ci run -b main --variables-env \"ENV=staging\"\n\n# Download artifacts\nglab job artifact main build                                           # artifacts of job `build` on ref `main`\n```\n\n## Releases\n\n```bash\n# Create\nglab release create v1.2.3 -N \"Fixes #123\"\nglab release create v1.2.3 -N \"Release notes\" dist\u002F*.tar.gz\n\n# List \u002F view \u002F download\nglab release list\nglab release view v1.2.3\nglab release download v1.2.3\n```\n\n## Repository\n\n```bash\n# View\nglab repo view\nglab repo view owner\u002Frepo\n\n# Clone \u002F fork\nglab repo clone owner\u002Frepo\nglab repo fork owner\u002Frepo --clone\n\n# Cross-project flag (works on most commands)\nglab mr list -R owner\u002Fother-repo\n```\n\n## Search\n\n```bash\n# Projects\nglab repo search --search \"nix config\"\n\n# Issues and MRs\nglab issue list --search \"memory leak\" -R owner\u002Frepo\nglab mr list --search \"fix authentication\" --author alice\n```\n\n## Raw API\n\nDefault to a dedicated `glab` subcommand. Use `glab-api-safe` only when no\nsubcommand fits. Raw `glab api` is denied under Fence. Reserve it for\nmutations with no subcommand and for `@file` field input, and output the\ncommand for the operator to run in an unfenced shell.\n\n| Situation                              | Use                                                  |\n| -------------------------------------- | ---------------------------------------------------- |\n| Read-only REST fetch                   | `glab-api-safe \u003Cpath>`                               |\n| GraphQL read (queries only)            | `glab-api-safe graphql -f query='…'`                 |\n| Dedicated subcommand exists            | that subcommand (`glab mr update`, `glab issue update`, ...) |\n| Other mutation (POST\u002FPUT\u002FDELETE)       | `glab api -X ...` in unfenced shell                  |\n| Field input from file (`-F x=@file`)   | raw `glab api` in unfenced shell                     |\n\n`glab-api-safe` wraps `glab api`, enforces a read-only allow-list with a\ndefence-in-depth deny-list on the REST path, blocks\n`-X`\u002F`--method` (including glued forms such as `-XPOST`)\u002F`--hostname`\u002F`-f`\u002F`-F`\u002F`--field`\u002F`--raw-field`\u002F`--input` (except `query=` value under `graphql`, where `@file` is still rejected), strips `?`\u002F`#` suffixes to the bare path before matching, rejects format extensions such as `.json`, and runs a\nbest-effort GraphQL heuristic that rejects any query whose body contains\na surviving `mutation` or `subscription` keyword after comments and\nstring literals have been stripped. The heuristic is not a real GraphQL\nparser; aliased mutations are out of scope and `@file` queries are\nrejected outright. Policy rejections exit 64 with a single-line reason\non stderr; on rejection, switch to the matching dedicated subcommand or\nescalate to an unfenced shell rather than retrying the same call. Run\n`glab-api-safe --help` for the full policy summary.\n\nPlaceholders `:namespace`, `:repo`, `:branch`, `:fullpath`, `:group`,\n`:id`, `:user`, and `:username` are replaced from current git context.\nDefault method is GET.\n\n```bash\n# GET piped into jq\nglab-api-safe projects\u002F:namespace%2F:repo\u002Fpipelines \\\n  | jq '.[:5] | .[] | {id, status, ref}'\n\n# Paginate all results\nglab-api-safe projects\u002F:namespace%2F:repo\u002Fissues --paginate | jq '.[].title'\n\n# GraphQL (heuristic-screened; mutations and subscriptions are rejected)\nglab-api-safe graphql -f query='{ currentUser { username } }'\n\n# Events (read only)\nglab-api-safe events | jq '.[] | {action_name, target_type}'\n```\n\n### Unsafe: requires unfenced shell\n\n> ⚠️ The commands below mutate GitLab state. They use `glab api` directly\n> with `-X` \u002F `-F` \u002F `--input` and are rejected by `glab-api-safe`. They must\n> only be run in an unfenced shell with explicit operator consent. Prefer\n> the dedicated `glab` subcommands (`glab issue update`, `glab mr update`, etc.)\n> wherever they exist.\n\n```bash\n# PUT \u002F POST\nglab api projects\u002F:namespace%2F:repo\u002Fissues\u002F456 -X PUT -F state=closed\nglab api projects\u002F:namespace%2F:repo\u002Flabels -F name=\"triage\" -F color=\"e4e669\"\n\n# Typed fields (-F): true\u002Ffalse\u002Fnull\u002Fintegers become JSON types; @file reads file\nglab api projects\u002F:namespace%2F:repo\u002Fissues -F title=\"Bug\" -F description=@issue.md\n```\n\n## JSON Output Pattern\n\nList and view commands accept `-F json` (`mr list`, `ci list`) or\n`-O json` (`issue list`), then pipe into `jq`:\n\n```bash\n# JSON output piped to jq\nglab mr list -F json | jq '.[] | {iid, title, state, source_branch}'\nglab ci list -F json | jq '.[] | {id, status, ref, sha}'\nglab issue list -O json | jq '.[] | {iid, title, labels}'\n\n# Filter inline\nglab mr list -F json | jq '.[] | select(.state == \"opened\") | .iid'\n\n# Combine with jq outside glab for complex transforms\nglab issue list -O json | jq '.[] | select(.labels | any(. == \"bug\"))'\n```\n\n## Status & Auth\n\n```bash\n# `glab auth` is denied under Fence, so run it in an unfenced shell.\nglab auth status             # active account, token scopes, host (unfenced shell only)\n# `glab auth status -t` shows the token itself and is never allowed.\n# `glab auth login` and `glab auth logout` stay denied.\n```\n","# GitLab CLI (glab) Reference\n\n## Fence policy\n\nCoding agents run fenced. Fence permits the everyday mutations:\n`git push`, `glab mr comment`, `glab mr approve`, `glab mr create`,\n`glab issue create`, `glab issue update`, `glab ci retry`,\nand `glab mr merge`. Invoking a command that names a mutation\nis the consent for that mutation, so run it rather than asking again.\n\nFence denies raw `glab api`, `glab repo create` and `glab repo edit`,\n`glab config`, `glab auth`, and the other destructive namespaces. Output\nthose for the operator to run in an unfenced shell. Raw reads go through\n`glab-api-safe`.\n\n## Body text policy\n\nEvery command below that carries a `-d`\u002F`--description` or `-m`\u002F`--message`\npublishes under the user's name. Load the `contribution-voice` skill and follow it\nbefore writing that text. It governs the structure: length, layout,\nsign-offs, and the cut pass.\n\nThis covers `glab mr create`, `glab mr note`, `glab issue create`,\nand `glab issue note`.\n\nPrefer the dedicated commands where one fits. Reach for a bare `glab` call\nonly when no command covers the case.\n\n## Merge Requests\n\n```bash\n# List\nglab mr list\nglab mr list -M --per-page 10                                            # merged MRs\nglab mr list --assignee @me\n\n# View\nglab mr view 123\nglab mr view 123 --comments\nglab mr view 123 --web\n\n# Create\nglab mr create --fill                                                 # title\u002Fdescription from commits\nglab mr create --title \"feat: add X\" --description \"...\" --draft\nglab mr create --target-branch main --reviewer alice,bob --label \"needs-review\"\n\n# Merge\nglab mr merge 123 --squash --remove-source-branch\nglab mr merge 123 --auto-merge                                         # merge once CI passes\n\n# Approve & comment\nglab mr approve 123\nglab mr unapprove 123\nglab mr note 123 -m \"Please fix X\"                                     # note\u002Fcomment; also `glab mr comment`\n\n# CI status\nglab ci status                                                         # pipeline status for current branch\nglab ci status -b main --live                                          # stream until complete\n\n# Edit\nglab mr update 123 --label \"bug\" --reviewer charlie\nglab mr update 123 --target-branch develop --title \"Updated title\"\n\n# Other\nglab mr checkout 123\nglab mr diff 123\nglab mr subscribe 123\nglab mr unsubscribe 123\nglab mr reopen 123\nglab mr close 123\n```\n\n## Issues\n\n```bash\n# List\nglab issue list\nglab issue list --assignee @me                                        # open issues (default)\nglab issue list --label \"bug\"\n\n# View\nglab issue view 456\nglab issue view 456 --comments\nglab issue view 456 --web\n\n# Create\nglab issue create --title \"Bug: X fails\" --description \"Steps...\" --label \"bug\" --assignee @me\n\n# Manage\nglab issue update 456 --label \"priority\" --milestone \"v2.0\"\nglab issue close 456\nglab issue reopen 456\nglab issue note 456 -m \"Fixed in !123\"                                # note\u002Fcomment; also `glab issue comment`\nglab issue subscribe 456\nglab issue unsubscribe 456\n```\n\n## CI \u002F Pipelines\n\n```bash\n# List pipelines\nglab ci list\nglab ci list -r main --per-page 5                                      # by ref\nglab ci list -s failed                                                 # by status\n\n# View a pipeline (branch\u002Ftag positional, or -w for the web UI)\nglab ci view main\nglab ci view --web\n\n# Job logs\nglab ci trace \u003Cjob-id>                                                  # live log tail for a job\nglab ci view                                                           # interactive job\u002Ftrace browser\n\n# Retry \u002F cancel\nglab ci retry 12345678\nglab ci cancel pipeline 12345678                                       # namespace: pipeline or job\n\n# Trigger pipeline\nglab ci run -b main\nglab ci run -b main --variables-env \"ENV=staging\"\n\n# Download artifacts\nglab job artifact main build                                           # artifacts of job `build` on ref `main`\n```\n\n## Releases\n\n```bash\n# Create\nglab release create v1.2.3 -N \"Fixes #123\"\nglab release create v1.2.3 -N \"Release notes\" dist\u002F*.tar.gz\n\n# List \u002F view \u002F download\nglab release list\nglab release view v1.2.3\nglab release download v1.2.3\n```\n\n## Repository\n\n```bash\n# View\nglab repo view\nglab repo view owner\u002Frepo\n\n# Clone \u002F fork\nglab repo clone owner\u002Frepo\nglab repo fork owner\u002Frepo --clone\n\n# Cross-project flag (works on most commands)\nglab mr list -R owner\u002Fother-repo\n```\n\n## Search\n\n```bash\n# Projects\nglab repo search --search \"nix config\"\n\n# Issues and MRs\nglab issue list --search \"memory leak\" -R owner\u002Frepo\nglab mr list --search \"fix authentication\" --author alice\n```\n\n## Raw API\n\nDefault to a dedicated `glab` subcommand. Use `glab-api-safe` only when no\nsubcommand fits. Raw `glab api` is denied under Fence. Reserve it for\nmutations with no subcommand and for `@file` field input, and output the\ncommand for the operator to run in an unfenced shell.\n\n| Situation                              | Use                                                  |\n| -------------------------------------- | ---------------------------------------------------- |\n| Read-only REST fetch                   | `glab-api-safe \u003Cpath>`                               |\n| GraphQL read (queries only)            | `glab-api-safe graphql -f query='…'`                 |\n| Dedicated subcommand exists            | that subcommand (`glab mr update`, `glab issue update`, ...) |\n| Other mutation (POST\u002FPUT\u002FDELETE)       | `glab api -X ...` in unfenced shell                  |\n| Field input from file (`-F x=@file`)   | raw `glab api` in unfenced shell                     |\n\n`glab-api-safe` wraps `glab api`, enforces a read-only allow-list with a\ndefence-in-depth deny-list on the REST path, blocks\n`-X`\u002F`--method` (including glued forms such as `-XPOST`)\u002F`--hostname`\u002F`-f`\u002F`-F`\u002F`--field`\u002F`--raw-field`\u002F`--input` (except `query=` value under `graphql`, where `@file` is still rejected), strips `?`\u002F`#` suffixes to the bare path before matching, rejects format extensions such as `.json`, and runs a\nbest-effort GraphQL heuristic that rejects any query whose body contains\na surviving `mutation` or `subscription` keyword after comments and\nstring literals have been stripped. The heuristic is not a real GraphQL\nparser; aliased mutations are out of scope and `@file` queries are\nrejected outright. Policy rejections exit 64 with a single-line reason\non stderr; on rejection, switch to the matching dedicated subcommand or\nescalate to an unfenced shell rather than retrying the same call. Run\n`glab-api-safe --help` for the full policy summary.\n\nPlaceholders `:namespace`, `:repo`, `:branch`, `:fullpath`, `:group`,\n`:id`, `:user`, and `:username` are replaced from current git context.\nDefault method is GET.\n\n```bash\n# GET piped into jq\nglab-api-safe projects\u002F:namespace%2F:repo\u002Fpipelines \\\n  | jq '.[:5] | .[] | {id, status, ref}'\n\n# Paginate all results\nglab-api-safe projects\u002F:namespace%2F:repo\u002Fissues --paginate | jq '.[].title'\n\n# GraphQL (heuristic-screened; mutations and subscriptions are rejected)\nglab-api-safe graphql -f query='{ currentUser { username } }'\n\n# Events (read only)\nglab-api-safe events | jq '.[] | {action_name, target_type}'\n```\n\n### Unsafe: requires unfenced shell\n\n> ⚠️ The commands below mutate GitLab state. They use `glab api` directly\n> with `-X` \u002F `-F` \u002F `--input` and are rejected by `glab-api-safe`. They must\n> only be run in an unfenced shell with explicit operator consent. Prefer\n> the dedicated `glab` subcommands (`glab issue update`, `glab mr update`, etc.)\n> wherever they exist.\n\n```bash\n# PUT \u002F POST\nglab api projects\u002F:namespace%2F:repo\u002Fissues\u002F456 -X PUT -F state=closed\nglab api projects\u002F:namespace%2F:repo\u002Flabels -F name=\"triage\" -F color=\"e4e669\"\n\n# Typed fields (-F): true\u002Ffalse\u002Fnull\u002Fintegers become JSON types; @file reads file\nglab api projects\u002F:namespace%2F:repo\u002Fissues -F title=\"Bug\" -F description=@issue.md\n```\n\n## JSON Output Pattern\n\nList and view commands accept `-F json` (`mr list`, `ci list`) or\n`-O json` (`issue list`), then pipe into `jq`:\n\n```bash\n# JSON output piped to jq\nglab mr list -F json | jq '.[] | {iid, title, state, source_branch}'\nglab ci list -F json | jq '.[] | {id, status, ref, sha}'\nglab issue list -O json | jq '.[] | {iid, title, labels}'\n\n# Filter inline\nglab mr list -F json | jq '.[] | select(.state == \"opened\") | .iid'\n\n# Combine with jq outside glab for complex transforms\nglab issue list -O json | jq '.[] | select(.labels | any(. == \"bug\"))'\n```\n\n## Status & Auth\n\n```bash\n# `glab auth` is denied under Fence, so run it in an unfenced shell.\nglab auth status             # active account, token scopes, host (unfenced shell only)\n# `glab auth status -t` shows the token itself and is never allowed.\n# `glab auth login` and `glab auth logout` stay denied.\n```\n",{"name":5,"description":7,"user-invocable":24},true,"main","2fa62fb30590e7c4f7848106fe447ba169ea5a39","local\u002Fopencode\u002Fskills\u002Fglab","https:\u002F\u002Fgithub.com\u002Fbigcalm\u002Fwimpysworld-nix-config-agents","https:\u002F\u002Fgithub.com\u002Fbigcalm","https:\u002F\u002Fmyrant.net","PHP developer since 2006","2026-08-13 06:05:50",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add bigcalm\u002Fwimpysworld-nix-config-agents --skill glab",{"tool":39,"command":40},"bunx","bunx skills add bigcalm\u002Fwimpysworld-nix-config-agents --skill glab",{"tool":42,"command":43},"pnpm","pnpm dlx skills add bigcalm\u002Fwimpysworld-nix-config-agents --skill glab","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbigcalm\u002Fwimpysworld-nix-config-agents\u002Fblob\u002Fmain\u002Flocal\u002Fopencode\u002Fskills\u002Fglab\u002FSKILL.md",[],[47],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M79D89W2EYS02NTF77V0YG7G","write-skill","Write a skill","https:\u002F\u002Fgithub.com\u002Fbigcalm\u002Fwimpysworld-nix-config-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fminimal\u002Fhome-manager\u002F_mixins\u002Fagentic\u002Fassistants\u002Fskills\u002Fwrite-skill\u002FSKILL.md",[],[]]