← Back to Skills Marketplace
Prometheus Go Code Review
by
Kevin Anderson
· GitHub ↗
· v2.3.1
· MIT-0
185
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install prometheus-go-code-review
Description
Reviews Prometheus instrumentation in Go code for proper metric types, labels, and patterns. Use when reviewing code with prometheus/client_golang metrics.
Usage Guidance
This skill is instruction-only and coherent for its stated purpose: it performs static reviews of Go code that uses prometheus/client_golang. Before installing, confirm you will provide a concrete diff or file paths (the skill requires that) and whether you expect it to perform any runtime/network checks — the mention of the '/metrics' endpoint being "accessible" is ambiguous and could imply probing a running service (which would need network/run permissions). The skill does not request credentials or install software, so the primary risk is granting it access to the repository or file set you want reviewed — limit that access to only the code you want evaluated. If you need the skill to actually hit a live /metrics endpoint, ask the author to document required permissions and network behavior.
Capability Assessment
Purpose & Capability
Name, description, and required artifacts align: the SKILL.md is a focused checklist for prometheus/client_golang usage in Go and only needs a concrete set of files or a diff to operate. There are no unrelated binaries, credentials, or install steps requested.
Instruction Scope
Instructions are narrowly scoped to code review (enumerate files touching Prometheus, inspect label cardinality, registration lifecycle, etc.) and require file paths or diffs. One ambiguous phrase: the checklist asks that the '/metrics endpoint [be] exposed and accessible' — this could be interpreted as a runtime/network check rather than a static code inspection. If the skill will attempt to probe the running service, that would require network/run permissions; as-written the rest of the doc implies static code inspection only. Clarify whether the agent should perform runtime endpoint checks.
Install Mechanism
No install spec and no code files are present. This reduces surface area (nothing downloaded or written to disk).
Credentials
The skill does not request environment variables, credentials, or config paths. Its checks (labels, metric types, registration patterns) do not require secret access.
Persistence & Privilege
Flags show no forced persistence (always: false), and there are no instructions to modify other skills or system-wide configs. Autonomous invocation is allowed by default but not in itself a concern here.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install prometheus-go-code-review - After installation, invoke the skill by name or use
/prometheus-go-code-review - Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.3.1
- Added a sequenced list of hard gates to the review: evidence scope, label cardinality, registration lifecycle, and finding shape.
- Clarified requirements for each gate, specifying passing criteria and standards for findings.
- Emphasized that findings must cite file and location, and only record style nits when gates 2–3 are not satisfied.
- Checklist and reference sections remain, but more explicit guidance is given for systematic Prometheus code review.
v2.3.0
- Expanded documentation with a comprehensive review checklist, best practices, and anti-pattern examples for Prometheus instrumentation in Go.
- Added detailed code snippets illustrating proper and improper usage of metric types, labels, and registration patterns.
- Included a metric type selection table and review questions to guide code review process.
- Strengthened guidance on metric naming conventions, label cardinality, and safe /metrics exposition.
Metadata
Frequently Asked Questions
What is Prometheus Go Code Review?
Reviews Prometheus instrumentation in Go code for proper metric types, labels, and patterns. Use when reviewing code with prometheus/client_golang metrics. It is an AI Agent Skill for Claude Code / OpenClaw, with 185 downloads so far.
How do I install Prometheus Go Code Review?
Run "/install prometheus-go-code-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Prometheus Go Code Review free?
Yes, Prometheus Go Code Review is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Prometheus Go Code Review support?
Prometheus Go Code Review is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Prometheus Go Code Review?
It is built and maintained by Kevin Anderson (@anderskev); the current version is v2.3.1.
More Skills