본문으로 건너뛰기
Skillpedia
에이전트7.6k · #13153

decisions

하는 일

이 스킬은 Agent-Native 앱에서 결정 도우미를 써서 메시지나 입력에 라벨을 붙이거나 점수를 매기는 방법을 설명합니다. 도우미는 답을 돌려주며, 그다음에 일어나는 행동을 직접 수행하지 않습니다. 앱에 스마트 라우팅이나 분류를 추가하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓메시지가 특정 종류의 요청인지 판단해야 할 때.
  • ✓입력을 순서가 있는 단계에 맞춰 점수로 매기고 싶을 때.
  • ✓이름 붙은 선택지 중에서 하나의 값을 고를 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/decisions/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/decisions/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“들어온 고객 메시지를 확인해서 어떤 것이 해지 요청인지 알려 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

개발자는 입력과 이름 붙은 질문을 도우미에 전달합니다. 도우미는 라벨이 붙은 결과를 돌려주고, 앱이 그 결과로 무엇을 할지 결정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Decisions

Rule

Use decide() to classify or score supplied inputs. It returns a result and never performs, authorizes, or replaces the action selected from that result.

How

Pass an explicit ownerEmail, an input string or array of parts, and named questions to decide() from @agent-native/core/decisions:

import { decide } from "@agent-native/core/decisions";

const result = await decide({
  ownerEmail: "owner@example.com",
  input: [{ type: "text", text: "Please cancel Friday's lunch reservation." }],
  questions: [
    {
      type: "predicate",
      name: "isCancellationRequest",
      instructions: "Does the message ask to cancel a reservation?",
    },
  ],
});

input can be a plain string or contain text, structured JSON, or an image URL. Questions are named and use one of these shapes:

Type Fields Use
predicate name, instructions Evaluate one stated predicate
choice name, instructions, choices: { value: string, description: string }[] Choose among the supplied string values
score name, instructions, levels: { label: string, description: string }[] Score against 2–10 ordered levels

Provider and model capabilities can differ. Treat question support as capability-aware. Only claim a provider/model supports a question type after that combination has been verified. An ok result includes provider, model, and answers keyed by question name; cached and usage are optional. A not_configured result includes the missing_credentials reason and configured provider list. A failed result has a typed reason and may include provider and questionNames. Handle these statuses as distinct outcomes; never turn a failure into an answer.

Provider routing and caches

Provider order is configurable per workspace. New customer workspaces try Builder Jev first, then a personal Jev key, then OpenAI. Within Jev, the Builder gateway is tried before falling back to a direct key. If no provider is configured, decide() returns not_configured.

getDecisionsStatus() reports credential readiness separately from provider capabilities. The Builder Jev proxy is verified for predicate and choice. Jev score remains unverified and disabled by its capability flag, so decide() skips Jev for score questions and continues to the next configured provider. A Jev-only score request returns failed with unverified_capability. The OpenAI Decisions API supports scores with 2–10 ordered levels; its request and response mapping is covered by documented fixtures.

Key any per-provider threshold or cache by both provider and model. cacheKey enables caching only when supplied. Cache identity includes the owner, organization, provider, model, cache key, input, and questions. The in-memory cache has a 60-second TTL and a 256-entry cap.

Related skills

  • actions — keep action behavior focused and deterministic.
자주 묻는 질문

도우미가 무엇을 해지하거나 바꾸나요?

아니요. 결과만 돌려주며, 어떤 행동도 실행하거나 승인하지 않습니다.

어떤 종류의 질문을 할 수 있나요?

예나 아니요로 답하는 질문, 이름 붙은 값 중 선택, 2에서 10 단계 사이의 점수를 지원합니다.

모든 모델이 모든 질문 유형을 지원하나요?

아니요. 지원은 제공자와 모델마다 다르므로, 사용 전에 각 조합을 검증해야 한다고 이 스킬은 말합니다.

상세 정보

작성자의 원본 설명

How to use `@agent-native/core/decisions` for capability-aware classification and scoring. Use when implementing or reviewing decision evaluation, provider ordering, per-provider thresholds, or decision-result caches.

repo: BuilderIO/agent-native

인기도

GitHub 스타
7.6k
순위
#13153
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