Repository navigation
feat(skills): add openyurt-raven, raven-topology, and yurthub-autonomy skills - #2592
Aryanbhargava18 wants to merge 1 commit into
Conversation
|
Hey @rambohe-ch @zyjhtangtang @luc99hen! I saw Issue #2559 on the CNCF Mentoring board. Since I heavily utilize Markdown-based AI coding assistants in my day-to-day Kubernetes workflows, I wanted to proactively lay out the foundational architecture for the OpenYurt skills before the application period officially opens. I read through the issue discussion thread and noted the team's strong preference for a modular, maintainable folder structure (keeping the entrypoint short and moving detailed logic to reference files). I've implemented exactly that architecture here for both the deploy and raven skills. Key Technical Implementations in this Draft:
I opened this as a Draft PR so we can iterate on the structure. Let me know your thoughts on the modular references approach! |
There was a problem hiding this comment.
Thanks for putting this together — the modular SKILL.md + references/ split looks good.
I checked this against current source and noticed two correctness issues that seem worth aligning before merge:
- The conversion condition is
YurtNodeConversionFailed, and success can’t be checked as just “absent or False” becauseConvertingis alsoFalse. node.openyurt.io/autonomy-durationis currently an annotation, not a node label.
Optional follow-up: the Raven Gateway example may also need a pass against the current v1beta1 schema.
Could we align these with current source behavior?
|
Thanks for pointing those out @ADITYA-CODE-SOURCE. Good catches on the controller contract and the annotation semantics. I've pushed a commit addressing them:
|
|
Good catch @ADITYA-CODE-SOURCE. Since I just pushed a commit that updates the Thanks again for reviewing! |
|
update: went through the latest |
|
update: pushed a commit that embeds autonomous execution scripts directly into the markdown to replace manual instructions.
leaving this here for review when bandwidth allows. |
In typical edge computing environments (which OpenYurt targets), edge nodes are located in remote NodePools behind firewalls or NATs. This means the operator's workstation running Claude Code will not have direct SSH routing to the edge nodes. Additionally, passing SSH credentials to an AI assistant raises security/compliance concerns. Instead of SSH, we can perform this preflight check in a Kubernetes-native way:
This keeps the security boundary strictly within |
|
Hi @Aryanbhargava18, It is great to see the pivot in Step 1.5 to use a Kubernetes-native preflight Job! However, looking at the rest of the updated files, the dependency on SSH is still prevalent in several critical sections, which means
If the user's workstation cannot SSH into edge nodes due to firewalls or NAT, all of these troubleshooting and uninstall steps will fail when Claude attempts to run them. To make this base framework production-grade, we should replace these remaining SSH instructions:
This will allow us to safely strip |
9811827 to
85e3b2d
Compare
|
@Suyog241005 You are absolutely right—relying on SSH from a workstation to a remote edge node behind NAT breaks the OpenYurt cloud-edge tunnel model. Expanding the AI's footprint with SSH credentials is an unnecessary risk. Great architectural catch. I just pushed a two-part fix replacing the SSH approach with exactly what you suggested: lightweight, ephemeral Kubernetes Jobs and DaemonSets pinned to the target node. Commit 208f129: Replaced the Preflight SSH check with a native Job that verifies the crictl binary and CRI sockets via host mounts. The security boundary is now strictly contained to kubectl and helm. ssh has been completely stripped from allowed-tools across the entire codebase. Thank you again for the incredibly sharp review on the edge networking constraints, @Suyog241005. It made the architecture significantly stronger. |
|
Hi @Aryanbhargava18, This is a fantastic update! I just reviewed the latest changes. The transition to Kubernetes-native verification Jobs, the use of a privileged cleanup DaemonSet for host manifests, and the complete elimination of Removing Since this base framework is now in a solid, merge-ready state, I would love to collaborate on the next phase. I can take ownership of implementing the Let me know what you think is the best way to split the remaining scope! |
|
@Suyog241005 Thanks for the thorough review — the push toward a fully Kubernetes-native execution boundary genuinely strengthened this framework. Regarding collaboration: since this PR establishes the core deploy/raven foundation, my focus is on getting it reviewed and aligned with the maintainers first. For the service topology skill, I'd recommend opening a separate PR and adopting the same SKILL.md + references/ architecture and kubectl/helm-only allowed-tools constraints we solidified here — that way the skills stay consistent across the repo. Happy to review your execution models once you have something drafted. |
b7946c8 to
e9822a9
Compare
|
@zyjhtangtang Thanks for getting the webhook fix merged! I've just rebased this architecture PR on top of latest master so it includes those new NodeSelector rules. The deployment workflows are fully unblocked and ready for your final review whenever you have the bandwidth. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2592 +/- ##
=======================================
Coverage 47.20% 47.20%
=======================================
Files 405 405
Lines 27685 27685
=======================================
+ Hits 13068 13069 +1
+ Misses 13440 13438 -2
- Partials 1177 1178 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
37605ce to
d013ddb
Compare
|
update: flushed out the logic for the two core skills:
architecture is stable. |
47274fd to
1cc7161
Compare
|
hey @Aryanbhargava18 i was checking issue 2559 and came here to review the new .claude/skills structure. noticed two things:
can you remove the unnecessary commits so we can cleanly review the preflight logic 😊. |
1cc7161 to
944f949
Compare
|
Thanks for catching that, @alokkumardalei-wq! Good eye.
Let me know if you spot anything else during your review! |
|
@Suyog241005 ssh dependencies have been fully replaced with k8s-native jobs. feel free to resolve the requested changes to unblock the checks. architecture is stable and ready. |
944f949 to
9624edc
Compare
|
|
Updated |
…y skills Signed-off-by: Aryanbhargava18 <aryanbhargava644@gmail.com>
2e486fd to
da105f9
Compare
|
Rebased onto
|
|
|
Resolved the review threads now that the rebase onto @Suyog241005 @ADITYA-CODE-SOURCE could you take another look and re-review when you have a moment to clear the change request? Thanks! |



