Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(git-commit-push-pr): precompute shield badge version via skill preprocessing#464

Merged
tmchow merged 2 commits into
mainfrom
feat/shield-badge-precompute
Mar 31, 2026
Merged

feat(git-commit-push-pr): precompute shield badge version via skill preprocessing#464
tmchow merged 2 commits into
mainfrom
feat/shield-badge-precompute

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Mar 31, 2026

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-pr instructed the agent to run jq at runtime to read the plugin version from plugin.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-work and ce-work-beta to drop "and version" from the badge requirement, since version is now conditionally resolved rather than mandatory.


Compound Engineering
🤖 Generated with Claude Opus 4.6 (1M context) via Claude Code

…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]>
Copy link
Copy Markdown

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

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

Comment thread plugins/compound-engineering/skills/git-commit-push-pr/SKILL.md Outdated
…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]>
@tmchow tmchow merged commit 6ca7aef into main Mar 31, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 31, 2026
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