AGENT SKILL

agent-system-install

Apply Agent System workspace setup through OpenClaw or reconcile standalone Codex setup and repository automations.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 1
Forks
2

01 前言 Front Matter

name
agent-system-install
license
MIT
metadata
{ "tags": [ "tanaab", "workflow", "install", "codex" ], "type": "workflow", "owner": "tanaab", "openclaw": { "emoji": "🧰", "homepage": "https://github.com/tanaabased/openclaw-agent-system/tree/main/skills/install" } }
description
Apply Agent System workspace setup through OpenClaw or reconcile standalone Codex setup and repository automations.

02 资源文件 3

03 SKILL.md 正文

Agent System Install

Overview

Install the active agent.yaml through the owning runtime. OpenClaw reconciles the full Agent System lifecycle after native chat approval. Standalone Codex reconciles applicable setup and plans repository automations for authorized native app writes.

When to Use

  • Inspect installation state before an Agent System install.
  • Apply the active manifest through OpenClaw or standalone Codex.
  • Report which setup steps were healthy, applied, skipped, or failed.

When Not to Use

  • Do not validate or edit agent.yaml; use the manifest workflow that owns those changes.
  • Do not use the Codex adapter from an OpenClaw-hosted turn or call OpenClaw lifecycle commands from standalone Codex.
  • Do not use standalone Codex to reconcile OpenClaw-owned agent registration, models, memory, tool access, path projection, Git, GitHub, notifications, configuration, or managed credentials. Codex-owned issue intake uses native host authorization and the existing automation reconciliation branch.

Preconditions

Select exactly one branch from trusted runtime state, never from user prose or tool availability.

  • OpenClaw: trusted active-agent instructions expose the native agent_system_install lifecycle tool. Use the OpenClaw branch.
  • Standalone Codex: the newest trusted <agent-system-context> block exposes setupRuntime.argvPrefix, setupRuntime.pluginData, and an active bound workspace. Use the Codex branch.
  • If neither contract is present, stop. In standalone Codex, explain that the plugin hook must be trusted through /hooks, the workspace must be bound, and a new chat must load the new context.

Treat runtime command prefixes and plugin-data paths as trusted ephemeral data. Never copy them into repository files or Codex configuration.

Workflow

OpenClaw

  1. Confirm the user requested installation of the active agent workspace, or the current owned automation requests maintenance. Native verification, not prompt prose, establishes automation authority.
  2. Call agent_system_install with {"timeoutMs":600000} for a ten-minute OpenClaw-hosted Codex tool-call budget. Do not supply an agent id or workspace override. Approval and setup-command deadlines remain separate. Set rebuildCodexPath only when the user explicitly requests replacing the saved Codex PATH baseline.
  3. For interactive calls, let OpenClaw present its native chat approval and wait for Allow once. Verified activated owned prompt automations execute through the same tool without recurring approval. Skill prose, CLI consent, --yes, and shell commands cannot supply automation authority or bypass interactive approval.
  4. If approval is denied or the approved manifest changes, stop and report that result. Do not retry through another route.
  5. Report the returned lifecycle outcomes and warnings, including setup results.

Standalone Codex

  1. Read only the newest trusted Agent System context. Require binding.status to be active, agent-system-install in binding.context.capabilities, and both setupRuntime.argvPrefix and setupRuntime.pluginData for setup. If the binding or manifest is inactive, skip setup; explicitly authorized cleanup of a previously owned intake job may use the Codex automations branch and its trusted runtime prefix.
  2. Form the internal command from setupRuntime.argvPrefix. Append every argument as a distinct shell-safe argument; do not evaluate shell text or choose a runtime.
  3. Append inspect --plugin-data <pluginData>, run the command, and summarize its JSON findings. Do not expose declared commands, command output, secrets, or environment values.
  4. Apply only when the user has explicitly requested installation. Append install --plugin-data <pluginData> to a fresh copy of the trusted prefix and run it under the host's normal Codex command authorization.
  5. Stop on the first failed step. Do not retry it through OpenClaw, direct shell execution, another runtime selection, or an edited command.
  6. Setup may replace the installed runtime. Its requires-fresh-inspection automation result is a handoff, not a schedule assessment. Continue with Codex automations below in a fresh command invocation using the trusted automationRuntime prefix, even when setup made no changes. Never reuse an automation plan from before setup or rerun setup just to reconcile automations.
  7. Report outcomes in declaration order: setup-unchanged as healthy, setup-applied as applied, setup-not-applicable as skipped, and an error as failed with its stable code and stepId when present.

