adding-a-feature
Was er macht
Dieser Skill ist eine Checkliste für das Hinzufügen einer Funktion zu einer Agent-Native-App. Er stellt sicher, dass Bildschirm, Aktion, Anweisungen des Agenten und gemeinsamer App-Zustand aktualisiert werden. Er richtet sich an Entwickler, die wollen, dass Agent und Oberfläche übereinstimmen.
Wann du ihn nutzt
- ✓Wenn du eine Funktion hinzufügst, die Daten oder eine neue Fähigkeit in eine App bringt.
- ✓Wenn eine neue Funktion auf den Bildschirmen erscheint, der Agent sie aber nicht nutzen kann.
- ✓Wenn du prüfen willst, dass eine Änderung nur die Bereiche berührt, die sie braucht.
Link zum Skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/adding-a-feature/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du dieser App eine Aufgabenverwaltung hinzufügen und dafür sorgen, dass der Agent Aufgaben auch anlegen und auflisten kann?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent arbeitet vier Bereiche der Reihe nach durch: Benutzeroberfläche, Aktion, Anweisungen des Agenten und gemeinsamen Zustand. Bereiche, die die Änderung nicht berührt, überspringt er.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
useQuerywith custom keys — folduseChangeVersions([<source>, "action"])from@agent-native/core/client/hooksinto thequeryKeyand setplaceholderData: (prev) => prev. Local chat-run side effects bump those counters too. Remote changes require the page's explicituseDbSync({ 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
Häufige Fragen
Brauchen kleine visuelle Änderungen alle vier Bereiche?
Nein. Eine neue Gestaltung oder ein Textwechsel betrifft nur die Bereiche, die tatsächlich berührt werden.
Warum müssen Agent und Oberfläche übereinstimmen?
Eine Funktion, die nur in der Oberfläche sichtbar ist, kann der Agent nicht nutzen, und umgekehrt entsteht dasselbe Problem.
Sieht der Agent, was der Nutzer gerade tut?
Der Skill beschreibt die Synchronisierung des App-Zustands, damit der Agent den aktuellen Bildschirm sehen kann.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 7.6k
- Platz im Ranking
- #13130
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
design-exploration
7.6kHilft deinem Agenten, mehrere UI-Design-Richtungen nebeneinander zu erkunden, dich eine auswählen zu lassen und das gewählte Design danach zu verfeinern.
visual-edit
7.6kHilft deinem Agenten, eine laufende lokale App in einem visuellen Editor zu öffnen, damit du ihre echten Bildschirme gemeinsam prüfen und bearbeiten kannst.
turn-into-app
7.6kVerwandelt einen Arbeitsablauf, eine Tabelle oder ein Projekt in eine ausgearbeitete visuelle App mit gefüllten Bildschirmen und einem Agenten im Hintergrund.
visual-plan
7.6kVerwandelt einen einfachen Textplan in einen interaktiven visuellen Plan mit Diagrammen, Dateiübersichten, Code-Ausschnitten und offenen Fragen.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.