Agent skill
devtools-1-reproducible-environments
Sub-skill of devtools: 1. Reproducible Environments (+4).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/development/tools/devtools/1-reproducible-environments
SKILL.md
1. Reproducible Environments (+4)
1. Reproducible Environments
# 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
# 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
# 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
[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
// .vscode/settings.json (per-project)
{
"editor.rulers": [80, 120],
"files.exclude": {
"**/.git": true,
"**/node_modules": true,
"**/__pycache__": true
},
"search.exclude": {
"**/dist": true,
"**/coverage": true
}
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?