nativephp-desktop

nativephp-desktop is a skill for Claude Code, Codex from tecbay/laravel-ai-skills. It costs 85 tokens per session (3,200 once invoked), scanned A, original, MIT.

A guide to building desktop applications with Laravel, PHP, HTML, CSS, and JavaScript through NativePHP for Desktop.

In plain words
What is it for?
Use it to create desktop windows, menus, notifications, dialogs, local SQLite storage, background queues, child processes, and production builds.
Why use it?
It lets Laravel developers package familiar web application code as a desktop program with windows and operating-system features.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create desktop windows, menus, notifications, dialogs, local SQLite storage, background queues, child processes, and production builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tecbay/laravel-ai-skills/nativephp-desktop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tecbay/laravel-ai-skills --skill nativephp-desktop
Clone the repo
git clone --depth 1 https://github.com/tecbay/laravel-ai-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nativephp-desktop

README.md
[![agentmods](https://agentmods.dev/badge/skills/tecbay/laravel-ai-skills/nativephp-desktop/github.svg)](https://agentmods.dev/skills/tecbay/laravel-ai-skills/nativephp-desktop)
Your own site
<a href="https://agentmods.dev/skills/tecbay/laravel-ai-skills/nativephp-desktop"><img src="https://agentmods.dev/badge/skills/tecbay/laravel-ai-skills/nativephp-desktop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nativephp-desktop

Your own site · 80×15
<a href="https://agentmods.dev/skills/tecbay/laravel-ai-skills/nativephp-desktop"><img src="https://agentmods.dev/badge/skills/tecbay/laravel-ai-skills/nativephp-desktop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,200 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.03200
Opus 5 $0.00043 $0.01600
Sonnet 5 $0.00017 $0.00640
Haiku 4.5 $0.00009 $0.00320

Measured 9d ago against content hash 2564851f2fc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

nativephp-desktop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

nativephp-desktop/SKILL.md · 352 lines

How it starts

The opening of the file, as written. The whole thing — 352 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NativePHP for Desktop v2

NativePHP lets you build native desktop apps with Laravel + PHP + HTML/CSS/JS. It bundles PHP (via Static PHP CLI) with an Electron shell. UI is your choice: Livewire, Inertia, React, Vue, or plain Blade.

Package: nativephp/desktop ^2.0 | Namespace: Native\Desktop\ | Requires: PHP 8.3+, Laravel 11+, Node 22+

Quick Start

composer require nativephp/desktop
php artisan native:install
php artisan native:run          # dev build
composer native:dev             # native:run + npm run dev concurrently

Test in browser first, then run natively. Code changes require restarting native:run (app is copied into Electron build env).

Architecture

  1. Electron shell starts
  2. php artisan migrate runs (production/user DB)
  3. php artisan serve starts PHP server
  4. NativeAppServiceProvider::boot() runs (open windows, menus, hotkeys)
  5. ApplicationBooted event fires

Configure app bootstrap in app/Providers/NativeAppServiceProvider.php (published by installer).

NativeAppServiceProvider

namespace App\Providers;

use Native\Desktop\Facades\Window;
use Native\Desktop\Facades\Menu;
use Native\Desktop\Contracts\ProvidesPhpIni;

class NativeAppServiceProvider implements ProvidesPhpIni
{
    public function boot(): void
    {
        Menu::default();
        Window::open()
            ->width(1200)
            ->height(800)
            ->rememberState();
    }

    public function phpIni(): array
    {
        return ['memory_limit' => '512M', 'max_execution_time' => '0'];
    }
}

Core Facades

Facade Purpose Reference
Window Open/close/resize native windows windows.md
Menu Application & context menus application-menu.md
MenuBar macOS menu bar / system tray apps menu-bar.md
Notification OS system notifications notifications.md
Dialog File open/save dialogs dialogs.md
Alert Native alert/confirm dialogs alerts.md
App Quit, relaunch, focus, badge, locale application.md
System Encrypt/decrypt, TouchID, print, theme system.md
Clipboard Read/write clipboard clipboard.md
GlobalShortcut System-wide hotkeys global-hotkeys.md
ChildProcess Managed background processes child-processes.md
QueueWorker Start/stop queue workers queues.md

Read the full file on GitHub · 352 lines

Files

What ships with it

49 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 352 lines · 85 tokens per session scan A 2564851f2fc6

Subscribe to this mod's changes

nativephp-desktop is a skill published in the GitHub repository tecbay/laravel-ai-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 85 tokens to every session and 3,200 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

laravel-security

Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.

hashgraph-online/awesome-codex-plugins · 34 tokens

integration-fixture

Create or validate a .test integration fixture under tests/php/Integration/Fixtures.

phel-lang/phel-lang · 16 tokens

create-module

Scaffold a new Marko module — a self-contained Composer package with composer.json, namespaced src/, and Pest tests. Use this skill whenever the user asks to create, add, or scaffold a new Marko module or package. Concrete triggers: 'create a module named payment', 'scaffold an acme/blog package', 'add a new module…

marko-php/marko · 120 tokens

llamaindex-development

Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.

Mindrally/skills · 32 tokens

Behat BDD Testing

PHP BDD testing with Behat framework using Gherkin feature files, Mink browser extension, context classes, and Symfony integration for behavior-driven acceptance testing.

PramodDutta/qaskills · 37 tokens