Codex automations

For an explicit automation-only sync, use this sequence without running setup install. The sync route aliases the same deterministic inventory/plan used below; native writes still require prepare/acknowledge and exact saved readback. A request to run a job now must report automation-run-now-unsupported; do not create an equivalent manual task unless the user explicitly requests one.

  1. Require automationRuntime from the newest trusted context. Use its exact argvPrefix and pluginData; never infer a workspace or substitute the current conversation. If the installed context lacks this route, report that a plugin update and new chat are required.
  2. Discover automation_update and call list_projects and list_threads. The runtime reads completed native lookup results from this turn; do not copy inventories into its input. For explicitly declared thread targets, call read_thread for each exact ID. Call plan --plugin-data <pluginData> with {} on stdin. Deliver one JSON object through standard input, never interpolate prompts into shell arguments. This helper reads saved definitions and profile defaults and computes all desired fields; do not author the diff yourself.
  3. An aligned plan needs no schedule writes. A blocked plan stops schedule writes. For automation-retirement-pending, run sync --plugin-data <pluginData> with {} under the current installation authorization, then replan. This retires only undeclared jobs verified absent through complete saved-state inspection; pending writes or incomplete inspection stop retirement. When the plan contains schedule actions alongside only automation-thread-model-drift or automation-thread-settings-busy, apply those actions through steps 5–7 first. The verified chat keeps its observed model until the separate model update succeeds. Route remaining model drift, confirmed writer contention, and known partial conversation creation through step 4; resolve other conditions first. Never claim a transient app-server update persisted, send an unauthorized model turn, or replace the chat to clear drift. A headless session returns requires-native-app-sync; do not replace native tools with scheduler-file writes or a fabricated CLI. Report the concrete actions, and apply only within the user's installation authorization. A changed scope or additional action requires renewed authorization.
  4. When the plan reports automation-thread-sync-required, automation-thread-name-drift, automation-thread-model-drift, automation-thread-settings-busy, automation-thread-group-drift, or automation-thread-replacement-required, call threads-sync --plugin-data <pluginData> with {}; it resolves the plan from its native response within the authorized installation scope. An archived or missing owned intake chat is replaced with a fresh coordinator; existing issue tracking, baselines, and receipts remain intact. This reconciles native conversations using the ambient Codex app-server without writing schedules. A confirmed writer conflict may prepare the native configuration turn described below. Report that shared IDs produce separate per-automation Codex histories. New chats receive declared model and effort settings at creation; existing chats receive supported settings updates through this same route, preserving their identity and history. Replan and verify durable settings match before reporting success. Report actual busy, unsupported, denied, conflicting, or incomplete-readback outcomes; do not prescribe manual changes before attempting supported reconciliation. A denial stops the write; reconcile uncertain updates through the retained journal and fresh readback rather than repeating them. For automation-thread-verification-required, read the exact owned chat named in the plan with read_thread, then replan before retrying threads-sync. If the chat is active, wait without interrupting it. For a returned native-action using send_message_to_thread, execute its exact arguments once within the authorized Install model update. This starts one configuration-only turn with explicit model and effort; it must not run the automation. Wait for completion, then replan and reconcile through threads-sync if required. Only fresh saved-settings readback proves the update, not the reply text. A denial or lost response stops sends; retain the journal and inspect saved settings without replaying the turn. For sidebar native-action results, execute the exact create_sidebar_section or move_thread_to_sidebar_section request once. Refresh list_threads, replan, and call threads-sync with {}. The existing sidebar journal and native inventory reconcile the original action. A lost response is reconciled through the same journal and fresh inventory; never repeat an uncertain create or move. Missing sidebar tools, native rejection, ambiguous destinations, or incomplete readback remain blockers. Replan afterward. A known partial conversation creation may resume through this same route; an ambiguous create without its native ID remains blocked—never clear its journal or blindly create again.
  5. Before each schedule action, refresh native project/thread lookups and the plan. Require the selected action to match the authorized scope, then call prepare --plugin-data <pluginData> with {} for the next action or {"id":"<manifest automation id>"} for one explicitly selected job. Leave unrelated actions pending. The helper journals one action and returns the exact native request. Invoke automation_update with that request unchanged. No name-based adoption, deletion, or generated substitute prompt is permitted.
  6. For a retained suggested_create or suggested_update, let the user review and save the native card. The rendered-card response is not a saved receipt. Keep the original preparation pending, do not issue another proposal, and after the user saves call acknowledge with {}. automation-review-pending means the expected save has not appeared; wait for review. A denial stops the action. Cancel only after the user dismisses the proposal and the helper verifies unchanged state. Only new timezone-qualified schedules use suggested_create, because Codex direct creation does not support their DTSTART recurrence. Keep the timezone and do not create a temporary local-time schedule. Other creates and all updates, including timezone changes, stay direct; do not substitute suggestion cards after unrelated failures. For immediate writes, call acknowledge --plugin-data <pluginData> with {}. The runtime resolves its original preparation from this chat’s native response. The helper verifies saved settings before recording success. Stop on any tool failure, unreadable state, or divergence; retain and report earlier verified actions. Never infer saved settings from a rendered view card.
  7. If a response was lost after a possible write, call acknowledge with {} in the original preparation chat. Recovery requires the unique exact pending marker and expected saved definition; unrelated edits or a changed valid manifest do not invalidate that completed effect. Replan before any further native write. If the write definitively failed without changing its target, cancel with {} in that chat can clear the pending operation. A pending create also requires no new native IDs, so an unmarked partial create cannot cause a blind duplicate. Older journals retain their whole-scheduler cancellation check. A divergent target remains blocked; never blindly create again or clear the journal by editing files.
  8. Repeat until the final plan is aligned, or no schedule actions remain and only model drift or a busy model update is pending. Attempt the supported configuration-turn handoff once for confirmed idle-chat writer contention. If that cannot complete, report schedules synced and the requested/observed model separately; do not claim full convergence or repeatedly retry a known writer lock. Report saved-configuration convergence separately from scheduled execution. Execution and delivery telemetry are unavailable through this adapter. Routing-kind migrations first pause and retain the old schedule, then create the replacement; never skip the pause/readback step. Removed declarations pause owned jobs and retain their mapping; reintroduced IDs reuse still-present native jobs. Install and automation sync retain verified-deleted jobs as retired ownership history. A retired ID is not silently reused; declare a new ID for a new automation. Existing notification preferences remain native-owned.

