sync-targets

sync-targets is a skill for Claude Code, Codex from Jerrylalala/compound-engineering. It costs 0 tokens per session (535 once invoked), scanned C, original, MIT.

A setup skill that copies a local compound-engineering plugin to Codex CLI and Gemini CLI, two tools for working with coding agents.

In plain words
What is it for?
Use it when installing or updating the plugin for Codex, Gemini, or both, including choosing one target or customising the Gemini output directory.
Why use it?
It avoids manually copying plugin files and configuration to each command-line tool. It also checks that the expected installation files exist.

Skill for Claude CodeCodex

Part of the compound-engineering plugin — 78 skills, 4 commands, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jerrylalala/compound-engineering/sync-targets
Any agent
npx skills add Jerrylalala/compound-engineering --skill sync-targets
Clone the repo
git clone --depth 1 https://github.com/Jerrylalala/compound-engineering

Made for: Claude Code, Codex.

Or install compound-engineering, the plugin that ships this one along with the rest of its 78 skills, 4 commands, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-targets

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerrylalala/compound-engineering/sync-targets.svg)](https://agentmods.dev/skills/jerrylalala/compound-engineering/sync-targets)
Your own site
<a href="https://agentmods.dev/skills/jerrylalala/compound-engineering/sync-targets"><img src="https://agentmods.dev/badge/skills/jerrylalala/compound-engineering/sync-targets.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00535
Opus 5 $0.00000 $0.00267
Sonnet 5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00053

Measured 5d ago against content hash fd1be79dfa0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

sync-targets scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

test -f ~/.gemini/settings.json && echo "settings.json exists"

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls ~/.codex/skills/ | head -5
plugins/compound-engineering/skills-custom/sync-targets/SKILL.md · 73 lines

What it actually says

sync-targets

将本地 compound-engineering 插件同步安装到 Codex CLI 和 Gemini CLI。

使用场景

当用户说以下内容时触发此技能:

  • "同步到 Gemini"
  • "同步到 Codex"
  • "安装到 Gemini 和 Codex"
  • "更新 Gemini 配置"
  • "sync to targets"

执行流程

1. 确认当前仓库

确认当前工作目录是 compound-engineering 仓库:

# 验证插件目录存在
ls plugins/compound-engineering/.claude-plugin/plugin.json

2. 同步到 Codex

注意:此操作只同步 3 个 Codex 兼容入口 workflow skill(brainstorm/plan/review),不安装整个插件。

powershell -ExecutionPolicy Bypass -File scripts/sync-codex-workflows.ps1

输出位置: ~/.codex/skills/workflows-{brainstorm,plan,review}/

3. 安装到 Gemini

bun run src/index.ts install plugins/compound-engineering --to gemini --output ~

输出位置: ~/.gemini/

4. 验证安装

# 检查 Codex
ls ~/.codex/skills/ | head -5

# 检查 Gemini
ls ~/.gemini/skills/ | head -5
test -f ~/.gemini/settings.json && echo "settings.json exists"

一键命令(Windows PowerShell)

powershell -ExecutionPolicy Bypass -File scripts/sync-to-targets.ps1

参数说明

参数 说明
-GeminiHome Gemini 输出目录,默认 $HOME
-CodexOnly 只安装到 Codex
-GeminiOnly 只安装到 Gemini

注意事项

  • 此操作面向维护者本机同步,会覆盖目标位置的同名插件配置
  • Gemini CLI 需要 .gemini/skills/*/SKILL.md;有命令或 MCP 时还会写入 .gemini/commands/*.toml.gemini/settings.json
  • Codex CLI 需要 .codex/skills/*/SKILL.md;完整 CLI 安装还会写入 .codex/prompts/*.md.codex/AGENTS.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 73 lines · 0 tokens per session scan C fd1be79dfa0d

Subscribe to this mod's changes

sync-targets is a skill published in the GitHub repository Jerrylalala/compound-engineering (5 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 535 tokens. A static security scan graded it C with 2 findings (reads agent configuration directories, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens