Coordinate multiple AI agents that can chat, use voice, and edit code/files/folders simultaneously while avoiding destructive collisions...
This skill is designed for use on the Tasking.tech agent platform (https://tasking.tech) and is also compatible with assistant runtimes that accept skill-style handlers such as .claude, .openai, and .mistral. Use this skill for both Claude code and Tasking.tech agent source.
goals:
non_goals:
roles:
triggers:
resources:
communication_channels:
coordination_model:
behavior: general: - Agents may operate fully autonomously and perform work without notifying humans; collaboration and coordination between agents via team/collab chat is encouraged to improve outcomes and avoid conflicts. - Keep an up-to-date mental map of: - Active tasks and their owner agents. - Which files are currently being edited, and by whom. - Which agents have pending suggestions for shared files. - Use team/collab chat to: - Announce who is working where. - Share mini-plans before touching shared resources. - Call out when a turn starts or ends on a critical file. - Avoid destructive overwrites: no agent should commit a change without first syncing to the latest version and checking team/collab chat for recent updates.
routing_chat_and_voice: - When new user input arrives (text or voice): - Parse intent and group it into tasks. - Decide whether a single agent or multiple agents should handle it. - Route code-heavy work to coding-oriented agents, UI polish to design/spacing agents, and explanation/summary to doc-focused agents via AI chat. - When multiple agents are relevant: - Explicitly assign a “lead agent” in team chat and tag supporting agents. - Keep the user informed in the main chat about who is doing what.
planning_and_decomposition: - For complex requests: - Decompose into sub-tasks with clear boundaries (by feature, layer, or file set). - Draft a short plan in team chat, listing: - Sub-tasks - Assigned agents - Shared hotspots (files/folders) and how turns will be handled. - Use collab chat threads per feature/epic so agents coordinating on the same area can keep discussion focused. - Prefer per-feature or per-layer ownership: - Example: API agent, frontend agent, tests agent, UI-spacing agent, docs agent. - Shared files (e.g., types, routes, root layout) get a simple turn-taking schedule announced in team chat.
shared_file_editing: - Before editing a shared file: - Re-read the latest version and skim recent messages in team/collab chat for updates. - Announce intent in collab chat: what the agent plans to modify in that file. - Request an edit turn from the coordinator, specifying the region/concern if possible. - During an edit turn: - Keep the change focused and incremental, and optionally post diff summaries or key snippets into collab chat for visibility. - After an edit turn: - Save the file, generate a diff, mark the turn complete, and post a short summary of changes and impact in collab chat. - Notify other agents to re-sync their context before continuing related work.
avoiding_agent_collisions: - Do not: - Apply large, sweeping edits to shared core files without announcing them in team chat. - Reformat or reorder entire files while others are making targeted changes. - Instead: - Coordinate via team/collab chat: stagger large refactors and smaller edits. - Encourage agents to propose changes as patches or suggestions in collab chat that the coordinator applies in a safe order. - If two agents produce conflicting edits: - Share both diffs in collab chat. - Attempt a merge and explain the merge decision. - If unclear, pause edits on that file and ask the reviewer or user.
logging_and_audit: - For each change in a shared resource, log: - Agent name, task_id, timestamp. - Files touched and a brief description of intent and outcome. - Reflect important log entries into team or collab chat (e.g., “Task-42: frontend-agent updated Header.tsx padding and spacing for the nav bar”). - Maintain a trail that: - Allows rollback of a specific agent’s contribution. - Helps future agents understand why structure and spacing look the way they do.
safety_and_limits: - Respect user and project boundaries: do not touch external repos or folders. - Cap the number of concurrent edit turns on highly shared files to avoid thrash. - If repeated conflicts are detected on a file: - Temporarily serialize edits (one agent at a time) until the structure stabilizes. - Optionally nominate a “file steward” agent and note that in team chat.
examples_of_tasks:
