Repository navigation
feat: workspace release and ci skills with cross-repo linking - #20
Conversation
Codifies the release runbook (version-bump PR, tag from fresh main, watch CI, verify assets and latest.json, recovery paths) and a CI driver skill as agent skills, canonical in this repo. link-workspace-skills.sh symlinks them into the workspace root and every sibling repo, excluded from git via .git/info/exclude; .claude/skills here is a relative symlink to skills/. Refs #18
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9b5c7ca34
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ln -sfn "$repo_dir/skills/$name" "$link" | ||
| echo "linked $link" | ||
| done | ||
| if [[ -d "$target/.git" ]]; then |
There was a problem hiding this comment.
Handle worktree checkouts when excluding links
When a sibling checkout is a Git worktree or submodule, $target/.git is a file rather than a directory. The sibling filter still processes those directories because it checks -e "$sibling/.git", but this -d guard skips writing the exclude patterns, so running the setup leaves the newly created .claude/skills/<name> and .agents/skills/<name> links as untracked files in that checkout. Resolve the exclude path through Git, e.g. git -C "$target" rev-parse --git-path info/exclude, or handle .git files here too.
Useful? React with 👍 / 👎.
| bun run pickforge-tauri-release generate-latest-json \ | ||
| --assets-dir release-assets --version X.Y.Z \ | ||
| --download-base-url "https://github.com/pickforge/<app>/releases/download/vX.Y.Z" \ | ||
| --out latest.json |
There was a problem hiding this comment.
Pass the app release config when regenerating feeds
For any app whose config is not pickforge.release.json (the runbook itself describes <app>.release.json, e.g. pickscribe/pickgauge/picklab), this recovery command invokes generate-latest-json without --config, so the CLI falls back to its default pickforge.release.json in packages/tauri-release/src/cli.ts. In those release recoveries the command either fails before producing latest.json or verifies against the wrong app settings such as updater.requiredPlatforms; include --config <app>.release.json in this command block.
Useful? React with 👍 / 👎.
| If `latest.json` needs repair, regenerate locally and re-upload: | ||
|
|
||
| ```bash | ||
| gh release download vX.Y.Z --dir release-assets --pattern '*' |
There was a problem hiding this comment.
Clean release-assets before regenerating latest.json
When release-assets already exists from an earlier recovery or local collect, this download writes into that directory but nothing removes files that are no longer attached to the draft. generate-latest-json scans every .sig under --assets-dir, so stale same-version or versionless artifacts can be included in the repaired latest.json and produce updater URLs for assets that are not actually in the release. Remove/recreate release-assets before this download.
Useful? React with 👍 / 👎.
| - Every platform present: AppImage/deb/rpm + `.sig`, msi/exe + `.sig`, dmg, | ||
| `.app.tar.gz` + `.sig`. |
There was a problem hiding this comment.
Verify assets from the app config
For apps whose <app>.release.json does not collect the full desktop matrix (the repo's examples/pickscribe.release.json only lists AppImage/deb), this hard-coded checklist makes agents treat valid draft releases as incomplete or wait for CI assets that will never be produced. The release instructions should compare the draft against the app's configured collect patterns/required platforms instead of requiring every platform here.
Useful? React with 👍 / 👎.
| link_into "$workspace" "$name" | ||
| for sibling in "$workspace"/*/; do | ||
| sibling="${sibling%/}" | ||
| [[ "$sibling" == "$repo_dir" ]] && continue |
There was a problem hiding this comment.
Link this repo for .agents skill discovery
The script skips repo_dir, and the commit only adds .claude/skills for this repo, so running the documented setup never creates .agents/skills under pickforge-platform itself. In environments that discover repo-local skills from .agents/skills (the path this script creates for every sibling), sessions started in this repo still will not see the shared runbooks even though the README says each repo needs its own link.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9b5c7ca34
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ln -sfn "$repo_dir/skills/$name" "$link" | ||
| echo "linked $link" | ||
| done | ||
| if [[ -d "$target/.git" ]]; then |
There was a problem hiding this comment.
Handle Git worktrees when excluding skill links
When a sibling repo is a Git worktree, .git is a file rather than a directory. The caller still selects it because it checks -e "$sibling/.git", so the script creates the .claude/skills/* and .agents/skills/* symlinks, but this -d guard skips writing ignore patterns and leaves those paths as untracked changes after the script runs. Resolve the exclude path through Git, e.g. git -C "$target" rev-parse --git-path info/exclude, or otherwise handle .git files so worktree-based checkouts stay clean.
Useful? React with 👍 / 👎.
|
|
||
| ```bash | ||
| gh release download vX.Y.Z --dir release-assets --pattern '*' | ||
| bun run pickforge-tauri-release generate-latest-json \ |
There was a problem hiding this comment.
Pass the app release config when regenerating latest.json
For apps whose config is not named pickforge.release.json, this repair command fails before writing latest.json because the CLI default is pickforge.release.json unless --config is supplied (packages/tauri-release/src/cli.ts, generate). The runbook is explicitly for <app>.release.json configs, so a PickScribe/PickGauge recovery would break at the point it is supposed to repair the updater feed; include --config <app>.release.json in the command.
Useful? React with 👍 / 👎.
| - Every platform present: AppImage/deb/rpm + `.sig`, msi/exe + `.sig`, dmg, | ||
| `.app.tar.gz` + `.sig`. |
There was a problem hiding this comment.
Derive required assets from the app config
This hard-coded full matrix treats missing rpm/Windows/macOS artifacts as a release failure for every app, but the checked-in PickScribe release config only collects AppImage/deb and only requires linux-x86_64 (examples/pickscribe.release.json). In that app's release, following this step would reject a valid draft or delay the release looking for assets CI never produces; base the checklist on <app>.release.json instead.
Useful? React with 👍 / 👎.
| If `latest.json` needs repair, regenerate locally and re-upload: | ||
|
|
||
| ```bash | ||
| gh release download vX.Y.Z --dir release-assets --pattern '*' |
There was a problem hiding this comment.
Use a clean directory when repairing latest.json
This repair flow reuses release-assets without clearing it, while generateLatestJsonReport scans every .sig in the supplied assets directory. If a previous repair or release left stale local assets there—especially unversioned .app.tar.gz files that the stale-version filter cannot exclude—the regenerated feed can select files that are not actually in the vX.Y.Z draft and publish broken updater URLs; download into a fresh temp directory or remove release-assets first.
Useful? React with 👍 / 👎.
generate-latest-json recovery now passes --config <app>.release.json and clears release-assets first; the verify checklist derives expected assets from the app config instead of a fixed matrix; exclude paths resolve via git rev-parse --git-path so worktree checkouts stay clean; this repo gets a committed .agents/skills symlink too.
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Adds shared agent runbooks, canonical in this repo under
skills/:pull --ff-onlymain, watchrelease.yml, verify draft assets andlatest.jsonplatform URLs, recovery viagenerate-latest-json+--clobber, known transients (linuxdeploy 429). Human publish gate stays explicit.gh pr checks --watch,gh run watch,gh workflow run), rerun-transient guidance, local preflight rules. CI remains the trust anchor; skills drive it, never replace it.scripts/link-workspace-skills.shsymlinks the skills into the workspace root and every sibling repo (.claude/skills/+.agents/skills/), keeping links out of git via.git/info/exclude. This repo's own.claude/skillsis a relative symlink toskills/.Tested:
pickforge/sees both skills (this failed before per-repo links — skill discovery does not traverse parent directories, which is why the script links every repo).Not tested yet: the release runbook against a real tagged release (next release is the e2e proof).
Not release-note-worthy for any app; no
docs/releases/UNRELEASED.mdin this repo.Closes #18
Part of the agent-DX batch: #19