Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

SkillsIntermediateClaude Code

A plugin installs for everyone but breaks off your PC

An absolute path or an undocumented environment variable makes installation work and execution fail for the rest of the team.

Installing copies files; running resolves paths and variables on each person's machine. Use $CLAUDE_PROJECT_DIR for project scripts and ${CLAUDE_PLUGIN_ROOT} for those bundled in the plugin. Document every required environment variable and test the installation on a clean machine before distributing.

Example
Bad:  /Users/alexmorgan/projects/deploy-utils/validate.sh
Good: $CLAUDE_PROJECT_DIR/deploy-utils/validate.sh
(or ${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh if it ships inside the plugin)
#plugins#portability#team