Help a new contributor get productive on this checkout - inspect sync state against main, build, run the repository's exact verification gate, and produce a loc
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-contributor-onboarding-9c4445785708 ,按照其中的说明把「contributor-onboarding」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Requested by @JayBeest in issue #4227: a first-run path for a contributor who has cloned the repo and wants to know am I current, does it build, does it pass, and what changed while I was away — without a wall of prose and without anything touching their working tree behind their back.
Explicit-only. Loading this skill is not authority to fetch, pull, rebase, push, or write files. Every network or mutating step below is a separate action the contributor must ask for after reading the plan.
git fetch, git pull, git rebase, or git checkout on your
own initiative. Report state; propose the command; wait.Run these and report the results verbatim. Nothing here writes:
git rev-parse --abbrev-ref HEAD
git status --porcelain
git rev-list --left-right --count origin/main...HEAD
Report three facts plainly:
N behind, M ahead of origin/main, or unavailable when
origin/main is missing or has never been fetched. Unavailable is a real
answer — say it rather than guessing zero.If behind, print the exact commands and stop:
git fetch origin
git rebase origin/main # or: git merge origin/main
If the tree is dirty, do not propose a sync at all. Print a recovery plan first, in this order, and let the contributor choose:
git stash push -u -m "wip before sync" then sync, then git stash popcargo build --release -p codewhale-cli -p codewhale-tui
Report the exit status and the first error if it fails. A build failure ends the run: do not proceed to the gate and do not report gate results.
Run what CI runs, not a paraphrase of it:
cargo fmt --all -- --check
cargo clippy --workspace --all-features --locked -- \
-D warnings \
-A clippy::uninlined_format_args \
-A clippy::too_many_arguments \
-A clippy::unnecessary_map_or \
-A clippy::collapsible_if \
-A clippy::assertions_on_constants
cargo test --workspace
These are copied from .github/workflows/ci.yml. If that file changes, this
list is stale — read the workflow and say so rather than running a command CI
no longer uses.
Known suite papercut: run_verifiers_background_* is flaky under full-suite
parallelism and passes in isolation. Attribute it to the known flake, not to
the contributor's change.
Built only from files already on disk. No network, no model:
git log --oneline -n 20 origin/main
plus the topmost released section of CHANGELOG.md.
Rules:
origin/main is unavailable, digest HEAD instead and label it as such.Only after the gate has actually passed, and only if the contributor asks. Print the plan and require an explicit yes before running anything:
./target/release/codewhale exec --help
This is a provider-free smoke check: it exercises the built binary without
sending a request anywhere. Anything beyond it — an actual codewhale exec
turn — needs the contributor's own configured route and their explicit
go-ahead. Never select a provider for them and never fall back to a default
one.
End with a compact status table: branch, tree, sync, build, gate, digest,
dogfood. Use not run for anything skipped and unavailable for anything the
environment could not determine. Never write passed from inference.
Requested by @JayBeest (#4227). Preserve that attribution in the changelog entry and in the commit body of any change that lands from this skill.