{"id":50994407,"url":"https://github.com/afonsograca/devcontainers-best-practices","last_synced_at":"2026-06-20T07:03:16.789Z","repository":{"id":359326730,"uuid":"1174678617","full_name":"afonsograca/devcontainers-best-practices","owner":"afonsograca","description":"Agent skill for devcontainer.json, the Dev Container spec, Features, Templates \u0026 tools (VS Code, Codespaces, Cursor, Zed, Podman).","archived":false,"fork":false,"pushed_at":"2026-05-30T10:35:58.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T12:11:20.987Z","etag":null,"topics":["agent-skills","ai-agents","claude","claude-code-skills","claude-skills","codespaces","containers-dev","dev-containers","devcontainer","devcontainer-json","devcontainers","docker","vscode"],"latest_commit_sha":null,"homepage":"https://www.skills.sh/afonsograca/devcontainers-best-practices","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afonsograca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-06T18:03:46.000Z","updated_at":"2026-05-30T10:36:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/afonsograca/devcontainers-best-practices","commit_stats":null,"previous_names":["afonsograca/devcontainers-best-practices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afonsograca/devcontainers-best-practices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afonsograca%2Fdevcontainers-best-practices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afonsograca%2Fdevcontainers-best-practices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afonsograca%2Fdevcontainers-best-practices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afonsograca%2Fdevcontainers-best-practices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afonsograca","download_url":"https://codeload.github.com/afonsograca/devcontainers-best-practices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afonsograca%2Fdevcontainers-best-practices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34560271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-skills","ai-agents","claude","claude-code-skills","claude-skills","codespaces","containers-dev","dev-containers","devcontainer","devcontainer-json","devcontainers","docker","vscode"],"created_at":"2026-06-20T07:03:16.073Z","updated_at":"2026-06-20T07:03:16.781Z","avatar_url":"https://github.com/afonsograca.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# devcontainers-best-practices\n\n[![GitHub release (latest SemVer)][version-badge]][releases]\n[![GitHub contributors][contributors-badge]][contributors]\n[![MIT License][license-badge]][license]\n[![PRs Welcome][prs-welcome-badge]][prs-welcome]\n[![Conventional Commits][commits-badge]][commits]\n[![gitmoji][gitmoji-badge]][gitmoji]\n[![Keep a Changelog][changelog-badge]][changelog]\n[![Contributor Covenant][code-of-conduct-badge]][code-of-conduct]\n\nAn agent skill for **dev containers** — `devcontainer.json`, the Dev Container spec \u0026 schema, Features, Templates, and the tools that support them (VS Code, GitHub Codespaces, Cursor, Zed, DevPod, Podman). It teaches agents and developers **where and how** to look up the right reference and apply official best practices. Installable via [skills.sh](https://skills.sh/).\n\n## What this skill covers\n\n- **Spec lookup** — When to use the [JSON reference](https://containers.dev/implementors/json_reference/), [JSON schema](https://containers.dev/implementors/json_schema/), and [spec](https://containers.dev/implementors/spec/). Lifecycle scripts, `features`, `forwardPorts`, `customizations`, merge logic.\n- **References** — Canonical URLs (containers.dev, devcontainers.github.io) and repo layout (spec, features, templates, cli, ci).\n- **Tools** — [Supporting tools](https://devcontainers.github.io/supporting): VS Code, JetBrains, GitHub Codespaces, Dev Container CLI, DevPod, CodeSandbox, and others. Tool-specific properties and limitations.\n- **Features** — [devcontainers/features](https://github.com/devcontainers/features), OCI references (`ghcr.io/devcontainers/features/...`), versioning, options.\n- **Templates** — [devcontainers/templates](https://github.com/devcontainers/templates), when to use a template vs a Feature vs a custom Dockerfile.\n- **Best practices** — Use Features when possible, pin versions, non-root user, prefer official Features/templates for common stacks.\n\nThis skill is **reference and ecosystem oriented**. For implementation patterns (Dockerfiles, Docker-in-Docker, env management), see the complementary [DevContainer Workflow](https://github.com/ilude/claude-code-config) skill.\n\n## Install\n\n```bash\nnpx skills add afonsograca/devcontainers-best-practices\n```\n\nTo install from another fork or org, use `npx skills add \u003cowner\u003e/devcontainers-best-practices` or a [full URL or path](https://github.com/vercel-labs/skills#source-formats).\n\n## Updating\n\nThe CLI tracks skills by source (e.g. your repo). To get refinements after you’ve already installed:\n\n```bash\nnpx skills check   # see if any installed skills have updates\nnpx skills update  # update all installed skills to latest\n```\n\nYou don’t need to run `npx skills add` again. Re-running `add` would also refresh this skill, but `skills update` is the intended way to pull the latest for all skills at once.\n\n## Repository structure\n\nThis repo follows the [Agent Skills specification](https://agentskills.io/specification) and [skills.sh](https://github.com/vercel-labs/skills) discovery. The CLI looks for skills in the root (if it has `SKILL.md`) or under `skills/`. This skill lives under `skills/`:\n\n```\nskills/\n└── devcontainers-best-practices/\n    ├── SKILL.md\n    └── references/\n        ├── spec.md\n        ├── schema.md\n        ├── tools.md\n        ├── features.md\n        └── templates.md\n```\n\nThe `name` in `SKILL.md` frontmatter matches the directory name (`devcontainers-best-practices`). Detailed reference material is in `references/` so agents can load it on demand.\n\n## Links\n\n- [containers.dev](https://containers.dev/) — Dev container specification and docs\n- [devcontainers/spec](https://github.com/devcontainers/spec) — Specification repo\n- [devcontainers/features](https://github.com/devcontainers/features) — Official Features\n- [devcontainers/templates](https://github.com/devcontainers/templates) — Official Templates\n- [Supporting tools](https://devcontainers.github.io/supporting) — Tools that support devcontainers\n\n## Contributing\n\nInterested in contributing? See how you can help in our [contributing guide](CONTRIBUTING.md).\n\nThis project adheres to a Contributor Code of Conduct. By participating, you agree to abide by [its terms](CODE_OF_CONDUCT.md).\n\n## License\n\nThis project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\nThis project owes its gratitude to:\n\n- The [devcontainers](https://github.com/devcontainers) team and [containers.dev](https://containers.dev/) for the specification and ecosystem.\n- The maintainers of [devcontainers/features](https://github.com/devcontainers/features) and [devcontainers/templates](https://github.com/devcontainers/templates).\n- The [skills.sh](https://skills.sh/) / Vercel Labs skills ecosystem for the agent-skills platform.\n- [DevContainer Workflow](https://github.com/ilude/claude-code-config) for complementary implementation-focused guidance.\n- Everyone who contributes to or uses this skill.\n\n\u003c!-- badges --\u003e\n\n[version-badge]: https://img.shields.io/github/v/release/afonsograca/devcontainers-best-practices?sort=semver\u0026style=flat-square\n[releases]: https://github.com/afonsograca/devcontainers-best-practices/releases\n[contributors-badge]: https://img.shields.io/github/contributors/afonsograca/devcontainers-best-practices?style=flat-square\n[contributors]: https://github.com/afonsograca/devcontainers-best-practices/graphs/contributors\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n[license]: LICENSE\n[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs-welcome]: http://makeapullrequest.com\n[commits-badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white\u0026style=flat-square\n[commits]: https://conventionalcommits.org\n[gitmoji-badge]: https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square\n[gitmoji]: https://gitmoji.dev/\n[changelog-badge]: https://img.shields.io/badge/changelog-Keep%20a%20Changelog-orange?style=flat-square\n[changelog]: CHANGELOG.md\n[code-of-conduct-badge]: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?style=flat-square\n[code-of-conduct]: CODE_OF_CONDUCT.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafonsograca%2Fdevcontainers-best-practices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafonsograca%2Fdevcontainers-best-practices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafonsograca%2Fdevcontainers-best-practices/lists"}