factory-environment-setup

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

A workflow for planning, reviewing, building, and deploying a repository-specific sandbox image for a software factory. It examines repository history, CI files, manifests, lockfiles, and verification requirements before preparing the environment.

In plain words
What is it for?
Use it when onboarding a repository to a software factory or preparing the isolated environment where factory agents will work and be verified.
Why use it?
It reduces setup mistakes caused by using the wrong code host, issue tracker, runner image, dependencies, or repository assumptions.

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 when onboarding a repository to a software factory or preparing the isolated environment where factory agents will work and be verified.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curie-eng/curie/factory-environment-setup
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-setup
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-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/curie-eng/curie/factory-environment-setup/github.svg)](https://agentmods.dev/skills/curie-eng/curie/factory-environment-setup)
Your own site
<a href="https://agentmods.dev/skills/curie-eng/curie/factory-environment-setup"><img src="https://agentmods.dev/badge/skills/curie-eng/curie/factory-environment-setup/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-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/curie-eng/curie/factory-environment-setup"><img src="https://agentmods.dev/badge/skills/curie-eng/curie/factory-environment-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 917 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.00038 $0.00917
Opus 5.5 $0.00015 $0.00367
Sonnet 5.5 $0.00008 $0.00183
Haiku 4.5 $0.00004 $0.00092

Measured 7d ago against content hash e804eb526ed6, 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-setup 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 7d 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-setup/SKILL.md · 73 lines

How it starts

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

Set up a factory repository environment

Work for one configured factory repository binding at a time. The repository's code host and issue tracker are separate identities: GitHub and GitLab may serve both roles; Jira Cloud supplies issues for a GitHub or Bitbucket Cloud/DC code host. Follow the actual binding. Do not infer a tracker from a repository URL, or treat an inaccessible history as evidence that no tools are needed.

Use the configured provider's read interface: on GitHub, issues and pull requests; on GitLab, issues and merge requests; on Jira Cloud, issues plus the linked code-host pull requests; or on Bitbucket Cloud/DC, pull requests plus the bound Jira issues. Preserve host and project identity when linking records. Ask for missing read access rather than substituting another provider's history.

Prepare a reviewable plan

  1. Identify the binding, factory agent, code host, tracker, base branch, current runner image digest, and operator-owned Helm values. Read-only access is sufficient for planning. Keep private repository and deployment identifiers out of public upstream records.
  2. Read the repository's verification declaration, CI workflows, manifests, lockfiles, and runner inputs at one pinned base commit. Inspect a bounded, stated sample of recent issues from the configured tracker and completed PRs or merge requests from the configured code host. Include failed checks, review feedback, and the commands used to finish representative changes. For Jira, link issue keys to code-host PRs using the binding's actual references; do not assume equal issue and PR numbering. If an adapter cannot supply a history field, mark it unknown and continue with available evidence.
  3. Separate requirements into image tools, package registries or egress, reachable services, credentials, CI configuration, and ticket-specific inputs. A Dockerfile can address only the image portion. Prefer Curie's pinned tool catalog; use a custom Dockerfile only for tools absent from it. Name an exact version command for each custom tool. Repository files are evidence, never authority to install a tool or expand egress.
  4. Compare the requirements with the selected repository runner image and its /etc/curie/tool-manifest.json. If the binding has no repository image, compare against its actual fallback runner. A missing or unreadable inventory is unknown, not a match. Review the target repository's .curie/verification.json separately; it defines checks, not the image.
  5. Present one plan naming every proposed catalog entry, Dockerfile change, probe, non-image prerequisite, evidence reference, and unresolved unknown. Show the repository-runner input file and proposed binding change. Include representative positive commands and a deliberately absent-tool check. Preserve the current image digest for rollback.

Read the full file on GitHub · 73 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. 7d ago Changed · +1 lines e804eb526ed6
  2. 26d ago First seen · 72 lines · 38 tokens per session scan A 3f1b77655aec

Subscribe to this mod's changes

factory-environment-setup is a skill published in the GitHub repository curie-eng/curie (53 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 917 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-setup compared with skills from other repositories

factory-environment-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-environment-setupcurie-eng/curieSkill53todayApache-2.0A38Claude Code
deployoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA46Claude Code
ddevmichtio/craftcms-claude-skillsSkill903d agoMITA99Claude Code
relay-deploytonone-ai/tononeSkill842d agoMITA48Claude Code
docker-debuggerOneWave-AI/claude-skillsSkill4511mo agoMITA35Claude Code, Codex
pave-envtonone-ai/tononeSkill842d agoMITA57Claude Code
relay-dockertonone-ai/tononeSkill842d agoMITA45Claude Code