[OMX] Run an anti-slop cleanup/refactor/deslop workflow
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
실행 점수 미검증
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Adaptable composables are reusable functions that can accept both reactive and non-reactive inputs. This allows developers to use the composable in a variety of contexts without worrying about the reactivity of the inputs.
Steps to design an adaptable composable in Vue.js:
toValue() or toRef() to normalize inputs inside reactive effects./**
* value or writable ref (value/ref/shallowRef/writable computed)
*/
export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
/**
* MaybeRef<T> + ComputedRef<T> + () => T
*/
export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
MaybeRefOrGetterMaybeRefMaybeRefOrGetter, or you may accidentally invoke it as a getter.MaybeRefOrGetter.When MaybeRefOrGetter or MaybeRef is used:
toRef() (e.g. watcher source)toValue()Adaptable useDocumentTitle Composable: read-only title parameter
import { watch, toRef } from 'vue'
import type { MaybeRefOrGetter } from 'vue'
export function useDocumentTitle(title: MaybeRefOrGetter<string>) {
watch(toRef(title), (t) => {
document.title = t
}, { immediate: true })
}
Adaptable useCounter Composable: two-way writable count parameter
import { watch, toRef } from 'vue'
import type { MaybeRef } from 'vue'
function useCounter(count: MaybeRef<number>) {
const countRef = toRef(count)
function add() {
countRef.value++
}
return { add }
}
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
[OMX] Run an anti-slop cleanup/refactor/deslop workflow
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
[OMX] 只读调查跨文件的行为、原因或架构问题,提供源码证据与不确定性。单文件查找无需此流程。
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
[OMX] Ask a local external advisor CLI (Claude or Gemini) and capture a reusable artifact
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
[OMX] Supervise deep interview, consensus planning, and durable goal execution for explicit hands-off delivery.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
[OMX] Stateful validator-gated research loop with native-hook persistence
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
[OMX] Bounded best-practice research wrapper using official/upstream evidence first
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.