workspace-health
БесплатноБез исполняемых скриптовНе проверенKnow the morning something breaks: a deployed agent reads the last 24 hours of the workspace against the week before and posts to Slack only what is wrong and…
от cargo-ai146 установок в других каталогахОб этом скилле
Workspace health
The outcome
A broken play stops being something a customer notices first. Every morning one agent reads the last 24 hours against the seven days before and runs five checks:
| Check | A finding when |
|---|---|
| Failures, grouped by cause | a workflow's errors exceed HEALTH_ERROR_RATE of its runs (default 5%); an auth error names the connector to re-authorize |
| A play that stopped | it averaged at least one run a day and ran none, with whether it is disabled or just untriggered |
| Runs that succeed and write nothing | more than half the records a play touched still have the columns it writes empty |
| A credit spike | a workflow spent more than HEALTH_SPEND_MULTIPLE times its daily mean (default 2x), by more than HEALTH_SPEND_FLOOR |
| A stuck batch | pending or running for more than six hours |
It posts only what is wrong and new. It reads its own earlier posts in the channel, so a finding already reported is not repeated each morning; it rolls into the Monday post, which lists what is still open and what cleared, or says all clear with the week's run and credit totals. Monday's post is what makes a quiet weekday mean healthy rather than a dead watcher.
It reports and never fixes. A rerun bills again, a disabled play may be disabled on purpose, and a watcher that acts on its own findings is a second operator nobody reviews.
What it is not. It does not judge whether the work is the right work (weekly-planning) or what
the goal still needs (goal-coverage), and it does not do the deep dive on one failed run (the
pack's cargo-diagnostics, which each finding hands you the run for).
Example
Every morning, check our Cargo workspace and tell me in Slack if anything broke.
Illustrative output, fictional records:
Workspace health: 3 new findings
1. HubSpot sync lost its connector: 212 of 230 runs failed since 06:10 with
401 unauthorized at the write step. Re-authorize the HubSpot connector.
2. Tier Accounts has not run since Oct 19 (it averaged 3 runs a day): the play
is disabled. Re-enable it if that was not on purpose.
3. Enrich new signups succeeded 140 times and wrote no company size on 131 of
them. Open run 7c1e… to see what the provider returned.
On Mondays: "Workspace health, week of Oct 26: 1 still open (Tier Accounts), 2 cleared, 0 checks skipped."
Put it in your project
This folder is a worked example: real project resources written for some other company. The job is
to end up with the code your company would have written, in your project, and an agent does the
adapting. If the cargo-project skill is in your session it carries the long form of this; if not, this
is enough.
- Install it: the CLI does the copy. From inside the project (the folder holding
cargo.json),cargo-ai project add cookbook/workspace-healthwrites this example toinfra/workspace-health/and this procedure to.agents/skills/workspace-health/. No project yet?cargo-ai project init <dir> --cookbook workspace-health && cd <dir> && npm installdoes both. If you are reading this from the project's.claude/skills/, the install already happened, so start at step 2. On a CLI too old to haveadd, copy this folder in as a sibling of what is there by hand; everything below is unchanged. - Reconcile it with what is already declared. If the project already has an Anthropic, GitHub or Slack connector, rewire the imports to the existing one and drop the copy; two resources with one slug is a collision at deploy.
- Adapt. Work the sections below in order: What should not change is what you argue back
about; What you can change is what you offer unprompted; What you will be asked is the
floor, and you derive before you ask. Record what you changed and why under a
## Decisionssection in your copy of this file. - Check, then plan.
node --import tsx evals/contract.mjsfrom this skill's folder, thennpm run check && cargo-ai project planfrom the project root, show the diff, and deploy only on an explicit yes:cargo-ai project deploy(or merge, where a merge deploys). Nevercargo-ai project init --forceinto a non-empty directory. - Verify. Run the agent once without waiting for the morning, then walk Done when line by line and report each with evidence.
What you will be asked
Derive before you ask. Only the rows marked asked genuinely live in the operator's head.
| Input | Kind | How it is answered | Why it matters |
|---|---|---|---|
Slack channel (HEALTH_CHANNEL_ID in infra/agents/workspace-health.ts) |
value | asked: which channel the workspace owner reads. Resolve the name to its C… id with the Slack connector's channel autocomplete, and invite the Cargo app to it. |
One constant locks both the post and the read-back. A different channel on each makes the agent repeat every finding daily; a channel the app is not in m |
Установить workspace-health в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл workspace-health?
Know the morning something breaks: a deployed agent reads the last 24 hours of the workspace against the week before and posts to Slack only what is wrong and new: failing runs grouped by cause, a lost connector, a play that stopped, runs that succeed and write nothing, a spend spike, a stuck batch. Mondays it posts the week: still open, cleared, all clear. Triggers: "tell me what is broken in the workspace", "watch my workspace every morning", "alert me when a play stops running", "is anything failing in Cargo", "catch silent failures before a customer does", "tell me in slack every morning if a play broke". Cargo project, defineAgent, harness claudeCode, orchestration SQL, billing metrics, Slack. Skip when: one run already failed and you want to know why, which is cargo-diagnostics in the Cargo pack; or you want initiatives graded against what ran, which is weekly-planning.
Как установить скилл workspace-health?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл workspace-health запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic