Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

moodle5-themeMoodle5 主题

Agent Skill

moodle5-theme 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

517

周安装

22

GitHub Stars

1

下载量

181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:moodle5-theme(Moodle5 主题)
来源仓库:https://github.com/nicolasflores9/skills
仓库路径:skills/moodle5-theme
安装命令:
npx skills add https://github.com/nicolasflores9/skills --skill moodle5-theme
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nicolasflores9/skills --skill moodle5-theme

简介

moodle5-theme 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理仓库状态和协作事项。

  • 适用于围绕代码变更、仓库状态或协作流程进行信息处理的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 建议结合原始 README 和仓库内容进一步核验具体功能和使用方法。

SKILL.md

Moodle 5 Theme Development

Skill for creating and modifying Moodle 5.1.3+ themes based on Boost (Bootstrap 5.3).

Quick Context

Moodle 5.1+ uses Bootstrap 5.3, themes reside under public/theme/, and layout inheritance from the parent theme is automatic. The SCSS pipeline has three phases: pre-SCSS → main (preset) → extra-SCSS. Templates use Mustache with Moodle-specific helpers ({{#str}}, {{#pix}}, {{#js}}).

Workflow

1. Understand What the User Needs

Before generating code, determine:

  • New or existing theme? If new, generate the complete scaffolding. If existing, ask for the theme name (Frankenstyle component theme_name).
  • What do they want to change? Styles/colors (→ SCSS), page structure (→ templates/layouts), admin options (→ settings), rendering behavior (→ renderers), icons/images (→ pix_core/pix_plugins).
  • Theme name: The Frankenstyle identifier (theme_mytheme) that will be used across all files.

2. Consult the Appropriate Reference

Based on the type of change, read the corresponding reference file before generating code:

TaskReference file
Create new theme (scaffolding)references/structure.md
Modify styles, colors, SCSSreferences/scss-pipeline.md
Override Mustache templatesreferences/templates.md
Add/modify admin settingsreferences/settings.md
Customize renderers or outputreferences/renderers.md
Migrate from Bootstrap 4 to 5references/bootstrap5-migration.md
Cache issues or debuggingreferences/debugging.md

Read only the files relevant to the current task. For cross-cutting tasks (e.g., adding a color setting that affects SCSS), read both files.

3. Generate Functional Code

When generating files, follow these rules:

File structure: All themes reside under public/theme/<name>/. Always generate the full path so the user knows exactly where to place each file.

Required files (for new themes):

  • version.php — Plugin metadata
  • config.php — Theme configuration (inheritance, layouts, SCSS callbacks)
  • lang/en/theme_<name>.php — Minimum language strings
  • lib.php — SCSS callbacks and helper functions

Code conventions:

  • Every PHP file starts with <?php followed by defined('MOODLE_INTERNAL') || die(); (except layout files that open with <?php require_once...)
  • Use namespace theme_<name>\output for renderer classes
  • Language strings always go in lang files, never hardcoded
  • SCSS variables use !default in presets; without !default in pre-SCSS to force override
  • Mustache templates include the GPL license boilerplate and @template annotation

SCSS — Compilation order: The order is critical and all generated SCSS must respect the three phases:

  1. prescsscallback — Variables that override Bootstrap !default
  2. $THEME->scss — Main preset with @import "moodle"
  3. extrascsscallback — Final rules with highest cascade priority

Mustache templates — Overriding: To override a core or plugin template, the path in the theme must be: theme/<name>/templates/<component>/<template>.mustache

Where <component> is the Frankenstyle name: core, mod_quiz, block_myoverview, etc.

Settings — Cache invalidation: Every setting that affects CSS/SCSS must include:

$setting->set_updatedcallback('theme_reset_all_caches');

4. Bootstrap 5.3 — Modern Code

All generated code must use Bootstrap 5.3 syntax:

  • Logical classes: .ms-*, .me-*, .ps-*, .pe-*, .text-start, .text-end
  • Data attributes with bs prefix: data-bs-toggle, data-bs-target
  • No jQuery: use direct Bootstrap module imports
  • .visually-hidden instead of .sr-only

Do not generate code with Bootstrap 4 syntax unless the user explicitly asks for backward compatibility.

5. Delivery

Generate complete, functional files with:

  • Exact path where they should be placed in the Moodle installation
  • Inline comments explaining non-obvious parts
  • Post-installation instructions if applicable (purge cache, increment version)

When modifying SCSS or templates, remind the user to purge caches:

php admin/cli/purge_caches.php --theme
# Or more specifically:
php admin/cli/build_theme_css.php --themes=<name> --verbose

Interaction Example

User: "I want to add a custom color field in my theme settings that changes the header color"

Flow:

  1. Read references/settings.md and references/scss-pipeline.md
  2. Generate the admin_setting_configcolourpicker setting in settings.php
  3. Add the language string in lang/en/theme_<name>.php
  4. Map the setting to an SCSS variable in get_pre_scss() in lib.php
  5. Create SCSS rule in scss/post.scss using the variable for headers
  6. Include set_updatedcallback('theme_reset_all_caches')

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.09%
按下载量换算67

Claude

30.35%
按下载量换算55

Cursor

18.15%
按下载量换算33

Gemini CLI

9.01%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills