Skills
收录 99,448 个为 Agent 打包的专项能力与操作指引,复制一行命令即可安装。
开发
在构建自定义对话框、扩展 List View、创建 Page 控制器,或添加 Kanban/Calendar 视图和实时更新时使用。可防止因同步调用导致的 UI 冻结、因字段定义错误导致的对话框损坏,以及遗漏的 socket 事件。涵盖 frappe.ui.Dialog、frappe.ui.form.MultiSelectDialog、List View 定制、frappe.pages、Kanban Board、Calendar View、frappe.realtime、socket.io publish/subscribe。关键词:Dialog、List View、Page、Kanban、Calendar、realtime、socket.io、frappe.ui、MultiSelectDialog、publish_realtime、popup dialog、custom dialog、list view customize、realtime update、live data、kanban setup。
在 Frappe 中实现文档 Workflow、审批链或基于状态的流转时使用。可预防因缺少流转导致的文档卡住、审批链断裂以及工作流操作上的权限错误。涵盖 Workflow DocType、Workflow State、Workflow Action、流转规则、允许的角色、条件、workflow_state 字段、apply_workflow。关键词:workflow、approval、transition、Workflow State、Workflow Action、state machine、approval chain、workflow_state、approval chain、document approval、multi-step approval、workflow stuck、status transitions。
在 v14/v15/v16 中为 ERPNext/Frappe 表单事件、字段操作、服务端调用或子表处理编写客户端 JavaScript 时使用。涵盖 frappe.ui.form.on、frm 方法、frappe.call 的准确语法以及浏览器端校验。关键词:client script、form event、frm、frappe.call、frappe.ui.form.on、JavaScript、UI interaction、field validation、form event syntax、how to write client script、frm example、frappe.call example。
在为 ERPNext/Frappe DocType 编写 Python Document Controller 时使用。涵盖生命周期钩子(validate、on_update、on_submit)、controller 覆盖、可提交文档、autoname 模式、UUID 命名(v16)以及 flags 系统。关键词:document controller、lifecycle hook、validate、on_update、on_submit、autoname、naming series、flags、v14-v16、controller example、lifecycle hook order、when to use validate、Python DocType class。
在为应用事件、定时任务、文档事件、fixtures、启动会话(boot session)、jenv 自定义或网站路由配置 Frappe hooks.py 时使用。涵盖 v14/v15/v16,包括 extend_doctype_class。关键词:hooks.py、doc_events、scheduler_events、fixtures、app_include_js、override_whitelisted_methods、extend_doctype_class、hooks.py example、how to register hook、available hooks list、extend_doctype_class example。
在为 ERPNext/Frappe Server Scripts 编写 Python 代码时使用,包括 Document Events、API endpoints、Scheduler Events 和 Permission Queries。可避免 #1 AI 错误:在 Server Scripts 中使用 import 语句(沙箱会阻止所有 import)。涵盖 frappe.* 方法、事件名称映射以及正确的 v14/v15/v16 语法。关键词:Server Script、frappe、ERPNext、sandbox、import、doc event、validate、on_submit、before_save、server script example、import not allowed、sandbox rules、which script type to use。
编写 Claude Code hooks 的权威指南,涵盖基于提示词和基于命令两种方式。适用于以下情况请主动启用:(1) 创建 hook,(2) 添加 PreToolUse 或 PostToolUse hooks,(3) 校验工具使用,(4) 实现基于提示词的 hooks,(5) 拦截危险命令,(6) 事件驱动自动化,(7) 配置 hooks.json,(8) 使用 ${CLAUDE_PLUGIN_ROOT},(9) hook matchers 与过滤,(10) 调试不触发的 hooks。提供:hooks.json schema、事件参考、安全指南和示例。
当用户想要实现 LocalBusiness 结构化数据、地点 schema 或本地专属 JSON-LD 标记时使用。当用户提到 "local schema"、"LocalBusiness schema"、"structured data for local"、"JSON-LD for business"、"NAP schema" 或 "local business markup" 时也使用。关于通用 schema,请参阅 schema-markup 技能。关于 GBP 资料相关工作,请参阅 gbp-optimization。
跨平台与原生移动开发。框架:React Native、Flutter、Swift/SwiftUI、Kotlin/Jetpack Compose。能力:移动 UI、离线优先架构、推送通知、深度链接、生物识别、应用商店部署。操作:构建、创建、实现、优化、测试、部署移动应用。关键词:iOS、Android、React Native、Flutter、Swift、Kotlin、移动应用、离线同步、推送通知、深度链接、生物识别认证、App Store、Play Store、iOS HIG、Material Design、电量优化、内存管理、移动性能。适用场景:构建移动应用、实现移动优先 UX、选择原生还是跨平台、优化电量/内存/网络、部署到应用商店、处理移动特有功能。
MyBatis 核心 ORM 技能。覆盖 XML vs 注解 SQL 选择、ResultMap 复用(extends)、关联查询(association/collection join vs 嵌套 select/N+1 决策)、分页插件配置、#和$的 SQL 注入防护、动态 SQL(if/where/set/foreach/choose)最佳实践、columnPrefix 解决同表多次 JOIN。当用户编写 MyBatis Mapper XML、处理关联查询、配置分页、防范 SQL 注入时使用。
在 Next.js 应用中开启 Partial Prefetching,并逐一处理它呈现的洞察。适用于用户希望启用或采用 Partial Prefetching、切换 `partialPrefetching` 标志、用 `export const prefetch = 'partial'` 为路由启用、审查 `Link prefetch={true}` 的行为、用 `instant()` 测试保持已有的预取 UI,或解决 instant-link-prefetch-partial 与 instant-shell-url-data 这两个洞察时。
全面的 Odoo i18n 工具包,用于提取可翻译字符串、校验 .po 文件、生成翻译报告、管理阿拉伯语/ RTL 布局,并处理 Odoo 14-19 的多语言部署。 <example> Context: 用户想要提取可翻译字符串 user: "Extract all translatable strings from my Odoo 17 module to a .pot file" assistant: "I will use the odoo-i18n skill to scan Python _() calls, XML translate attributes, and field strings, then generate a properly structured .pot template file." <commentary>Core trigger - translation extraction workflow.</commentary> </example> <example> Context: 用户想要阿拉伯语翻译 user: "Generate an Arabic .po file for my Odoo module" assistant: "I will use the odoo-i18n skill to create an ar.po file with RTL-aware formatting and placeholder translations for all extractable strings." <commentary>Language-specific trigger - Arabic/RTL translation generation.</commentary> </example> <example> Context: 用户想要校验翻译文件 user: "Validate my Arabic .po file for errors" assistant: "I will use the odoo-i18n skill to check syntax, encoding, empty translations, fuzzy entries, and RTL-specific issues." <commentary>Validate trigger - .po file validation.</commentary> </example> <example> Context: 用户想要查找缺失的翻译 user: "Find all strings missing Arabic translation in my module" assistant: "I will compare the .pot template against ar.po and report all untranslated or fuzzy entries." <commentary>Missing trigger - translation gap analysis.</commentary> </example> <example> Context: 用户想要 RTL/SCSS 帮助 user: "Fix the RTL layout issues in my Odoo theme for Arabic" assistant: "I will use the odoo-i18n skill to apply CSS logical properties, [dir='rtl'] overrides, and Font Awesome icon swaps for Arabic support." <commentary>RTL trigger - Arabic layout and styling guidance.</commentary> </example> <example> Context: 用户需要通过 Odoo CLI 导出/导入翻译 user: "Export translations for my module using Odoo CLI" assistant: "I will use the odoo-i18n skill to run the Odoo export command and generate the .po file." <commentary>Export trigger - Odoo CLI translation export.</commentary> </example> <example> Context: 用户需要向 Odoo 加载语言 user: "How do I activate Arabic language in my Odoo database?" assistant: "I will use the odoo-i18n skill to load the Arabic language pack and activate it via shell or CLI." <commentary>Language activation trigger.</commentary> </example> <example> Context: 用户部署后遇到翻译问题 user: "My translations are not showing after I updated the module" assistant: "I will diagnose the issue: check encoding, language activation, module update, and browser cache." <commentary>Troubleshooting trigger - translation visibility issues.</commentary> </example>
编写 Pi TypeScript 扩展——ExtensionAPI、自定义工具、命令、UI 钩子、resources_discover、`registerProvider()`,以及 extendResources 在基础重载后如何合并技能路径。适用于:用户构建或调试 pi 扩展、注册工具、添加 /commands、挂钩事件、集成 TUI 组件或发布扩展示例。用于 "how do I extend pi"、"extension API"、"registerTool"、"registerProvider",即使未提及 pi-mono。
使用 Expo 框架的 React Native,用单一 TypeScript 代码库为 Android、iOS 和 Web 构建原生移动应用。涵盖 Expo Router 基于文件的路由(stack、tabs、drawer)、用于 CI/CD 和 OTA 更新的 EAS Build/Submit/Update、用于自定义开发构建的 expo-dev-client、用于原生 Swift/Kotlin 模块的 Expo Modules API、核心 RN 模式(StyleSheet、FlatList、平台特定代码)、原生设备 API(相机、通知、触觉反馈)以及用于 Tailwind CSS 样式的 NativeWind。适用于使用 Expo 构建 React Native 应用、配置 Expo Router 导航、搭建 EAS Build 流水线、实现 OTA 更新、创建原生模块或集成相机与推送通知等设备 API 时。
在新会话中从 docs/<feature>/HANDOFF.md 接手未完成的工作——你就是这份交接文档的目标 Agent,且会先核实内容再予以采信。用户调用 /resume-handoff <feature>、指定 HANDOFF.md,或要求继续、恢复或接着完成由 execute-plan、execute-roadmap 或 build-feature 制定的计划或路线图时使用,例如“接手交接内容,趁我睡觉继续做”。读取项目的 Agent 指引和交接文档,将其中的陈述与 git 和代码核对,检查待合并内容并提出工作范围;随后暂停,等待用户确认合并和工作计划或给出新指示,在此之前不修改工作树。获得确认后,删除已处理的交接文档,通过 merge-branch 门控完成合并,使用 execute-plan 或 execute-roadmap 继续工作;如果仍有待办,则在结束时编写新的交接文档。编写交接文档请使用 write-handoff;结束已完成的工作请使用 close-plan 或 close-roadmap。
在使用 Java Spring/Spring Boot、Django、Flask、FastAPI、Ruby on Rails、React、Vue、Angular、Go、ASP.NET、C、C++、TypeScript、C# 或 Terraform 编写、审查或重构代码时,应用安全编码实践。只要用户新增端点、处理用户输入、编写查询、设置身份认证/授权、配置 CORS 或会话 cookie、处理文件上传、调用外部 URL、渲染用户可控的 HTML、反序列化数据、构建登录流程、编写系统级/内存管理代码(C/C++)、定义基础设施(Terraform),或要求对上述任一语言或框架的代码做安全审查——即使他们没有明确说"安全"或"安全性"——就使用本 skill。也适用于审查 PR、修改中间件/过滤器/拦截器、配置框架安全设置(Spring Security、Django settings、Rails initializers、ASP.NET Identity)、收紧 tsconfig/编译器标志、编写涉及密钥、加密、子进程执行、裸指针或 HTTP 头的代码,或用 HCL 定义云资源、IAM 策略或安全组时。
实现 Syncfusion ASP.NET Core Rich Text Editor(ejs-richtexteditor 标记帮助程序),支持 HTML(WYSIWYG)和 Markdown 编辑模式。Markdown 请设置 editorMode='Markdown';默认为 HTML。在 ASP.NET Core 项目中使用此技能进行工具栏配置、图片上传、表格编辑、行内或 iframe 模式、AI 助手集成、提及以及富文本表单验证。
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。
