Agent Skill · Harness

pr-analysis

Analyze pull request impact on Harness pipelines via MCP. Assess PR pipeline impact by identifying which pipelines, services, and environments are affected by code changes. Perform security-focused PR reviews checking for secrets, vulnerabilities, and compliance. Track PRs from merge through deployment to production verification. Use when asked to analyze PR impact, review PR security, or track a PR to production. Trigger phrases: PR impact, pull request analysis, PR security review, PR to production, merge impact, deployment tracking, code change impact, PR pipeline, which pipelines affected.

Provider: Harness Path in repo: skills/pr-analysis/SKILL.md

Skill body

PR Analysis

Analyze pull request pipeline impact, run security-focused reviews, and track PRs from merge to production deployment.

Instructions

Step 1: Establish Scope

Confirm the service, repository, and PR details.

Call MCP tool: harness_list
Parameters:
  resource_type: "pipeline"
  org_id: "<organization>"
  project_id: "<project>"

Step 2: Identify the PR Analysis Task

Determine which analysis the user needs:

  1. PR Pipeline Impact Analysis – Which pipelines, services, and environments are affected
  2. Security-Focused PR Review – Check for secrets, vulnerabilities, and compliance issues
  3. PR to Production Tracker – Track a PR from merge through deployment and verification

Step 3: PR Pipeline Impact Analysis

Gather from the user:

Identify affected resources:

Call MCP tool: harness_list
Parameters:
  resource_type: "trigger"
  org_id: "<organization>"
  project_id: "<project>"

Analyze impact:

Present findings as:

Step 4: Security-Focused PR Review

Gather from the user:

Security checklist:

Secrets and Credentials:

Dependency Changes:

Configuration Security:

Compliance:

Present findings as a structured security report with PASS/FAIL/WARNING per category.

Step 5: PR to Production Tracker

Gather from the user:

Track the PR lifecycle:

Stage 1 – Merge:

Stage 2 – Build:

Call MCP tool: harness_list
Parameters:
  resource_type: "execution"
  org_id: "<organization>"
  project_id: "<project>"

Stage 3 – Deploy to Staging:

Stage 4 – Production Deployment:

Stage 5 – Verification:

Present a timeline view showing the PR’s journey with status at each stage and elapsed time.

Examples

Performance Notes

Troubleshooting

Pipeline Impact Not Matching Actual Triggers

Security Review False Positives

PR Tracking Losing Visibility After Merge

Skill frontmatter

metadata: {"author"=>"Harness", "version"=>"1.0.0", "mcp-server"=>"harness-mcp-v2"} license: Apache-2.0 compatibility: Requires Harness MCP v2 server (harness-mcp-v2)