SkillsReviewed · sd0xdev

Codex Setup — sd0x-harness

Codex Setup is a setup skill for developers using Codex CLI or other AI coding agents, but it depends on the wider sd0x-harness plugin and changes repository controls. It describes generating AGENTS.md, installing a commit-message guard, copying verification runners and optionally adding a push gate that requires a terminal. Fresh setup also records adoption of automatic commits and draft pull request publishing under separately defined authorization rules. Installation behavior has not been tested.

Researched 17 Nov 2026

In short.

Codex Setup is an installation and maintenance skill for developers using AI coding agents, but fresh setup can install commit controls and record adoption of automatic commits and draft pull request publishing. Its init, doctor and sync procedures cover generated instructions, verification runners and Git-hook integration. The commit-message guard is installed by default; the interactive push gate requires an initial opt-in. The documentation distinguishes hooks that merely exist from hooks Git will actually invoke, and preserves recorded installation choices. However, doctor does not verify hook contents against shipped bytes. Required implementation scripts and detailed authorization rules are outside the available files, so installation, enforcement and compatibility remain untested.

Researched and written by an AI model and checked by a second AI model. How it works

Covers skills/codex-setup/SKILL.md and skills/codex-setup/references/agents-kernel.md at revision b0206637edd2e44c993da12b6b30858f96bc3cdc, together with the repository-level MIT LICENSE. The supplied manifest identifies these as the complete scoped folder and its accompanying notice. Generator code, hook implementations, runners, plugin metadata, detailed policy rules, referenced tests and implementation documents are outside this scope. Installation, runtime behavior, compatibility, security enforcement, costs and performance were not tested.

The overview

Identity

Codex Setup is an instruction skill in the sd0xdev/sd0x-harness repository, identified internally as codex-setup. It configures sd0x-dev-flow infrastructure for Codex CLI and other agents outside Claude Code. It is a set of procedures for an assistant to follow, rather than a standalone installer contained in this folder.

