plastic-doctor

plastic-doctor is a skill for Claude Code from zalom/plastic. It costs 29 tokens per session (3,142 once invoked), scanned A, original, MIT.

A health-check skill for diagnosing whether Plastic is installed and working correctly. It checks different scopes, such as core setup, stored work data, or the complete installation.

In plain words
What is it for?
Use it after updates, when something seems broken, or when you need installation findings and repair options.
Why use it?
It shows whether a problem comes from the main installation, project stores, hooks, files, or configuration.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

Part of the plastic plugin — 47 skills, 10 agents, 5 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/zalom/plastic/doctor
Any agent
npx skills add zalom/plastic --skill doctor
Clone the repo
git clone --depth 1 https://github.com/zalom/plastic

Made for: Claude Code.

Or install plastic, the plugin that ships this one along with the rest of its 47 skills, 10 agents, 5 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/zalom/plastic/doctor.svg)](https://agentmods.dev/skills/zalom/plastic/doctor)
Your own site
<a href="https://agentmods.dev/skills/zalom/plastic/doctor"><img src="https://agentmods.dev/badge/skills/zalom/plastic/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00029 $0.03142
Opus 5 $0.00015 $0.01571
Sonnet 5 $0.00006 $0.00628
Haiku 4.5 $0.00003 $0.00314

Measured 6d ago against content hash 5fae56d8eb39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

plastic-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 6d 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.

skills/doctor/SKILL.md · 253 lines

How it starts

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

Doctor: Plastic Health Check

Scopes

Doctor has three scopes. Pick the right one for the situation:

Scope Flag When it runs States
Core check --core SessionStart hook (automatic), also available on demand Binary: pass or error
Store check --store [global|<slug>] Dashboard load, plastic-project-continuing Three-state: pass / warn / fail
Full check (no flag) After every update (automatic), or /plastic-doctor Three-state: pass / warn / fail

--core (binary, operational-readiness only)

Checks ONLY that Plastic is loaded and ready for work: agent registration (skills, subagents, hooks/harnesses present and registered), core files (manifest-backed presence/hash checks, excluding agent_model_drift, which is a non-boot config-honoring check, never run at core), manifest sync (global + agent manifest SHA256), every registered project's path resolving to a real, existing directory, and the global store being reachable (INDEX.md present; no orphan/ghost content scanning). Result is binary: exit 0 on pass, non-zero on error. It never produces warnings, and it never scans store content.

It checks two install manifests as part of core files and manifest sync:

  • ~/.plastic/manifest.json (global manifest, covers PLASTIC.md and global scripts)
  • ~/.claude/plastic/manifest.json (agent-side manifest, covers agent scripts and hooks)

Each manifest maps a file path to its SHA256.

On failure, the report states this guided route, in order:

  1. Offer fixes in the /plastic-doctor conversation (the Fix all / Select individually / Skip router from Steps 4-5 below); doctor itself only reports, and each chosen repair is dispatched to the maintenance tool or skill that owns it.
  2. If that does not resolve it, roll back to the last known-good version via plastic-rollback (restores from the local, append-only versions.json ledger of versions actually run).
  3. Optionally report the issue via the feedback command (scripts/feedback-report, backing the plastic-feedback skill), which composes a local report plus a prefilled GitHub issue URL and never holds a credential or contacts GitHub directly.

Read the full file on GitHub · 253 lines

Files

What ships with it

2 files 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. 6d ago First seen · 253 lines · 29 tokens per session scan A 5fae56d8eb39

Subscribe to this mod's changes

plastic-doctor is a skill published in the GitHub repository zalom/plastic (10 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 3,142 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

agenttrace-session-audit

Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.

sickn33/agentic-awesome-skills · 34 tokens

systematic-debugging

Skill "systematic-debugging" from jnMetaCode/superpowers-zh, covering 系统化调试, 概述, 铁律, 何时使用 and 四个阶段.

jnMetaCode/superpowers-zh · 24 tokens

investigate

Systematic debugging with root cause investigation. Four phases: investigate, analyze, hypothesize, implement. Iron Law: no fixes without root cause. Use when asked to "debug this", "fix this bug", "why is this broken", "investigate this error", or "root cause analysis". Proactively invoke this skill (do NOT debug…

GCWing/BitFun · 112 tokens

hns-lsel-curator

Local Self-Evolution Loop (LSEL) curator — the CLUSTER + drain engine for the GOOS-local PROPOSE→APPLY seam closure (SPEC-LSEL-LOCAL-EVOLUTION-001). Companion-offset drain of .moai/lessons-inbox.jsonl with a drain-side severity filter that drops the 65% Bash-timeout/sandbox noise, eventkey clustering with a frequency…

modu-ai/moai-adk · 135 tokens

anti-entropy-governance

Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth boundaries; identify opportunities automatically; destructive execution requires explicit confirmation.

GanyuanRan/Aegis · 42 tokens

agent-debug-fixer

中文调试修复技能。用于报错、测试失败、页面异常、功能不符合预期、需要定位根因并做最小修复时。触发语包括"进入调试模式""帮我修问题""报错了""测试失败""页面坏了""找根因"。.

hashgraph-online/awesome-codex-plugins · 71 tokens