feat(git-commit-push-pr): precompute shield badge version via skill preprocessing#464
Merged
Conversation
…reprocessing Use Claude Code's !`command` dynamic context injection to resolve the plugin version at skill load time instead of runtime. Eliminates 5+ second agent delay from directory traversal and jq execution. On non-Claude Code platforms the preprocessing syntax stays literal, so the agent correctly falls back to the versionless badge variant. Also updates ce-work and ce-work-beta quality checklists to drop the "and version" requirement since version is now optional. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d7c3e2ed8f
ℹ️ 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".
…mpute Drop 2>/dev/null from the !`jq` preprocessing command. The agent already handles non-version output gracefully via the fallback instruction, so suppression is unnecessary and hides real failures like missing jq or a misconfigured CLAUDE_PLUGIN_ROOT. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eliminates 5+ second agent delay when resolving the plugin version for the Compound Engineering shield badge in PR descriptions.
Problem: The badge section in
git-commit-push-prinstructed the agent to runjqat runtime to read the plugin version fromplugin.json. This triggered multiple tool calls (env var check, file discovery, jq execution) adding 5+ seconds of overhead every time.Fix: Uses Claude Code's
!backtick`` dynamic context injection to resolve the version at skill load time — the shell command runs during preprocessing and the output replaces the placeholder before the model sees the content. Zero agent tool calls needed.For non-Claude Code platforms (Codex, Gemini CLI), the
!syntax isn't processed, so the agent sees a literal command string, recognizes it's not a version, and uses the versionless badge variant. This is the correct behavior since the version badge is only meaningful in Claude Code's plugin ecosystem.Also updates the quality checklists in
ce-workandce-work-betato drop "and version" from the badge requirement, since version is now conditionally resolved rather than mandatory.🤖 Generated with Claude Opus 4.6 (1M context) via Claude Code