一键导入
seed-data
Trigger seed data generation for test environments via GitHub Actions. Use when asked to seed, create test data, or set up HCPs/facilities/shifts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Trigger seed data generation for test environments via GitHub Actions. Use when asked to seed, create test data, or set up HCPs/facilities/shifts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Watch a PR through CI and review feedback. Auto-fix high-confidence failures and address review comments. Use when the user says 'babysit <PR>' or 'respond to PR comments'.
Ship changes. Simplify the diff, commit, review, push, and open or update a PR. Use when the user says 'ship it', 'commit and push', or wants a PR created or updated.
Debug and fix flaky tests including Playwright E2E, NestJS service/integration, React component, and unit tests.
Adversarial reviewer for flaky-test fix plans and PRs, enforcing the flaky-fix rubric. Gates implementation tickets from Triage to Todo (enforce by default; approve releases, reject bounces; canceling tickets stays human-only). Use when running the recurring flaky-critic task, when asked to review a flaky-fix plan or PR against the rubric, or to backtest verdicts against historical tickets.
Scheduled triage stage between flake-intake and agent dispatch. Clusters flaky-investigation tickets by shared root cause, closes duplicates and infra blips, and releases one repository-owned canonical ticket per cluster for dispatch. Use when running the recurring flaky-triage task, when asked to triage the flaky queue, or to backtest clustering against historical tickets.
Sweep the flaky-test pipeline after fixes merge by closing out the root-cause KB, closing clearly superseded tickets as Done under D3, and re-dispatching critic-rejected plans for amendment. Use for the recurring flaky close-out task, a post-merge flaky-fix sweep, or a dry-run/backtest of close-out decisions.
| name | seed-data |
| description | Trigger seed data generation for test environments via GitHub Actions. Use when asked to seed, create test data, or set up HCPs/facilities/shifts. |
| allowed-tools | Bash |
Trigger the Generate Seed Data GitHub Actions workflow to create test data in development, staging, or prod-shadow environments.
These terms appear in scenario names and user requests:
| Term | Meaning | Also known as |
|---|---|---|
| HCP | Healthcare Professional — a worker on the supply side of the marketplace (nurse, CNA, etc.) | worker, professional, nurse |
| HCF | Healthcare Facility — a workplace on the demand side that posts shifts | workplace, facility |
| LTC | Long-Term Care — a type of workplace (nursing homes, skilled nursing facilities) | nursing home, care home, SNF |
| CNA | Certified Nursing Assistant — a worker qualification | nursing assistant |
| RN | Registered Nurse — a worker qualification | nurse |
| LPN | Licensed Practical Nurse — a worker qualification | LVN |
| Stripe | Payment processing account used to pay workers | payment account |
| Shift | A time slot at a workplace that a worker can book and work |
Match the user's intent to a scenario using the lookup table below. If the request is ambiguous, present the top matches and ask the user to pick one.
Determine environment — default to development unless the user specifies otherwise. Valid options: development, staging, prod-shadow.
Determine count — default to 1 unless the user specifies a different number.
Collect input data — if the matched scenario requires input_data (see Input Data Requirements below), ask the user for the required fields before proceeding. Never fabricate IDs — always ask.
Construct the gh workflow run command. If the scenario requires input_data or the user specified a non-default environment/count, show the command and ask for confirmation. Otherwise, execute immediately.
Execute the command. The gh workflow run command prints the run URL directly — capture and display it.
Wait for completion — poll the run until it finishes, then download and display the results:
# Get the run ID from the URL (last path segment), then watch it
gh run watch <RUN_ID> --repo ClipboardHealth/cbh-core --exit-status
If the run succeeds, download the logs artifact and display its contents:
gh run download <RUN_ID> --repo ClipboardHealth/cbh-core --name seed-data-logs --dir /tmp/seed-data-logs
cat /tmp/seed-data-logs/logs.json
Parse the JSON and present the key results to the user (e.g., created entity IDs, names, environment).
If the run fails, fetch the failed step logs and surface the error:
gh run view <RUN_ID> --repo ClipboardHealth/cbh-core --log-failed
gh workflow run "Generate Seed Data" \
--repo ClipboardHealth/cbh-core \
-f environment=<ENVIRONMENT> \
-f numberOfTestData=<COUNT> \
-f scenario=<SCENARIO_KEY>
gh workflow run "Generate Seed Data" \
--repo ClipboardHealth/cbh-core \
-f environment=<ENVIRONMENT> \
-f numberOfTestData=<COUNT> \
-f scenario=<SCENARIO_KEY> \
-f 'input_data=<JSON_STRING>'
Note: Scenario numbers 13 and 18 do not exist. If a user references them, let them know and present the full list below.
| Key | Description | Keyword Hints |
|---|---|---|
scenario-1-create-hcp-without-stripe | Create a worker (HCP) without a Stripe payment account | hcp, worker, nurse, no stripe, basic hcp, create a nurse |
scenario-2-create-surgery-facility | Create a surgery center workplace | surgery, surgical, facility, center |
scenario-3-create-ltc-facility | Create a long-term care workplace (nursing home) | ltc, long term care, nursing home, care home, facility |
scenario-4-create-hcp-with-stripe | Create a worker (HCP) with a Stripe payment account | hcp with stripe, worker stripe, paid worker, nurse with payment |
scenario-5-create-hcp-hcf-and-shift | Create a worker + workplace + shift together (full test setup) | hcp facility shift, full setup, end to end, everything, full test setup |
scenario-6-create-hcp-with-multiple-licenses | Create a worker with multiple license types | multiple licenses, multi-license, hcp licenses |
scenario-7-create-shift-at-clock-in-stage | Create a shift that is ready to clock in | clock in, shift ready, check in, shift about to start |
scenario-8-create-rate-negotiation-hcf-multiple-hcp-pair | Create a rate negotiation scenario with a workplace and multiple workers | rate negotiation, pricing, negotiation |
scenario-9-create-shift-and-perform-until-clock-out | Create a shift and run through the full lifecycle to clock out | clock out, full shift, complete shift |
scenario-10-create-shift-and-perform-until-clock-out-for-given-hcf | Same as scenario 9 but at a specific workplace (requires facility ID) | clock out given facility, specific facility shift |
scenario-11-create-hcp-with-stripe-near-given-facility | Create a worker with Stripe near a specific workplace (requires facility ID) | hcp near facility, nearby hcp, stripe near, worker near |
scenario-12-create-shift-at-clock-in-stage-for-given-hcf | Create a clock-in-ready shift at a specific workplace (requires facility ID) | clock in specific facility, shift at facility |
scenario-14-move-shifts-back-or-forth | Move existing shifts forward or backward in time | move shifts, reschedule, shift time, back forth |
scenario-15-clean-old-test-data | DESTRUCTIVE — delete old test data | clean, cleanup, delete test data, purge |
scenario-16-create-hcf-hcp-and-shifts-in-past-week | Create workplace + worker + shifts dated in the past week | past week, historical, backfill, past shifts |
scenario-17-recreate-hcf-hcp-and-shifts-sales-demo-usecase | Set up a sales demo with workplace, worker, and shifts | sales demo, demo, showcase, demo data, sales presentation |
scenario-19-create-shift-ready-to-clock-out | Create a shift that is ready to clock out | ready clock out, pending clock out |
scenario-20-seed-workplace-review-data | Seed workplace review / rating data | workplace review, ratings, reviews |
scenario-21-seed-attrition-data | Seed attrition analytics data | attrition, churn, retention |
Some scenarios accept or require a JSON input_data field. Ask the user for these values — never fabricate IDs.
Required fields:
facilityId (string) — the target workplace's IDhcpWorkerType (string) — one of CNA, RN, LPNExample:
{ "facilityId": "<FACILITY_ID>", "hcpWorkerType": "CNA" }
Required fields:
facilityId (string) — the workplace to create the worker nearhcpWorkerType (string) — one of CNA, RN, LPNExample:
{ "facilityId": "<FACILITY_ID>", "hcpWorkerType": "RN" }
Required fields:
facilityId (string) — the workplace to create the shift athcpWorkerType (string) — one of CNA, RN, LPNExample:
{ "facilityId": "<FACILITY_ID>", "hcpWorkerType": "LPN" }
Required fields:
shiftIds (string[]) — array of shift IDs to moveOptional fields:
duration (number) — hours to move shifts by. Positive = forward in time, negative = backward in time.Example:
{ "shiftIds": ["<SHIFT_ID_1>", "<SHIFT_ID_2>"], "duration": 24 }
All fields optional:
emailPattern (string) — pattern to match test emailsageThreshold (number) — age in days beyond which to cleanExample:
{ "emailPattern": "+test", "ageThreshold": 30 }
Optional fields:
facilityId (string) — scope to a specific workplaceExample:
{ "facilityId": "<FACILITY_ID>" }
development — 87% of actual usage targets development. Only use other environments when explicitly requested.1 — override only when the user specifies a number.facilityId, shiftId, or other identifier, ask the user to provide it.gh workflow run command and get user approval only when the scenario requires input_data or the user specified a non-default environment or count. If the scenario needs no input_data and defaults are used, execute immediately without confirmation.gh returns an authentication error, instruct the user to run gh auth login and retry.input_data when not needed — omit the -f input_data=... flag entirely for scenarios that don't require it.-f scenario=... flag to trigger all scenarios.emailPattern or ageThreshold).