본문으로 건너뛰기
Skillpedia
일반 코딩7.6k · #13130

adding-a-feature

하는 일

이 스킬은 Agent-Native 앱에 기능을 추가할 때 쓰는 체크리스트입니다. 화면, 액션, 에이전트 지침, 공유 앱 상태가 모두 업데이트되도록 확인합니다. 에이전트와 인터페이스가 서로 일치하기를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓앱에 데이터나 새 기능을 더하는 기능을 추가할 때.
  • ✓새 기능이 화면에는 보이지만 에이전트가 사용할 수 없을 때.
  • ✓변경이 필요한 영역만 건드리는지 확인하고 싶을 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/adding-a-feature/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에서 그대로 가져왔습니다.

Adding a Feature — The Four-Area Checklist

Rule

Every new feature MUST update all four areas. Skipping any one breaks the agent-native contract — the agent and UI must always be equal partners.

Scope check first: this is the checklist for a feature that adds app data or a new capability. A restyle, a copy change, or a screen with no new data model and no new agent-visible operation only needs the areas it actually touches — do not manufacture actions, state keys, or a skill for it.

Why

Agent-Native apps are defined by parity: everything the UI can do, the agent can do, and vice versa. A feature that only has UI is invisible to the agent. A feature that only has scripts is invisible to the user. A feature without app-state sync means the agent is blind to what the user is doing.

The Checklist

When you add a new feature, work through these four areas in order:

1. UI Component

Build the user-facing interface — a page, component, dialog, or route. Use useActionQuery and useActionMutation from @agent-native/core/client/hooks to call actions for data fetching and mutations. Do not create a custom REST endpoint just so React can call action-backed data; the action endpoint already exists.

Agent edits must refresh the UI without a background poll. Local chat-run tool completions invalidate action queries and source counters after each side-effecting tool and again at run end. There are two query paths:

  • useActionQuery / useActionMutation — local action mutations invalidate ['action'] observers, and chat-run tool completions invalidate them for agent writes. No background sync opt-in is needed for the current user's agent run. Prefer this path.
  • Raw useQuery with custom keys — fold useChangeVersions([<source>, "action"]) from @agent-native/core/client/hooks into the queryKey and set placeholderData: (prev) => prev. Local chat-run side effects bump those counters too. Remote changes require the page's explicit useDbSync({ realtime: { reason } }) opt-in only when data changes without the current user acting and must appear before refresh.

Never opt in public, anonymous, marketing, docs, or SSR routes, settings, forms, or read-mostly lists. Refetch those on focus or navigation. Shared Slides editing and the Mail inbox are the current first-party examples that need remote updates. Each opted-in open tab adds a shared background transport and one poll per idle interval; hidden tabs pause, and idle polling backs off to 1, 2, then 5 minutes. See real-time-sync for the decision rule and examples.

import { useChangeVersions } from "@agent-native/core/client/hooks";
import { useQuery } from "@tanstack/react-query";

const v = useChangeVersions(["dashboards", "action"]);
useQuery({
  queryKey: ["dashboard", id, v],
  queryFn: () => fetchDashboard(id),
  placeholderData: (prev) => prev, // no flicker on refetch
});

See the real-time-sync skill for the full pattern and source catalog.

2. Action

Create an action in actions/ using defineAction. This serves double duty: the agent calls it as a tool, and the UI calls it through useActionQuery / useActionMutation while the framework owns the HTTP transport. Set http: { method: "GET" } for read actions, leave default for writes, or set http: false for agent-only actions like navigate and view-screen.

Before adding a new route or endpoint, inspect the existing actions. Reuse an action if it already covers the business operation, extend it if the shared contract is incomplete, or create a new defineAction if the agent and UI both need the capability. Do not add pass-through /api/* routes that re-export actions. If client code needs a new framework/app route, expose a named helper or hook first and use that helper from components and docs.

For provider-backed analysis/query/reporting integrations, do not turn every provider endpoint or filter into a rigid action. Prefer the shared provider-api-catalog / provider-api-docs / provider-api-request pattern from @agent-native/core/provider-api, then add narrow convenience actions only for workflows that truly deserve a first-class shortcut. Treat this as a capability requirement, not a nice-to-have: convenience actions must not become the ceiling of what the agent can ask the provider to do. Pair broad provider access with staging or sandboxed code execution when responses may be too large for chat context. If p

자주 묻는 질문

작은 시각 변경도 네 영역이 모두 필요한가요?

아니요. 디자인을 새로 입히거나 문구만 바꾸는 경우에는 실제로 건드리는 영역만 필요합니다.

에이전트와 UI가 왜 일치해야 하나요?

이 스킬은 UI에만 보이는 기능은 에이전트가 쓸 수 없고, 그 반대도 문제가 된다고 설명합니다.

에이전트가 사용자의 작업을 볼 수 있나요?

이 스킬은 에이전트가 현재 화면을 볼 수 있도록 하는 앱 상태 동기화도 다룹니다.

상세 정보

작성자의 원본 설명

The four-area checklist every new feature must complete. Use when adding any feature, integration, or capability to ensure the agent and UI stay in parity.

repo: BuilderIO/agent-native

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