placet-env-setup
Skill2 starsChanged 2 months agoMITView on GitHub
Auto-configure Node.js environment variables and tool paths. Detect installed node_modules, Python packages, and other common tools so you do not have to confirm tool locations in every conversation.
In this repository14 other files it gives its agents.
- .claude-collective/agents.mdAGENTS.md
- .claude-collective/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .taskmaster/CLAUDE.mdCLAUDE.md
- ui-ux-pro-maxSkill
- placet-context-compressSkill
- placet-initSkill
- placet-knowledge-baseSkill
- placet-knowledge-base-updateSkill
- placet-knowledge-fact-gateSkill
- placet-nowSkill
- placet-skill-evalSkill
- placet-statusSkill
- placet-ui-uxSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run this Skill for environment detection and configuration before any task that needs to execute scripts or tools.
- Very specific: line 41
Only codegraph --version works but build fails → print ⚠️ CodeGraph: CLI available but build failed, follow the large-project degrade …
- Very specific: line 47
If the path does not exist, tell the user to run bash install.sh --tools to install the base toolkit
- Distinctive: line 66
After detection, print an environment summary:
- Very specific: line 89
When running Node.js scripts, use this form:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Env Auto Setup
Detect and configure environment variables at the start of a conversation, especially Node.js tool paths, so each conversation does not need a manual confirm of tool install status.
Trigger
Run this Skill for environment detection and configuration before any task that needs to execute scripts or tools.
Natural language: environment setup / auto environment setup / environment detect
Command: /placet-env-setup
Execution
Phase 1 - Node.js environment detection
Automatically run these checks:
- Detect Node.js version (use
node -p process.versions.nodeto avoid Windows CRLF parse issues)node -p "process.versions.node" - Detect CodeGraph (speeds knowledge-base / change-impact analysis)
source "$FRAMEWORK/scripts/node-detect.sh" node_detect_init codegraph_installed # only means CLI --version works codegraph_build_works "<target-project-path>" # actually confirms build workscodegraph_build_workssucceeds → print✅ CodeGraph: build available; knowledge-base tasks still MUST go throughpreflight-kb.shfirst; for large projects, build only after user confirmation, then prefer reading.codegraph/- Only
codegraph --versionworks butbuildfails → print⚠️ CodeGraph: CLI available but build failed, follow the large-project degrade strategy npm ls -g @optave/codegraphhas a record but CLI fails → leftover install; neednpm uninstall -g @optave/codegraphthen reinstall (requires Node >= 22.12.0; on Windows see docs/CodeGraph-install-guide.md)
- Detect preinstalled node_modules path
- Check:
$HOME/.claude/tools/node-libs/node_modules - Confirm whether common libraries such as docx, mammoth, xlsx, pdf-parse, officeparser are installed
- If the path does not exist, tell the user to run
bash install.sh --toolsto install the base toolkit
- Check:
- Set NODE_PATH
export NODE_PATH="$HOME/.claude/tools/node-libs/node_modules"
Phase 2 - Other common tools
- Python environment
- Detect Python version:
python --versionorpython3 --version - Detect pip-installed packages
- Detect Python version:
- Other tool detection
- git version
- Other CLI tools that may be needed
Phase 3 - Confirm environment configuration
After detection, print an environment summary:
✅ Environment detection complete:
- Node.js: v20.20.0
- CodeGraph: build available / CLI available but build failed / not installed
- NODE_PATH: $HOME/.claude/tools/node-libs/node_modules
- Available libraries: docx, mammoth, xlsx, officeparser, etc.
- Node.js scripts can be run directly; no need to reinstall dependenciesHow to use
In a conversation that needs to run scripts, call this Skill first for environment setup, then continue with later tasks.
Note: Environment variable settings are valid only in the current Bash session. Each new tool invocation needs them set again, or prefix the command with the variables.
Recommended execution
When running Node.js scripts, use this form:
NODE_PATH=$HOME/.claude/tools/node-libs/node_modules node your_script.jsOutputs
| Output | Notes |
| Environment detection report | Detected Node.js version, npm, installed-tool list (human-readable text) |
| Environment variable settings | NODE_PATH / PATH available for this session (current Bash session only) |
| Tool path record | Detected paths for node_modules, Python packages, and other tools |
Writes no persistent files; environment configuration applies to the current session only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

