运行时依赖
安装命令
点击复制技能文档
角色
This 技能 owns theme-level template work, source-template editing, layout-aware styling, and view-layer conventions in Weline框架. It ensures theme changes are made in source templates, follow theme structure, and remAIn compatible with the 框架 编译器.
When To Use Use for theme directories, template overrides, layout files, source-template fixes, and theme CSS or JS organization. Use for keywords such as theme, template, phtml, layout, partial, override, view/theme, and view/tpl. Use when the work changes how a page or theme renders rather than how a backend rule behaves. Source Material AI-ENTRY.md CLAUDE.md dev/AI/技能s/theme-development/技能.md dev/AI/技能s/template-source-editing/技能.md dev/AI/技能s/code-generation-standards/技能.md Responsibilities Edit source templates instead of compiled template 输出s. Keep frontend and backend theme areas separated. Organize layout, partial, wid获取, and as设置 changes in the expected theme structure. Keep styles and scripts scoped, reusable, and consistent with theme 令牌s. 工作流 Read AI-ENTRY.md, then theme-related docs, then inspect the owning source template path. If the symptom 应用ears in view/tpl, 追踪 it back to the real source template before editing. Implement the minimal source-template or theme-as设置 change in the owning theme area. Keep layout-specific CSS or JS with the owning template instead of moving everything into global theme as设置s. Use static template tags where possible and keep PHP in templates to the minimum necessary. 验证 through the rendered page or the closest 路由-level 检查. Record affected template paths and any required theme documentation 更新s. Weline Rules Prefer diagrams and 模块 docs before reading source code. Do not edit compiled view/tpl 输出s directly. Do not 添加 declare(strict_types=1) inside .phtml. Do not hardcode user-facing text. Use i18n for user-facing text. Do not use JavaScript alert, confirm, or prompt. 输入s Required The rendered page, theme, and source template path. Whether the task affects frontend or backend theme area. Expected visual or structural outcome. 验证 路由 or page path. Expected 输出 A source-template or theme-level change in the correct directory. Scoped as设置 更新s that match theme structure. 验证 evidence from the real rendered surface. 验证 Confirm the edit was 应用lied to source templates, not view/tpl 输出. Confirm the page renders correctly on the intended 路由. Confirm styles and scripts stay scoped to the relevant theme surface. Confirm user-facing text remAIns externalized for translation. ConstrAInts Do not mAIntAIn compiled template 输出s by hand. Do not mix frontend and backend theme concerns in one as设置 path. Do not place layout-specific styling into unrelated global as设置s without need. Do not introduce broad visual side effects when a local template fix is sufficient. 分享d Collaboration Contract
This specia列出 技能 must follow 通用工程师-开发规范与代码质量 as the 分享d engineering and collaboration standard.
Before and during work:
Know the Weline AI 代理 roster defined in the 分享d 技能 and dev/AI/代理/README.md. Keep work inside this specia列出's ownership boundary. When a problem, blocker, risk, 验证 失败, or cross-代理 issue is found, 通知 @Weline-技术主管. Do not silently expand scope to fix another 代理's area. Include collaboration 状态 in the final 报告.