env-doctor

env-doctor is a skill for Claude Code from Prismer-AI/PrismerCloud. It costs 55 tokens per session (4,522 once invoked), scanned A, original, MIT.

A local-development environment diagnostic that checks the machine and separates setup failures from failures in the software being tested. It can safely start some missing environment components and create a fingerprint of the setup.

In plain words
What is it for?
Use it before an APC workflow step or when tests cannot run, to inspect environment checks, apply safe fixes, and record the machine's setup.
Why use it?
A broken tool, service, or dependency can make application tests fail even when the application is correct. Separating environment problems from product bugs avoids misdiagnosing the test result.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it before an APC workflow step or when tests cannot run, to inspect environment checks, apply safe fixes, and record the machine's setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prismer-ai/prismercloud/env-doctor
About the project

Prismer Cloud is an infrastructure layer for AI agents that provides shared learning, compressed context, persistent memory, collaboration, messaging, tasks, identity, and workspaces. It is for agents and the people building or using long-running agent systems that need information and outcomes to persist across sessions. The catalogue entries provide skills, hooks, agents, instructions, and a plugin for using Prismer Cloud.

Prismer-AI/PrismerCloud · 1,363 stars · on GitHub · prismer.cloud

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 Prismer-AI/PrismerCloud --skill env-doctor
Clone the repo
git clone --depth 1 https://github.com/Prismer-AI/PrismerCloud

Made for: Claude Code.

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 env-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/prismer-ai/prismercloud/env-doctor/github.svg)](https://agentmods.dev/skills/prismer-ai/prismercloud/env-doctor)
Your own site
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/env-doctor"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/env-doctor/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 env-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/env-doctor"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/env-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,522 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.00055 $0.04522
Opus 5.5 $0.00022 $0.01809
Sonnet 5.5 $0.00011 $0.00904
Haiku 4.5 $0.00006 $0.00452

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

Security

Grade A, and why

env-doctor 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 24d 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.

sdk/apc/skills/env-doctor/SKILL.md · 195 lines

How it starts

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

env-doctor

诊断本机开发环境,把环境故障与**被测代码红(SUT red)**彻底分域——这是 APC 一切循环步骤的地基(apc/06 环境脚手架 · apc/00 §3 不变量 5)。

什么时候用:任何 APC 循环步骤开工前;或 test-runner 报出 env_blocked、dispatch 失败、诊断"为什么这台机器跑不起来"时。

铁律:apc env doctor 判红是环境红,不是产品 bug。你的产出是一份逐项 pass/fail 的诊断 + 每个红项的故障域分类 + 可自动化项已拉起的证据。绝不把环境红说成"代码坏了"。

工具契约(先记死,签名以此为准)

命令形态(承重,别猜):apc 不在 PATH——它是 package.json 的 npm script(tsx sdk/apc/bin/apc.ts)。 在 agent 的 cwd(仓库根)里,一律用 npx tsx sdk/apc/bin/apc.ts <sub> 直接跑(stdout 是纯 JSON,不被 npm banner 污染)。下表用 apc 作简写,实跑请替换成 npx tsx sdk/apc/bin/apc.ts。

命令 作用 stdout 退出码
apc env doctor 只读跑完 env-manifest 四段,逐项 pass/fail + fix-hint 结构化 JSON(消费者契约) 0 全绿 · 78 env_blocked(存在环境红)
apc env up --safe [--dry-run] [--only=a,b] 幂等拉起可自动化的轻量项;--safe 下 heavy 步(colima / dev-stack / kind / npm ci / prisma / migrations)不自动跑,只归 manual[] 出 fix-hint JSON 报告 0 ok · 1 有步骤 failed
apc env fingerprint 环境指纹(机器等价性证明) JSON 指纹 0
  • apc env doctor 的 exit 78 是承重信息:它表示"存在环境红",不是崩溃。一项探针崩了也不塌全轮——doctor 逐项 try/catch,其它项照常给结论。
  • stdout 是纯 JSON,人读摘要走 stderr。解析结果一律从 stdout 的 JSON 取,不要从人读摘要正则抠。
  • dispatch 语境铁律(apc/11 §0.17 缺口1):你是被一次 dispatch 拉起跑诊断的,不是人坐在终端做环境自举。绝不跑不带 --safe 的 apc env up——它的 docker 步会 colima start(可耗时数分钟),在非交互 agent 环境里会 block 直到被 reaper abort,本次运行就白跑了。要拉起环境只用 apc env up --safe(heavy 步只出 fix-hint 不执行)。

Procedure

1. 诊断(doctor)

npx tsx sdk/apc/bin/apc.ts env doctor > /tmp/apc-doctor.json
echo "doctor exit=$?"

从 /tmp/apc-doctor.json 读结构化结果,真实 schema(字段名以此为准):

  • 顶层:{ envStatus, exitCode, summary:{pass,fail,skip,total}, failed:[<itemId>...], undetected:[<itemId>...], items:[...] }。
  • 每个 items[] 元素:{ item(id,如 "toolchain.node"), label, section(infra|toolchain|secrets), status(pass|fail|skip), detail, fixHint, strength }。
  • failed[] = 所有 status:fail 的 item id;undetected[] = 所有 status:skip 的 item id。

判据:summary.total == summary.pass + summary.fail + summary.skip == items.length——一项崩不塌全轮。

Read the full file on GitHub · 195 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 24d ago First seen · 195 lines · 55 tokens per session scan A 5796a4e2dfb0

Subscribe to this mod's changes

env-doctor is a skill published in the GitHub repository Prismer-AI/PrismerCloud (1,363 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 4,522 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-09-29.

Related

Other skills, from other repositories

recall

Recall this repository's OwnMem local memory before changing code, and keep it healthy. Use when a repository contains .ownmem/, when past debugging lessons could apply ("have we hit this before", "why is it done this way"), or when the user mentions ownmem, project memory, or recalling across sessions.

grpcer/ownmem · 66 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens

turbo-quant-memory

Install, configure, and operate the Turbo Quant Memory (tqmemory) MCP server. Use when setting up persistent agent memory in a workspace, registering the tqmemory MCP server in a client, or working with tqmemory tools (remembernote, semanticsearch, recentcontext, linkentities, secrets vault).

Lexus2016/turbo_quant_memory · 67 tokens

docmancer

Work from the same local memory as every other coding agent on this machine. Recall prior decisions, preferences, instructions, and project conventions that Claude Code, Codex, Cursor, and other agents wrote here, with cited sources, fully local. Also searches a separate local technical-documentation index.

docmancer/docmancer · 62 tokens

performing-container-image-hardening

This skill covers hardening container images by minimizing attack surface, removing unnecessary packages, implementing multi-stage builds, configuring non-root users, and applying CIS Docker Benchmark recommendations to produce secure production-ready images.

adriannoes/awesome-agentic-ai · 46 tokens

audit

Run a single specialist reviewer of your choice against the codebase: pick one review agent (security, performance, unused code, and so on), optionally scope it to a path, and get its findings in the terminal.

RashadAnsari/myagents · 45 tokens