Audit guidance across AGENTS.md, optional README.md, maintainer docs, and discovery mirrors in an existing Agent Skills or Codex plugin repository. Use when a skills repo may have stale guidance, missing discovery mirrors, outdated OpenAI Codex policy, or unclear boundaries between portable skills and host-specific plugin surfaces. Defer narrow README-only, roadmap-only, or host-adapter design requests to the specialized maintainer skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-portability-skills:sync-skills-repo-guidanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit an existing Agent Skills or Codex plugin repository against the current house guidance and upstream standards.
Audit an existing Agent Skills or Codex plugin repository against the current house guidance and upstream standards.
This is the Codex and shared-skills guidance-sync workflow inside Agent Portability Skills. It should preserve the difference between portable Agent Skills and host-specific packaging such as Codex plugins, Xcode plug-ins, Zed extensions, OpenCode config, Claude Code settings, MCP declarations, hooks, apps, and custom agents.
When syncing Codex guidance, state clearly that OpenAI's documented Codex plugin system exposes repo-visible plugins through marketplace catalogs and does not document a richer repo-private scoping model beyond that.
Before making policy claims about Codex Plugins, Skills, MCP, Hooks, marketplaces, or subagents, refresh the relevant OpenAI Codex docs. Keep this skill's local guidance focused on durable repo policy and remove copied upstream detail when the official docs already cover it clearly.
When this skill touches Codex packaging guidance, keep the plugin-root structure aligned with the current OpenAI docs:
.codex-plugin/plugin.jsonplugin.json belongs in .codex-plugin/skills/, .app.json, .mcp.json, hooks/, and assets/ belong at the plugin root"skills": "./skills/""hooks": "./hooks/hooks.json"; if hooks live at ./hooks/hooks.json, Codex checks that default path automaticallysource.path at the plugin root directory, not at .codex-plugin/Default user-facing install and update guidance to the official Git-backed marketplace commands. Use explicit refs such as <owner>/<repo>@vX.Y.Z only for pinned reproducible installs. Use manual local marketplace or copied-payload instructions only for local development, testing unpublished changes, or fallback cases where the Git-backed path is not available.
Keep marketplace sources, marketplace catalogs, plugin payload directories, installed cache paths, and config-state distinct instead of collapsing them into one vague "plugin install" concept. Do not reproduce the full install-surface map unless the target repo truly needs a maintainer reference; link to the OpenAI docs for the full current details.
When a workflow depends on a companion skill or plugin, first route through the Codex harness surfaces that are already available in the current session. Name the current-session skill to use, such as productivity-skills:maintain-project-repo, before giving install advice. If the companion skill is missing from the session, tell the user to add or update the marketplace and install the plugin through Codex's plugin directory for future sessions; do not imply that editing config.toml, copying payload folders, or searching an arbitrary checkout is the standard way to make a skill callable from Codex.
For socket, prefer:
codex plugin marketplace add gaelic-ghost/socket
codex plugin marketplace upgrade socket
For standalone plugin repositories that carry their own repo marketplace, prefer the same pattern with that repository, for example:
codex plugin marketplace add gaelic-ghost/apple-dev-skills
codex plugin marketplace add gaelic-ghost/SpeakSwiftlyServer
Do not describe config.toml as the place plugins install into. Do not describe a marketplace file as the install destination. Keep the wording explicit: marketplace sources are tracked by Codex, marketplaces are catalogs, plugin roots are payload directories, the cache is Codex's installed copy, and config.toml stores enabled-state.
If you mention project-scoped .codex/config.toml, label it as a general Codex config capability from the config reference rather than as part of the documented plugin install-surface map.
When syncing AGENTS.md, include strict dependency guidance:
When the user explicitly requests subagents, skills-repo-guidance-sync, review-packet planning, or asks to keep working while broad skills-repo guidance discovery happens in parallel, use the skills-repo-guidance-sync custom-agent role for bounded read-heavy discovery before this skill applies guidance sync. When the target is the Socket superproject itself, consider Socket Steward's deterministic audits and proposal reports first so the repo-local maintainer agent stays tied into cross-Socket docs and marketplace maintenance.
Good skills-repo-guidance-sync jobs for this skill:
Keep apply-mode edits in the main thread. The guidance sync worker may return proposed patch-set entries, but the main agent should review them with the user before saving, editing, or applying any edits.
When auditing target skills, treat subagent guidance as useful only when it is explicit, bounded, and tied to real parallel support work. Match OpenAI's current Codex wording:
subagent and subagent workflow rather than vague older multi-agent languagedefault, worker, and explorer agents only when agent configuration matters; avoid turning custom .codex/agents/ setup into default skill boilerplateFlag skill guidance that implies automatic delegation, recommends parallel writes without ownership boundaries, adds subagent advice to narrow single-file or sequential workflows, or suppresses narrower plugin guidance that explicitly calls for subagents.
When auditing target skills or plugin-repo docs that mention OpenAI Codex Hooks, keep hooks conceptually separate from marketplace and install-surface guidance. Hooks are Codex runtime lifecycle scripts; plugins may bundle lifecycle config, but hooks are not themselves a plugin install surface.
Flag hooks guidance that uses deprecated features.codex_hooks wording instead of canonical features.hooks, refers to removed or legacy plugin-hook gates such as features.plugin_hooks, implies hooks are disabled by default, implies project-local hooks load without a trusted .codex/ layer, treats PreToolUse or PostToolUse as complete enforcement for every tool path, omits non-managed hook trust review, or confuses Codex Hooks with git pre-commit hooks or repo-maintenance hook scripts.
When the target repository has a GitHub remote, include repository settings in
the sync audit and route the canonical baseline through
productivity-skills:maintain-github-repository. Report drift in repository
features, merge modes, Dependabot and security settings, private vulnerability
reporting, web commit sign-off, and branch protection.
Keep this audit read-only unless the user requested settings changes. Do not infer visibility changes, do not require reviewers a single-maintainer repo does not have, and do not block a documented maintainer direct-push workflow.
npx claudepluginhub gaelic-ghost/socket --plugin agent-portability-skillsCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.