Skip to content

plugin: consolidate Apple workspace alignment - #184

Merged
gaelic-ghost merged 6 commits into
mainfrom
plugin/remove-productivity-skills
Aug 17, 2026
Merged

plugin: consolidate Apple workspace alignment#184
gaelic-ghost merged 6 commits into
mainfrom
plugin/remove-productivity-skills

Conversation

@gaelic-ghost

@gaelic-ghost gaelic-ghost commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Unifies Apple product bootstrap and existing-workspace alignment under bootstrap-xcode-workspace, removes the retired app/bootstrap sync skills, and refreshes exports and documentation.

Validation: Apple Dev tests, Repository Skills tests, Hermes export check, and Socket compatibility profile.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3485ae4a-4d55-4ebd-8ab1-fb0c30c5af3a


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gaelic-ghost
gaelic-ghost merged commit cad0b97 into main Aug 17, 2026
2 checks passed
@gaelic-ghost
gaelic-ghost deleted the plugin/remove-productivity-skills branch August 17, 2026 02:11

@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: e3cbf5769e

ℹ️ 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 on lines +41 to +42
paths = [root / "repository-skills" / "skills" / "maintain-project-repo" / "scripts" / "run_workflow.py"]
version_root = root / "repository-skills"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Discover the sibling runner in the Hermes tap

In the checked-in Hermes export, this script lives at skills/bootstrap-xcode-workspace, while its companion runner lives at skills/maintain-project-repo; every candidate constructed here instead requires a repository-skills/skills/... plugin layout. Consequently, a non-dry-run create invoked from the supported Hermes tap generates part of the scaffold and then fails when maintain_project_repo_runner() raises. Add the sibling skill layout to the search paths.

AGENTS.md reference: AGENTS.md:L53-L55

Useful? React with 👍 / 👎.

if not dry_run:
for destination, (content, executable) in planned.items():
write(destination, content, executable)
subprocess.run(["git", "config", "core.hooksPath", ".githooks"], cwd=root, check=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid configuring an enclosing Git repository

When a new product is created anywhere inside an existing Git worktree, the product root has not been initialized as its own repository yet, so this git config walks upward and writes core.hooksPath=.githooks into the enclosing repository. That silently redirects or disables the parent repository's hooks even though the command is bootstrapping a child product; defer this configuration until the new root is a Git repository, as just setup already promises to do.

Useful? React with 👍 / 👎.

payload["validation_result"] = "skipped (--dry-run)"
print(json.dumps(payload, indent=2, sort_keys=True))
return 0
root.mkdir(parents=True)

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 Reuse an existing empty product directory

The preceding guard deliberately permits an already-existing empty product directory, but this unconditional mkdir then raises FileExistsError outside the exception handler. Thus --destination fails with a traceback whenever <destination>/<name> was pre-created but is empty, despite the documented contract blocking only non-empty roots; use exist_ok=True or create the directory only when absent.

AGENTS.md reference: AGENTS.md:L63-L65

Useful? React with 👍 / 👎.

Comment on lines +9 to +10
command -v swiftformat >/dev/null 2>&1 || { echo "SwiftFormat is required for commits." >&2; exit 1; }
command -v swiftlint >/dev/null 2>&1 || { echo "SwiftLint is required for commits." >&2; exit 1; }

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 Check staged Swift files before formatter prerequisites

On a machine without SwiftFormat or SwiftLint, this hook rejects every commit—including documentation-only commits—because it checks the tools before determining whether any Swift file is staged. just setup does not require either formatter, and the generated Xcode build scripts treat both as optional, so a user can complete setup successfully and then be unable to commit; perform the empty-file-list exit before these checks or make setup install/require the same tools.

AGENTS.md reference: AGENTS.md:L63-L65

Useful? React with 👍 / 👎.

- explore-apple-swift-docs for Apple, Swift, or DocC documentation lookup
- swift-package-build-run-workflow, swift-package-testing-workflow, xcode-build-run-workflow, or xcode-testing-workflow for execution follow-through
- productivity-skills maintain-project-* workflows for general README, CONTRIBUTING, AGENTS, ROADMAP, ACCESSIBILITY, API, or architecture document edits
- documentation-skills maintain-project-* workflows for general README, CONTRIBUTING, AGENTS, ROADMAP, ACCESSIBILITY, API, or architecture document edits

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 Route steward findings to the surviving Xcode workflow

This edited routing block still sends Xcode app guidance findings to sync-xcode-project-guidance on line 23, but this commit deletes that skill and a repo-wide search finds no remaining implementation. Such findings therefore produce an unusable handoff; route them to bootstrap-xcode-workspace --operation align, matching the new consolidated workflow.

AGENTS.md reference: AGENTS.md:L63-L65

Useful? React with 👍 / 👎.


versioned_plugin_root="$root/repository-skills"
if [[ -d "$versioned_plugin_root" ]]; then
for version_dir in "$versioned_plugin_root"/*; do

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 Prefer the newest cached repository-skills runner

When a Codex cache contains more than one version directory, shell glob order is ascending and the function returns the first executable runner, so an upgraded Apple skill can invoke an older repository-skills implementation or one that does not support the expected profile. Sort the version directories newest-first, as the new Python runner discovery already does, and cover a cache containing at least two versions.

Useful? React with 👍 / 👎.

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.

1 participant