在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用kuikly-develop
星标13
分支4
更新时间2025年12月27日 14:21
Kuikly 开发专家,精通 Kuikly 框架设计理念、核心特性和最佳实践
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Kuikly 开发专家,精通 Kuikly 框架设计理念、核心特性和最佳实践
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
使用系统原生方法进行屏幕捕获和内容分析,支持 macOS screencapture 命令和 Python 截图库
首席执行官专家,精通战略规划、商业决策、融资管理和团队建设
财务总监专家,精通财务规划、预算管理、成本控制、投融资和税务筹划
首席信息官专家,精通 IT 战略规划、数据管理、信息系统架构、网络安全和数字化转型
COO 产品运营数据分析技能,使用 Playwright MCP 从 App Store Connect、小程序后台、小红书创作者中心等平台获取运营数据
首席运营官专家,精通日常运营管理、市场营销战略、客户服务、团队协调和业务流程优化,同时兼管市场运营和服务顾问职能
| name | kuikly-develop |
| description | Kuikly 开发专家,精通 Kuikly 框架设计理念、核心特性和最佳实践 |
| version | 1.0.0 |
当用户提到以下内容时自动触发:
// 父子组件通信
// ParentComponent.kuikly
<template>
<ChildComponent
:message="parentMessage"
@child-event="handleChildEvent"
/>
</template>
<script setup lang="ts">
import { ref } from 'kuikly'
const parentMessage = ref('Hello from parent')
const handleChildEvent = (data: any) => {
console.log('Received from child:', data)
}
</script>
// ChildComponent.kuikly
<template>
<button @click="sendMessage">{{ message }}</button>
</template>
<script setup lang="ts">
import { defineProps, defineEmits } from 'kuikly'
const props = defineProps({
message: String
})
const emit = defineEmits(['child-event'])
const sendMessage = () => {
emit('child-event', { data: 'Hello from child' })
}
</script>
import { ref, reactive, computed, watch } from 'kuikly'
// 基础响应式数据
const count = ref(0)
const user = reactive({ name: 'John', age: 30 })
// 计算属性
const doubleCount = computed(() => count.value * 2)
const isAdult = computed(() => user.age >= 18)
// 监听器
watch(count, (newVal, oldVal) => {
console.log(`Count changed from ${oldVal} to ${newVal}`)
})
// useCounter.ts
import { ref, computed } from 'kuikly'
export function useCounter(initialValue = 0) {
const count = ref(initialValue)
const doubleCount = computed(() => count.value * 2)
const increment = () => {
count.value++
}
const decrement = () => {
count.value--
}
const reset = (value = initialValue) => {
count.value = value
}
return {
count,
doubleCount,
increment,
decrement,
reset
}
}
// plugins/i18n.ts
import { App } from 'kuikly'
interface I18nOptions {
locale: string
messages: Record<string, Record<string, string>>
}
export const I18nPlugin = {
install(app: App, options: I18nOptions) {
const { locale, messages } = options
app.config.globalProperties.$t = (key: string) => {
return messages[locale]?.[key] || key
}
app.provide('i18n', {
locale,
t: app.config.globalProperties.$t
})
}
}
// 路由级别懒加载
const routes = [
{
path: '/about',
component: () => import('./views/About.kuikly')
}
]
// 组件级别懒加载
<script setup lang="ts">
import { defineAsyncComponent } from 'kuikly'
const AsyncComponent = defineAsyncComponent(() =>
import('./HeavyComponent.kuikly')
)
</script>
// useVirtualList.ts
import { ref, computed, onMounted, onUnmounted } from 'kuikly'
export function useVirtualList(list: any[], itemHeight: number, containerHeight: number) {
const scrollTop = ref(0)
const containerRef = ref<HTMLElement>()
const startIndex = computed(() =>
Math.floor(scrollTop.value / itemHeight)
)
const endIndex = computed(() =>
Math.min(
startIndex.value + Math.ceil(containerHeight / itemHeight) + 1,
list.length
)
)
const visibleItems = computed(() =>
list.slice(startIndex.value, endIndex.value)
)
return {
containerRef,
visibleItems,
totalHeight: computed(() => list.length * itemHeight),
offsetHeight: computed(() => startIndex.value * itemHeight)
}
}
import { mount } from '@kuikly/test-utils'
import Counter from '@/components/Counter.kuikly'
describe('Counter', () => {
it('renders initial count', () => {
const wrapper = mount(Counter, {
props: { initialCount: 5 }
})
expect(wrapper.text()).toContain('Count: 5')
})
it('increments count when button clicked', async () => {
const wrapper = mount(Counter)
await wrapper.find('button').trigger('click')
expect(wrapper.text()).toContain('Count: 1')
})
})
export default {
// 编译配置
compilerOptions: {
isCustomElement: tag => tag.includes('-')
},
// 全局配置
globalProperties: {
$appVersion: '1.0.0'
},
// 插件配置
plugins: [],
// 构建优化
build: {
rollupOptions: {
output: {
manualChunks: {
vendor: ['kuikly'],
utils: ['lodash-es', 'date-fns']
}
}
}
}
}