Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

editions

/editions

Ocenia, czy nowa lub zmieniona wartość domyślna w PR wymaga obsługi w dzienniku edycji pkg/edition, i wykonuje pracę mechaniczną: wpisy, kontrolę warstw, regenerację snapshotów.

Repozytorium
atmos ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Ocenia, czy nowa lub zmieniona wartość domyślna w PR wymaga obsługi w dzienniku edycji pkg/edition, i wykonuje pracę mechaniczną: wpisy, kontrolę warstw, regenerację snapshotów.

Oryginalny opis (EN)

Decide whether a PR's new or changed default needs edition-journal handling (pkg/edition, docs/prd/editions.md), and do the mechanical work if so: journal entries, the four-layer default check, snapshot/invariant regeneration, and the post-editions KindBehavior candidate note for behavior changes the journal can't gate yet. Invoke whenever a PR changes what a config key defaults to, or changes what an existing stored value effectively means.

Jak działa

  1. The decision tree
  2. What NOT to do
  3. Verifying before you commit
  4. Related
Sekcje z nagłówków SKILL.md, w oryginale · 115 linii, 1 006 słów
Podgląd SKILL.md
---
name: editions
description: "Decide whether a PR's new or changed default needs edition-journal handling (pkg/edition, docs/prd/editions.md), and do the mechanical work if so: journal entries, the four-layer default check, snapshot/invariant regeneration, and the post-editions KindBehavior candidate note for behavior changes the journal can't gate yet. Invoke whenever a PR changes what a config key defaults to, or changes what an existing stored value effectively means."
metadata:
  copyright: Copyright Cloud Posse, LLC 2026
  version: "1.0.0"
---

# Editions (Date-Anchored Defaults)

Source of truth: `docs/prd/editions.md`. This skill is the contributor-facing decision tree for
"does my change need edition handling", not a restatement of the architecture — read
`docs/prd/editions.md` for the four-layer model, `pkg/edition/journal.go`'s `Entry` schema, and the
guardrail tests before touching anything. This skill exists because the deciding question
("does this default change supersede prior behavior?") is easy to answer wrong by only checking
the literal rule ("new keys are never journal-gated") without checking what the rule is *for*.

## The decision tree

Ask these in order. Stop at the first "yes."

