Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    .dockerignore Generator and Checker

    by Saizul Amin

    1

    Generate a correct .dockerignore for a project and audit what a Docker build context really sends.

    Free

    Security scanned
    .dockerignore Generator and Checker

    .dockerignore Generator and Checker

    Example session with this skill installed

    Run the .dockerignore Generator and Checker skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the dockerignore generator

    Here is what the .dockerignore Generator and Checker skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    
    # .dockerignore generated by dockerignore-generator
    # project types: go
    
    # Version control and editor files
    .git
    **/.gitignore
    .github
    .gitlab-ci.yml
    **/.DS_Store
    .idea
    .vscode
    **/*.swp
    
    # Docker files themselves (keep the build context small; they are not needed inside the image)
    **/Dockerfile*
    **/*.Dockerfile
    **/.dockerignore
    **/compose*.y*ml
    **/docker-compose*.y*ml
    
    # Secrets and local configuration: never send these to the builder
    **/.env
    **/.env.*
    !**/.env.example
    !**/.env.sample
    !**/.env.template
    **/*.pem
    **/*.key
    **/*.p12
    **/*.pfx
    **/id_rsa*
    **/id_ed25519*
    **/.npmrc
    **/.pypirc
    **/.netrc
    **/.git-credentials
    **/*.tfstate*
    **/*.tfvars
    .aws
    .ssh
    .kube
    secrets
    
    # Logs, coverage, temp files
    **/*.log
    **/coverage
    **/tmp
    **/.cache
    
    # Docs (remove these lines if the image serves them)
    **/*.md
    !README.md
    docs
    
    # go
    bin
    **/*.test
    **/*.out
    vendor
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Generate a correct .dockerignore for a project and audit what a Docker build context really sends. A script detects the stack (Node, Python, Go, Java/Maven/Gradle, Ruby, PHP/Composer, Rust, .NET), writes a .dockerignore (dry run by default, never overwrites without --merge or --force), and in --check mode applies Docker's own matching rules (**, !exceptions, last match wins, root-anchored patterns) to list secrets that would reach the builder (.env, *.pem, id_rsa, .npmrc, .aws/, .ssh/, terraform state), heavy folders such as node_modules and .git, and the total context size. Never reads or prints file contents.

    Who it's for

    Use when the user has no .dockerignore, sees "Sending build context" or "transferring context" take long, asks whether .env or keys end up in the image, wonders why a pattern in .dockerignore is not working, or sets up Docker for a new project.

    What's inside

    • Tested, offline Python script(s): gen_dockerignore.py (deterministic results, standard library only unless noted)
    • Reference guides: syntax.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Matching rules that trip people up

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/docker-container-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    Generate a correct .dockerignore for a project and audit what a Docker build context really sends. A script detects the stack (Node, Python, Go, Java/Maven/Gradle, Ruby, PHP/Composer, Rust, .NET), writes a .dockerignore (dry run by default, never overwrites without --merge or --force), and in --c...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use .dockerignore Generator and Checker on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Free