tonyandrewmeyer/cantrip/publishing
Claude Code and agent skill by tonyandrewmeyer/cantrip
- community
Checking that the SKILL.md file is still in the repository.
Publishing charms to Charmhub (upload, release, channel management)
Install
npx vskill@latest install tonyandrewmeyer/cantrip/publishingSKILL.md
The same SKILL.md was published earlier as tonyandrewmeyer/cantrip/publishing.
Publishing to Charmhub
This skill covers the complete workflow for publishing a charm to Charmhub, from validation through upload and release.
Prerequisites
Before publishing, ensure:
- Validation passes — run
charm_validateto confirm unit tests pass and the charm packs successfully - README exists — run
generate_readmeto create a README.md from charm metadata - Charmhub registration — the charm name must be registered on Charmhub (
charmcraft register <name>) - Authentication —
charmcraft loginmust have been run in the environment
Upload Workflow
Step 1: Generate README
This reads charmcraft.yaml, WORKLOAD.md, and DESIGN.md to produce a structured README with usage, configuration, actions, and integrations sections.
Step 2: Pack the charm
This produces a .charm file ready for upload.
Step 3: Upload to Charmhub
Always confirm with the user before uploading. Show them:
- The charm file being uploaded
- The target Charmhub name
- Any previous revisions
The upload returns a revision number (e.g. Revision 42).
Step 4: Release to a channel
Always confirm with the user before releasing. Show them:
- The charm name and revision
- The target channel
- What channel the revision was previously in (if any)
Channel Strategy
Charmhub uses a track/risk channel system:
| Channel | Purpose | When to release | |
|---|---|---|---|
latest/edge | Development builds | After upload — default starting point | |
latest/beta | Feature-complete builds | After basic integration testing | |
latest/candidate | Release candidates | After full testing, before production | |
latest/stable | Production releases | After candidate validation |
Recommended workflow:
- Upload → release to
latest/edge - Test with
juju deploy <charm> --channel latest/edge - Promote to
latest/betaafter integration tests pass - Promote to
latest/candidateafter broader testing - Promote to
latest/stableafter user approval
To promote between channels, release the same revision to the next channel — no re-upload needed.
Resource Handling
For charms with OCI image resources:
- Upload the OCI image as a Charmhub resource
- Note the resource revision number
- Include resources when releasing:
resources=["oci-image:3"]
Versioning Best Practices
- Use meaningful commit messages — they appear in the Charmhub revision history
- Tag releases in git to match Charmhub revisions
- Document breaking changes in the README and charm description
- Keep
CHANGELOG.mdup to date for each release
Common Issues
- "not registered" — run
charmcraft register <name>first - "not logged in" — run
charmcraft login - "invalid charm" — ensure
charmcraft packsucceeds before uploading - Architectures — ensure the
.charmfile supports the required architectures (checkcharmcraft.yamlbases)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/cantrip/skills/publishing/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/publishing)