Skip to content
Back to skills

1 Reproducible Environments

ASecurity

Sub-skill of devtools: 1. Reproducible Environments (+4).

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythongoshellbashnodenodejsdockergit

Works with

  • vscode

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 1-reproducible-environments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1 Reproducible Environments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1 Reproducible Environments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-1-reproducible-environments/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-1-reproducible-environments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: devtools-1-reproducible-environments
description: 'Sub-skill of devtools: 1. Reproducible Environments (+4).'
version: 1.0.0
category: development
type: reference
scripts_exempt: true
---

# 1. Reproducible Environments (+4)

## 1. Reproducible Environments

```bash
# Pin versions in Dockerfiles
FROM node:20.10.0-alpine

# Use lockfiles
npm ci --frozen-lockfile
pip install -r requirements.txt --require-hashes

# Document tool versions
cat > .tool-versions << 'EOF'
nodejs 20.10.0
python 3.12.0
EOF
```


## 2. Layer Optimization

```dockerfile
# Order layers by change frequency (least to most)
FROM node:20-alpine

# System dependencies (rarely change)
RUN apk add --no-cache git

# Package manifests (change sometimes)
COPY package*.json ./
RUN npm ci

# Application code (changes often)
COPY . .
```


## 3. Shell Function Library

```bash
# Create reusable functions
source_if_exists() {
    [[ -f "$1" ]] && source "$1"
}

source_if_exists "$HOME/.bashrc.local"
source_if_exists "$HOME/.bashrc.work"

# Lazy loading for slow tools
nvm() {
    unset -f nvm
    source "$NVM_DIR/nvm.sh"
    nvm "$@"
}
```


## 4. Git Configuration

```gitconfig
[alias]
    # Shortcuts
    co = checkout
    br = branch
    ci = commit
    st = status

    # Log formats
    lg = log --graph --oneline --decorate
    ll = log --pretty=format:'%C(yellow)%h%C(reset) %s %C(blue)<%an>%C(reset)'

    # Useful commands
    undo = reset --soft HEAD~1
    amend = commit --amend --no-edit
    wip = !git add -A && git commit -m 'WIP'

[core]
    autocrlf = input
    editor = vim

[pull]
    rebase = true

[push]
    autoSetupRemote = true

[rerere]
    enabled = true
```


## 5. Editor Workspace Settings

```jsonc
// .vscode/settings.json (per-project)
{
  "editor.rulers": [80, 120],
  "files.exclude": {
    "**/.git": true,
    "**/node_modules": true,
    "**/__pycache__": true
  },
  "search.exclude": {
    "**/dist": true,
    "**/coverage": true
  }
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.