The resource location is [https://github.com/sd0xdev/sd0x-harness/tree/main/skills/codex-setup]. The assessed source revision is b0206637edd2e44c993da12b6b30858f96bc3cdc, which fixes the source independently of later changes to main.

Assessment

This is most useful when a team wants the broader sd0x development workflow carried into an agent-driven project. Its strongest documented feature is careful handling of existing hooks: installation considers ownership, executable permissions, Git's resolved hook path and Husky's forwarding chain instead of treating a copied file as a working installation.

The tradeoff is operational complexity. Setup can affect commits, pushes, generated instructions and per-user automation policy. The supplied folder does not contain the implementation needed to verify those behaviors. Treat the detailed safeguards as documented requirements rather than demonstrated guarantees.

Users

The intended users are developers setting up a project for Codex CLI or another AI coding agent, and maintainers updating an existing sd0x installation. Beginners should understand that AGENTS.md tells an assistant how to work, while Git hooks are programs Git invokes during actions such as committing or pushing.

Teams already using Husky or custom hooks need particular care because the skill integrates with shared repository controls. Developers seeking only a short instruction file may find its runner installation, hook state and automation policy broader than their needs.

Capabilities

The documented init procedure generates AGENTS.md, installs a commit-message guard, copies precommit and verification runners, and writes installation state. The optional --with-push-gate flag adds the pre-push gate. The commit-message guard does not prompt, but can reject commits when its policy is violated or cannot be evaluated.

Doctor checks generated instructions, runner presence, version information and hook activation. It also describes reporting Claude Code instruction-file loading and comparing regenerated AGENTS.md content for freshness. Sync refreshes installed components while preserving recorded push-gate choices.

The instruction template defines a development, testing, verification and precommit sequence. It distinguishes an actual precommit verdict from verification output and explicitly treats a result with no checks run as something other than a pass.

Using it

Requirements

The documented procedures require a Git repository, Node.js, Bash and access to the wider plugin files. Those include the instruction generator, runner scripts, hook scripts, plugin metadata and policy-state tooling. Minimum supported versions and a complete operating-system support matrix are not supplied.

Automatic installation needs write access to repository instructions, scripts, state and the relevant hook location. In a read-only environment, the skill specifies producing commands for manual execution.

The push gate reads /dev/tty and can stall or fail without an interactive terminal. Its Husky wrapper also names /usr/bin/env and /bin/bash explicitly, making those paths relevant compatibility requirements.

Mechanism

The assistant first detects the repository and project test command, then invokes an external generator to fill the AGENTS.md template. Hook installation prefers Husky, then an existing core.hooksPath, then .git/hooks, and finally a fallback .githooks directory.

For dedicated hook files, documented ownership is inferred from a script-header marker before replacement. Husky instead receives a bounded executable stanza that preserves surrounding project content. The push stanza captures Git's one-use input stream and attempts to restore it for subsequent hook commands.

The installation manifest distinguishes installed, declined and pending states. Recording installed requires a mode-specific activation check against Git's resolved hook path. Header-based ownership is a content heuristic, not cryptographic proof of origin.

Setup

The documented entry point follows npx skills add sd0xdev/sd0x-harness, then /codex-setup init. Adding --with-push-gate requests the interactive push gate; omitting it on a new installation leaves that gate absent. Previously recorded installation choices can still require refreshing or restoring an existing gate.

Init calls for confirmation before replacing an existing AGENTS.md, whereas sync explicitly regenerates and overwrites it. Existing custom instructions therefore deserve review before updating. Foreign dedicated hook files are supposed to remain untouched and produce pending status.

On a fresh installation with no manifest, the instructions also record per-user adoption of automatic commits and goal publishing as a draft pull request. Existing user decisions are preserved, and installation over an existing manifest does not record a new decision. The detailed publication authorization contract is in another skill and is not supplied.

Example

Consider a developer with a Husky-managed project who wants agent instructions and commit-message enforcement without interactive push approval. Under the documented fresh-install procedure, /codex-setup init generates AGENTS.md, copies runners and adds a commit-message stanza, while leaving the push gate uninstalled.

If the developer later chooses /codex-setup sync --with-push-gate, the procedure should add the gate and record installed only when the Husky chain reaches it. A missing executable shim or missing script should instead produce pending with a Husky-specific remedy. This is an illustrative reading of the instructions; neither operation was executed.

Assessment & evidence

Limitations

The folder contains instructions and a template, while executable dependencies live elsewhere. Actual installation, hook enforcement, runner behavior and policy recording remain unverified. The template also delegates important completion and authorization rules to other plugin files.

Doctor checks hook activation rather than agreement with shipped hook bytes. An active hook with stale or locally edited contents can pass that check; sync is the documented way to refresh those contents. Passing doctor therefore does not establish comprehensive enforcement or successful project tests.

The source acknowledges remaining environment risks around a Husky parent shell reading BASH_ENV, hostile PATH values and shadowed commands affecting temporary-file cleanup or downstream input restoration. Older unmarked Husky wiring and malformed marker blocks require manual repair rather than automatic replacement.

Reasoning

The fit judgment follows from the separation between instruction generation, hook enforcement and installation state. Developers adopting all three gain a documented maintenance path; developers needing only instructions inherit additional moving parts. This is an inference from the described architecture, not a measured productivity result.

The source's distinctions address practical failure modes: an existing file may be foreign, a copied hook may be inactive, and a missing gate may represent damage rather than an opt-out. Their value depends on the assistant and external scripts implementing the procedures correctly, which has not been demonstrated.

Alternatives

For teams wanting a smaller scope, manually maintained agent instructions alongside existing project hooks are a conceptual alternative. That avoids adopting this skill's complete setup procedure, but leaves the team responsible for maintaining its own instructions and enforcement.

Within Codex Setup, Husky, core.hooksPath, direct hooks and the fallback directory are integration paths rather than competing products. The supplied files do not compare alternative skills, so relative feature coverage, reliability and performance are unknown.

Evidence

The available source comprises the complete codex-setup skill instructions, its agents-kernel.md template and the repository-level LICENSE at the same revision. The fixed instruction source is [https://raw.githubusercontent.com/sd0xdev/sd0x-harness/b0206637edd2e44c993da12b6b30858f96bc3cdc/skills/codex-setup/SKILL.md].

The instructions describe historical measurements and refer to tests and implementation documents. Those supporting files and raw results are outside the supplied source, so those measurements remain author-reported claims. No installation, command, commit, push or test was executed.

Access & freshness

Costs

No purchase price, subscription fee, model-usage estimate or installation-time estimate is established by the supplied files. The MIT notice permits reuse of the source, but does not establish a zero total operating cost.

Any charges for the host coding agent, model access or related services are unknown. Setup and maintenance effort are also unmeasured.

Rights

The repository-level MIT License names sd0xdev as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The license supplies no warranty and disclaims liability. Neither supplied skill file contains a separate license notice. License terms for dependencies outside these files are not established.

Freshness

The source snapshot was captured on 17 November 2026 at revision b0206637edd2e44c993da12b6b30858f96bc3cdc. That identifies the material described here; it does not establish the current contents of the moving main branch.

The installed plugin version is unknown because plugin.json is outside the supplied files. The template contains a version placeholder rather than a release number. Compatibility with a particular installed Codex, Claude Code, Git, Husky, Node.js or Bash version has not been verified.

Actions

Before adopting the skill, inspect the referenced generator, hooks, runners and authorization rules from the same source revision. Confirm that the fresh-install automation defaults fit the team's intended commit and publishing permissions, and preserve existing AGENTS.md content and custom hooks before setup.

Choose the push gate only where a human terminal is available. After installation, use doctor to inspect activation and instruction freshness, then separately verify actual commit and push behavior in a disposable repository. Doctor alone does not establish hook-content integrity.

Use the remedy for the recorded installation mode. In particular, replacing Husky's hooks path with .githooks can disable other Husky hooks. Resolve foreign-hook collisions or malformed Husky blocks manually before retrying sync.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/codex-setup/SKILL.mdselected · checked 2026-11-17