migrate-pipeline
Skill2 starsChanged 7 months agoApache-2.0Archived repositoryView on GitHub
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.
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 132
Read the complete v0 pipeline before starting migration.
- Very specific: line 133
Verify all expressions are converted from <+...> to ${{ }} format.
- Distinctive: line 145
Check all resource references still resolve
- Distinctive: line 146
Verify variable types are compatible
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 testv1 Equivalent:
stages:
- name: build
type: ci
spec:
steps:
- name: run
type: run
spec:
shell: bash
run: npm testKey v1 differences:
- Stage/step types are lowercase:
ci,run,deployment commandbecomesrunin Run stepsexecution.stepssimplifies tospec.steps- Platform/runtime is simplified or implicit
identifierbecomesname(orid)
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
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- harness/harness-skills★ 12798% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/harness.mdcCursor rule
- analyze-costsSkill
- audit-reportSkill
- chaos-experimentSkill
- create-agentSkill
- create-agent-templateSkill
- create-connectorSkill
- create-environmentSkill
- create-infrastructureSkill
- create-pipelineSkill
- create-pipeline-v1Skill
- create-policySkill
- create-secretSkill
- create-serviceSkill
- create-templateSkill
- create-triggerSkill
- debug-pipelineSkill
- dora-metricsSkill
- gitops-statusSkill
- manage-delegatesSkill
- manage-feature-flagsSkill
- manage-rolesSkill
- manage-usersSkill
- run-pipelineSkill
- scorecard-reviewSkill
- security-reportSkill
- template-usageSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

