agentleFS
garbageekgarbageek/claude-plugins/skills/codex-ubuntu-server/SKILL.md

codex-ubuntu-server

Skill1 starsChanged 34 days agoMITView on GitHub

Install, authenticate, update, diagnose, or recover Codex CLI on Ubuntu Server, including managed remote control and independent self-maintenance handoff. Use for headless Ubuntu hosts; not for desktop app updates or general server administration.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check command availability with the target CLI's --help.

    line 19
  2. Distinctive:

    Update, self-maintenance, version skew, app-server ownership, or reboot recovery: read references/maintenance.md.

    line 24
  3. Distinctive:

    Read only the applicable reference.

    line 26
  4. Very specific:

    Run Codex without sudo, using the same user and Codex state directory as normal work.

    line 30
  5. Distinctive:

    Run one updater at a time.

    line 33
  6. Very specific:

    If maintenance can terminate the agent or its transport, hand it to an independent host supervisor before changing the executing …

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex on Ubuntu Server

Complete the requested lifecycle task on the identified Ubuntu host as its normal Unix user. Prefer standalone installation for new hosts; preserve an existing installation method and app-server owner unless migration is requested.

For installing, upgrading, disabling or removing plugins inside Codex, use install-agent-plugins. This skill owns the Codex CLI installation and Ubuntu process/service lifecycle, not plugin packages.

Establish context

  • Resolve the target host, Unix user, and operation from the conversation or available connection. Ask only for genuinely missing information. A local Windows shell is not the Ubuntu target.
  • Distinguish instructions-only requests from host operations. Creating or reading this skill does not authorize installations, updates, authentication, or service changes.
  • Inspect the selected executable, version, authentication status, and relevant process owner before modifying an existing installation. Do not print credential files.
  • Check command availability with the target CLI's --help. The references provide a baseline, not a guarantee for every release. Consult linked official documentation for changing product behavior.

Procedures

  • Installation, headless login, normal CLI use, or requested remote control: read references/setup.md.
  • Update, self-maintenance, version skew, app-server ownership, or reboot recovery: read references/maintenance.md.

Read only the applicable reference; load the other when needed.

Operational invariants

  • Run Codex without sudo, using the same user and Codex state directory as normal work. System dependencies may require administrative rights.
  • Ordinary SSH CLI work does not require remote control. Enable remote control or boot persistence only when requested or already part of the intended deployment.
  • Identify the lifecycle owner before restarting an app-server. An externally managed instance is not automatically broken; use its owning service.
  • Run one updater at a time. Wait for its result before installer fallback. After one failed fallback, investigate rather than repeating mutations.
  • If maintenance can terminate the agent or its transport, hand it to an independent host supervisor before changing the executing installation. Prefer a user systemd transient service; use setsid plus nohup as a best-effort fallback.
  • Confirm accepted handoff and record its result channel. Acceptance means started, not completed.
  • Distinguish downloaded package, selected CLI, managed daemon package, and running process. CLI version alone does not establish daemon replacement.
  • Continue authorized ordinary steps autonomously. For device authentication or a tool-enforced protected action, complete independent preparation, request the minimum user action, then resume verification.

Completion

Report target, concrete changes, selected executable/version, authentication result, applicable daemon state, and unresolved diagnostic failures. Verify detached maintenance through its result channel or explicitly report completion unverified. Do not claim reboot persistence or a running replacement without evidence.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.