Home folder layout
projectops skills keep files outside your repositories, in one folder in your home directory (~/.projectops, or PROJECTOPS_HOME if you set it). That folder has four parts, plus secrets/ at the top level. Anything that can be lost goes to the OS temp folder instead.
~/.projectops/
config/ your settings: config.json, its backups
secrets/ secret files (folder 0700, files 0600)
work/<skill>/ files a feature needs to keep working
log/<skill>/ records of what happened, kept 30 days and at most 200 MB per skill
bin/ fixed entry points (projectops_cli.py, launch_cli.py)
<OS temp>/projectops-<uid>/<skill>/ scratch (Windows: %TEMP%\projectops\<skill>\)Where does a file go?
Ask one question per file: if this file disappears, does a feature break or does the user lose data?
| Answer | Area | Examples |
|---|---|---|
| The user wrote or chose it (settings) | config/ | config.json |
| It is a secret | secrets/ | a signing key, a token file |
| Yes, a feature breaks or data is lost | work/<skill>/ | device ledger, browser logins, harness folders, accepted images, the worktree copy memory, backups, virtual envs |
| No, it is a record of what happened | log/<skill>/ | last diagnosis, run history |
| No, nothing breaks | OS temp | issue body drafts, release-notes drafts, prompt files, one-off captures, image candidates |
The OS removes its temp folder on its own schedule, so never keep anything there that a later run must read.
Build paths with the path module only
Never write ~/.projectops/... or Path.home() / ".projectops" in a script. Use the module for your runtime:
| Runtime | Module | Functions |
|---|---|---|
| Python | scripts/common/projectops_paths.py | config_dir(), config_file(), secrets_dir(), work_dir(skill), log_dir(skill), prepare_log_dir(skill), temp_dir(skill), bin_dir() |
| JavaScript | src/core/projectops-paths.js | configDir(), configFile(), workDir(skill), logDir(skill), tempDir(skill), binDir() |
skillis the skill folder name withoutpro-(launch,image,usage-guard): lowercase letters, digits, dashes.- The functions do not create folders. Create one right before you write into it.
- Skill CLIs that cannot import
scripts/common(the extras plugin,pro-image) get a generated copy of the Python module. Add the copy toscripts/sync_extras.pyand runpython3 scripts/sync_extras.py; never edit a copy. - The architecture rule
no-hand-built-projectops-homefails CI when a script outside the module builds the path.
Log retention
Write a log only into the folder prepare_log_dir(skill) returns. It creates log/<skill>/, removes files older than 30 days, then removes the oldest files until the folder holds at most 200 MB (LOG_KEEP_DAYS, LOG_MAX_BYTES_PER_SKILL). It runs on every write, so log/ stays small without pro-disk-cleanup. A file that cannot be removed stays, and pruning never stops the write. Today pro-brain (doctor last-run log) is the only skill that writes to log/; a new log writer calls the same function.
Folders that stay where they are
| Folder | Decision |
|---|---|
secrets/ | Stays at the top level and is never moved into config/: its permissions matter, and other repos and personal scripts point at this path. secrets_dir() returns it |
tools/ | Temporary. It holds a local copy of a skill installed by hand (today tools/pro-usage-guard/); remove the copy once the extras plugin release with that skill is installed. Skills never write here |
venv-whisper/ and other existing virtual envs | Stay where they are, because moving a virtual env breaks the scripts inside it. New virtual envs go to work/<skill>/ |
Old folders and where they went
The first skill run after the update moves the old folders. A folder is renamed in place (instant, permissions kept); across disks it is copied, checked by file count and size, then removed. config.json is never opened and secrets/ keeps its permissions. A folder with an open pro-launch browser waits for a later run. Until a folder has moved, skills keep reading the old place.
The new layout ships in 4.128.0. The old-place reads are removed in 4.129.0, one minor version later: the fallback in work_dir / log_dir and the old tmp/ lookup for release notes in pro-changelog-deploy. The move itself stays, so a machine that skips 4.128.0 still gets its folders moved on the first run.
| Old | New |
|---|---|
launch/ | work/launch/ |
agent-test/ | work/agent-test/ |
image/ | work/image/ (new candidates go to OS temp) |
presentation/ | work/presentation/ |
ui-design/ | work/ui-design/ |
remote-link/ | work/remote-link/ |
gbrain/ | work/gbrain/ |
worktree/ | work/worktree/ |
backups/, backup/, worktree-backups/ | work/backups/, work/backups/backup/, work/backups/worktree-backups/ |
pro-brain/doctor/ | log/pro-brain/doctor/ |
pro-brain/ (write receipts) | work/pro-brain/ |
tmp/, cache/ | OS temp (legacy-tmp/, legacy-cache/) |
config/, bin/ | unchanged |
secrets/, tools/, venv-whisper/ | unchanged (see "Folders that stay where they are") |
Each run that moves something appends the map to ~/.projectops/MIGRATED.md. If a file already existed in the new place, the old copy stays where it was and is listed there.
Cleaning up
pro-disk-cleanup reads the same areas: log/ and the OS temp folder are safe to clean, work/ is a decision per skill folder, and config/ is never cleaned.