← 返回 Skills 市场
🔌

GitLab Agent Profile

作者 xrow GmbH · GitHub ↗ · v1.50.0 · MIT-0
cross-platform ✓ 安全检测通过
43
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install xrowgmbh-gitlab-agent-profile
功能描述
Maintain the GitLab agent profile page and static contribution performance chart.
使用说明 (SKILL.md)

GitLab Agent Profile Skill

Use this skill to keep the GitLab agent profile assets current with monthly contribution performance statistics.

Goal

Maintain static profile assets for the agent with:

  • Static SVG and WebP chart files showing the last 12 months of merged merge requests, owner direct commits to main, and contribution score.
  • Categories for owner-authored work, agent-authored work with owner review/merge, agent-authored work without owner review/merge, and the combined total.
  • A legend and bar labels with the exact counts behind the chart.
  • A JSON proof file with the counted records sorted by date descending.

Daily update routine

Create or keep a daily cron that runs the bundled script:

{baseDir}/scripts/update-profile-stats.py

Recommended cron payload:

Read the gitlab-agent-profile skill, run its `{baseDir}/scripts/update-profile-stats.py` helper, and commit/push the generated image/proof assets if they changed.

Inputs

The script accepts these environment variables:

  • GITLAB_AGENT_PROFILE_CHART_OUTPUT: Static SVG chart file to update. Defaults to assets/gitlab-agent-profile.svg.
  • GITLAB_AGENT_PROFILE_WEBP_OUTPUT: Static WebP chart file to update. Defaults to assets/gitlab-agent-profile.webp.
  • GITLAB_AGENT_PROFILE_RECORDS_OUTPUT: JSON proof file to update. Defaults to assets/gitlab-agent-profile-records.json.
  • GITLAB_AGENT_PROFILE_WORKSPACE: Workspace root used for relative output paths. Defaults to the current directory.
  • GITLAB_AGENT_PROFILE_ROOT_GROUP: Root group used to expand short project names. Defaults to xrow-public.
  • GITLAB_AGENT_PROFILE_PROJECTS: Space, comma, or newline separated project paths or project names. Defaults to helm-openclaw ci-tools claw-support.
  • GITLAB_AGENT_PROFILE_AGENT_USERNAME: Agent username. Defaults to the authenticated glab user.
  • GITLAB_AGENT_PROFILE_OWNER_USERNAME: Owner username. Defaults to xrow.
  • GITLAB_AGENT_PROFILE_MONTHS: Number of months to render. Defaults to 12.

Relative output values are resolved from GITLAB_AGENT_PROFILE_WORKSPACE. Project names without / are expanded with GITLAB_AGENT_PROFILE_ROOT_GROUP, so ci-tools becomes xrow-public/ci-tools.

Classification

For merged merge requests:

  • Owner: author username matches GITLAB_AGENT_PROFILE_OWNER_USERNAME.
  • Agent + reviewer: author username matches GITLAB_AGENT_PROFILE_AGENT_USERNAME and the owner is a reviewer or merge user.
  • Agent (autonomous): author username matches GITLAB_AGENT_PROFILE_AGENT_USERNAME and the owner is neither reviewer nor merge user.
  • Merged total: sum of the three MR categories.
  • Direct owner commits: commits on main authored or committed by the owner that are not known MR merge/squash commits and do not start with skip:, skip(...), chore:, chore(...), docs:, docs(...), or revert.
  • MRs with type::fix or type::feature labels count toward MR totals and contribution score.
  • If a merged MR has no type label, a Conventional Commit title beginning with fix:/fix(...) or feat:/feat(...) is used as a fallback type.
  • MRs beginning with skip:, skip(...), chore:, chore(...), docs:, or docs(...) are never counted, even if they have a counted type label.
  • MR contribution score: each counted MR starts at 1 point and is multiplied by its size factor.
  • Size factor: size::small = 1, size::medium = 2, size::large = 3, size::xlarge = 5; missing size labels default to 1.
  • Direct owner commits count 0.2 point each.

The script ignores merge requests authored by other users.

安全使用建议
Install only where a GitLab token and automated profile asset updates are appropriate. Prefer a read-only GitLab token, keep output variables pointed inside the intended assets directory, and review the generated JSON proof before publishing it if project activity may be private.
能力评估
Purpose & Capability
The GitLab API reads, contribution classification, SVG/WebP generation, and JSON proof output match the stated profile-maintenance purpose.
Instruction Scope
The skill explicitly recommends a daily cron and committing generated assets; that is purpose-aligned but should be enabled only for a repository where automated profile asset updates are intended.
Install Mechanism
Metadata declares glab, python3, and GITLAB_TOKEN; the script may also fall back to ImageMagick, npm sharp-cli, or Python image libraries for WebP generation, which is not fully captured in the declared requirements.
Credentials
Environment variables intentionally control projects, users, workspace, and output paths; the code allows absolute output paths, so users should keep outputs confined to the intended repository assets directory.
Persistence & Privilege
No hidden persistence or privilege escalation was found; persistence is a documented user-created daily cron, and GitLab credentials are used through glab for reading activity data.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xrowgmbh-gitlab-agent-profile
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xrowgmbh-gitlab-agent-profile 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.50.0
- Added detailed documentation for configuring and running the GitLab agent profile updater. - Clarified environment variables for customizing generated chart, proof file outputs, and tracked projects/users. - Updated classification rules for contribution types, MR/commit filtering, and scoring. - Described recommended daily cron usage and output asset formats (SVG, WebP, JSON). - Improved instructions for integrating with the Openclaw system environment requirements.
元数据
Slug xrowgmbh-gitlab-agent-profile
版本 1.50.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

GitLab Agent Profile 是什么?

Maintain the GitLab agent profile page and static contribution performance chart. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 GitLab Agent Profile?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xrowgmbh-gitlab-agent-profile」即可一键安装,无需额外配置。

GitLab Agent Profile 是免费的吗?

是的,GitLab Agent Profile 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GitLab Agent Profile 支持哪些平台?

GitLab Agent Profile 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitLab Agent Profile?

由 xrow GmbH(@xrowgmbh)开发并维护,当前版本 v1.50.0。

💬 留言讨论