tonyandrewmeyer/cantrip/juju-doctor
Claude Code and agent skill by tonyandrewmeyer/cantrip
- community
Checking that the SKILL.md file is still in the repository.
Probe-based deployment validation with juju-doctor — scriptlet probes, rulesets, live and offline (sosreport) checks
Install
npx vskill@latest install tonyandrewmeyer/cantrip/juju-doctorSKILL.md
The same SKILL.md was published earlier as tonyandrewmeyer/cantrip/juju-doctor.
juju-doctor
Probe-based diagnostic tool for validating Juju deployments. juju-doctor closes a gap collect-status / update-status / Pebble checks don't: a single tool that asserts deployment-wide invariants, runs against a live model or static sosreport artefacts, and composes simple probes into solution-level rulesets.
Adapted from thejuju-doctorskill intonyandrewmeyer/charming-with-claude, CC BY 4.0 (Tony Meyer, 2025).Reformatted for cantrip's bundled-skill frontmatter; contentotherwise unchanged. See Provenance at the foot of this skill forthe source link.
Installation
Development install:
Core concepts
Artefacts
juju-doctor operates on three types of Juju artefacts:
| Artefact | Source command | Description | |
|---|---|---|---|
| status | juju status --format=yaml | Unit status, application status, machine info | |
| bundle | juju export-bundle | Deployed bundle configuration | |
| show-unit | juju show-unit --format=yaml | Detailed unit information |
Probe types
Scriptlet probes (Python) — functions named after artefact types that receive data indexed by model name:
Ruleset probes (YAML) — declarative files that coordinate multiple probes:
Core workflows
Live models
Static artefacts (offline)
Remote probes from GitHub
Output
Schema inspection
Writing probes
Scriptlet probe structure
Rules:
- Function names must match artefact types:
status,bundle,show_unit. - Each function receives a
dict[str, dict]indexed by model name. - Raise an
Exceptionto signal failure (message becomes the error output). - Return normally (or return
None) to signal success. - A single probe file can contain multiple artefact functions.
Common patterns
All units active / idle
Required relations exist
Bundle has expected apps and unit counts
Catch blocked / error status
Project organisation
Best practices
Writing probes
- One concern per probe — keep probes focused on a single validation.
- Descriptive error messages — include the model name, unit name, and what went wrong.
- Handle missing data gracefully — use
.get()with defaults; not all fields are always present. - Use rulesets to compose — combine simple probes into comprehensive checks rather than writing monolithic ones.
- Test offline first — capture artefacts with
juju status --format=yamland validate against those before running against live models.
Organising probes
- Version-control with the charm — store alongside the charm they validate.
- Use rulesets for solutions — when multiple charms form a solution, create a ruleset that validates the whole deployment.
- Share via GitHub — use
github://URLs in rulesets for reusable probes. - Document expected state — comment probes to explain what "healthy" means.
Support workflows
- Collect artefacts from sosreport — extract
juju statusandjuju export-bundleoutput. - Run probes offline —
juju-doctor check --status status.yaml --bundle bundle.yaml. - Share results —
--format jsonis the machine-readable surface. - Encode deployment requirements as probes — solution-specific rulesets for repeatable validation.
Troubleshooting
juju-doctor not found
Probe fails to load
- Check the URL format:
file://path/to/probe.py(relative to working directory). - Verify the Python file has valid syntax.
- Ensure function names match artefact types (
status,bundle,show_unit).
Live model connection issues
Unexpected results
Command reference
Resources
- juju-doctor on GitHub: <https://github.com/canonical/juju-doctor>
- juju-doctor on PyPI: <https://pypi.org/project/juju-doctor>
- Discourse: <https://discourse.charmhub.io/t/juju-doctor-why-does-juju-need-it/17748>
Key reminders
- Probes raise
Exceptionto signal failure, return normally for success. - Use
file://URLs for local probes,github://for remote ones. - Always test probes offline with captured artefacts before running live.
- Compose simple probes into rulesets rather than writing monolithic validators.
Provenance
Adapted from the `juju-doctor` skill in `tonyandrewmeyer/charming-with-claude`, CC BY 4.0 (Tony Meyer, 2025). Content reformatted for cantrip's bundled-skill frontmatter; otherwise unchanged.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/cantrip/skills/juju-doctor/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tonyandrewmeyer/cantrip/juju-doctor)