Agent Skillsiii-hq/iii › iii-exec

iii-exec

GitHub

在引擎启动时按顺序执行Shell命令管道,保持最终命令长期运行,支持文件监听自动重启。用于管理应用生命周期、前置准备步骤及开发热重载,配置完全声明式,无运行时调用接口。

engine/src/workers/shell/skills/SKILL.md iii-hq/iii

Trigger Scenarios

引擎启动阶段需要执行一系列依赖的Shell命令 需要监控特定文件变化并自动重启服务或进程

Install

npx skills add iii-hq/iii --skill iii-exec -g -y
More Options

Non-standard path

npx skills add https://github.com/iii-hq/iii/tree/main/engine/src/workers/shell/skills -g -y

Use without installing

npx skills use iii-hq/iii@iii-exec

指定 Agent (Claude Code)

npx skills add iii-hq/iii --skill iii-exec -a claude-code -g -y

安装 repo 全部 skill

npx skills add iii-hq/iii --all -g -y

预览 repo 内 skill

npx skills add iii-hq/iii --list

SKILL.md

Frontmatter
{
    "name": "iii-exec",
    "description": "Run a sequential pipeline of shell commands at engine startup, keeping the final command alive for the engine's lifetime, with optional file-watch restarts. Configure it entirely in `iii-config.yaml`."
}

iii-exec

The iii-exec worker runs a sequential pipeline of shell commands as part of engine startup. Each entry in the configured exec: array launches as a separate child process and must exit 0 before the next entry starts; the final entry is kept running as a long-lived process for the engine's lifetime. An optional watch: glob list restarts the whole pipeline whenever a matching file changes.

The worker exposes no callable functions and no trigger types — its surface is entirely declarative. There is nothing for an agent to call at runtime; configure exec: (and optionally watch:) on the worker and the engine manages the lifecycle, supervising and shutting the process down alongside itself.

When to Use

  • The engine should manage the lifecycle of a separate long-running app or daemon (boot, supervise, shut down together).
  • You need prep steps that must succeed in order before a long-lived server starts (for example, install then build then serve).
  • During development, the pipeline should restart automatically when source files change (via watch:).

Boundaries

  • Not a runtime command executor — the pipeline runs at engine startup only; there is no function to "run this command now."
  • Not a scheduler — use the iii-cron trigger for recurring jobs; iii-exec is one-shot startup plus a single long-lived process.
  • Entries run sequentially, not in parallel, and do not share working directory or environment; chain dependent steps with && inside one entry.
  • A non-zero exit on any intermediate command stops the pipeline and the long-lived command never starts.

Configuration

  • exec: string[] (required) — sequential pipeline of shell commands. Intermediate entries must exit 0; the final entry is held open as the long-lived process.
  • watch: string[] (optional) — glob patterns that restart the whole pipeline on file change. Caveat: the watcher matches by root directory plus file extension only — the filename portion is ignored, so src/**/*.test.ts matches every .ts file under src/, not just test files. Files without an extension are never matched. Use ** for recursive depth (config/*.json watches only the top level; config/**/*.json watches at any depth).
- name: iii-exec
  config:
    watch:
      - steps/**/*.{ts,js}
    exec:
      - cd frontend && npm install
      - cd frontend && npm run build
      - bun run --enable-source-maps index-production.js

The first two commands run in order and must exit 0; the third stays running for the worker's lifetime. If a prep step fails, the pipeline stops and the engine surfaces the failure.

Version History

  • c6f6fde Current 2026-08-20 17:17

Same Skill Collection

crates/iii-worker/src/sandbox_daemon/skills/SKILL.md
engine/src/workers/bridge_client/skills/SKILL.md
engine/src/workers/configuration/skills/SKILL.md
engine/src/workers/cron/skills/SKILL.md
engine/src/workers/engine_fn/skills/SKILL.md
engine/src/workers/observability/skills/SKILL.md
engine/src/workers/pubsub/skills/SKILL.md
engine/src/workers/queue/skills/SKILL.md
engine/src/workers/rest_api/skills/SKILL.md
engine/src/workers/state/skills/SKILL.md
engine/src/workers/stream/skills/SKILL.md
engine/src/workers/worker/skills/SKILL.md
skills/iii-architecture-patterns/SKILL.md
skills/iii-core-primitives/SKILL.md
skills/iii-engine-config/SKILL.md
skills/iii-error-handling/SKILL.md
skills/iii-sdk-reference/SKILL.md
skills/presentation/SKILL.md
skills/iii-getting-started/SKILL.md

Metadata

Files
0
Version
c6f6fde
Hash
51fd95af
Indexed
2026-08-20 17:17

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 00:57
浙ICP备14020137号-1 $お客様$