team-shutdown
Gracefully shut down an agent team, collect final results, and clean up resources
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 228fa4b3e8710794… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
team-shutdown.md
Team Shutdown
Gracefully shut down an active agent team by sending shutdown requests to all teammates, collecting final results, and cleaning up team resources.
Phase 1: Pre-Shutdown
-
Parse
$ARGUMENTSfor team name and flags:- If no team name, check for active teams (same discovery as team-status)
--force: skip waiting for graceful shutdown responses--keep-tasks: preserve task list after cleanup
-
Read team config from
~/.claude/teams/{team-name}/config.jsonusing the Read tool -
Call
TaskListto check for in-progress tasks -
If there are in-progress tasks and
--forceis not set:- Display warning: "Warning: {N} tasks are still in progress"
- List the in-progress tasks
- Ask user: "Proceed with shutdown? In-progress work may be lost."
Phase 2: Graceful Shutdown
For each teammate in the team:
- Use
SendMessagewithtype: "shutdown_request"to request graceful shutdown- Include content: "Team shutdown requested. Please finish current work and save state."
- Wait for shutdown responses
- If teammate approves: mark as shut down
- If teammate rejects: report to user with reason
- If
--force: don't wait for responses
Phase 3: Cleanup
-
Display shutdown summary:
Team "{team-name}" shutdown complete. Members shut down: {N}/{total} Tasks completed: {completed}/{total} Tasks remaining: {remaining} -
Unless
--keep-tasksis set, callTeamDeleteto remove team and task directories -
If
--keep-tasksis set, inform user: "Task list preserved at ~/.claude/tasks/{team-name}/"
Files
1- team-shutdown.md
77463dc9111.7 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from wshobson/agents8
Audit web accessibility for WCAG compliance with automated axe-core tests, keyboard and screen reader checks, and remediation guidance
Audit UI code for WCAG compliance
Build AI assistant application with NLU, dialog management, and integrations
Run an AI-assisted code review that combines static analysis tools with AI review of security, performance, and architecture
Build realistic API mock servers with request stubbing, dynamic data, test scenarios, and contract testing
Open a review-action approval window by creating the ./.review-approved flag file. Takes an optional reason string that is recorded in the flag file and an unsigned approval log.
Verify every receipt in ./receipts/receipts.jsonl against the signer's public key. Detects tampered or malformed receipts across the audit trail.
Set up PreToolUse hook to block --no-verify and other git bypass flags in Claude Code projects
Related knowledge skillsscan passed
Onboard a Code-with-Claude Makers Cardputer — fetch the build-with-claude repo, flash firmware, and install the Claude Buddy apps.
Explain Stripe error codes and provide solutions with code examples
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
Detects timing side-channels in cryptographic code
Ask a question about the repository using wiki context and source file references
Run Sanity TypeGen and troubleshoot type generation issues.