What type of PR is this?
/kind documentation
/sig ai
What this PR does / why we need it:
Adds the follow-up Claude Code skills planned in
.claude/skills/README.mdon top of #2844 (openyurt-deploy):openyurt-raven(.claude/skills/openyurt-raven/): Configures Raven cross-NodePool L3 VPN tunneling and L7 proxying via theopenyurtio/ravenraven-agentchart (DaemonSet/raven-agent-ds,Secret/raven-agent-secret,ConfigMap/raven-cfg) andGateway(raven.openyurt.io/v1beta1) CRs, includingSetDefaultsGatewayalignment, non-SSH ephemeral Job checks (busybox:1.36.1), and in-memory cross-NodePool connectivity verification.raven-topology(.claude/skills/raven-topology/): Read-only diagnostic workflow forkube-system/raven-cfg,Gatewayactive endpoint election inyurt-manager,raven-agent-ds(app=raven-agent),x-raven-proxy-internal-svc, andedge-tunnel-nodes.yurthub-autonomy(.claude/skills/yurthub-autonomy/): Read-only diagnostic workflow fornode.openyurt.io/autonomy-duration,PodBindingControllerpod toleration rewrites, deprecatednode.beta.openyurt.io/autonomy, and YurtHub disk cache paths (/etc/kubernetes/cache/,/var/lib/yurthub).Updates
.claude/skills/README.mdto index all three skills and removeopenyurt-ravenfrom the pending list. All code, chart, and build-script changes from earlier iterations were dropped so this PR touches only.claude/skills/.Which issue(s) this PR fixes:
Part of #2559
Special notes for your reviewer:
Rebased cleanly onto
master(#2844and#2675already merged). Verified every referenced annotation, ConfigMap/Secret name, DaemonSet/label, andv1beta1.Gatewayfield against OpenYurtmasterandopenyurtio/ravencharts/raven-agent.Does this PR introduce a user-facing change?