Pr analysis

From harness/harness-ai · View interactive version

Pr analysis is an AI agent skill from the GitHub repository harness/harness-ai. 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 deploym

How to use this skill

Skill file

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.