Codex JournalOS Action Writer for Laravel Actions and Queue Tests
Define a JournalOS Action's inputs, return type, validation, and side effects. Check both successful and invalid inputs with local fixtures.
中文Install in Codex
Codex with a JournalOS checkout, PHP and Composer, and its local test setup.
- Copy the entire pinned `.codex/skills/action-writer/` directory to `.agents/skills/action-writer/` in the target checkout.
- Open Codex in that checkout and invoke `$action-writer` with the example task and desired output.
Example task
Invoke `$action-writer` to plan a practice action that marks a book note as organized. Use synthetic records to check a blank title and a successful change.What to check
The Action has explicit input and return types, and tests verify the invalid outcome, successful update, and expected queued jobs.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why fake the queue in an Action test?
A fake lets the test verify that the intended jobs were dispatched to the right queue without a live worker.