action-writer — laravel action creation action-writer, journalOS, djaiss, community, laravel action creation, ai agent skill, ide skills, agent automation, alpinejs integration, journalos conventions, action testing with composer, unit testing with journalos

v1.0.0
GitHub

About this Skill

Perfect for Full Stack Agents needing streamlined Action creation and update capabilities in Laravel and AlpineJS environments. action-writer is a skill that creates or updates Actions in app/Actions using JournalOS conventions for validation, logging, queues, and tests.

Features

Creates Action class with execute() implementation
Adds or updates unit tests in tests/Unit/Actions
Runs composer journalos:unit for testing
Follows JournalOS conventions for validation and logging
Supports AlpineJS and Laravel frameworks
Generates Actions with input/output types and verb-first naming

# Core Topics

djaiss djaiss
[2]
[0]
Updated: 2/17/2026

Quality Score

Top 5%
57
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add djaiss/journalOS/action-writer
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The action-writer skill by djaiss is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for laravel action creation, alpinejs integration, journalos conventions.

Ideal Agent Persona

Perfect for Full Stack Agents needing streamlined Action creation and update capabilities in Laravel and AlpineJS environments.

Core Value

Empowers agents to create and update Actions in app/Actions using JournalOS conventions, including validation, logging, queues, and tests, leveraging Laravel and AlpineJS for robust application development.

Capabilities Granted for action-writer

Creating new Actions with validation and logging
Updating existing Actions with queue integration
Generating unit tests for Actions in tests/Unit/Actions

! Prerequisites & Limits

  • Requires Laravel and AlpineJS setup
  • Limited to JournalOS conventions
  • Needs composer for unit testing
Project
SKILL.md
2.7 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8
SKILL.md
Readonly

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

  1. Actions represent a single user intent (example: LogHealth, CreateBook, ResetWorkData).
  2. Keep inputs minimal and explicit. Use descriptive parameter names.
  3. Decide whether the Action returns a model, a scalar, or nothing (void).

Step 2: Create the Action class

  1. Use Artisan to create the class:
bash
1php artisan make:class Actions/ActionName --no-interaction
  1. Use declare(strict_types=1); and the App\Actions namespace.
  2. Default to final readonly class with constructor property promotion.
  3. If the Action must store a result (ex: $this->book), keep it final but not readonly, and declare a private property for the result.
  4. Always include explicit return types.

Step 3: Implement the action flow

  1. Typical flow:
    • validate input
    • perform data changes
    • log user action
    • update last activity date
    • refresh content presence (when journal entry content changes)
  2. Validate ownership with ModelNotFoundException when a user does not own a journal or entry.
  3. Validate input with ValidationException::withMessages([...]) when values are invalid.
  4. Sanitize user-provided text with TextSanitizer::plainText().
  5. Use Eloquent models and relationships. Avoid DB::.
  6. Queue background work on the low queue:
php
1LogUserAction::dispatch(...)->onQueue('low'); 2UpdateUserLastActivityDate::dispatch($user)->onQueue('low'); 3CheckPresenceOfContentInJournalEntry::dispatch($entry)->onQueue('low');
  1. If the Action mutates a journal entry module, reload the relationship before returning:
php
1$this->entry->load('moduleHealth');

Step 4: Add tests

  1. Create tests/Unit/Actions/ActionNameTest.php.
  2. Use RefreshDatabase and Queue::fake().
  3. Use factories with explicit foreign keys. Never use for() on factories.
  4. Cover:
    • happy path
    • invalid input (throws ValidationException)
    • unauthorized access (throws ModelNotFoundException)
    • queued jobs on low queue

Step 5: Run tests and lint

  1. Run the smallest relevant test file:
bash
1php artisan test tests/Unit/Actions/ActionNameTest.php
  1. Run composer journalos:unit.
  2. Run Pint:
bash
1vendor/bin/pint --dirty

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is action-writer?

Perfect for Full Stack Agents needing streamlined Action creation and update capabilities in Laravel and AlpineJS environments. action-writer is a skill that creates or updates Actions in app/Actions using JournalOS conventions for validation, logging, queues, and tests.

How do I install action-writer?

Run the command: npx killer-skills add djaiss/journalOS/action-writer. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for action-writer?

Key use cases include: Creating new Actions with validation and logging, Updating existing Actions with queue integration, Generating unit tests for Actions in tests/Unit/Actions.

Which IDEs are compatible with action-writer?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for action-writer?

Requires Laravel and AlpineJS setup. Limited to JournalOS conventions. Needs composer for unit testing.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add djaiss/journalOS/action-writer. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use action-writer immediately in the current project.

Related Skills

Looking for an alternative to action-writer or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

linear

Logo of lobehub
lobehub

Linear issue management. MUST USE when: (1) user mentions LOBE-xxx issue IDs (e.g. LOBE-4540), (2) user says linear, linear issue, link linear, (3) creating PRs that reference Linear issues. Provides

73.4k
0
Communication

testing

Logo of lobehub
lobehub

Testing guide using Vitest. Use when writing tests (.test.ts, .test.tsx), fixing failing tests, improving test coverage, or debugging test issues. Triggers on test creation, test debugging, mock setup

73.3k
0
Communication

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication