AgentSkillsCN

ironai-flow

在 Codex 中执行 IronAI 交付工作流程:先运行预备检查,输出一份简明的预代码计划,附带文件清单与具体步骤;在 React + Vite + Tailwind 仓库中实施最小化、最安全的改动;运行必要的验证命令;在专门的 codex/* 分支上提交更改,并在不将代码推送到主分支的情况下,为本地团队提供交接指导。当用户提出“准备 -> 实施 -> 测试/构建 -> 提交 -> 交接”这一系列需求时,此工具将助您高效完成任务。

SKILL.md
--- frontmatter
name: ironai-flow
description: Execute the iron-ai delivery workflow in Codex: run prep checks, output a short pre-code plan with file list and steps, implement minimal safe changes in the React + Vite + Tailwind repo, run required validation commands, commit on a dedicated codex/* branch, and provide local handoff instructions without shipping to main. Use when a user asks for prep -> implement -> test/build -> commit -> handoff execution.

IronAI Flow

Follow this workflow exactly.

Core rules

  • Keep diffs minimal and avoid unrelated refactors.
  • Never push or merge to main.
  • Never ship to production.
  • Never overwrite the user's local state.
  • If local may be dirty, instruct the user to run git stash -u before applying changes.
  • Use a dedicated branch named codex/<slug>-<YYYYMMDD-HHMM>.

Phase 1: Prep

Run and report:

  • git status --porcelain
  • git rev-parse --abbrev-ref HEAD
  • git worktree list (if available)

Then run:

  • npm ci

Before writing code, output a short plan with:

  • file list
  • step list

Phase 2: Implement

  • Implement step-by-step.
  • Keep scope tightly aligned to the request.

Phase 3: Validate (required)

Run in this order before marking work done:

  • npm ci
  • npm test (or npm run test)
  • npm run build
  • npm run lint (only if package.json defines lint)

Then show:

  • git diff --stat
  • short summary of changes

Phase 4: Commit

  • Commit changes with a clear message on the codex/* branch.
  • Do not merge.

Phase 5: Handoff output

Always include:

  • branch name
  • Codex click-path: Hand off to local → Apply (never overwrite)
  • local commands:
    • git status
    • ironai-local (or ./scripts/ironai-local.sh)
  • a 30-second smoke-test checklist