Explain YAML code

Paste YAML, GitHub Actions workflows included, and Vibe explains what each key sets, which lines are lists and what each value turns into when it's read.

ci.yml

Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.

Vibe20 lines selected

Press Explain it for the sample, or paste your own code first.

What this YAML sample shows

mappings
Each key: value line is a mapping entry, and a block indented under a key is that key's value, so push, test and with are mappings inside mappings. Read with Ruby's YAML library, on: comes back as the key true, not "on", because YAML 1.1 reads a bare on as true. GitHub reads it as the on key, but another tool that reads the file can see true.
sequences
A line that starts with - is one item in a list, so steps is a list of four mappings, each with a uses or a run. [main] is the same kind of list written on one line. Drop the space in -run: pytest -q and it isn't a list item any more: the parser returns a mapping with the key -run.
scalars
A plain value is read by how it looks: 20 is a number, and in YAML 1.1 yes, no, on and off are true or false, so country: NO reads as false. Quotes keep text as text, which is why "3.12" stays the string 3.12. ${{ secrets.DATABASE_URL }} is plain text to YAML too: GitHub replaces it with the secret's value when the job runs.
indentation
Nesting is set by spaces alone. A tab in front of test: gives found character that cannot start any token, and a cache: pip indented one space less than the python-version line above it gives did not find expected key while parsing a block mapping.

Good to know

  • Parsed, the file is a mapping with three keys, name, true and jobs. An empty pull_request: is null, which GitHub takes to mean its default pull request events: opened, reopened and new commits pushed.
  • branches: [main] sits under push, so it limits pushes only. Pull requests run the tests whatever branch they target.
  • cache: pip asks actions/setup-python to save pip's downloads between runs, keyed on your requirements file.
  • Secrets aren't passed to a workflow run for a pull request from a fork, so there DATABASE_URL is an empty string and tests that need the database fail.
  • The file was parsed with the YAML library in Ruby 2.6, not run on GitHub. Parsing checks the YAML, not whether GitHub accepts the workflow.

Watch out: Quote version numbers. python-version: 3.10 without quotes is the number 3.1, and the list [3.9, 3.10, 3.11] reads as [3.9, 3.1, 3.11]. GitHub reads it the same way, so the job asks for Python 3.1.

Explain YAML code beside your editor

Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).

Install on Mac

curl -fsSL https://unvibe.site/install.sh | bash

Paste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.

Opening the .dmg the first time
  1. Open the .dmg and drag Unvibe to Applications.
  2. Open it once; macOS says it can't verify it. Click Done.
    macOS dialog: Unvibe Not Opened, with Done and Move to Trash
    Real screen, macOS 15
  3. System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.
    macOS Privacy & Security, Security section: Unvibe was blocked to protect your Mac, with the Open Anyway button
    Real screen, macOS 15

The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open