Agent instructions, skills, SSH host aliases and expansion triggers are worth having identical on every machine one person owns, and belong in none of the shared configuration. They live in user/ now, with a manifest saying where each piece goes and a link-user stage that puts it there. That stage does nothing unless the machine said yes. Somebody who clones Panama to try the desktop keeps their own ~/.claude/CLAUDE.md exactly where it was; the question names the destinations and defaults to no. Anything displaced goes to config/old rather than being deleted. ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md were byte-identical copies of one file, which is the drift this exists to prevent. Also adds the vitals toggles for the battery and Claude usage readouts, which had preferences and no way to reach them.
50 lines
654 B
Markdown
50 lines
654 B
Markdown
---
|
|
name: frontmatter-merging
|
|
description: Priority rules when importing slides with conflicting frontmatter
|
|
---
|
|
|
|
# Frontmatter Merging
|
|
|
|
When importing slides, frontmatter from main entry takes priority.
|
|
|
|
## Example
|
|
|
|
Main file (`slides.md`):
|
|
```md
|
|
---
|
|
src: ./cover.md
|
|
background: https://sli.dev/bar.png
|
|
class: text-center
|
|
---
|
|
```
|
|
|
|
Imported file (`cover.md`):
|
|
```md
|
|
---
|
|
layout: cover
|
|
background: https://sli.dev/foo.png
|
|
---
|
|
|
|
# Cover
|
|
|
|
Cover Page
|
|
```
|
|
|
|
## Result
|
|
|
|
```md
|
|
---
|
|
layout: cover
|
|
background: https://sli.dev/bar.png # main entry wins
|
|
class: text-center
|
|
---
|
|
|
|
# Cover
|
|
|
|
Cover Page
|
|
```
|
|
|
|
## Priority Rule
|
|
|
|
Main entry > Imported file for duplicate keys.
|