david-li0406/meta-skill-evloving/action-writer
Claude Code and agent skill by david-li0406/meta-skill-evloving
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Create or update an Action in app/Actions following JournalOS conventions (validation, logging, queues, tests).
Install
npx vskill@latest install david-li0406/meta-skill-evloving/action-writerSKILL.md
The same SKILL.md was published earlier as david-li0406/meta-skill-evloving/action-writer.
Action Writer
This Skill helps you add or update an Action in app/Actions using the project conventions.
When to use this Skill
Use this Skill when:
- Creating a new Action
- Updating an existing Action
Instructions
Quick start
- Pick the action name (verb-first) and its input/output types.
- Create the Action class and implement
execute(). - Add or update unit tests in
tests/Unit/Actions. - Run the smallest relevant test(s), then
composer journalos:unit.
Step 1: Choose the action name and scope
- Actions represent a single user intent (example:
LogHealth,CreateBook,ResetWorkData). - Keep inputs minimal and explicit. Use descriptive parameter names.
- Decide whether the Action returns a model, a scalar, or nothing (
void).
Step 2: Create the Action class
- Use Artisan to create the class:
- Use
declare(strict_types=1);and theApp\Actionsnamespace. - Default to
final readonly classwith constructor property promotion. - If the Action must store a result (ex:
$this->book), keep itfinalbut notreadonly, and declare a private property for the result. - Always include explicit return types.
Step 3: Implement the action flow
- Typical flow:
- validate input
- perform data changes
- log user action
- update last activity date
- refresh content presence (when journal entry content changes)
- Validate ownership with
ModelNotFoundExceptionwhen a user does not own a journal or entry. - Validate input with
ValidationException::withMessages([...])when values are invalid. - Sanitize user-provided text with
TextSanitizer::plainText(). - Use Eloquent models and relationships. Avoid
DB::. - Queue background work on the
lowqueue:
- If the Action mutates a journal entry module, reload the relationship before returning:
Step 4: Add tests
- Create
tests/Unit/Actions/ActionNameTest.php. - Use
RefreshDatabaseandQueue::fake(). - Use factories with explicit foreign keys. Never use
for()on factories. - Cover:
- happy path
- invalid input (throws
ValidationException) - unauthorized access (throws
ModelNotFoundException) - queued jobs on
lowqueue
Step 5: Run tests and lint
- Run the smallest relevant test file:
- Run
composer journalos:unit. - Run Pint:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill-flow/data/skills-refined-36k/skillsmp/action-writer/SKILL.md
Popularity
- Repository stars
- 2
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/action-writer)