**1. Does this change a previously-shipped key's literal default value?**
(e.g. flipping `settings.terminal.pager`'s struct default from `"true"` to `"false"`.)

→ **Yes: `KindValue` journal entry required.** Follow `docs/prd/editions.md`'s "Contributor
workflow" exactly:
1. Change the literal in `setDefaultConfiguration` (`pkg/config/load.go`), and in
    `defaultCliConfig` (`pkg/config/default.go`) if that struct also carries the field. Confirm the
    key isn't set in the embedded `atmos.yaml` (layer (b) must stay journaled-key-free).
2. Append a dated entry (`date`, `key`, `kind: value`, `old`, `new`, `description`, `ref`) to
    `pkg/edition/journal.yaml` — `ref` is the PR URL, `old`/`new` typed as the field is typed today.
    This shared journal is embedded in the CLI and generates the public `/cli/editions` index.
    Do not edit the generated website page; quote dates and string values such as "true".
3. Regenerate the snapshot: `ATMOS_REGENERATE_DEFAULTS_SNAPSHOT=true go test ./pkg/config -run TestDefaultConfigurationSnapshot`.

Skipping this is not optional — `pkg/config/default_snapshot_test.go` fails the build on an
unjournaled value change.

**2. Is this a brand-new key whose default doesn't change what Atmos already, unconditionally did?**
(e.g. a new opt-in flag for genuinely new functionality with no prior equivalent — nothing before
this key ever did what it controls, not even as hardcoded behavior.)

→ **No action needed.** `docs/prd/editions.md`: "new defaults are never journal-gated." Only edit
the layer that introduces the key and regenerate the snapshot (new-key diffs there don't require a
journal entry, just committing the updated golden file).

**3. Is this a brand-new key whose default *does* change what Atmos already, unconditionally did
— just via a key that didn't exist before?**

This is the case rule 2's literal wording ("new key, so exempt") lets through even though the
*effect* on an upgrading user is identical to a changed default: before the key existed, behavior
was fixed; after it ships, the key's default silently changes that fixed behavior for every
existing project with zero action from them. Two sub-questions decide the safe default:

- **Is the new automatic behavior something Atmos flat-out never did before** (a new class of
  automatic side effect, e.g. mutating a lock file, deleting something, calling out to a new
  service)? → **Default to the value that preserves the old, fixed behavior**, even though that
  costs you the "just works" framing in the announcement. Ship the new capability as opt-in.
  Precedent: `components.terraform.init.upgrade` defaults to `never` (Atmos never passed
  `-upgrade` automatically before this setting existed), not `auto`, even though `auto` was the
  natural symmetric choice next to `init.mode`/`init.reconfigure`.
- **Is the new key only making an already-unconditional action conditional/smarter** (same work,
  done less redundantly — no new class of side effect)? → Defaulting to the smarter behavior is
  more defensible, but you're still choosing to ship a real behavior change. Call it out
  explicitly and prominently in the PRD's Goals/Migration section and the blog post — don't let a
  reader assume "new key = no impact." Precedent: `components.terraform.init.mode`/
  `init.reconfigure` default to `auto` (init already ran unconditionally every time; `auto` only
  skips/conditions it), with the PRD's Goals section stating outright which legacy-default
  combination is *not* behavior-preserving.

Either way: proceed to step 4.

**4. Does this PR reinterpret what an existing, already-shipped config value effectively means,
without changing the stored value itself?**
(e.g. `init_run_reconfigure: true` keeps meaning "true" in the YAML, but what `true` *causes*
changed from "always add `-reconfigure`" to "add it only when the backend changed.")

→ **This is `KindBehavior`, not `KindValue`.** Follow the behavior-transition contributor
workflow in `docs/prd/editions.md`:
1. Add a `KindBehavior` journal entry with a unique transition key, the expected merge date,
    descriptive `Old` and `New` values, and the PR reference.
2. Retain both code paths and select them with `edition.BehaviorChanged(atmosConfig.Edition, key)`.
    Propagate invalid-pin and unknown-key errors. Pins before the date use the old path; pins on
    or after it and unpinned projects use the new one. No additional YAML toggle is required.
3. State exactly what the old and new paths do in the feature PRD's migration section and blog.
4. Test both paths, boundary dates, unpinned behavior, and explicit options. Behavior entries
    appear in edition inspection but must never become Viper value overrides.

Historical candidates in the PRD remain ungated until their own code paths are wired and tested.

## What NOT to do

- Do not add a behavior journal entry without wiring its caller: recording a transition alone
  does not preserve the old code path.
- Do not claim the historical seed entries are gated merely because the framework now exists.
- Don't default a new automatic-side-effect key to the "smart" value just because the sibling keys
  in the same feature default that way — check step 3's two sub-questions per key, not per
  feature. A single PR can legitimately ship one key defaulting to `auto` and another to `never`.

## Verifying before you commit

```bash
go build ./...
go test ./pkg/edition/... ./pkg/config/...          # anchor/resolve/journal + load_edition_test.go + invariants
ATMOS_REGENERATE_DEFAULTS_SNAPSHOT=true go test ./pkg/config -run TestDefaultConfigurationSnapshot  # only if a default changed
```

`pkg/config/edition_invariants_test.go` and `pkg/edition/journal_invariants_test.go` fail the build
on: non-chronological or malformed journal dates, a chain where `entry[n+1].Old != entry[n].New`, a
journaled key present in the embedded `atmos.yaml`, or `defaultCliConfig` disagreeing with the
journal's current value. Don't hand-edit `pkg/config/testdata/default-config-snapshot.yaml` —
always regenerate it.

## Related

- `docs/prd/editions.md` — architecture, semantics, full journal contents, testing, roadmap.
- `docs/prd/terraform-auto-init.md` — worked example of both a `KindBehavior` candidate
  (`init_run_reconfigure`'s reinterpretation) and a step-3 new-automatic-behavior default choice
  (`init.upgrade: never`) in the same PRD.
- `pull-request` skill — the broader PR-readiness checklist this feeds into; run this skill's
  decision tree before that one's pre-push checklist when a PR touches any default.

Wersje

W bazie nie ma innych skilli o nazwie editions.

Migawka bazy z 13.11.2026 · wersja paczki 6145b435ed2e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100plan-editions
    Pisze cykliczne wydanie gazetki z podsumowaniami scalonych pull requestów i ustawia jego harmonogram publikacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.