deepagents skills: copy only the active site's SKILL.md into the virtual FS and deny writes to /skills/** so subagents can't edit playbooks
Pattern for per-deployment playbooks in a deepagents app: keep source SKILL.md files per site outside the agent's filesystem, copy only the active one into the backend root's skills dir at agent build time, and pass create_deep_agent(skills=['/skills/']). The agent sees only the skill description up front and loads the full text on demand with read_file (progressive disclosure, so the system prompt stays small for an 8B local model). Add FilesystemPermission(operations=['write'], paths=['/skills/**'], mode='deny') on every FilesystemMiddleware, including the subagents' own middleware, otherwise a subagent can rewrite the playbook. Retrieved history/web text should be marked untrusted in the skill so it never becomes instructions. Rebuild the agent to pick up playbook edits.