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.
43 lines
714 B
Markdown
43 lines
714 B
Markdown
---
|
|
name: twoslash
|
|
description: Show TypeScript type information inline or on hover in code blocks
|
|
---
|
|
|
|
# TwoSlash Integration
|
|
|
|
Show TypeScript type information inline or on hover.
|
|
|
|
## Usage
|
|
|
|
````md
|
|
```ts twoslash
|
|
import { ref } from 'vue'
|
|
|
|
const count = ref(0)
|
|
// ^?
|
|
```
|
|
````
|
|
|
|
## Features
|
|
|
|
- Type information on hover
|
|
- Inline type annotations with `^?`
|
|
- Errors and warnings display
|
|
- Full TypeScript compiler integration
|
|
|
|
## Annotations
|
|
|
|
```ts twoslash
|
|
const count = ref(0)
|
|
// ^?
|
|
// Shows: const count: Ref<number>
|
|
```
|
|
|
|
## Use Case
|
|
|
|
Perfect for TypeScript/JavaScript teaching materials where showing types helps understanding.
|
|
|
|
## Resources
|
|
|
|
- TwoSlash docs: https://twoslash.netlify.app/
|