DocsGitLabGenerate with AIGenerate with AI If you already have a GitLab CI pipeline, you can use an AI coding assistant to produce the equivalent Mélodium pipeline in minutes, without having to learn the language first. What You Need Your existing .gitlab-ci.yml file (the agent will read it directly). An AI coding assistant running locally in your project (Claude Code, Cursor, Zed, or similar). The Mélodium skill installed in your AI tool. See Install the Mélodium Skill. Step 1: Make Sure the Migration Reference Is Included The general Mélodium skill covers the language and project layout. For a GitLab CI migration, the AI also needs skills/melodium/references/gitlab-migration.md, which contains the exact treatment patterns for simpleStep, artifact streaming, stage ordering, allow_failure, when: always, and status reporting. With Claude Code, this is included automatically when the skill is installed under ~/.claude/skills/melodium. The skill loads its reference files on demand. With Cursor or Zed, make sure your rule file includes it: # Cursor cat skills/melodium/SKILL.md \ skills/melodium/references/gitlab-migration.md \ skills/melodium/references/projects.md \ > .cursor/rules/melodium.md # Zed cat skills/melodium/SKILL.md \ skills/melodium/references/gitlab-migration.md \ skills/melodium/references/projects.md \ > .rules Step 2: Ask for the Migration Your AI agent is already running inside your project and can read your pipeline file directly. A simple prompt is enough: Read .gitlab-ci.yml and migrate it to Mélodium. Generate a complete project under .melodium-ci/ with Compo.toml and .mel files. Use simpleStep for container jobs, localStep for self-hosted jobs. Report status back to GitLab using the token and project parameters. If your pipeline uses include: to pull in local template files, mention their location: Also read the templates in ci/templates/ that are included by the pipeline. The AI will produce a ready-to-use Mélodium project with: A Compo.toml declaring the right dependencies. One .mel file per pipeline or logical group of jobs. Stage ordering expressed as sequential wiring between treatments. Parallel instances for parallel: jobs. Direct byte-stream artifact passing between jobs, with no intermediate storage. GitLab commit status reporting. Step 3: Review and Adjust Read through the generated code before running it. Useful things to check: Resource sizing: cpu, memory, and storage parameters in simpleStep have defaults that may not match your workload. Adjust them to reflect your actual build requirements. Secrets and tokens: make sure gitlab_token, gitlab_project_id, gitlab_sha, gitlab_ref, and gitlab_pipeline_id are wired to the right entrypoint parameters. before_script / after_script: the AI merges these into the commands list. Unlike GitLab CI, they share the same shell environment, so verify this matches your intent. rules: conditions: check that filterBlock wiring correctly captures the logic of your original rules. Artifact paths: confirm that out_file and in_file names in simpleStep / simpleStepWithInput match the paths your scripts actually write and read. Concept Reference If you want to understand what the AI produced, or adjust it yourself, this table shows how GitLab CI concepts map to Mélodium: GitLab CIMélodiumPipeline (.gitlab-ci.yml).mel treatmentJobTreatment with simpleStep or localStepimage:image parameter of simpleStepscript: / before_script: / after_script:commands list in simpleStepStage orderingSequential wiring between treatmentsneeds: / dependencies:Sequential wiring; artifacts via data streamartifacts:out_file + data stream; simpleStepWithInput to consumerules: / only: / except:filterBlock<void>() on the triggerwhen: alwaysone<void>() fan-in of success and failure outputsallow_failure: trueHandle error output instead of stopping the chainparallel:Multiple parallel treatment instances with one<void>()interruptible: truesimpleStepTerminable variantStatus reportingpostGitlabState / setServiceState Full API documentation is at doc.melodium.tech . Going Further The generated code is a solid starting point and can be extended with any Mélodium element. For distribution across multiple machines and advanced parallelisation, see Simple CI/CD Implementation and Advanced CI/CD Implementation.Reusable WorkflowsCI/CD Components