Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add Jacopalas/agentic-ai-palas --skill "initializing-environment"
Install specific skill from multi-skill repository
# Description
Internal skill to initialize Python and Node.js environments. Called by other skills before execution. Not user-invokable.
# SKILL.md
name: initializing-environment
description: Internal skill to initialize Python and Node.js environments. Called by other skills before execution. Not user-invokable.
metadata:
skillport:
category: internal
tags: [environment, setup, python, nodejs]
Environment Setup (Internal)
Ensures Python and Node.js virtual environments are ready before running dependent skills.
Usage
This skill is called internally by other skills. It is NOT user-invokable.
When another skill needs dependencies, call initializing-environment first:
1. Run initializing-environment checks
2. If checks pass, proceed with the skill
3. If checks fail, show error and exit
Checks Performed
1. Python Environment
# Check Python3 is available
python3 --version
# Check .claude/_tooling/.venv exists, if not create it
if [ ! -d ".claude/_tooling/.venv" ]; then
python3 -m venv .claude/_tooling/.venv
fi
# Check requirements are installed
.claude/_tooling/.venv/Scripts/pip.exe show Pillow pymupdf opencv-python > /dev/null 2>&1
if [ $? -ne 0 ]; then
.claude/_tooling/.venv/Scripts/pip.exe install -r .claude/_tooling/requirements.txt
fi
2. Node.js Environment
# Check Node.js is available
node --version
# Check node_modules exists, if not install
if [ ! -d ".claude/_tooling/node_modules" ]; then
npm install --prefix .claude/_tooling
fi
# Verify key packages exist
if [ ! -f ".claude/_tooling/node_modules/markdownlint-cli2/markdownlint-cli2-bin.mjs" ]; then
npm install --prefix .claude/_tooling
fi
Commands (Windows)
Python Setup
# Create venv if missing
python -m venv .claude/_tooling/.venv
# Install requirements
.claude/_tooling/.venv/Scripts/pip.exe install -r .claude/_tooling/requirements.txt
# Verify installation
.claude/_tooling/.venv/Scripts/pip.exe show Pillow pymupdf opencv-python
Node.js Setup
# Install dependencies
npm install --prefix .claude/_tooling
# Verify installation
node .claude/_tooling/node_modules/markdownlint-cli2/markdownlint-cli2-bin.mjs --help
Exit Conditions
| Condition | Action |
|---|---|
| Python3 not found | Error: "Python3 not installed" |
| Node.js not found | Error: "Node.js not installed" |
| venv creation fails | Error: "Failed to create Python venv" |
| pip install fails | Error: "Failed to install Python dependencies" |
| npm install fails | Error: "Failed to install Node.js dependencies" |
| All checks pass | Proceed silently |
Behavior
- Check Python3: Verify
python3 --versionorpython --versionworks - Check Node.js: Verify
node --versionworks - Setup Python venv: Create
.claude/_tooling/.venv/if missing, installrequirements.txt - Setup Node.js: Run
npm install --prefix .claude/_toolingif.claude/_tooling/node_modules/missing - Return: Success or error message
Dependencies
Python (.claude/_tooling/requirements.txt)
Pillow— Image processingpymupdf— PDF processingopencv-python— Computer vision / image analysis
Node.js (.claude/_tooling/package.json)
markdownlint-cli2— Markdown lintingprettier— Code formatting
Notes
- This skill runs silently when everything is ready
- Only shows output when setup is needed or errors occur
- Other skills should call this at the start of their execution
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.