dtctl: Skill for Claude Code

.agents/skills/pr-review/SKILL.md

pr-review is a skill for Claude Code, Codex from dynatrace-oss/dtctl. It costs 82 tokens per session (2,168 once invoked), scanned A, original, Apache-2.0.

A checklist for reviewing a pull request or feature branch before it is merged. A pull request is a proposed code change, and a feature branch is a separate line of development; the review covers readiness, code, user experience, documentation, tests, and safety.

In plain words
What is it for?
Use it to inspect a branch or PR, check whether it is ready to merge, and report which review areas pass or need work.
Why use it?
It turns a broad quality check into specific findings tied to files and line numbers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is dynatrace-oss/dtctl's own configuration. It tells Claude Code and Codex how to work on dtctl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dtctl configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test ./pkg/output/ -run TestGolden.

Reuse

Borrowing it

Nothing to install: this file belongs to dynatrace-oss/dtctl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dynatrace-oss/dtctl/main/.agents/skills/pr-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dynatrace-oss/dtctl

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/dynatrace-oss/dtctl/pr-review/github.svg)](https://agentmods.dev/skills/dynatrace-oss/dtctl/pr-review)
Your own site
<a href="https://agentmods.dev/skills/dynatrace-oss/dtctl/pr-review"><img src="https://agentmods.dev/badge/skills/dynatrace-oss/dtctl/pr-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/dynatrace-oss/dtctl/pr-review"><img src="https://agentmods.dev/badge/skills/dynatrace-oss/dtctl/pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 16 Apr 2026
  • Snyk warn 16 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.02168
Opus 5 $0.00041 $0.01084
Sonnet 5 $0.00016 $0.00434
Haiku 4.5 $0.00008 $0.00217

Measured 10d ago against content hash 688f8ebe81a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pr-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • pr-review — 86% identical, 4 lines differ
.agents/skills/pr-review/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Quality Review

Perform a comprehensive quality review of a pull request or feature branch. This skill covers production readiness, code quality, UX, documentation, tests, and safety.

The review is structured as a checklist across seven dimensions. For each dimension, investigate the actual code and report specific findings -- not just "looks good" but concrete observations with file paths and line numbers.

Getting Started

First, understand the scope of the change:

# What branch are we on, what's the base?
git branch --show-current
git log main..HEAD --oneline

# What files changed?
git diff main...HEAD --stat

# Full diff for review
git diff main...HEAD

If reviewing a remote PR, fetch it first:

gh pr view <number> --json title,body,files
gh pr diff <number>

Read the PR description and all commits to understand the intent before diving into code.

Review Dimensions

Work through each dimension below. For each one, report a status:

  • Pass -- meets the bar, no issues
  • Needs work -- specific issues found (list them)
  • N/A -- not applicable to this change

1. Production Readiness

Does this code behave correctly and handle failure gracefully?

  • Error handling: Are all errors checked? Are they wrapped with context (fmt.Errorf("context: %w", err))? Do they surface actionable messages to users?
  • Edge cases: Empty inputs, nil values, missing config, network failures, API rate limits, large datasets, pagination boundaries
  • Safety checks: All mutating commands (create, edit, apply, delete, update) must include safety checks after LoadConfig() and before client operations. Pattern:
    checker, err := NewSafetyChecker(cfg)
    if err := checker.CheckError(safety.OperationXXX, safety.OwnershipUnknown); err != nil { return err }
    
    Verify correct operation type. Skip only in dry-run paths.
  • No stdout in library code: pkg/ must return data, not print. Only cmd/ handles output.
  • No hardcoded secrets or customer data: No real names, env IDs, tokens, or emails in code or tests. Use @example.invalid for emails (RFC 2606).

Read the full file on GitHub · 200 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 200 lines · 82 tokens per session scan A 688f8ebe81a5

Subscribe to this mod's changes

pr-review is a skill published in the GitHub repository dynatrace-oss/dtctl (184 stars, last pushed today), licensed Apache-2.0. It adds 82 tokens to every session and 2,168 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agentplane-task-closure-recovery

Use when Agentplane task completion, direct finish, branchpr integration, hosted-close, close-tail PRs, PR metadata, dirty task artifacts, or remote branch divergence need diagnosis or recovery.

basilisk-labs/agentplane · 46 tokens

argot-setup

Set argot up for a repository end to end — audit its history, decide what should shape its voice, fit, verify the fit actually catches things, tune the rules its own history says are noisy, and wire the places it runs (pre-write hook, pre-commit, MCP, CI). One sitting, one decision at a time, each proposed with the…

get-tmonier/argot · 129 tokens

detect-task

Internal skill for commands. Detect the active task (any tracker adapter) from the task-state file / git branch name. Do not trigger on user conversation - only when commands need task detection.

restarter/lets-workflow · 41 tokens

dos-verify-done-claims

Before accepting an agent's 'done / shipped / fixed' claim, verify it against ground truth (git ancestry + the commit's own diff) using the DOS kernel's dos verify and dos commit-audit — never the agent's own narration.

anthony-chaudhary/dos-kernel · 61 tokens

loop-bb-pr

A command that prepares a repeating check for a Bitbucket pull request. A pull request is a request to review and merge code changes into a project.

restarter/lets-workflow · 118 tokens

take-task

A workflow for claiming a tracker task and preparing the development branch for it. It verifies the task, marks it as in progress, checks for uncommitted changes, and handles branch setup according to the task state.

restarter/lets-workflow · 76 tokens