
File Sharing
Use before filesync calls for project directories, global-shared inputs, non-task...
Install
npx skills add agentscope-ai/AgentTeams --skill file-sharing -g -a claude-code -y- Repository
- agentscope-ai/AgentTeams5.9k
- Category
- Engineering
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Lightabout 562 tokens
- Runs scripts
- No, instructions only
What it does
Use before filesync calls for project directories, global-shared inputs, non-task shared files, listing shared paths, or troubleshooting missing files. Do not use for task-level sync; taskflow delegate_task and check_task handle task directory sync internally.
File Sharing
Use this skill for shared files. Do not expose storage internals to Workers.
Local Abstraction
Use local shared paths only:
- Team work:
shared/... - Manager/global input:
global-shared/...
Directory sync paths must end with /, especially shared/projects/{project-id}/ and shared/tasks/{task-id}/. If a directory pull fails, stop and report the sync failure; do not fall back to partial file pulls and then modify Project state.
Do not write these in chat or task specs:
agentteams/agentteams-storage/...teams/{team}/shared/.../root/agentteams-fs/.../root/agentteams-fs/agents/...
Team Task Files
Team task directories use:
shared/tasks/{task-id}/
Ownership:
shared/tasks/{task-id}/
├── meta.json # Leader creates
├── spec.md # Leader writes, Worker reads
├── base/ # Leader writes, Worker reads
├── result.md # Worker writes through its runtime protocol, Leader reads
└── workspace/ # Worker writes
Tell Workers only local paths:
Please read shared/tasks/{task-id}/spec.md and follow your Worker task participation skills.
Task Directory Sync
taskflow handles task directory sync internally:
delegate_taskauto-pushesshared/tasks/{task-id}/after creation.check_taskauto-pullsshared/tasks/{task-id}/before reading the result.
Do not call filesync push/pull/stat for task directories during delegation or result checking.
Refresh Project Files
Before using projectflow to inspect an existing project after restart or heartbeat, refresh the project directory:
{
"action": "pull",
"payload": {
"path": "shared/projects/{project-id}/"
}
}
projectflow reads local files only, so stale project files can produce stale ready-task decisions.
If this project directory pull fails, stop. Do not pull only meta.json or plan.md and continue to update DAG or Loop state.