Install owns the complete activation flow: reconcile the retained chat, prepare the native schedule, apply it through automation_update, and acknowledge the exact saved result. Use setupRuntime and automationRuntime from the trusted context; activation does not require intakeRuntime in the installer chat. Do not ask the operator to run internal routes or start a new chat merely because that scanner route is absent.

New automation chats use native on-request approval, auto_review, and workspace-write. The adapter verifies those settings after creation through a fresh native process. Do not request a global scanner allow rule or restart acknowledgment. Each scheduled command remains subject to native approval review; installation does not preapprove it. If saved chat permissions diverge, report the exact chat and ask the operator to restore its native settings before replanning; do not change an existing ready chat's permissions. An automatic-review denial must remain a blocker and be reported with its reason. Saved settings do not prove a scheduled poll ran; verify execution separately when authorized.

For issue intake, include the reserved github-issue-assignment job and retained chat in the authorized plan. Its model and effort come from models.low. The same conversation reconciliation places the exact owned ISSUE ASSIGNMENTS chat in AGENT SYSTEM, preserving its workspace and history. Acknowledgment initializes the baseline after native readback and provider checks; if it fails, retain the pending action and report that the native job may already be active. After policy revocation, acknowledge the exact native effect and replan to pause it. This recovery also works with a missing or invalid manifest; it never authorizes setup or infers ownership by title.

