migrate-pipeline

Use the MCP tool to migrate Harness pipelines from v0 to the simplified v1 format. Convert angle-bracket expressions to ${{ }} syntax, lowercase type names, and simplify structure while preserving variables, failure strategies, and conditional logic. Intended for converting or upgrading pipelines from v0 to v1.

Last repository push
GitHub Stars
138
Forks
30
Issues / PRs
4

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "migrate-pipeline" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-da13ec079e9ec53cba338481ab164a53515662dce416671b48bc51acaacaf059. Verify the upstream source and version against https://github.com/harness/harness-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use the MCP tool to migrate Harness pipelines from v0 to the simplified v1 format. Convert angle-bracket expressions to ${{ }} syntax, lowercase type names, and simplify structure while preserving variables, failure strategies, and conditional logic. Intended for converting or upgrading pipelines from v0 to v1.

0 Downloads

Introduction source: third_party · harness · 2.0.0 Reference

SkillPi interpretation

Tasks
Not specified in the source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: migrate-pipeline
description: >-
  Migrate Harness pipelines from v0 to v1 simplified format via MCP tools. Converts expressions from
  angle-bracket to ${{ }} syntax, lowercases type names, simplifies structure, and preserves variables,
  failure strategies, and conditional logic. Use when asked to migrate a pipeline, convert v0 to v1,
  upgrade pipeline format, modernize pipeline syntax, or compare v0 vs v1. Trigger phrases: migrate
  pipeline, convert to v1, upgrade pipeline, v0 to v1, modernize pipeline, simplified format.
metadata:
  author: Harness
  version: 2.0.0
  mcp-server: harness-mcp-v2
license: Apache-2.0
compatibility: Requires Harness MCP v2 server (harness-mcp-v2)

Migrate Pipeline

Convert Harness pipelines from v0 to v1 simplified format via MCP.

Instructions

Step 1: Fetch Current v0 Pipeline

Call MCP tool: harness_get
Parameters:
  resource_type: "pipeline"
  resource_id: "<pipeline_identifier>"
  org_id: "<organization>"
  project_id: "<project>"

Step 2: Convert v0 to v1

Apply these transformations:

Expression Mapping

v0 Expression v1 Expression
<+pipeline.variables.x> ${{ pipeline.variables.x }}
<+stage.variables.x> ${{ stage.variables.x }}
<+steps.id.output.outputVariables.x> ${{ steps.id.output.x }}
<+trigger.branch> ${{ trigger.branch }}
<+secrets.getValue("x")> ${{ secrets.x }}
<+pipeline.sequenceId> ${{ pipeline.sequenceId }}
<+input> ${{ input }}

Structure Changes

v0 CI Stage:

stages:
  - stage:
      identifier: build
      type: CI
      spec:
        cloneCodebase: true
        platform:
          os: Linux
          arch: Amd64
        runtime:
          type: Cloud
          spec: {}
        execution:
          steps:
            - step:
                identifier: run
                type: Run
                spec:
                  shell: Bash
                  command: npm test

v1 Equivalent:

stages:
  - name: build
    type: ci
    spec:
      steps:
        - name: run
          type: run
          spec:
            shell: bash
            run: npm test

Key v1 differences:

  • Stage/step types are lowercase: ci, run, deployment
  • command becomes run in Run steps
  • execution.steps simplifies to spec.steps
  • Platform/runtime is simplified or implicit
  • identifier becomes name (or id)

Step 3: Show Converted Pipeline

Present both v0 and v1 side-by-side for review.

Step 4: Update in Harness (Optional)

Call MCP tool: harness_update
Parameters:
  resource_type: "pipeline"
  resource_id: "<pipeline_identifier>"
  org_id: "<organization>"
  project_id: "<project>"
  body: <v1 pipeline YAML>

Migration Checklist

  • [ ] Expressions converted from <+...> to ${{ ... }}
  • [ ] Stage types lowercased
  • [ ] Step types mapped correctly
  • [ ] Platform/runtime configuration simplified
  • [ ] Variables and inputs preserved
  • [ ] Failure strategies maintained
  • [ ] Notification rules preserved
  • [ ] Conditional execution logic preserved

Examples

  • "Migrate the build-and-deploy pipeline to v1" - Fetch, convert, show diff
  • "Show me what ci-pipeline would look like in v1" - Fetch, convert, display only
  • "Convert all pipelines in the project" - List all, convert each

Performance Notes

  • Read the complete v0 pipeline before starting migration. Missing stages or steps will produce an incomplete v1 pipeline.
  • Verify all expressions are converted from <+...> to ${{ }} format.
  • Compare the v0 and v1 outputs to confirm no functionality was lost in translation.

Troubleshooting

Unsupported v0 Features

  • Some v0-specific step types may not have v1 equivalents yet
  • Complex failure strategies may need manual adjustment
  • Custom stage types require careful mapping

Validation Errors After Migration

  • Re-validate expression syntax
  • Check all resource references still resolve
  • Verify variable types are compatible

Current listing version

2.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决 Harness 管道版本迁移的具体工程需求
  • 面向 DevOps 工程师的专业工具,具有明确的生产环境实用价值
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且精准,包含多种常见表达方式
  • 边界清晰,不易产生误触或漏触
Structure and Standards95/100

Highlights

  • Phase 划分清晰,执行流程完整
  • 提供详细的转换对照表和端到端示例
  • 文档结构完整,包含检查清单和故障排查
Execution Reliability90/100

Highlights

  • MCP 工具调用参数定义明确
  • 覆盖主要异常场景并提供解决方案
  • 对不可逆操作有风险提示
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.