Skip to content

feat: workspace release and ci skills with cross-repo linking - #20

Merged
ElbertePlinio merged 2 commits into
mainfrom
feat/workspace-skills
Jul 9, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
feat/workspace-skills

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Adds shared agent runbooks, canonical in this repo under skills/:

  • release — the full app-release runbook: version-bump PR (per-file staging, all four version locations), tag only from a fresh pull --ff-only main, watch release.yml, verify draft assets and latest.json platform URLs, recovery via generate-latest-json + --clobber, known transients (linuxdeploy 429). Human publish gate stays explicit.
  • ci — drive/watch GitHub CI (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.sh symlinks 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/skills is a relative symlink to skills/.

Tested:

  • Link script ran against the real workspace; idempotent on rerun.
  • Skill discovery validated with headless sessions: workspace root sees both skills; a session inside 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.md in this repo.

Closes #18
Part of the agent-DX batch: #19

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
@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/link-workspace-skills.sh Outdated
ln -sfn "$repo_dir/skills/$name" "$link"
echo "linked $link"
done
if [[ -d "$target/.git" ]]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 Badge 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 👍 / 👎.

Comment thread skills/release/SKILL.md
Comment on lines +64 to +67
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread skills/release/SKILL.md
If `latest.json` needs repair, regenerate locally and re-upload:

```bash
gh release download vX.Y.Z --dir release-assets --pattern '*'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread skills/release/SKILL.md Outdated
Comment on lines +52 to +53
- Every platform present: AppImage/deb/rpm + `.sig`, msi/exe + `.sig`, dmg,
`.app.tar.gz` + `.sig`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 Badge 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 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/link-workspace-skills.sh Outdated
ln -sfn "$repo_dir/skills/$name" "$link"
echo "linked $link"
done
if [[ -d "$target/.git" ]]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread skills/release/SKILL.md

```bash
gh release download vX.Y.Z --dir release-assets --pattern '*'
bun run pickforge-tauri-release generate-latest-json \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread skills/release/SKILL.md Outdated
Comment on lines +52 to +53
- Every platform present: AppImage/deb/rpm + `.sig`, msi/exe + `.sig`, dmg,
`.app.tar.gz` + `.sig`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread skills/release/SKILL.md
If `latest.json` needs repair, regenerate locally and re-upload:

```bash
gh release download vX.Y.Z --dir release-assets --pattern '*'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.
@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: fc505dce3a

ℹ️ 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".

@ElbertePlinio
ElbertePlinio merged commit a90b10d into main Jul 9, 2026
1 check passed
@ElbertePlinio
ElbertePlinio deleted the feat/workspace-skills branch July 9, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workspace skills: release runbook + CI driver (canonical here, symlinked into workspace)

1 participant