Sveltos + ConfigHub AI Partner Kit (Opt-In sveltosctl ai setup Prototype)
Unlike upstream CNCF Flux or Argo CD, Sveltos already has a working cub sveltos integration (confighub/sveltos-confighub) and a single maintainer team, making an explicit, opt-in AI setup or co-launched Sveltos community edition practical today.
This folder is a working prototype you can run as-is or adapt directly into a subcommand such as sveltosctl ai setup.
Why opt-in instead of silent bundling
- Installing
sveltosctlnever touches~/.claude/or~/.codex/behind a user's back. - Operators who want AI assistance explicitly opt in (either by running
./sveltos-ai-setup.sh/sveltosctl ai setupin their fleet repo, or by cloning a Sveltos fleet starter repo). - Everything written is project-scoped, inspectable in Git, and reversible with
--undo.
What is in this folder
| File | What it does |
|---|---|
sveltos-ai-setup.sh | Working opt-in CLI prototype (--dry-run, --client claude|codex|both, --install-plugins, --undo). Checks installed tools, writes project-scoped AI config, and prints exact next steps and undo commands. |
.claude/settings.json | Declares the confighub plugin marketplace and enables confighub@confighub at repo scope so Claude Code prompts once to enable it. |
AGENTS.md | Repo-level instructions defining Sveltos vs. ConfigHub ownership and forbidding agents from applying live ClusterProfiles or running apply.sh/handover.sh unreviewed. |
skills/sveltos-with-confighub/SKILL.md | Reusable skill combining sveltosctl, cub sveltos plan / apply / status, cub config check, and ConfigHub change history. |
Try the prototype (dry-run first)
chmod +x sveltos-ai-setup.sh
# Preview what would be written in your fleet repo without touching anything:
./sveltos-ai-setup.sh --dir /path/to/your-sveltos-fleet --dry-run
# Apply project-scoped setup for Claude Code (or --client codex / --client both):
./sveltos-ai-setup.sh --dir /path/to/your-sveltos-fleet --client claude
# Undo cleanly at any time:
./sveltos-ai-setup.sh --undo --dir /path/to/your-sveltos-fleetFor Sveltos maintainers: two ways to ship this together
- Opt-in
sveltosctl ai setupcommand: Embed the same project-scoped writer (AGENTS.md,.claude/settings.json, andsveltos-with-confighub/SKILL.md) behind an explicitsveltosctl ai setupsubcommand with--dry-runand--undo. - Co-launched Sveltos edition of the ConfigHub plugin: Publish a Sveltos-focused marketplace entry or starter pack pointing to
sveltos-with-confighub,cub sveltos plan, and the Workshop Sveltos onboarding guide, starting 100% read-only and offline before any live cluster handover.
Related guides
- Walkthrough (AI + Sveltos partner kit):
examples/walkthroughs/starter-sveltos-ai.md - Live Sveltos onboarding guide:
bring-sveltos-into-confighub.html - Sveltos ConfigHub plugin repo:
confighub/sveltos-confighub