Use this skill when the plugin is first installed or when environment setup is needed.
Setup Workflow
1. Check Python Environment
- Detect if
uvis available (preferred) orpython/python3 - If
uvis available, use it to create an isolated virtual environment - If not, check for
venvorvirtualenvand create a virtual environment - Environment should be created in a project-local directory (e.g.,
.venvor.easypaper-env)
2. Install EasyPaper Package
- If
uvis available:
```bash
uv venv .easypaper-env
source .easypaper-env/bin/activate # or .easypaper-env/Scripts/activate on Windows
uv pip install -e . # if in repo root
# OR
uv pip install easypaper[server] # if installing from PyPI
```
- If using standard Python:
```bash
python -m venv .easypaper-env
source .easypaper-env/bin/activate
pip install -e . # or pip install easypaper[server]
```
3. Check LaTeX Installation
- Check for LaTeX distribution:
- On macOS: Check for
pdflatexcommand, suggestbrew install --cask mactexorbrew install basictex - On Linux: Check for
pdflatex, suggestsudo apt-get install texlive-fullortexlive-base - On Windows: Check for
pdflatex, suggest installing MiKTeX or TeX Live - Verify installation by running:
pdflatex --version - If not installed, provide clear installation instructions for the user's OS
4. Create or Validate Configuration
- Check for an existing EasyPaper YAML config in this order:
- User-provided path in the conversation
AGENT_CONFIG_PATH./easypaper_config.yaml./configs/openrouter.yaml./configs/example.yaml- If no usable config exists, create
./easypaper_config.yamlfrom the bundled
sibling template file config.example.yaml.
- The bundled
config.example.yamlmust stay byte-for-byte synchronized with
the repository source template configs/example.yaml; do not hand-write a
partial config in this skill.
- After creating the file, ask the user for the required LLM API key/provider
value and replace only the placeholder values they explicitly provide
(for example YOUR_OPENROUTER_KEY). Do not invent credentials.
- Keep the generated config path explicit for later SDK calls, either by using
EasyPaper(config_path="<absolute path to easypaper_config.yaml>") or by
setting AGENT_CONFIG_PATH for commands that call load_config().
- The template enables the skills system. Users do not need a local
./skills
folder: EasyPaper loads packaged built-in skills first, then overlays user
skills from skills_dir when that directory exists.
5. Verify Setup
- Test EasyPaper import:
python -c "import easypaper; from easypaper import EasyPaper, PaperMetaData; print('EasyPaper imported successfully')" - Test LaTeX:
pdflatex --version - Test config parsing when a config path exists:
python -c "from easypaper import EasyPaper; EasyPaper(config_path='easypaper_config.yaml'); print('EasyPaper config loaded successfully')"
6. Create Environment Activation Script
Create a helper script (.easypaper-activate.sh or .easypaper-activate.bat) that:
- Activates the virtual environment
- Sets up PATH if needed
- Provides instructions for using EasyPaper as Python SDK
- Exports
AGENT_CONFIG_PATHto the generated config path when practical
Error Handling
- If Python version < 3.11, inform user and suggest upgrade
- If package installation fails, show error and suggest manual installation
- If LaTeX is missing, provide OS-specific installation commands
- If the config template file is missing from the installed skill directory,
report the plugin installation as incomplete and ask the user to reinstall
the EasyPaper Claude Code plugin.
- Always verify each step before proceeding to the next
Post-Setup Instructions
After successful setup, inform the user:
- Environment is ready in
.easypaper-env - To activate:
source .easypaper-env/bin/activate(or equivalent for Windows) - EasyPaper can now be used directly as a Python SDK:
from easypaper import EasyPaper, PaperMetaData - The environment is isolated and won't affect system Python
- The active config file path, normally
./easypaper_config.yaml