# Writing a profile

Source: https://aunysillyme.dev/projects/shared-agent-memory/docs/writing-a-profile/

Add `profiles/<lab>/<tool>.yaml` and a synthetic home in `profiles/fixtures/<tool>/home/`. Read the tool's official documentation today. Put the exact URL in `source_doc` and the documentation version, date and verifier in `verified`. Only include kinds whose paths the source states. Explain omissions in YAML comments. Never infer a private or undocumented path.

Use `storage: local`, `cloud-export` or `cloud-none`. Each kind has `default: on` or `off` and `paths` by OS: `darwin`, `linux`, `win32`. Transcripts must be off. Use `~` for a home, `{project}` for the selected project and `{inbox}` for the tool-owned export inbox. Supported globs are `*`, `**` and `?`. Set `path_env` only when the official source documents that override. Otherwise use null. Use `adapter: text` for text or Markdown. `chatgpt-export` reads extracted conversation JSON and takes only message text parts. It never opens ZIP files or reads credentials.

The loader validates profiles against `schemas/profile.schema.json`. Detection checks storage kind and documented folders. It applies the folder environment override before looking for files. A user `sources.yaml` replaces detected sources. Run `npm run docs` and `npm test`. Include fixtures for moved folders and project paths. Keep fixtures synthetic.
