gitlab-portfolio
Use when you need a single-pane cross-repo health view across all vault-registered GitLab and GitHub projects. Discovers repos from `_overview.md` frontmatter…
от Kanevry★ 53 звезды на GitHub
Установить gitlab-portfolio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GitLab Portfolio Skill
Plugin root:
${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill'sskills/folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.
Aggregates cross-repo health signals from vault-registered projects into a single
_PORTFOLIO.mddashboard — idempotent, opt-in, and_generator-marked.
Soul
gitlab-portfolio gives you a single-pane view of your entire project portfolio. It iterates all vault-registered repositories, dispatches parallel CLI calls to glab / gh, and writes a structured Markdown dashboard at <vault-dir>/01-projects/_PORTFOLIO.md. The result is a living status snapshot — updated on demand or at session-start — that never overwrites hand-edited files.
When to use
- You want a cross-repo issue/MR summary across many projects without opening each GitLab/GitHub UI.
- Session-start should surface a portfolio health banner (critical open issues, stale repos).
- A nightly routine should refresh the dashboard automatically via
/portfolio. - You need
--dry-runpreview before committing a refresh to the vault.
When NOT to use
- Bidirectional sync (writing issues back to GitLab/GitHub) — use
gitlab-opsfor write operations. - Single-repo deep-dives — use
/discoveryor directglabcommands. - Projects not registered in the vault (
_overview.mdor.vault.yaml) — unregistered repos are silently skipped. - Replacing a hand-authored
_PORTFOLIO.md— the_generatorguard prevents overwriting human content.
Phase 1: Discovery
Implementation: scripts/lib/gitlab-portfolio/aggregator.mjs — discoverRepos().
Iterates <vault-dir>/01-projects/*/ subdirectories:
- Primary — Read
_overview.mdYAML frontmatter. Look forgitlab: <namespace/repo>and/orgithub: <owner/repo>. Both keys may be present on a single repo. - Fallback — If
_overview.mdis absent or missing those keys, read.vault.yamlat the project root:spec.links.gitlab/spec.links.github. - Skip — Directories with neither source are silently skipped.
Output is an array of RepoDescriptor objects: { slug, gitlab, github }.
Phase 2: Aggregation
Implementation: scripts/lib/gitlab-portfolio/aggregator.mjs — aggregateAll(repos, config).
All repos are fetched in parallel via Promise.allSettled. Per-repo CLI dispatch:
# GitLab
glab issue list --repo <namespace/repo> --state opened --output json
glab mr list --repo <namespace/repo> --state opened --output json
# GitHub
gh issue list --repo <owner/repo> --state open --json number,title,labels,createdAt,updatedAt,milestone
gh pr list --repo <owner/repo> --state open --json number,title,labels,createdAt,updatedAt
Per-repo summary fields derived from JSON output:
| Field | Derivation |
|---|---|
openIssues / openMRs |
array lengths |
critical |
issues where any label matches critical-labels (case-insensitive) |
stale |
issues where updatedAt older than stale-days days |
nextMilestone |
earliest non-null milestone.title across open issues |
lastActivity |
max updatedAt across all issues + MRs |
topIssues |
first 3 open issues sorted by createdAt ascending (oldest open first) |
On CLI failure per repo: behaviour is controlled by mode (see Error Handling).
Phase 3: Output
Implementation: scripts/lib/gitlab-portfolio/markdown-writer.mjs — renderDashboard(summaries, config).
Output path: <vault-dir>/01-projects/_PORTFOLIO.md. Frontmatter keys: _generator: session-orchestrator-gitlab-portfolio@1, created (ISO8601, set once), updated (ISO8601, refreshed each write), repos (count). Atomic write: content built in memory, committed via a single writeFileSync.
Phase 4: Idempotency
parseFrontmatter and emitAction imported from scripts/lib/vault-mirror/utils.mjs. Rules:
- No file →
created. - File exists,
_generatorabsent or differs →skipped-handwritten(never overwrite human content). - File exists, generator matches,
updated≤ fresh data →updated. - File exists, generator matches,
updated> fresh data →skipped-noop.
Stdout action shape: {"action":"updated","path":"01-projects/_PORTFOLIO.md","repos":16,"critical":3}
Config
Opt-in via the gitlab-portfolio: block in Session Config (CLAUDE.md / AGENTS.md):
gitlab-portfolio:
enabled: true
mode: warn # warn | strict | off
stale-days: 30
critical-labels: ["priority::critical", "priority::high"]
| Field | Default | Meaning |
|---|---|---|
enabled |
false |
Master switch. |
mode |
warn |
warn / `stri |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gitlab-portfolio?
Use when you need a single-pane cross-repo health view across all vault-registered GitLab and GitHub projects. Discovers repos from `_overview.md` frontmatter in `<vault>/01-projects/*/`, aggregates open issues, MRs, critical labels, and stale signals via parallel `glab`/`gh` calls, then writes an idempotent `_PORTFOLIO.md` dashboard. Runs automatically at session-start Phase 2 when `gitlab-portfolio.enabled=true`. Triggers: "show portfolio status", "refresh the portfolio dashboard", "which repos have critical issues", "run /portfolio". <example>Context: session-start, gitlab-portfolio.enabled=true, vault has 5 registered repos. user: "/session deep" assistant: "Portfolio: 3 critical issues across 2 repos — run /portfolio for details. Dashboard written to vault/01-projects/_PORTFOLIO.md."</example>
Как установить скилл gitlab-portfolio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gitlab-portfolio запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…