Skip to content

Commit bfca475

Browse files
codebytesChris Ayersclaude
authored
Add talk recordings and agent instructions (#25)
* Add talk recordings to README and agent instructions - README: new Recordings section with 5 YouTube recording(s) of this talk - AGENTS.md: repo layout, slide/build commands, and conventions for coding agents - .github/copilot-instructions.md: same content for GitHub Copilot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Format agent instructions for Prettier and textlint Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use textlint-preferred terms in agent instructions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Chris Ayers <cayers@venus.tail0d1e5.ts.net> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4d3e24c commit bfca475

3 files changed

Lines changed: 127 additions & 64 deletions

File tree

‎.github/copilot-instructions.md‎

Lines changed: 50 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,71 @@
1+
<!-- Keep in sync with AGENTS.md at the repository root. -->
12

2-
# Copilot Project Instructions
3+
# Agent instructions: The Power of Dev Containers and GitHub Codespaces
34

4-
This repository contains two main areas:
5+
This repository holds the slides and demos for Chris Ayers' talk **The Power of Dev Containers and GitHub Codespaces**. The deck is published to <https://chris-ayers.com/dev-containers/>.
56

6-
1. **Marp Slide Deck & Static Site** (for "The Power of Dev Containers and GitHub Codespaces")
7-
2. **.NET Aspire Sample Solution** (under `src/aspire/`)
7+
## Repository layout
88

9-
---
9+
- `slides/`: Marp deck (`Slides.md` is the single source of truth), images in `slides/img/`, themes in `slides/themes/`.
10+
- `.devcontainer/<name>/devcontainer.json`: one config per scenario: `slides` (authoring), `codespaces` (lightweight demo), `aspire`, `multicontainer-node`, `multicontainer-python`.
11+
- `src/aspire/`: minimal Aspire sample. `DevContainers.Aspire.AppHost/` orchestrates `DevContainers.Aspire.Web/` (plus `ServiceDefaults`). `src/go`, `src/node`, `src/python` are small per-language samples.
12+
- `docs/resources.md` (links) and `docs/runtime-upgrade.md` (how to bump SDK/runtime versions).
1013

11-
## 1. Marp Slide Deck & Static Site
14+
## Slides
1215

13-
- **Source:** `slides/Slides.md` (single source of truth; always edit here)
14-
- **Assets:** `slides/img/` (images), `slides/themes/` (custom Marp CSS themes)
15-
- **Dev Containers:** `.devcontainer/slides/devcontainer.json` (authoring), `.devcontainer/codespaces/devcontainer.json` (lightweight demo)
16-
- **Build/Deploy:** `.github/workflows/marp-pages.yml` (renders Slides.md to `build/index.html` for GitHub Pages)
16+
- Write the deck in Markdown with [Marp](https://marp.app/). `slides/Slides.md` is the source; `build/` is generated output and is never edited or committed.
17+
- Keep the frontmatter at the top of the deck:
1718

18-
**Editing/Rendering:**
19-
- Retain the Marp front-matter block at the top of Slides.md
20-
- Use Marp directives (theme, footer, bg, columns) for layout
21-
- Add images to `slides/img/` and reference as `img/name.png`
22-
- Prefer custom theme files over inline styles
19+
```yaml
20+
---
21+
marp: true
22+
theme: custom-default
23+
---
24+
```
2325

24-
**Multi-deck:**
25-
- Add new decks as `slides/AnotherTalk.md` and update workflow to render
26+
- Store themes in `slides/themes/` and images and diagram sources in `slides/img/`. Prefer theme classes and CSS variables over inline styles.
27+
- Write speaker notes as HTML comments (`<!-- -->`).
28+
- Render locally with the Marp CLI version the Pages workflow uses (v4.5.0):
2629

27-
**Local Preview:**
28-
```bash
29-
docker run --rm -v "$PWD:/work" -w /work ghcr.io/marp-team/marp-cli/marp-cli --theme-set slides/themes -o build/index.html --html slides/Slides.md
30-
```
31-
32-
---
30+
```bash
31+
npx @marp-team/marp-cli@4.5.0 --theme-set slides/themes --html -o build/index.html -- slides/Slides.md
32+
npx @marp-team/marp-cli@4.5.0 --theme-set slides/themes --html --pdf --allow-local-files -o build/Slides.pdf -- slides/Slides.md
33+
```
3334

34-
## 2. .NET Aspire Sample Solution (`src/aspire/`)
35+
- `.github/workflows/marp-pages.yml` builds the HTML deck and `Slides.pdf` and publishes both to GitHub Pages. If you add slide assets outside `slides/img/` and `slides/themes/`, add them to the workflow's copy step.
3536

36-
**Architecture:**
37-
- `DevContainers.Aspire.AppHost/`: Orchestrator using .NET Aspire hosting model; launches and manages the web project and any future services
38-
- `DevContainers.Aspire.Web/`: Minimal ASP.NET Core API (expandable)
39-
- `DevContainers.Aspire.ServiceDefaults/`: Shared service defaults (if present)
37+
## Shared skills
4038

41-
**Build/Run Workflow:**
42-
- Restore all projects: `dotnet restore`
43-
- Run orchestrator: `dotnet run --project DevContainers.Aspire.AppHost/DevContainers.Aspire.AppHost.csproj`
44-
- The AppHost will launch the Web project and any additional services
45-
- Default web endpoint: http://localhost:5087 (see console output for port)
39+
Use the shared skills from [codebytes/skills](https://github.com/codebytes/skills) (for Copilot CLI: `copilot plugin install https://github.com/codebytes/skills`). Don't copy their instructions or scripts into this repository.
4640

47-
**Dev Container Usage:**
48-
- Use `.devcontainer/aspire/devcontainer.json` for Aspire development
49-
- Key tasks:
50-
- `onCreateCommand`: Installs Aspire tooling/workloads
51-
- `postStartCommand`: Trusts HTTPS dev certs (safe on Linux)
52-
- Installs .NET Dev Kit, Copilot, Copilot Chat extensions
53-
- To start: open `src/aspire/` in VS Code, run "Dev Containers: Reopen in Container", select aspire config
41+
| Task | Skill |
42+
| ----------------------------------------------------------------------------- | ------------------- |
43+
| Write or revise slides, notes, order, or layouts | `marp-authoring` |
44+
| Charts, Mermaid diagrams, or other visuals | `marp-visuals` |
45+
| Editable `.drawio.svg` diagrams (stored in `slides/img/`) | `drawio-diagrams` |
46+
| Check overflow, clipping, and HTML/PDF parity before presenting or publishing | `marp-slide-review` |
5447

55-
**Docker Strategies:**
56-
- Docker-in-Docker (DinD): Full isolation, used by default for CI/Codespaces
57-
- Docker-on-Docker (DoD): Faster, shares host Docker socket; enable by mounting `/var/run/docker.sock` in devcontainer config
58-
- See `src/aspire/README.md` for tradeoffs and details
48+
## Build and run
5949

60-
**Extending:**
61-
- Add new services (e.g., databases) via AppHost project
62-
- Extend the devcontainer image as needed for extra tools
63-
64-
**Patterns/Conventions:**
65-
- Multiple devcontainer configs under `.devcontainer/` (pattern: `.devcontainer/<name>/devcontainer.json`)
66-
- All slide content and images are managed in `slides/` (never edit `build/` directly)
67-
- Aspire solution is intentionally minimal; expand by adding new projects/services under `src/aspire/`
50+
```bash
51+
cd src/aspire && dotnet restore && dotnet run --project DevContainers.Aspire.AppHost/DevContainers.Aspire.AppHost.csproj
52+
npx --yes @devcontainers/cli up --workspace-folder . --config .devcontainer/aspire/devcontainer.json # what devcontainer-validation.yml runs
53+
```
6854

69-
---
55+
## Talk-specific rules
7056

71-
## General Guidance
72-
- Keep changes tightly scoped (content vs. infra)
73-
- Never commit real secrets; placeholder secrets in devcontainer configs are for demo only
74-
- No backend/server code outside `src/aspire/` unless intentionally expanding scope
57+
- Add a new dev container as `.devcontainer/<name>/devcontainer.json`, matching the existing pattern.
58+
- The Aspire config uses Docker-in-Docker by default (CI and Codespaces). Docker-outside-of-Docker is faster but shares the host socket; see `src/aspire/README.md` for the trade-offs.
59+
- Placeholder secrets in dev container configs are for demos only; never commit real ones.
60+
- Keep backend code inside `src/` and keep changes tightly scoped to either content or infrastructure.
7561

76-
---
62+
## Readme
7763

78-
## Key References
79-
- [Dev Containers Docs](https://code.visualstudio.com/docs/devcontainers/create-dev-container)
80-
- [Aspire Docs](https://learn.microsoft.com/dotnet/aspire/overview/)
81-
- [Marp CLI](https://marp.app/)
64+
- Keep the readme sections in this order: Slides, Recordings, Resources, Contact.
65+
- When a new recording of the talk is published, add it at the top of `## Recordings` as `- [Event Year](https://www.youtube.com/watch?v=VIDEO_ID)`. When the video's title differs from the talk's, add an em dash and the recorded title after the event. Keep the list newest first.
66+
- The talk also appears on <https://chris-ayers.com/speaking/> (source: `content/speaking.md` in [codebytes/codebytes.github.io](https://github.com/codebytes/codebytes.github.io)); new events and recordings belong there too.
8267

83-
---
68+
## General
8469

85-
Let me know if any section needs elaboration (e.g., multi-deck support, theme authoring, or extending the workflow) and I can refine further.
70+
- Keep changes scoped to the request; don't reformat unrelated slides or code.
71+
- Never commit secrets, keys, or connection strings. Demo placeholders must be obviously fake.

‎AGENTS.md‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Agent instructions: The Power of Dev Containers and GitHub Codespaces
2+
3+
This repository holds the slides and demos for Chris Ayers' talk **The Power of Dev Containers and GitHub Codespaces**. The deck is published to <https://chris-ayers.com/dev-containers/>.
4+
5+
## Repository layout
6+
7+
- `slides/`: Marp deck (`Slides.md` is the single source of truth), images in `slides/img/`, themes in `slides/themes/`.
8+
- `.devcontainer/<name>/devcontainer.json`: one config per scenario: `slides` (authoring), `codespaces` (lightweight demo), `aspire`, `multicontainer-node`, `multicontainer-python`.
9+
- `src/aspire/`: minimal Aspire sample. `DevContainers.Aspire.AppHost/` orchestrates `DevContainers.Aspire.Web/` (plus `ServiceDefaults`). `src/go`, `src/node`, `src/python` are small per-language samples.
10+
- `docs/resources.md` (links) and `docs/runtime-upgrade.md` (how to bump SDK/runtime versions).
11+
12+
## Slides
13+
14+
- Write the deck in Markdown with [Marp](https://marp.app/). `slides/Slides.md` is the source; `build/` is generated output and is never edited or committed.
15+
- Keep the frontmatter at the top of the deck:
16+
17+
```yaml
18+
---
19+
marp: true
20+
theme: custom-default
21+
---
22+
```
23+
24+
- Store themes in `slides/themes/` and images and diagram sources in `slides/img/`. Prefer theme classes and CSS variables over inline styles.
25+
- Write speaker notes as HTML comments (`<!-- -->`).
26+
- Render locally with the Marp CLI version the Pages workflow uses (v4.5.0):
27+
28+
```bash
29+
npx @marp-team/marp-cli@4.5.0 --theme-set slides/themes --html -o build/index.html -- slides/Slides.md
30+
npx @marp-team/marp-cli@4.5.0 --theme-set slides/themes --html --pdf --allow-local-files -o build/Slides.pdf -- slides/Slides.md
31+
```
32+
33+
- `.github/workflows/marp-pages.yml` builds the HTML deck and `Slides.pdf` and publishes both to GitHub Pages. If you add slide assets outside `slides/img/` and `slides/themes/`, add them to the workflow's copy step.
34+
35+
## Shared skills
36+
37+
Use the shared skills from [codebytes/skills](https://github.com/codebytes/skills) (for Copilot CLI: `copilot plugin install https://github.com/codebytes/skills`). Don't copy their instructions or scripts into this repository.
38+
39+
| Task | Skill |
40+
| ----------------------------------------------------------------------------- | ------------------- |
41+
| Write or revise slides, notes, order, or layouts | `marp-authoring` |
42+
| Charts, Mermaid diagrams, or other visuals | `marp-visuals` |
43+
| Editable `.drawio.svg` diagrams (stored in `slides/img/`) | `drawio-diagrams` |
44+
| Check overflow, clipping, and HTML/PDF parity before presenting or publishing | `marp-slide-review` |
45+
46+
## Build and run
47+
48+
```bash
49+
cd src/aspire && dotnet restore && dotnet run --project DevContainers.Aspire.AppHost/DevContainers.Aspire.AppHost.csproj
50+
npx --yes @devcontainers/cli up --workspace-folder . --config .devcontainer/aspire/devcontainer.json # what devcontainer-validation.yml runs
51+
```
52+
53+
## Talk-specific rules
54+
55+
- Add a new dev container as `.devcontainer/<name>/devcontainer.json`, matching the existing pattern.
56+
- The Aspire config uses Docker-in-Docker by default (CI and Codespaces). Docker-outside-of-Docker is faster but shares the host socket; see `src/aspire/README.md` for the trade-offs.
57+
- Placeholder secrets in dev container configs are for demos only; never commit real ones.
58+
- Keep backend code inside `src/` and keep changes tightly scoped to either content or infrastructure.
59+
60+
## Readme
61+
62+
- Keep the readme sections in this order: Slides, Recordings, Resources, Contact.
63+
- When a new recording of the talk is published, add it at the top of `## Recordings` as `- [Event Year](https://www.youtube.com/watch?v=VIDEO_ID)`. When the video's title differs from the talk's, add an em dash and the recorded title after the event. Keep the list newest first.
64+
- The talk also appears on <https://chris-ayers.com/speaking/> (source: `content/speaking.md` in [codebytes/codebytes.github.io](https://github.com/codebytes/codebytes.github.io)); new events and recordings belong there too.
65+
66+
## General
67+
68+
- Keep changes scoped to the request; don't reformat unrelated slides or code.
69+
- Never commit secrets, keys, or connection strings. Demo placeholders must be obviously fake.

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Create consistent development environments with Dev Containers and take them fro
66

77
[View HTML slides](https://chris-ayers.com/dev-containers/) | [Download PDF](https://chris-ayers.com/dev-containers/Slides.pdf)
88

9+
## Recordings
10+
11+
- [Stir Trek 2025](https://www.youtube.com/watch?v=ryF41Mqpcwc)
12+
- [NDC Porto 2024](https://www.youtube.com/watch?v=wzIhoopguPY)
13+
- [Copenhagen Developers Festival 2024](https://www.youtube.com/watch?v=WiJEHAyMiB0)
14+
- [Devoxx Greece 2023 — Working with Dev Containers](https://www.youtube.com/watch?v=HV7LJ_LUZ5A)
15+
- [Tampa Bay DevOps — Dev Containers in VS Code](https://www.youtube.com/watch?v=NUh66aVnE94)
16+
917
## Resources
1018

1119
- [Slide source](slides/Slides.md)

0 commit comments

Comments
 (0)