knowledge-forge-ai/agentic-praxis-grimoire/dockerfile-profile

Claude Code and agent skill by knowledge-forge-ai/agentic-praxis-grimoire

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when Dockerfile-specific judgment is material to parser directives, build stages, instruction forms, variable scope, build context, copies, mounts, cache behavior, file ownership, runtime metadata, platform behavior, or warning and crisis thresholds beyond repository policy.

Install

npx vskill@latest install knowledge-forge-ai/agentic-praxis-grimoire/dockerfile-profile

SKILL.md

The same SKILL.md was published earlier as knowledge-forge-ai/agentic-praxis-grimoire/dockerfile-profile.

Dockerfile Profile

Core principle

Apply Dockerfile-specific judgment only when the task materially depends on a Dockerfile. Establish task authority, repository policy, the selected Dockerfile frontend and builder, target platforms, context, stage target, and validation boundary before relying on instruction behavior. Use the highest justified Green — routine, Yellow — caution, Orange — warning, or Red — crisis / stop response for the current coherent decision.

Own parser directives, stages, Dockerfile instruction forms, argument and environment scope, build context and ignore rules, copies and additions, BuildKit mounts, cache consequences, file ownership, platform-specific Dockerfile behavior, generated image defaults, and Dockerfile-specific structural warnings. Preserve image selection, dependency policy, live operations, runtime orchestration, release policy, and external mutation authority with their existing owners.

Do not use

Do not use this profile for:

  • ordinary application code with no material Dockerfile behavior;
  • Compose-only, Kubernetes-only, or orchestrator-only work;
  • generic shell review with no Dockerfile-specific boundary;
  • a simple text edit whose Dockerfile semantics are already established;
  • choosing Docker, a base image, tag, digest, registry, frontend, builder,

target platform, package manager, shell, scanner, or dependency;

  • selecting an exact build, scan, push, run, sign, publish, or deployment

command;

  • changing project-owned context, image, dependency, update, registry,

platform, runtime, CI, attestation, signing, or release policy;

  • authorizing a daemon, builder, registry, network, secret store, image,

container, volume, host, or cloud mutation;

  • treating a Dockerfile review as proof of a build, image, runtime, or

publication outcome;

  • automatic restructuring of a legacy Dockerfile; or
  • structural action on generated, vendored, fixture, compatibility, or

policy-owned artifacts before classification.

This profile does not grant authority to perform a Docker operation.

Procedure

  1. Establish authority and project inputs. Record the repository-owned

Dockerfile path or generator, selected frontend, builder and version, Linux or Windows container boundary, build and target platforms, build context, ignore files, named contexts, target stage, base-image and update policy, dependency sources, shell, user policy, exact project checks, protected-data boundary, network and external-mutation policy, validation, and rollback. This profile does not choose or authorize those inputs.

  1. Classify each affected artifact as a maintained hand-written Dockerfile,

generated output, vendor-owned file, compatibility matrix, fixture, example, or policy artifact. Change the authorized generator or owner when applicable. Classification can change structural treatment but never suppresses a semantic Red stop.

  1. Establish parser behavior before interpreting the body. Parser directives

occupy the initial directive block and each supported directive may occur only once. After an ordinary comment, empty line, or instruction is processed, directive-shaped text is only a comment. Map syntax, escape, and version-supported check behavior; do not infer support from spelling.

  1. Draw the stage graph. Each FROM starts a stage. Record stage names,

inheritance, base references, requested platform, project-selected target, and every COPY --from or mount source. A global ARG may parameterize FROM but remains outside ordinary stage scope and must be redeclared inside a stage before later stage instructions consume it.

  1. Trace Dockerfile replacement and command interpretation separately. Record

ARG and ENV declaration, scope, inheritance, persistence, and use. Distinguish shell form from exec form: exec form supplies a JSON argument vector without implicit shell expansion, while shell form uses the selected platform shell. SHELL changes later shell-form RUN, CMD, and ENTRYPOINT behavior. When the chosen shell's quoting, pipeline, trap, or process semantics are independently material, pair bash-language-profile or the applicable language profile rather than duplicating it here.

  1. Map the build context as an input and disclosure boundary. Identify the

caller-selected context root, recursive contents, named or remote contexts, applicable .dockerignore, and any Dockerfile-specific ignore file. A Dockerfile-specific ignore file takes precedence over the root ignore file; within the applicable rules, the final matching rule wins. Confirm that intended sources remain available and that protected or unrelated material is absent from builder inputs or explicitly governed. The Dockerfile and applicable ignore file remain builder inputs even when ignore rules exclude them, although they cannot then be copied or bind-mounted from the ordinary context. Local-context source paths in COPY and ADD cannot escape the context root. Remote ADD, named contexts, images, and COPY --from stages use separately governed roots and trust boundaries.

  1. Trace every transfer from governed source to exact stage and destination.

Prefer COPY when it completely expresses a local, named-context, image, or stage-owned transfer. Treat remote ADD, Git sources, and automatic local archive extraction as materially broader behavior. Require project authority, source immutability or update policy, verification, ownership, mode, platform support, and rollback; do not rewrite automatically.

  1. Map every RUN --mount by type, source, target, identity, ownership,

