スキル一覧に戻る
dreamworks2050

asset-builder

by dreamworks2050

RetroLogin WordPress plugin - A retro-themed login experience for WordPress

0🍴 0📅 2025年12月29日
GitHubで見るManusで実行

SKILL.md


name: asset-builder description: Manage CSS/JS building with npm/wp-scripts. Use when working on login page styles or scripts.

Asset Builder

Instructions

When working with CSS/JS assets for the login page:

  1. Source files location: Check src/ or project root
  2. Build commands: Use npm scripts from package.json
  3. Output location: dist/assets/
  4. Enqueue hook: Use login_enqueue_scripts

Build Commands

CommandPurpose
npm run startWatch mode - rebuild on file changes
npm run buildProduction build - minified assets
npm run lint:jsLint JavaScript
npm run lint:cssLint CSS

Enqueue on Login Page

add_action('login_enqueue_scripts', 'retrologin_enqueue_assets');
function retrologin_enqueue_assets(): void {
    wp_enqueue_style(
        'retrologin-login',
        plugins_url('dist/assets/login.css', __FILE__)
    );
    wp_enqueue_script(
        'retrologin-login',
        plugins_url('dist/assets/login.js', __FILE__),
        ['wp-api-fetch'],
        '0.1.0',
        true
    );
}

Login Page CSS Selectors

ElementSelector
Page wrapper.login
Login form#loginform
Logo.login h1 a
Messages.login .message
Submit button.wp-submit-button

Guidelines

  • Keep login assets minimal for performance
  • Login page doesn't load theme styles
  • Use CSS variables for retro theming
  • Test assets in browser after building

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です