harness-sdk: Skill for Claude Code

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

pr-writer is a skill for Claude Code, Codex from strands-agents/harness-sdk. It costs 39 tokens per session (1,857 once invoked), scanned A, original, Apache-2.0.

A writing guide for pull requests, which are proposed code changes submitted for review before merging. It focuses on the reason for the change, the problem it solves, and useful details for reviewers.

In plain words
What is it for?
Checking the branch diff and writing pull request or merge request titles and descriptions.
Why use it?
It helps produce concise PR titles and descriptions that explain the change without filler.

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 strands-agents/harness-sdk's own configuration. It tells Claude Code and Codex how to work on harness-sdk 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 harness-sdk configures →

About the project

Strands Agents is an open-source SDK for building and running AI agents in Python and TypeScript. Developers use it to create agents with model providers, tools, lifecycle controls, memory, sessions, streaming, tracing, and evaluations, and the catalogue includes add-ons for its agent-building workflow.

strands-agents/harness-sdk · 7,168 stars · on GitHub · strandsagents.com

Reuse

Borrowing it

Nothing to install: this file belongs to strands-agents/harness-sdk. 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/strands-agents/harness-sdk/main/.agents/skills/pr-writer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/strands-agents/harness-sdk

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/strands-agents/harness-sdk/pr-writer.svg)](https://agentmods.dev/skills/strands-agents/harness-sdk/pr-writer)
Your own site
<a href="https://agentmods.dev/skills/strands-agents/harness-sdk/pr-writer"><img src="https://agentmods.dev/badge/skills/strands-agents/harness-sdk/pr-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,857 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
  • 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.00039 $0.01857
Opus 5 $0.00019 $0.00928
Sonnet 5 $0.00008 $0.00371
Haiku 4.5 $0.00004 $0.00186

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

Security

Grade A, and why

pr-writer 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (get-diff.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/pr-writer/SKILL.md · 96 lines

How it starts

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

PR Writer Skill

Persona

You are a senior engineer with 10+ years of experience. You don't pad PRs with filler. You get straight to why the change exists, what problem it solves, and what the reviewer needs to know. You write like someone who's reviewed thousands of PRs and respects the reviewer's time.

Process

When asked to generate a PR description, follow these steps in order:

1. Check for Staged Changes

Run git diff --cached --stat to check for staged but uncommitted changes.

  • If there are staged changes, stop and ask the user if they'd like to commit them before generating the PR description. Do not proceed until the user confirms.
  • If there are no staged changes, continue.

2. Gather Context

Run the bundled diff script to get the base branch, commits, changed files, and full diff:

bash .agents/skills/pr-writer/get-diff.sh

If the commit messages and diff don't provide enough context to understand the motivation behind the change, look at recent commits on the branch for additional context. Use the base ref from the script output (the === BASE: <ref> === line) to scope the log and avoid surfacing unrelated commits from main.

Use this only to fill in gaps — don't let older commits override what the current diff says.

If commit messages reference a GitHub issue (e.g., #123, fixes #456), use gh issue view <number> to pull in the issue title and description for additional motivation context.

Also consider the current conversation context. If the author made design decisions, trade-offs, or rejected alternatives during their conversation with an agent, incorporate that reasoning into the PR description — especially in the "Why" and "Risks" sections. These decisions are often the most valuable context for reviewers and are easily lost if not captured.

3. Apply Project Conventions

Read these two files — they work together:

  • PR template (.github/PULL_REQUEST_TEMPLATE.md): The structural skeleton. Fill in every section it defines, in order.
  • PR guidelines (team/PR.md): How to craft each section — writing principles, anti-patterns, what to include, what to skip. This is the source of truth for content quality. Always defer to it over general conventions.

Read the full file on GitHub · 96 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 96 lines · 39 tokens per session scan A b00b94a4ed91

Subscribe to this mod's changes

pr-writer is a skill published in the GitHub repository strands-agents/harness-sdk (7,168 stars, last pushed 3d ago), licensed Apache-2.0. It adds 39 tokens to every session and 1,857 once invoked, about $0.0002 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

returns-policy

Answer return, refund, and warranty questions for electronics. Use when the user mentions returns, refunds, RMAs, warranty coverage, damaged items, or opened packaging.

strands-agents/samples · 36 tokens

technical-troubleshooting

Provide setup, troubleshooting, and maintenance guidance. Use when the user reports a device that won't power on, connectivity issues, setup questions, overheating, or maintenance concerns.

strands-agents/samples · 38 tokens

github-triage

Triage GitHub issues through a label-based state machine with interactive grilling sessions. Use when user wants to triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.

sammcj/agentic-coding · 50 tokens

release-debrief

Summarises the delta between a tool's latest release and the last summary the user saw. Use when the user asks about what's new, the latest release, release notes, or the changelog of one of the supported tools: Claude Code, OpenCode, llama-swap, or llama.cpp.

sammcj/agentic-coding · 64 tokens

github

You MUST always activate this github skill whenever working with GitHub in any capacity, including but not limited to gh cli, API, Actions, issues, PRs and other routine Github interactions.

sammcj/agentic-coding · 40 tokens

apply-patch

Apply multi-file or tricky edits atomically with git apply instead of many fragile editfile calls. Use when changing several files at once or when editfile fails to match.

agentscope-ai/agentscope-java · 38 tokens