Cloud Native Buildpacks
The Cloud Native Buildpacks specifications from the Buildpacks project (CNCF): the Platform Interface Specification and the Buildpack Interface Specification, read from the buildpacks/spec repository.
Follow the workflow below step by step. Every rule here comes from a source in Sources. Quoted requirements are sentences taken from the pinned text, labelled with the section they come from. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: Buildpack author (component or composite buildpack, or image extension), lifecycle implementer, or platform that drives the lifecycle.
- Target version: Buildpacks platform API (current); Buildpack API (current). See
references/versions.md.
- Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill, re-read every URL in Sources and check the publisher for a newer revision or version line.
Invariants
- Execution Environments. "When the
CNB_EXEC_ENV environment variable is not set, buildpacks MUST assume the default value of production."
- Layer Types. "The lifecycle MUST treat a layer with unset
types as a launch = false, build = false, cache = false layer."
- Phase #1: Detection, Process. "Image extensions MUST always be optional during detection."
- Phase #1: Detection, Process. "In order to make contributions to the Build Plan, a
/bin/detect executable MUST write entries to <plan> in two sections: requires and provides."
- Phase #5: Build, Process. "For each buildpack in the group in order, the lifecycle MUST execute
/bin/build."
- Unmet Buildpack Plan Entries. "The lifecycle SHALL assume that all entries in the Buildpack Plan were satisfied by the buildpack unless the buildpack writes an entry with the given name to the
unmet section of build.toml."
- buildpack.toml (TOML). "Buildpack authors MUST choose a globally unique ID, for example: "io.buildpacks.ruby"."
- Rebase. "To rebase an app image a platform MUST execute the
/cnb/lifecycle/rebaser or perform an equivalent operation."
- launcher, Execution. "The launcher MUST set the working directory for the start command to
<working-dir>, or to <app> if <working-dir> is not specified."
- User-Provided Variables. "User-provided environment variables MUST be supplied by the platform as files in the
<platform>/env/ directory."
group.toml (TOML). "id, version, and api MUST be present for each buildpack object in a group."
Workflow
- Pick the version. Use the current line unless a named consumer needs a supported one. Do not author a legacy line. Emit a preview only when its posture is build and the user asked for that draft.
->
references/versions.md
✓ The target version is recorded, and it is not a legacy line.
- Apply the pinned requirements. Walk the quotes in
references/requirements.md and implement each one that applies to the role.
-> references/requirements.md
✓ Each applicable quote is either implemented or recorded as out of scope for the role, with the section it came from.
- Upgrade (only when asked). Follow the upgrade section from the source line to the target.
->
references/versions.md
✓ The result cites the target line and no longer depends on a requirement that only the old line stated.
Verify before done
Reference index
references/versions.md: every version line, which one to use, and how to upgrade. Load for steps 1 and 3.
references/requirements.md: quotes taken from the pinned specification, grouped by source. Load for step 2.
Related skills
Install related spec skills by name with npx skills add ScaleDockHQ/scaledock-skills --skill <name>: oci, dockerfile, toml, spdx, cyclonedx.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
1---2name: buildpacks3description: >-4 Cloud Native Buildpacks: A platform orchestrates a lifecycle to make buildpack functionality available to end-users such as application developers. Covers Buildpacks platform API, Buildpack API. Use when implementing a buildpack or platform. Triggers: buildpacks.5license: MIT6metadata:7 source: https://skillmd.com/skills/scaledockhq/buildpacks8 author: ScaleDockHQ9 version: "1.1.0"10 kind: standard11---1213# Cloud Native Buildpacks1415The Cloud Native Buildpacks specifications from the Buildpacks project (CNCF): the Platform Interface Specification and the Buildpack Interface Specification, read from the buildpacks/spec repository.1617**Follow the workflow below step by step.** Every rule here comes from a source in [Sources](#sources). Quoted requirements are sentences taken from the pinned text, labelled with the section they come from. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.1819## Inputs (fill in, or ask before starting)2021- Role: Buildpack author (component or composite buildpack, or image extension), lifecycle implementer, or platform that drives the lifecycle.22- Target version: Buildpacks platform API (current); Buildpack API (current). See [`references/versions.md`](references/versions.md).23- Revision: the pinned revision in [Sources](#sources), unless the user names another.24- Sources: when refreshing this skill, re-read every URL in [Sources](#sources) and check the publisher for a newer revision or version line.2526## Invariants27281. **Execution Environments.** "When the `CNB_EXEC_ENV` environment variable is not set, buildpacks MUST assume the default value of `production`."292. **Layer Types.** "The lifecycle MUST treat a layer with unset `types` as a `launch = false`, `build = false`, `cache = false` layer."303. **Phase #1: Detection, Process.** "Image extensions MUST always be optional during detection."314. **Phase #1: Detection, Process.** "In order to make contributions to the Build Plan, a `/bin/detect` executable MUST write entries to `<plan>` in two sections: `requires` and `provides`."325. **Phase #5: Build, Process.** "For each buildpack in the group in order, the lifecycle MUST execute `/bin/build`."336. **Unmet Buildpack Plan Entries.** "The lifecycle SHALL assume that all entries in the Buildpack Plan were satisfied by the buildpack unless the buildpack writes an entry with the given name to the `unmet` section of `build.toml`."347. **buildpack.toml (TOML).** "Buildpack authors MUST choose a globally unique ID, for example: "io.buildpacks.ruby"."358. **Rebase.** "To rebase an app image a platform MUST execute the `/cnb/lifecycle/rebaser` or perform an equivalent operation."369. **launcher, Execution.** "The launcher MUST set the working directory for the start command to `<working-dir>`, or to `<app>` if `<working-dir>` is not specified."3710. **User-Provided Variables.** "User-provided environment variables MUST be supplied by the platform as files in the `<platform>/env/` directory."3811. **`group.toml` (TOML).** "`id`, `version`, and `api` MUST be present for each buildpack object in a group."3940## Workflow41421. **Pick the version.** Use the current line unless a named consumer needs a supported one. Do not author a legacy line. Emit a preview only when its posture is build and the user asked for that draft.43 -> [`references/versions.md`](references/versions.md)44 ✓ The target version is recorded, and it is not a legacy line.452. **Apply the pinned requirements.** Walk the quotes in [`references/requirements.md`](references/requirements.md) and implement each one that applies to the role.46 -> [`references/requirements.md`](references/requirements.md)47 ✓ Each applicable quote is either implemented or recorded as out of scope for the role, with the section it came from.483. **Upgrade** (only when asked). Follow the upgrade section from the source line to the target.49 -> [`references/versions.md`](references/versions.md)50 ✓ The result cites the target line and no longer depends on a requirement that only the old line stated.5152## Verify before done5354- [ ] The artifact cites the target line's revision from [Sources](#sources).55- [ ] Every applicable quoted requirement in [`references/requirements.md`](references/requirements.md) holds.56- [ ] Nothing from a preview line is emitted unless its posture is build and the user opted in.5758## Reference index5960- **`references/versions.md`**: every version line, which one to use, and how to upgrade. Load for steps 1 and 3.61- **`references/requirements.md`**: quotes taken from the pinned specification, grouped by source. Load for step 2.6263## Related skills6465Install related spec skills by name with `npx skills add ScaleDockHQ/scaledock-skills --skill <name>`: `oci`, `dockerfile`, `toml`, `spdx`, `cyclonedx`.6667## Sources6869Status uses the publishing body's own maturity term. Checked is the date the source was last read.7071- [Platform Interface Specification](https://raw.githubusercontent.com/buildpacks/spec/b745fcfd90d7139d6a04cca2878b47ec402be943/platform.md): Specification, Platform API 0.15 (main at commit b745fcf, 2025-12-11), checked 2026-10-06.72- [Buildpack Interface Specification](https://raw.githubusercontent.com/buildpacks/spec/b745fcfd90d7139d6a04cca2878b47ec402be943/buildpack.md): Specification, Buildpack API 0.12 (main at commit b745fcf, 2025-12-11), checked 2026-10-06.