/auplc:configure-aup-learning-cloud-reposfrom auplc
Configures per-user Git repository cloning in AUP Learning Cloud, including private repo access via GitHub App or PAT, persistence rules, and troubleshooting failed clones.
Ships in auplc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Enable the runtime, per-user feature where a learner pastes a Git URL on the spawn form (or picks a private repo) and the Hub clones it into their home PVC via an init container. This is not how you publish a course to the catalog (that is develop-/configure-courses); it brings each user's own repo into their own workspace.
Edit a values overlay and re-apply. The token model, the persistence rules, and the GitHub App requirement are subtle and partly silent — read the gates below. Full details and troubleshooting are in reference.md.
aup-learning-cloud and a running (or about-to-deploy) Hub;
helm + kubectl or ./auplc-installer.hub.config.GitHubOAuthenticator + custom.githubOrgName).A repo URL is only cloned when both are true:
custom.gitClone is configured (at minimum the feature is on; private repos
need a token source).custom.resources.metadata.<key>.allowGitClone: true.If allowGitClone is false for the chosen resource, the Hub silently drops
the repo URL (it logs a warning but shows no user error). Always set both.
OAuth token (GitHub App) > defaultAccessToken > none (public only)
githubAppName — enables the repo picker + automatic per-repo OAuth token,
but only for GitHub-App users. No effect for auto-login/native users.defaultAccessToken — a bot PAT applied transparently to all users
(including auto-login); right for single-node/classroom shared private repos.
Helm base64s it into the jupyterhub-git-default-token secret.custom.gitClone and which
metadata.<key>.allowGitClone are already true.allowedProviders (defaults
github.com, gitlab.com, bitbucket.org) and maxCloneTimeout as needed.allowGitClone: true on each course/env
that should accept a user repo (configure-courses owns the rest of that
metadata block).custom.gitClone.githubAppName: "<app-slug>".custom.gitClone.defaultAccessToken: "<read-only PAT>" (keep
it out of tracked files — see Safety).defaultPersistence (default true; cloned
repos survive server stop, no auto-pull after first clone) and whether to let
users choose with allowPersistenceChoice.helm template … must succeed; then
./auplc-installer rt upgrade (single) or helm upgrade --install …
(multi).githubAppName) appears; launch with a repo and
confirm init-clone-repo succeeds and the repo lands under
/home/jovyan/<repo>.defaultAccessToken is a secret. It is base64'd into a K8s secret — never
commit it in a tracked values file. Scope the PAT read-only to the
specific repos to limit blast radius.preStop hook; the script refuses to touch a directory it didn't create and
refuses to replace a persistent clone for an ephemeral request. Don't flip
defaultPersistence casually on a class with in-progress work.helm upgrade restarts the Hub pod (brief login blip).Every custom.gitClone field, the init-container/token mechanics, the
persistence state machine, the allowGitClone gate, and troubleshooting:
reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Git, GitHub, Kubernetes, Helm
npx claudepluginhub amdresearch/aup-learning-cloud --plugin auplc13 skills in this plugin
/build-aup-learning-cloud-imagesGroup: Plan & deploy AUP Learning Cloud. Builds and publishes the AUP Learning Cloud Docker images — the Hub image and the CPU/GPU notebook and course images — with ./auplc-installer img build. Use when the user wants to build, rebuild, tag, or push AUPLC images, mentions img build / img pull, the dockerfiles/ directory, auplc-hub / auplc-base / auplc-default / auplc-cv / auplc-dl / auplc-llm / auplc-physim / code-cpu / code-gpu, a gfx-specific image tag, the GHCR registry, code-server VS Code extensions, or preparing images for an offline/registry deployment. Covers GPU-target tagging and pushing to a registry. Do not use to install or deploy a cluster (install-/deploy-aup-learning-cloud) or to edit the course catalog in values.yaml (configure-aup-learning-cloud-courses)./configure-aup-learning-cloud-authGroup: Maintain AUP Learning Cloud. Configures authentication for AUP Learning Cloud with custom.auth provider flags for auto-login, dummy, native, GitHub, or native plus GitHub. Covers GitHub App OAuth and team sync, native accounts, password policy, forced first-login change, and custom.adminUser bootstrap. Use for custom.auth, GitHubOAuthenticator, custom.githubOrgName, oauth_callback_url, allowed_organizations, jupyterhub-admin-credentials, login 404s, OAuth callback errors, or "Resource not accessible by integration". Do not use for resource-to-group mapping (configure-aup-learning-cloud-courses), bulk users (manage-aup-learning-cloud-users), or private-repo cloning (configure-aup-learning-cloud-repos)./configure-aup-learning-cloud-coursesGroup: Course & other editor. Edits the AUP Learning Cloud course catalog and access control in the JupyterHub values.yaml: course images, resource requirements, spawn-UI metadata, group ordering, GPU accelerator selectors, team-to-course mappings, and the quota knobs. Use when the user wants to add/remove a course or notebook environment, show/hide an option in the spawn picker, map a GitHub team or group to courses, set per-course CPU/memory/amd.com/gpu requirements, add or retune an accelerator (custom.accelerators), or configure quota (cpuRate, quotaRate, minimumToStart, refresh rules). Triggers include values.yaml, custom.resources.images, custom.teams.mapping, custom.accelerators, custom.quota, acceleratorKeys, launchMode. Do not use to build the images themselves (build-aup-learning-cloud-images) or to install a cluster (install-/deploy-aup-learning-cloud)./deploy-aup-learning-cloudGroup: Plan and deploy AUP Learning Cloud. Use when the user wants to install the multi-node JupyterHub-on-k3s platform on physical hardware through either PXE-diskless or SSH-preinstalled nodes. Do not use for the single-node ./auplc-installer flow, notebook image builds, or unrelated JupyterHub and k3s installations./develop-aup-learning-cloud-coursesGroup: Course & other editor. Authors a new learning toolkit for AUP Learning Cloud end to end: write the course notebooks under projects/<NAME>/, package them into a course Docker image (dockerfiles/Courses/<NAME>/ + a Makefile target on the ROCm GPU base), register the course in auplc_installer/catalog.py (COURSE_CATALOG + team mapping), then hand off to build + values wiring. Use when an educator wants to add a new course or lab set, create a toolkit like CV/DL/LLM/PhySim, turn a notebook folder into a spawnable course, add a Dockerfile/build.sh for a course, or add a course key to the catalog. Triggers include projects/CV, projects/DL, projects/LLM, projects/PhySim, dockerfiles/Courses, COURSE_CATALOG, "add a course", "new toolkit". Do not use to only build an existing image (build-aup-learning-cloud-images), to only edit the values catalog for an existing image (configure-aup-learning-cloud-courses), or to clone a user's repo at runtime (configure-aup-learning-cloud-repos)./expose-aup-learning-cloudGroup: Maintain AUP Learning Cloud. Configures how AUP Learning Cloud is exposed and stored for a real deployment: the proxy service type (NodePort vs LoadBalancer/ingress), ingress hostname and TLS, external-TLS handling (custom.security.publicScheme), CORS origins (custom.hub/notebook.allowedOrigins), and the shared NFS storage class for the Hub DB and user PVCs. Use when the user wants to put the Hub behind a domain, enable HTTPS/TLS/certificates, set up ingress, change the NodePort, move storage from local-path to NFS (nfs-client / nfs-subdir-external-provisioner), fix mixed-content / _xsrf cookie issues behind a reverse proxy, or allow embedding/CORS. Triggers include ingress.enabled, proxy.service.type, nodePorts.http, publicScheme, allowedOrigins, storageClassName, nfs-client, TLS, cert-manager. Do not use for the first cluster build (deploy-/install-aup-learning-cloud), the GitHub OAuth callback URL (configure-aup-learning-cloud-auth), or course/quota config (configure-aup-learning-cloud-courses).Other plugins' skills for the same job