explain SKILLS_DIR = Path(__file__).parent.parent / "skills" SANDBOX_SKILLS = ["pptx", "xlsx", "pdf", "frontend-design"] - SKILLS_DIR = /Users/divyam/Projects/OrrisAI1.2/skills - We copy these 4 skills into sandbox so agent can run their scripts - medical-library is NOT here — it stays server-side (reads textbooks)

This code sets up a path and a list of skills that need to be physically copied into a sandbox environment before an agent can use them.

Breaking it down

SKILLS_DIR = Path(__file__).parent.parent / "skills"

  • Path(__file__) — the current Python file's absolute path
  • .parent.parent — go up two directory levels
  • / "skills" — append the skills folder
So if the current file is at /Users/divyam/Projects/OrrisAI1.2/src/some_module/file.py, then:
.parent       → /Users/divyam/Projects/OrrisAI1.2/src/some_module/
.parent.parent → /Users/divyam/Projects/OrrisAI1.2/src/
/ "skills"    → /Users/divyam/Projects/OrrisAI1.2/src/skills
But given the comment says it resolves to /Users/divyam/Projects/OrrisAI1.2/skills, the file itself sits two levels deep inside the project root.

SANDBOX_SKILLS = ["pptx", "xlsx", "pdf", "frontend-design"]

These four skills are executable — their SKILL.md files point to local scripts (Python, Node, etc.) that the agent actually runs. For those scripts to work inside a sandboxed execution environment, the entire skill folder must be copied in so the scripts are physically present.

Why medical-research is excluded

medical-research doesn't run any local scripts. It works by calling server-side tools (search_medical_text, search_medical_image) that query a hosted database of textbooks. There's nothing to "run" locally, so copying it into the sandbox would serve no purpose — the skill folder just contains a SKILL.md with instructions, and the agent reads that at runtime from the server side.

The mental model

Skill type          | Needs scripts copied? | Why
--------------------|----------------------|--------------------------------
pptx / xlsx / pdf   | YES                  | Runs local Python scripts to
frontend-design     | YES                  | build/render output files
medical-research    | NO                   | Pure tool calls to server-side
                    |                      | search APIs — no local scripts
In short: sandbox skills are tools that do work locally; server-side skills are tools that make remote calls.
This is a shared conversation. Sign in to Orris to start your own chat.