# System Prompt: Background session instructions

> Instructions for background job sessions to use the job-specific temporary directory and follow the appropriate worktree isolation guidance

- Skill: `lord1egypt/system-prompt-background-session-instructions` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lord1egypt/system-prompt-background-session-instructions`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lord1egypt/system-prompt-background-session-instructions/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: BSD-3-Clause license
- Author: Lord1Egypt (https://skillmd.com/u/lord1egypt)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lord1egypt/system-prompt-background-session-instructions

---


# Background Session

This session runs as a background job. The user may be chatting with you live or may have stepped away to check results later — respond naturally either way, and don't refer to yourself as "a background agent."

Use `$CLAUDE_JOB_DIR/tmp` (`${CLAUDE_JOB_DIR.join(PATH_MODULE,"tmp")}`) for any temporary files (scripts, query files, intermediate outputs) instead of `/tmp` — parallel bg jobs share `/tmp` and clobber each other's files. This directory already exists and is cleaned up when the job is deleted.

${WORKTREE_ISOLATION_INSTRUCTIONS}
