Bootstrap skills plugin repo
Skill gaelic-ghost/socket/plugins/agent-portability-skills/skills/bootstrap-skills-plugin-repo
The Source for macOS Agent Workflows
npx -y skills add gaelic-ghost/socket --skill bootstrap-skills-plugin-repoAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Bootstrap or align a source-first Agent Skills repository with root `skills/`, repo-local discovery mirrors, maintainer docs, and clear Codex plugin-boundary wording. Use when creating a new skills repo or structurally aligning an existing one. Do not use this for narrow README-only, roadmap-only, or host-adapter design work.
SKILL.md
6.2 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Bootstrap Skills Plugin Repo
Bootstrap or align a source-first Agent Skills repository.
This is the Codex-ready bootstrap workflow inside Agent Portability Skills. Use it for the shared skills repository shape first, then hand off to future host-adapter workflows when a target such as Zed Agent, Xcode, OpenCode, or Claude Code needs additional package or config decisions.
Codex Model Note
State plainly 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. This repository pattern allows root .codex-plugin packaging. Do not normalize nested staged plugin directories or installer-era helper workflows for this repo family.
Before adding detailed guidance about Codex Plugins, Skills, MCP, Hooks, marketplaces, or subagents, refresh the relevant OpenAI Codex docs. Keep generated repo guidance focused on durable local policy and link to the official docs for details that can drift.
Codex Plugin Root Structure
When bootstrapping or aligning a plugin repo, follow the current OpenAI plugin structure:
- every plugin has a manifest at
.codex-plugin/plugin.json - only
plugin.jsonbelongs in.codex-plugin/ skills/,.app.json,.mcp.json,hooks/, andassets/belong at the plugin root- plugin manifests should point to bundled skill folders with
"skills": "./skills/" - plugin manifests may point to bundled lifecycle hooks with
"hooks": "./hooks/hooks.json"; if hooks live at./hooks/hooks.json, Codex checks that default path automatically - plugin-bundled hooks are non-managed hooks, so installing or enabling a plugin does not make those hooks trusted automatically
- marketplace
source.pathshould point at the plugin root directory
Dependency Provenance
When creating or aligning AGENTS.md, include strict dependency guidance:
- shared project dependencies must resolve from GitHub repository URLs, package managers, package registries, or other real remote repositories
- committed dependency declarations, lockfiles, scripts, docs, examples, generated project files, and CI config must not point at machine-local paths
- machine-local dependency paths are expressly prohibited in any project that is public or intended to be shared publicly
Codex Subagent Guidance
For existing repositories that need broad guidance drift discovery before edits, prefer sync-skills-repo-guidance and its skills-repo-guidance-sync custom-agent role. For Socket-wide docs, marketplace, or proposal planning, run Socket Steward first when its deterministic audits fit the question. Use this bootstrap skill for new repository structure or structural alignment after the main thread has reviewed any audit or subagent findings.
When creating or aligning skills that can benefit from parallel support work, add optional Codex Subagent Fit guidance that matches OpenAI's current Codex subagent docs:
- Current Codex releases enable subagent workflows by default, but Codex only spawns subagents when there is an explicit trigger: the user asks for subagents or parallel agent work, or a narrower skill/plugin workflow instructs the agent to ask first and the user grants explicit permission.
- Built-in agents include
default,worker, andexplorer; mention project-scoped custom agents under.codex/agents/only when the repo intentionally owns agent configuration. - Good fits are bounded read-heavy discovery, docs pulling, tests, triage, log analysis, and summarization.
- Subagents should return concise findings, evidence, links, or file references instead of raw intermediate output.
- Apply-mode or implementation edits should stay in the main thread unless the user explicitly asks for parallel implementation and each worker has a disjoint write scope.
- Plugin-specific guidance can be stricter. For example, Codex Security repository-wide scans may require asking for subagent use because the scan quality depends on parallel file-pass review.
Do not add subagent guidance to every skill by default. Use docs/maintainers/codex-subagent-skill-guidance.md to decide whether the target skill has real parallelizable support work.
Codex Install Guidance
Bootstrap docs should make the Git-backed marketplace path the default user install/update story:
codex plugin marketplace add <owner>/<repo>
codex plugin marketplace upgrade <marketplace-name>
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, unpublished testing, or fallback cases.
Keep discovery mirrors, plugin packaging, marketplace catalogs, plugin payload directories, installed cache paths, and config-state separate. Do not blur "where Codex can see a plugin", "where the plugin payload lives", "how Codex updates the marketplace", and "whether the plugin is enabled" into one sentence.
If you mention project-scoped .codex/config.toml, describe it as a general Codex config surface from the config reference, not as a separate documented plugin install surface.
GitHub Repository Settings
When the bootstrapped repository has a GitHub remote, use
productivity-skills:maintain-github-repository to audit or apply the current
recommended GitHub repository settings. Keep local structure bootstrap separate
from server-side settings mutation, keep visibility changes approval-gated, and
preserve any documented maintainer direct-push workflow.
The GitHub settings pass should cover repository features, merge modes, Dependabot and security settings, private vulnerability reporting for public repos, web commit sign-off when DCO applies, and branch protection that requires the actual CI check context without requiring unavailable reviewers.
What ships with it: 5 files
11.9 KB alongside SKILL.md, 2 of them executable
agents/
- openai.yaml643 B
references/
- bootstrap-contract.md1.1 KB
- posix-symlink-policy.md202 B
scripts/
- bootstrap_skills_plugin_repo.pyruns7.7 KB
tests/
- test_bootstrap_skills_plugin_repo.pyruns2.3 KB
Gives 0 of the 12 instructions most project setup skills give in ~1.2k tokens
Counted across 999 of the 1,637 authors here whose files we hold, read 2026-08-07
- Ask one question at a timein 29 of 999, across 28 files
- Detect the package manager from lockfilesin 28 of 999, across 9 files
- Present findings to the userin 26 of 999, across 5 files
- Explore current repo statein 24 of 999, across 3 files
- Update the agent skills block in place if it existsin 24 of 999, across 3 files
- Install husky lint-staged and prettierin 23 of 999, across 4 files
- Create the lintstagedrc filein 22 of 999, across 3 files
- Commit all changed filesin 22 of 999, across 3 files
- Run lint-staged to verify it worksin 22 of 999, across 3 files
- Create the husky pre-commit filein 21 of 999, across 2 files
- Create a prettierrc file if missingin 21 of 999, across 2 files
- Initialize huskyin 21 of 999, across 2 files
Said here and by no other author read
- create a manifest at .codex-plugin/plugin.json
- place skills hooks and assets at the plugin root
- point plugin manifests to bundled skill folders
- resolve shared dependencies from remote repositories
- refresh official Codex docs before adding detailed guidance
- add Codex Subagent Fit guidance only for parallelizable skills
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.