# Install the Mélodium Skill

> Teach an AI assistant the Mélodium language and CI/CD patterns.

Web page: https://docs.cadence.ci/en/with-ai/install-skill

The Mélodium skill is a set of reference files that teach an AI coding assistant the Mélodium language, its CI/CD API, and its project layout conventions, including dedicated references for building a pipeline from scratch and for migrating an existing GitHub Actions or GitLab CI pipeline. It's an optional companion to the [MCP server](https://docs.cadence.ci/en/with-ai/install-mcp.md): install it once and the same material stays loaded in context for every future session, useful for tools that don't call MCP servers reliably on every turn.

The skill files live under `skills/melodium/` in the [Mélodium repository](https://github.com/melodium-tech/melodium). Clone or download that repository first, then follow the instructions for your tool below.

## Claude Code

Copy the skill directory into your personal Claude Code skills folder:

```sh
cp -r skills/melodium ~/.claude/skills/melodium
```

The skill is then available in every project on your machine. Type `/melodium` in the chat to invoke it explicitly, or Claude will load it automatically when it detects you're working on Mélodium files.

To share the skill with your team through the repository instead (a project-scoped install), copy it to the project folder:

```sh
cp -r skills/melodium .claude/skills/melodium
```

## Cursor

Cursor uses a `.cursor/rules/` directory for persistent context. Create a rule file by concatenating the relevant skill files:

```sh
mkdir -p .cursor/rules
cat skills/melodium/SKILL.md \
    skills/melodium/references/projects.md \
    > .cursor/rules/melodium.md
```

Open Cursor's rule editor (`Cursor Settings > Rules`), find `melodium.md`, and set it to **Always Apply** so it loads in every session automatically.

If you're migrating from GitHub Actions or GitLab CI, include the corresponding reference too:

```sh
# For GitHub Actions migration
cat skills/melodium/SKILL.md \
    skills/melodium/references/projects.md \
    skills/melodium/references/github-migration.md \
    > .cursor/rules/melodium.md

# For GitLab CI migration
cat skills/melodium/SKILL.md \
    skills/melodium/references/projects.md \
    skills/melodium/references/gitlab-migration.md \
    > .cursor/rules/melodium.md
```

## Zed

Zed automatically picks up a `.rules` file at the project root. Copy the skill content there:

```sh
cat skills/melodium/SKILL.md \
    skills/melodium/references/projects.md \
    > .rules
```

Add the migration reference if you need it:

```sh
# For GitHub Actions migration
cat skills/melodium/SKILL.md \
    skills/melodium/references/projects.md \
    skills/melodium/references/github-migration.md \
    > .rules
```

## Other Tools

If your tool doesn't support persistent rules or context files, paste the content of these files directly into your conversation before asking anything:

- `skills/melodium/SKILL.md`, the main language guide
- `skills/melodium/references/projects.md`, project layout conventions
- `skills/melodium/references/github-migration.md`, if migrating from GitHub Actions
- `skills/melodium/references/gitlab-migration.md`, if migrating from GitLab CI

## Going Further

Pair the skill with the [Mélodium MCP server](https://docs.cadence.ci/en/with-ai/install-mcp.md) to give the AI live program validation, standard library lookup, and the same build/migration references served on demand through the `get_language_guide` and `get_cicd_migration_guide` tools, useful for tools that don't support skills. Then start [building a pipeline with AI](https://docs.cadence.ci/en/with-ai/build-pipeline.md).