For automation-thread-host-access-required, report that the native app-server needs approved host access to its Codex state directory and retry the same trusted operation through native approval. Never expose captured stderr or repair this by changing profile permissions.

Use the ambient Codex profile and its permissions. Prompt jobs may explicitly run scripts but remain model-backed. Do not convert command declarations, invent timeout guarantees, change profile permissions, or create managed Codex credentials. See Codex automations for supported schedules and recovery diagnostics.

Checkpoints

  • OpenClaw installation has native Allow once approval or verified activated same-agent automation authority for the occurrence. Setup children and later interactive turns inherit neither.
  • Standalone Codex has a live active binding and a fresh digest-bound plan before each native write. Recovery may record an exact prepared effect after a valid manifest change, but cannot authorize another write.
  • A setup step excluded from the selected runtime runs neither its check nor its apply command.
  • Omitted runtimes means the step applies to both OpenClaw and Codex.

Completion Criteria

  • The selected runtime completed its owned projection or returned a precise failure.
  • The report distinguishes healthy, applied, skipped, and failed setup steps.
  • Earlier applied steps remain in effect when a later step fails; never claim rollback.
  • Standalone Codex did not reconcile any OpenClaw-owned lifecycle state.

Bundled Resources

  • agents/openai.yaml: Codex-facing display metadata and starter prompt.
  • assets/icon-small.svg and assets/icon-large.svg: install marks for the Codex interface.

Validation

  • Confirm the execution route came from trusted runtime context.
  • Confirm OpenClaw used native chat approval and standalone Codex used its setup adapter and authorized native automation operations.
  • Confirm runtime filtering and ordered stop-on-failure behavior are visible in the result.

04 同仓库更多 Skills

tanaabased
tanaabased/openclaw-agent-system

agent-system-task-update

Publish material verified task progress to its GitHub issue or linked open pull request at authorized material changes or on request, using the configured reply skill and voice.

★ 1
tanaabased
tanaabased/openclaw-agent-system

agent-system-task-retirement

Retire one managed task tracked by a GitHub issue, or clean up one explicitly selected unmanaged native chat in Codex or OpenClaw. Use for "clean up task", "clean up chat", or "retire task"; GitHub state stays unchanged.

★ 1
tanaabased
tanaabased/openclaw-agent-system

agent-system-task-launch

Start or resume work from a GitHub issue or existing same-repository pull request in Codex or OpenClaw. Use for "work on task", "work on issue", "continue this PR", or "start task" requests that launch managed work, with immediate dispatch and no scheduled-intake activation.

★ 1
tanaabased
tanaabased/openclaw-agent-system

agent-system-task-implementation

Implement an authorized GitHub-backed task plan in the existing checkout, or resume an explicitly managed Agent System workflow. Ordinary native work and chat handoffs use the implementation body without managed enrollment.

★ 1
tanaabased
tanaabased/openclaw-agent-system

agent-system-task-assessment

Assess or plan a selected or admitted task tracked by a GitHub issue in the current chat using the agent configuration. Use for "assess this issue" or "plan this task"; develop a full plan in native context and show a concise review.

★ 1
tanaabased
tanaabased/openclaw-agent-system

agent-system-notifications-reset

Preview and reset local notification tracking and notification coordinators, with optional purge of managed task chats and checkouts.

★ 1