用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/coreos/repo-templates --skill onboard-new-repo命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | onboard-new-repo |
| description | Add a new downstream repo to config.yaml so it can receive repo-templates |
config.yamlconfig.yaml in alphabetical order under repos:enroll-repo-in-template)makecoreos org by convention)# Interactive mode
/onboard-new-repo
# Specify repo name and URL
/onboard-new-repo --name my-project --url https://github.com/coreos/my-project
# Specify type for automatic var population
/onboard-new-repo --name my-project --url https://github.com/coreos/my-project --type rust-crate
If the user did not provide arguments, ask for:
config.yaml (e.g., chunkah, afterburn). By convention this matches the GitHub repo name.https://github.com/coreos/chunkah). Almost always https://github.com/coreos/<name>.Check repo is not already registered:
Read config.yaml and verify the repo name does not already appear under repos:.
If the repo already exists, inform the user and stop. Suggest using enroll-repo-in-template instead if they want to enable templates for it.
Read config.yaml to understand the existing patterns. Ask the user what type of project this is, which determines which vars are needed:
Minimal (e.g., chunkah, toolbox, fedora-coreos-pipeline):
repo-name:
url: https://github.com/coreos/repo-name
vars:
git_repo: repo-name
Go project with packaging (e.g., butane, ignition):
repo-name:
url: https://github.com/coreos/repo-name
vars:
git_repo: repo-name
fedora_package: repo-name
pretty_name: Repo Name
# Optional:
rhaos_package: repo-name
rhel9_package: repo-name
rhel10_package: repo-name
Rust crate (e.g., afterburn, zincati):
repo-name:
url: https://github.com/coreos/repo-name
vars:
git_repo: repo-name
crate: repo-name
fedora_package: rust-repo-name
pretty_name: Repo Name
# Optional:
library_crate: true # if it's a library, not a binary
rhel9_package: rust-repo-name
rhel10_package: rust-repo-name
Container project (e.g., 11bot, rhcosbot):
repo-name:
url: https://github.com/coreos/repo-name
vars:
container_arches: [amd64] # or [amd64, arm64]
containers: [quay.io/coreos/repo-name]
# Plus any of the above vars as needed
Common vars reference (all optional, add as needed):
| Var | Description | Example |
|---|---|---|
git_repo | Repo name, used in templates for URLs and paths | afterburn |
crate | Rust crate name on crates.io | afterburn |
library_crate | Set true for library crates (affects release checklist) | true |
fedora_package | Fedora package name | rust-afterburn |
rhaos_package | RHAOS package name | butane |
rhel9_package | RHEL 9 / CentOS Stream 9 package name | rust-afterburn |
rhel10_package | RHEL 10 / CentOS Stream 10 package name | rust-afterburn |
pretty_name | Human-readable name for release checklists | Afterburn |
containers | List of container image URLs | [quay.io/coreos/afterburn] |
container_arches | Architectures to build containers for | [amd64, arm64] |
container_file | Custom Dockerfile path (default: Dockerfile) | dist/Dockerfile |
container_needs_git_tags | Whether container build needs full git tags | true |
quay_repo | Quay.io repo path for release tagging | coreos/butane |
quay_legacy_repos | Legacy Quay repos that also need release tags | [coreos/fcct] |
Add the new repo block to config.yaml under repos: in alphabetical order by repo name.
Formatting rules:
url: and vars:chunkah comes after cap-std-ext, before console-login-helper-messages)Use the Edit tool to insert the new block at the correct alphabetical position. Find the repo entry that should come immediately AFTER the new one, and insert before it.
Build and render to verify:
cd tmpl8 && cargo build
make output
Since the new repo has no templates enrolled yet, this should succeed without producing any output files for it. The key thing is that it doesn't break rendering for other repos.
After onboarding, tell the user:
dependabot, gemini/configgo/tests, go/release-checklist, go/tag_release, go/signing-ticketrust/tests, rust/release-checklistcontainer/container, container/container-rebuildshellcheckenroll-repo-in-template skill to enable templates chunkah:
url: https://github.com/coreos/chunkah
vars:
git_repo: chunkah
Reference: commit 20419ce
ignition-config-rs:
url: https://github.com/coreos/ignition-config-rs
vars:
git_repo: ignition-config-rs
crate: ignition-config
library_crate: true
fedora_package: rust-ignition-config
butane:
url: https://github.com/coreos/ignition
vars:
container_needs_git_tags: true
containers: [quay.io/coreos/butane, quay.io/coreos/fcct]
git_repo: butane
repo_subdirectory: butane
tag_prefix: butane/
quay_repo: coreos/butane
quay_legacy_repos: [coreos/fcct]
fedora_package: butane
rhaos_package: butane
rhel9_package: butane
rhel10_package: butane
pretty_name: Butane
vendored_ignition_note: true
enroll-repo-in-template for that)20419ce - Add chunkah (minimal repo + gemini enrollment)99d808f - Add fedora-coreos-pipeline (minimal repo)d21ed2f - Add rhel-coreos-config (minimal repo + shellcheck enrollment)075b5e5 - Add coreos-assembler & rpm-ostree (two minimal repos at once)config.yaml - Central registry with all existing repos as referenceenroll-repo-in-template - Enable templates after onboarding