optimize-pipeline

Analyze and optimize Harish CI/CD pipelines to reduce total execution time.

80|16|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/harness/harness-skills --skill optimize-pipeline-harness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize-pipeline
Source: https://github.com/harness/harness-skills/tree/main/skills/optimize-pipeline
Command: npx skills add https://github.com/harness/harness-skills --skill optimize-pipeline-harness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze and optimize Harness CI/CD pipeline performance through parallel testing, caching, bottleneck analysis, and monorepo strategies.

Core Features & Use Cases

  • Parallel Testing with Test Intelligence: configure TI to split tests across runners and skip unchanged tests.
  • Caching Strategy: multi-layer caching across dependencies, build outputs, and test results with TTL.
  • Pipeline Bottleneck Analysis: stage-level timing breakdown and optimization recommendations.
  • Monorepo CI Pipeline: selective builds triggered by changed paths and dependency-aware builds.

Quick Start

Run an optimization pass on an existing pipeline by enabling TI, configuring caching, and analyzing bottlenecks.

Frequently Asked Questions about optimize-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize CI/CD pipeline execution time for large monorepos?

To optimize CI/CD pipeline execution time for large monorepos, implement selective builds triggered by changed paths. Dependency-aware builds ensure only impacted modules compile, drastically reducing total pipeline runtime.

How does Test Intelligence work for parallel testing in a CI/CD pipeline?

Test Intelligence optimizes parallel testing by splitting tests across multiple runners. It analyzes code changes to intelligently skip unaffected tests, significantly reducing test suite execution time within your pipeline.

What is the best way to reduce stage bottlenecks in a Harness pipeline?

The best way to reduce stage bottlenecks in a Harness pipeline is performing a stage-level timing breakdown. This bottleneck analysis identifies slow stages and provides targeted optimization recommendations to speed up execution.

Can I configure multi-layer caching for dependencies and build outputs?

Yes, you can configure multi-layer caching across dependencies, build outputs, and test results. Applying a TTL to these cache layers prevents stale data while accelerating subsequent pipeline runs.

Does pipeline optimization integrate with MCP v2 for test intelligence?

Yes, pipeline optimization integrates with MCP v2 to enable test intelligence and caching. This integration supports multi-stage pipelines with extensive test suites, effectively reducing total runtime.