Automation Authoring Workflow
Use this workflow to ship portal automation safely: keep deterministic execution first, and use agentic orchestration only where it improves delivery speed.
Operating model
Section titled “Operating model”- Scope the task and confirm boundaries.
- Run two-phase execution for complex work: discovery, then implementation.
- Keep logic changes on a strict verification bar.
- Capture results in
docs/codex-results/for auditability.
Team orchestration command
Section titled “Team orchestration command”Run the default two-phase team workflow:
node scripts/codex/orchestrator.mjs --workflow .codex/workflows/default-two-phase-team.json --request "<task_description>"Use npm run codex:team -- --request "<task_description>" when launching through package scripts.
Verification bar
Section titled “Verification bar”For main logic changes, run:
npm run test && npm run check && npm run buildFor docs-only changes, run the docs build:
npm run docs:buildScratchpad workflow markers
Section titled “Scratchpad workflow markers”Set explicit workflow markers in .cursor/scratchpad.md:
Workflow: TDDWorkflow: REQUIREMENTSWorkflow: CUA_META_AGENTWorkflow: TASK
Only TDD workflows should track Phase: RED, Phase: GREEN, or Phase: REFACTOR.
Snippet authoring skill
Section titled “Snippet authoring skill”Use .agents/skills/snippet-authoring/ for focused Playwright snippet work.
- Build in iterative loops: assess, write, execute, validate, refine.
- Reuse shared resources:
resources/snippet_template.pyresources/selector_strategies.mdresources/snippet_registry.md
- Keep snippets composable and return structured JSON with
successanderrorfields.
This workflow keeps execution aligned with Mimic’s RPA-first, LLM-fallback delivery model.