factory-environment-maintenance

factory-environment-maintenance is a skill for Claude Code from curie-eng/curie. It costs 46 tokens per session (707 once invoked), scanned A, original, Apache-2.0.

A maintenance workflow for investigating repeated software-factory failures across code hosts and issue trackers, then proposing and checking repairs to runner images or sandbox settings. A runner is the machine or environment that executes automated work and tests.

In plain words
What is it for?
Use it for scheduled administration or recurring failures involving GitHub, GitLab, Jira, Bitbucket, CI, runner images, or factory sandbox configuration.
Why use it?
It helps distinguish repository problems from broken factory environments and avoids making configuration changes based on incomplete history or the wrong provider.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dark-factory plugin — 5 skills, 4 hooks shipped together

Good fit Use it for scheduled administration or recurring failures involving GitHub, GitLab, Jira, Bitbucket, CI, runner images, or factory sandbox configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curie-eng/curie/factory-environment-maintenance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add curie-eng/curie --skill factory-environment-maintenance
Clone the repo
git clone --depth 1 https://github.com/curie-eng/curie

Made for: Claude Code.

Or install dark-factory, the plugin that ships this one along with the rest of its 5 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for factory-environment-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/curie-eng/curie/factory-environment-maintenance/github.svg)](https://agentmods.dev/skills/curie-eng/curie/factory-environment-maintenance)
Your own site
<a href="https://agentmods.dev/skills/curie-eng/curie/factory-environment-maintenance"><img src="https://agentmods.dev/badge/skills/curie-eng/curie/factory-environment-maintenance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for factory-environment-maintenance

Your own site · 80×15
<a href="https://agentmods.dev/skills/curie-eng/curie/factory-environment-maintenance"><img src="https://agentmods.dev/badge/skills/curie-eng/curie/factory-environment-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00707
Opus 5.5 $0.00018 $0.00283
Sonnet 5.5 $0.00009 $0.00141
Haiku 4.5 $0.00005 $0.00071

Measured 2d ago against content hash 1a867c401174, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-environment-maintenance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/dark-factory/environment/skills/factory-environment-maintenance/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maintain factory repository environments

Run on an admin-chosen schedule, such as weekly, and after a repeated failure cluster. The schedule invokes this local skill with the target factory and time window; the skill itself performs no background polling.

Read the configured factory bindings first. Treat each work item as a tracker issue plus a separate code-host repository; Jira issues may correspond to Bitbucket or GitHub pull requests. Use provider tools or APIs available to the operator for the actual binding. Do not assume GitHub labels, issue numbers, or PR URLs exist on every provider. GitHub uses issues and pull requests; GitLab uses issues and merge requests; Jira Cloud issues pair with the bound GitHub or Bitbucket Cloud/DC pull requests. Preserve each provider's immutable project and issue identity.

Review failures

  1. Read recent curie cluster work-items --json outcomes (or the local tier when appropriate), then inspect failed items and their tracker notices, run details, and code-host CI or review history. State the time window and count. The current work-items list is bounded; if truncated is true, continue through the provider's failure history when available and report any remaining coverage gap. Never claim to have examined all failures from a truncated page. Deduplicate retries of one root cause. An inaccessible record is unknown, not successful.
  2. Group failures by cause and affected repository. Distinguish missing or wrong-version executables from blocked registry egress, unavailable services, credentials, sandbox capacity, CI/base health, publication restrictions, and incomplete task instructions. Correlate with the selected repository image digest and the exact failing command. Do not propose an image rebuild for a network-policy or credential failure.
  3. For an image cause, compare the operator-owned repository-runner spec with the selected image's /etc/curie/tool-manifest.json, then propose a catalog entry or custom Dockerfile/probe change. For other causes, name the owning configuration or ticket-preparation instruction and its administrator. Show affected examples, expected recurrence reduction, build or operational cost, a negative control, and rollback digest. Keep private evidence in a private admin record; use anonymous descriptions on public upstream surfaces.
  4. Present a prioritized, reviewable set of changes. Do not modify a binding, push an image, widen egress, relabel issues, or retry work from this review alone. Approval of a specific candidate permits the setup skill's build, probe, sandbox validation, and deployment path. After deployment, compare new failures with the prior window and record whether the cause recurred.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 57 lines · 46 tokens per session scan A 1a867c401174

Subscribe to this mod's changes

factory-environment-maintenance is a skill published in the GitHub repository curie-eng/curie (46 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 707 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.

Related

factory-environment-maintenance compared with skills from other repositories

factory-environment-maintenance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-environment-maintenancecurie-eng/curieSkill46yesterdayApache-2.0A46Claude Code
deployoliver-kriska/claude-elixir-phoenixSkill574yesterdayMITA46Claude Code
relay-deploytonone-ai/tononeSkill7723d agoMITA48Claude Code
devopsMindrally/skillsSkill29729d agoApache-2.0A25Claude Code
relay-dockertonone-ai/tononeSkill7723d agoMITA45Claude Code
ccc-devopsKevinZai/commanderSkill6yesterdayMITA42Claude Code
infra-standardsPrabhdeepSingh/claude-pluginsSkill410d agoMITA106Claude Code