You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- flashduty-admin: document team get/create/update/delete commands,
all flags, team lifecycle workflow, and member replacement warning
- flashduty-shared: add team get to reference lookups, add safety
rules for team delete and member list replacement
Copy file name to clipboardExpand all lines: skills/flashduty-admin/SKILL.md
+104-3Lines changed: 104 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
name: flashduty-admin
3
3
version: 1.0.0
4
-
description: "Flashduty administration: list teams and members, search audit logs for compliance and investigation. Commands: team list, member list, audit search. Use when looking up person IDs or team IDs for other commands, finding contact information, searching who performed specific actions, or reviewing audit trails for compliance."
4
+
description: "Flashduty administration: manage teams (list, get, create, update, delete), list members, and search audit logs for compliance and investigation. Commands: team list/get/create/update/delete, member list, audit search. Use when managing team structure, looking up person IDs or team IDs for other commands, finding contact information, searching who performed specific actions, or reviewing audit trails for compliance."
5
5
metadata:
6
6
requires:
7
7
bins: ["flashduty"]
@@ -28,11 +28,82 @@ flashduty team list [flags]
28
28
29
29
| Flag | Type | Default | Description |
30
30
|------|------|---------|-------------|
31
-
|`--name`| string || Search by team name |
31
+
|`--name`| string || Search by team name substring |
Create a new team. The `--name` flag is required and must be unique (1-39 characters).
61
+
62
+
```bash
63
+
flashduty team create --name "SRE Team" [flags]
64
+
```
65
+
66
+
| Flag | Type | Description |
67
+
|------|------|-------------|
68
+
|`--name`| string |**Required.** Team name (1-39 characters) |
69
+
|`--description`| string | Team description (max 500 characters) |
70
+
|`--person-ids`| string | Comma-separated member person IDs |
71
+
|`--emails`| string | Comma-separated email addresses to invite |
72
+
|`--ref-id`| string | External reference ID for HR system integration |
73
+
74
+
### team update
75
+
76
+
Update an existing team. The `--id` flag is required. **WARNING:**`--person-ids` replaces the entire member list. Use `team get` to see current members before updating.
77
+
78
+
```bash
79
+
flashduty team update --id <team_id> [flags]
80
+
```
81
+
82
+
| Flag | Type | Description |
83
+
|------|------|-------------|
84
+
|`--id`| int |**Required.** Team ID |
85
+
|`--name`| string | New team name (1-39 characters) |
86
+
|`--description`| string | New description (max 500 characters) |
87
+
|`--person-ids`| string | Comma-separated member person IDs (replaces entire member list) |
88
+
|`--emails`| string | Comma-separated email addresses to invite |
89
+
|`--ref-id`| string | External reference ID |
90
+
91
+
### team delete
92
+
93
+
Permanently delete a team. Specify the team by exactly one of `--id`, `--name`, or `--ref-id`. This action is **irreversible**. You will be prompted for confirmation unless `--force` is set.
94
+
95
+
```bash
96
+
flashduty team delete --id <team_id>
97
+
flashduty team delete --name "Old Team" --force
98
+
```
99
+
100
+
| Flag | Type | Description |
101
+
|------|------|-------------|
102
+
|`--id`| int | Team ID |
103
+
|`--name`| string | Team name |
104
+
|`--ref-id`| string | External reference ID |
105
+
|`--force`| bool | Skip confirmation prompt |
106
+
36
107
### member list
37
108
38
109
List organization members with contact details and status.
flashduty team create --name "Backend Team" --emails alice@example.com,bob@example.com
197
+
198
+
# Rename a team
199
+
flashduty team update --id 123 --name "Platform SRE"
200
+
201
+
# Replace the entire member list (check current members first!)
202
+
flashduty team get --id 123
203
+
flashduty team update --id 123 --person-ids 1,2,3,4,5
204
+
205
+
# Delete a team (prompts for confirmation)
206
+
flashduty team delete --id 123
207
+
208
+
# Delete without confirmation (for scripting)
209
+
flashduty team delete --id 123 --force
110
210
```
111
211
112
212
## Key Concepts
113
213
114
214
-**Member IDs** (int64) are used across many commands: incident assign/reassign, audit filters, oncall schedules.
115
215
-**Team IDs** (int64) are used for filtering: oncall schedules, postmortem list, channels.
216
+
-**Team update replaces members** -- `--person-ids` is a full replacement, not an append. Always check current members with `team get` before updating.
217
+
-**Team delete is irreversible** -- requires confirmation in interactive mode; requires `--force` in non-interactive (CI/scripted) mode.
116
218
-**Audit logs** track all mutations in the system -- useful for compliance, incident investigation, and change tracking.
117
-
- All admin commands in the CLI are **read-only**.
0 commit comments