sharing, lifetime, output path, and fallback. Bind writes are not ordinary output layers, cache contents are not correctness guarantees, tmpfs is transient, and secret or SSH mounts create temporary access boundaries. A secret mount does not prove the command avoided copying, printing, transforming, persisting, or exporting the value.

  1. Review cache and reproducibility as instruction-specific behavior. Base

identity and instruction text matter; COPY, ADD, and bind-mounted sources use metadata checksums that exclude modification time. An ordinary RUN cache match does not inspect changed external package state or files created inside the prior result. A secret value does not participate in the cache key, although secret identity and target properties can. Require a project-owned invalidation and clean-build path where correctness depends on mutable inputs or caches.

  1. Trace filesystem and user effects by stage. Resolve WORKDIR chaining,

source metadata, COPY or ADD ownership and mode, platform support, USER transitions, build-time effective user, final image user, and permission requirements. Do not infer final non-root behavior from an intermediate stage or from copied artifacts.

  1. Review image and runtime-default metadata without taking runtime

ownership. Map EXPOSE, VOLUME, STOPSIGNAL, HEALTHCHECK, ENTRYPOINT, CMD, ONBUILD, labels, environment, working directory, and user configuration. Establish forms, override behavior, signal forwarding, health status and output, volume initialization and mutation, and deferred downstream triggers. Runtime and orchestrator policy can replace or merge defaults and remains project-owned.

  1. Establish platform truth. Map automatic build and target arguments, native

versus target-stage execution, emulation, cross-compilation, path and escape rules, default shell, instruction options, ownership support, and the actual backend. Linux and Windows Dockerfile behavior is not interchangeable. Source text cannot prove that the selected worker, toolchain, exporter, or runtime supports the requested result.

  1. Use parser or build-check output only within its versioned claim. Build

checks can report warnings while the build still succeeds, and a check-only or error configuration can have different process behavior. Confirm which checks the selected frontend supplies and which mode the project owns. Lint or source evidence is not build, image, runtime, or artifact evidence.

  1. Measure current and projected structure using repository tooling when

available. Otherwise use the APG fallback contract below and label the measurement. Assign the highest structural or semantic level without double-counting correlated size signals.

  1. Proceed proportionally for Green; inspect policy and bounded evidence for

Yellow; require an accepted local decision, rationale, rollback, and adverse-case validation for Orange; stop a Red unsupported, ambiguous, mutable, unsafe, disclosed, falsely verified, unauthorized, or crisis-level boundary.

  1. Pair independently with the applicable process, shell, language, security,

package, test, runtime, and review owners. An authorized change can keep implementing-with-test-discipline primary; acceptance can keep reviewing-and-verifying-repository-work primary. This profile adds only materially Dockerfile-specific judgment.

  1. Preserve stricter repository policy. Report the level, versions,

platforms, stage and source graph, context and ignore assumptions, forms and variable scope, transfers, mounts, cache behavior, user and runtime metadata, structural signals, validation boundary, accepted exception if any, and rollback.

Structural threshold contract

These defaults apply mainly to maintained hand-written Dockerfiles. They are guidance signals, not Docker policy, architecture selection, base-image selection, linter output, automatic enforcement, or build authority.

SignalGreen — routineYellow — cautionOrange — warningRed — crisis / stop
Physical lines per Dockerfile<= 150151–300301–500>= 501
Logical Dockerfile instructions<= 2021–4041–70>= 71
Build stages1–34–67–10>= 11
Commands in one shell-form RUN<= 56–1011–20>= 21
Distinct ARG and ENV names<= 67–1213–20>= 21
Distinct COPY and ADD source domains0–23–45–7>= 8
Bind, cache, tmpfs, secret, or SSH mount families0–12–34–6>= 7
Instructions executing as root after the last explicit user transition0–23–56–10>= 11
Platform-conditional behavior families0–12–34–6>= 7
Independent responsibility families123>= 4

Count physical lines after universal-newline decoding. Blank lines, comments, parser directives, continuations, heredoc delimiters, and heredoc payload count. A continued instruction counts once; directives, comments, and blank lines do not count as logical instructions.

Count commands within shell-form RUN only when the selected interpreter and complete static text can be parsed truthfully. Count independently sequenced, conditional, subshell, and pipeline responsibility families rather than raw tokens. If heredoc, interpolation, generated text, or an unknown interpreter prevents a truthful consequential bound, classify the unknown as Orange; representing it as verified is Red.

Count each distinct ARG and ENV name once while mapping scope separately. Count independently governed source domains: local context family, named context, named stage, external image, remote URL, Git source, local archive-extraction family, and inline heredoc. A heredoc-backed COPY is one instruction and one inline-source domain. Count each ONBUILD registration once and also disclose its downstream responsibility.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/knowledge-forge-ai/agentic-praxis-grimoire/dockerfile-profile/badge)](https://verified-skill.com/skills/knowledge-forge-ai/agentic-praxis-grimoire/dockerfile-profile)

Something wrong with this skill or its page? Tell us.