@agent-native/core 0.37.2 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -6
- package/dist/action.d.ts +60 -2
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +6 -2
- package/dist/action.js.map +1 -1
- package/dist/agent/production-agent.d.ts +12 -6
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +161 -11
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/types.d.ts +2 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/catalog.json +2 -2
- package/dist/cli/connect.d.ts.map +1 -1
- package/dist/cli/connect.js +15 -0
- package/dist/cli/connect.js.map +1 -1
- package/dist/cli/index.js +10 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/plan-publish-store.d.ts +52 -0
- package/dist/cli/plan-publish-store.d.ts.map +1 -0
- package/dist/cli/plan-publish-store.js +103 -0
- package/dist/cli/plan-publish-store.js.map +1 -0
- package/dist/cli/skills.d.ts +29 -0
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +1349 -544
- package/dist/cli/skills.js.map +1 -1
- package/dist/cli/templates-meta.js +12 -12
- package/dist/cli/templates-meta.js.map +1 -1
- package/dist/client/AssistantChat.d.ts +3 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +65 -15
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +20 -2
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/agent-chat-adapter.js +12 -0
- package/dist/client/agent-chat-adapter.js.map +1 -1
- package/dist/client/agent-engine-key.d.ts +24 -0
- package/dist/client/agent-engine-key.d.ts.map +1 -0
- package/dist/client/agent-engine-key.js +49 -0
- package/dist/client/agent-engine-key.js.map +1 -0
- package/dist/client/analytics.d.ts.map +1 -1
- package/dist/client/analytics.js +34 -0
- package/dist/client/analytics.js.map +1 -1
- package/dist/client/blocks/BlockView.d.ts +26 -0
- package/dist/client/blocks/BlockView.d.ts.map +1 -0
- package/dist/client/blocks/BlockView.js +24 -0
- package/dist/client/blocks/BlockView.js.map +1 -0
- package/dist/client/blocks/SchemaBlockEditor.d.ts +25 -0
- package/dist/client/blocks/SchemaBlockEditor.d.ts.map +1 -0
- package/dist/client/blocks/SchemaBlockEditor.js +72 -0
- package/dist/client/blocks/SchemaBlockEditor.js.map +1 -0
- package/dist/client/blocks/agent.d.ts +30 -0
- package/dist/client/blocks/agent.d.ts.map +1 -0
- package/dist/client/blocks/agent.js +61 -0
- package/dist/client/blocks/agent.js.map +1 -0
- package/dist/client/blocks/index.d.ts +34 -0
- package/dist/client/blocks/index.d.ts.map +1 -0
- package/dist/client/blocks/index.js +42 -0
- package/dist/client/blocks/index.js.map +1 -0
- package/dist/client/blocks/library/checklist.config.d.ts +36 -0
- package/dist/client/blocks/library/checklist.config.d.ts.map +1 -0
- package/dist/client/blocks/library/checklist.config.js +25 -0
- package/dist/client/blocks/library/checklist.config.js.map +1 -0
- package/dist/client/blocks/library/checklist.d.ts +26 -0
- package/dist/client/blocks/library/checklist.d.ts.map +1 -0
- package/dist/client/blocks/library/checklist.js +76 -0
- package/dist/client/blocks/library/checklist.js.map +1 -0
- package/dist/client/blocks/library/code-tabs.config.d.ts +36 -0
- package/dist/client/blocks/library/code-tabs.config.d.ts.map +1 -0
- package/dist/client/blocks/library/code-tabs.config.js +30 -0
- package/dist/client/blocks/library/code-tabs.config.js.map +1 -0
- package/dist/client/blocks/library/code-tabs.d.ts +3 -0
- package/dist/client/blocks/library/code-tabs.d.ts.map +1 -0
- package/dist/client/blocks/library/code-tabs.js +165 -0
- package/dist/client/blocks/library/code-tabs.js.map +1 -0
- package/dist/client/blocks/library/html.config.d.ts +37 -0
- package/dist/client/blocks/library/html.config.d.ts.map +1 -0
- package/dist/client/blocks/library/html.config.js +46 -0
- package/dist/client/blocks/library/html.config.js.map +1 -0
- package/dist/client/blocks/library/html.d.ts +21 -0
- package/dist/client/blocks/library/html.d.ts.map +1 -0
- package/dist/client/blocks/library/html.js +69 -0
- package/dist/client/blocks/library/html.js.map +1 -0
- package/dist/client/blocks/library/table.config.d.ts +30 -0
- package/dist/client/blocks/library/table.config.d.ts.map +1 -0
- package/dist/client/blocks/library/table.config.js +22 -0
- package/dist/client/blocks/library/table.config.js.map +1 -0
- package/dist/client/blocks/library/table.d.ts +8 -0
- package/dist/client/blocks/library/table.d.ts.map +1 -0
- package/dist/client/blocks/library/table.js +107 -0
- package/dist/client/blocks/library/table.js.map +1 -0
- package/dist/client/blocks/library/tabs.config.d.ts +56 -0
- package/dist/client/blocks/library/tabs.config.d.ts.map +1 -0
- package/dist/client/blocks/library/tabs.config.js +36 -0
- package/dist/client/blocks/library/tabs.config.js.map +1 -0
- package/dist/client/blocks/library/tabs.d.ts +20 -0
- package/dist/client/blocks/library/tabs.d.ts.map +1 -0
- package/dist/client/blocks/library/tabs.js +123 -0
- package/dist/client/blocks/library/tabs.js.map +1 -0
- package/dist/client/blocks/mdx.d.ts +74 -0
- package/dist/client/blocks/mdx.d.ts.map +1 -0
- package/dist/client/blocks/mdx.js +205 -0
- package/dist/client/blocks/mdx.js.map +1 -0
- package/dist/client/blocks/provider.d.ts +25 -0
- package/dist/client/blocks/provider.d.ts.map +1 -0
- package/dist/client/blocks/provider.js +19 -0
- package/dist/client/blocks/provider.js.map +1 -0
- package/dist/client/blocks/registry.d.ts +24 -0
- package/dist/client/blocks/registry.d.ts.map +1 -0
- package/dist/client/blocks/registry.js +50 -0
- package/dist/client/blocks/registry.js.map +1 -0
- package/dist/client/blocks/schema-form/introspect.d.ts +31 -0
- package/dist/client/blocks/schema-form/introspect.d.ts.map +1 -0
- package/dist/client/blocks/schema-form/introspect.js +164 -0
- package/dist/client/blocks/schema-form/introspect.js.map +1 -0
- package/dist/client/blocks/server.d.ts +22 -0
- package/dist/client/blocks/server.d.ts.map +1 -0
- package/dist/client/blocks/server.js +25 -0
- package/dist/client/blocks/server.js.map +1 -0
- package/dist/client/blocks/types.d.ts +212 -0
- package/dist/client/blocks/types.d.ts.map +1 -0
- package/dist/client/blocks/types.js +5 -0
- package/dist/client/blocks/types.js.map +1 -0
- package/dist/client/composer/ComposerPlusMenu.js +10 -1
- package/dist/client/composer/ComposerPlusMenu.js.map +1 -1
- package/dist/client/guided-questions.d.ts +68 -0
- package/dist/client/guided-questions.d.ts.map +1 -1
- package/dist/client/guided-questions.js +158 -3
- package/dist/client/guided-questions.js.map +1 -1
- package/dist/client/index.d.ts +5 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +15 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts +37 -0
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/BubbleToolbar.js +161 -0
- package/dist/client/rich-markdown-editor/BubbleToolbar.js.map +1 -0
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts +63 -0
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/ImageExtension.js +242 -0
- package/dist/client/rich-markdown-editor/ImageExtension.js.map +1 -0
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts +51 -0
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js +37 -0
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js.map +1 -0
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts +61 -0
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/SharedRichEditor.js +121 -0
- package/dist/client/rich-markdown-editor/SharedRichEditor.js.map +1 -0
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts +36 -0
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js +193 -0
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js.map +1 -0
- package/dist/client/rich-markdown-editor/extensions.d.ts +166 -0
- package/dist/client/rich-markdown-editor/extensions.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/extensions.js +222 -0
- package/dist/client/rich-markdown-editor/extensions.js.map +1 -0
- package/dist/client/rich-markdown-editor/index.d.ts +9 -0
- package/dist/client/rich-markdown-editor/index.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/index.js +9 -0
- package/dist/client/rich-markdown-editor/index.js.map +1 -0
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts +18 -0
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/uploadEditorImage.js +57 -0
- package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +1 -0
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts +91 -0
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +1 -0
- package/dist/client/rich-markdown-editor/useCollabReconcile.js +342 -0
- package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +1 -0
- package/dist/client/track.d.ts +25 -0
- package/dist/client/track.d.ts.map +1 -0
- package/dist/client/track.js +53 -0
- package/dist/client/track.js.map +1 -0
- package/dist/client/use-action.d.ts.map +1 -1
- package/dist/client/use-action.js +6 -0
- package/dist/client/use-action.js.map +1 -1
- package/dist/client/use-session.d.ts +3 -2
- package/dist/client/use-session.d.ts.map +1 -1
- package/dist/client/use-session.js +3 -2
- package/dist/client/use-session.js.map +1 -1
- package/dist/deploy/build.d.ts +5 -0
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +67 -1
- package/dist/deploy/build.js.map +1 -1
- package/dist/extensions/schema.d.ts +1 -1
- package/dist/mcp/build-server.d.ts.map +1 -1
- package/dist/mcp/build-server.js +9 -2
- package/dist/mcp/build-server.js.map +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +35 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/provider-api/index.d.ts +1 -1
- package/dist/provider-api/index.d.ts.map +1 -1
- package/dist/scripts/docs/search.d.ts.map +1 -1
- package/dist/scripts/docs/search.js +5 -2
- package/dist/scripts/docs/search.js.map +1 -1
- package/dist/scripts/runner.d.ts.map +1 -1
- package/dist/scripts/runner.js +16 -3
- package/dist/scripts/runner.js.map +1 -1
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +2 -0
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/action-routes.d.ts.map +1 -1
- package/dist/server/action-routes.js +30 -4
- package/dist/server/action-routes.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +65 -19
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-teams.d.ts.map +1 -1
- package/dist/server/agent-teams.js +8 -1
- package/dist/server/agent-teams.js.map +1 -1
- package/dist/server/agents-bundle.d.ts +27 -1
- package/dist/server/agents-bundle.d.ts.map +1 -1
- package/dist/server/agents-bundle.js +41 -3
- package/dist/server/agents-bundle.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +76 -3
- package/dist/server/auth.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +60 -0
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +160 -22
- package/dist/server/onboarding-html.js.map +1 -1
- package/dist/server/sentry.d.ts.map +1 -1
- package/dist/server/sentry.js +6 -0
- package/dist/server/sentry.js.map +1 -1
- package/dist/server/social-og-image.d.ts +2 -1
- package/dist/server/social-og-image.d.ts.map +1 -1
- package/dist/server/social-og-image.js +24 -4
- package/dist/server/social-og-image.js.map +1 -1
- package/dist/sharing/schema.d.ts +1 -1
- package/dist/styles/agent-native.css +1 -0
- package/dist/styles/rich-markdown-editor.css +439 -0
- package/dist/templates/default/.agents/skills/actions/SKILL.md +4 -1
- package/dist/templates/default/.agents/skills/security/SKILL.md +13 -4
- package/dist/templates/default/.agents/skills/storing-data/SKILL.md +15 -3
- package/dist/templates/default/AGENTS.md +1 -0
- package/dist/templates/default/DEVELOPING.md +2 -0
- package/dist/templates/workspace-core/.agents/skills/a2a-protocol/SKILL.md +10 -3
- package/dist/templates/workspace-core/.agents/skills/actions/SKILL.md +98 -10
- package/dist/templates/workspace-core/.agents/skills/adding-a-feature/SKILL.md +45 -3
- package/dist/templates/workspace-core/.agents/skills/address-feedback/SKILL.md +2 -0
- package/dist/templates/workspace-core/.agents/skills/authentication/SKILL.md +37 -4
- package/dist/templates/workspace-core/.agents/skills/automations/SKILL.md +9 -4
- package/dist/templates/workspace-core/.agents/skills/capture-learnings/SKILL.md +2 -0
- package/dist/templates/workspace-core/.agents/skills/client-methods/SKILL.md +106 -0
- package/dist/templates/workspace-core/.agents/skills/client-methods/references/legacy-client-fetch-audit-2026-06-03.md +53 -0
- package/dist/templates/workspace-core/.agents/skills/client-side-routing/SKILL.md +2 -0
- package/dist/templates/workspace-core/.agents/skills/context-awareness/SKILL.md +62 -61
- package/dist/templates/workspace-core/.agents/skills/context-xray/SKILL.md +47 -0
- package/dist/templates/workspace-core/.agents/skills/create-skill/SKILL.md +28 -0
- package/dist/templates/workspace-core/.agents/skills/delegate-to-agent/SKILL.md +52 -1
- package/dist/templates/workspace-core/.agents/skills/extension-points/SKILL.md +2 -0
- package/dist/templates/workspace-core/.agents/skills/extensions/SKILL.md +95 -433
- package/dist/templates/workspace-core/.agents/skills/extensions/references/api.md +285 -0
- package/dist/templates/workspace-core/.agents/skills/extensions/references/examples.md +259 -0
- package/dist/templates/workspace-core/.agents/skills/external-agents/SKILL.md +398 -0
- package/dist/templates/workspace-core/.agents/skills/external-agents/references/mcp-apps-embedding.md +157 -0
- package/dist/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +17 -0
- package/dist/templates/workspace-core/.agents/skills/integration-webhooks/SKILL.md +13 -2
- package/dist/templates/workspace-core/.agents/skills/mvp-followup/SKILL.md +51 -0
- package/dist/templates/workspace-core/.agents/skills/observability/SKILL.md +14 -4
- package/dist/templates/workspace-core/.agents/skills/onboarding/SKILL.md +13 -1
- package/dist/templates/workspace-core/.agents/skills/portability/SKILL.md +27 -5
- package/dist/templates/workspace-core/.agents/skills/qa/SKILL.md +24 -8
- package/dist/templates/workspace-core/.agents/skills/real-time-collab/SKILL.md +53 -7
- package/dist/templates/workspace-core/.agents/skills/real-time-sync/SKILL.md +43 -10
- package/dist/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +2 -0
- package/dist/templates/workspace-core/.agents/skills/secrets/SKILL.md +43 -14
- package/dist/templates/workspace-core/.agents/skills/security/SKILL.md +50 -1
- package/dist/templates/workspace-core/.agents/skills/self-modifying-code/SKILL.md +4 -2
- package/dist/templates/workspace-core/.agents/skills/server-plugins/SKILL.md +11 -1
- package/dist/templates/workspace-core/.agents/skills/shadcn-ui/SKILL.md +15 -0
- package/dist/templates/workspace-core/.agents/skills/sharing/SKILL.md +5 -1
- package/dist/templates/workspace-core/.agents/skills/storing-data/SKILL.md +48 -19
- package/dist/templates/workspace-core/.agents/skills/tracking/SKILL.md +7 -3
- package/dist/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +13 -6
- package/dist/templates/workspace-core/.agents/skills/writing-agent-instructions/SKILL.md +236 -0
- package/dist/templates/workspace-core/AGENTS.md +5 -1
- package/dist/templates/workspace-root/AGENTS.md +5 -2
- package/dist/tracking/route.d.ts +43 -0
- package/dist/tracking/route.d.ts.map +1 -0
- package/dist/tracking/route.js +85 -0
- package/dist/tracking/route.js.map +1 -0
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +15 -0
- package/dist/vite/client.js.map +1 -1
- package/docs/content/a2a-protocol.md +18 -4
- package/docs/content/actions.md +87 -0
- package/docs/content/agent-mentions.md +2 -1
- package/docs/content/authentication.md +2 -1
- package/docs/content/client.md +64 -13
- package/docs/content/cloneable-saas.md +1 -1
- package/docs/content/code-agents-ui.md +17 -11
- package/docs/content/context-awareness.md +23 -28
- package/docs/content/creating-templates.md +1 -1
- package/docs/content/drop-in-agent.md +2 -0
- package/docs/content/getting-started.md +2 -2
- package/docs/content/key-concepts.md +2 -2
- package/docs/content/messaging.md +57 -15
- package/docs/content/migration-workbench.md +1 -1
- package/docs/content/multi-app-workspace.md +1 -1
- package/docs/content/multi-tenancy.md +17 -15
- package/docs/content/real-time-collaboration.md +1 -1
- package/docs/content/recurring-jobs.md +1 -1
- package/docs/content/security.md +2 -2
- package/docs/content/server.md +4 -4
- package/docs/content/skills-guide.md +30 -0
- package/docs/content/template-analytics.md +2 -2
- package/docs/content/template-assets.md +17 -1
- package/docs/content/template-brain.md +2 -2
- package/docs/content/template-calendar.md +1 -1
- package/docs/content/template-clips.md +3 -3
- package/docs/content/template-content.md +2 -2
- package/docs/content/template-design.md +2 -2
- package/docs/content/template-dispatch.md +3 -3
- package/docs/content/template-forms.md +14 -2
- package/docs/content/template-mail.md +1 -3
- package/docs/content/template-plan.md +118 -0
- package/docs/content/template-slides.md +5 -4
- package/docs/content/template-starter.md +4 -4
- package/docs/content/template-videos.md +6 -11
- package/docs/content/tracking.md +21 -1
- package/docs/content/visual-plans.md +72 -0
- package/docs/content/workspace.md +9 -9
- package/package.json +26 -11
- package/src/templates/default/.agents/skills/actions/SKILL.md +4 -1
- package/src/templates/default/.agents/skills/security/SKILL.md +13 -4
- package/src/templates/default/.agents/skills/storing-data/SKILL.md +15 -3
- package/src/templates/default/AGENTS.md +1 -0
- package/src/templates/default/DEVELOPING.md +2 -0
- package/src/templates/workspace-core/.agents/skills/a2a-protocol/SKILL.md +10 -3
- package/src/templates/workspace-core/.agents/skills/actions/SKILL.md +98 -10
- package/src/templates/workspace-core/.agents/skills/adding-a-feature/SKILL.md +45 -3
- package/src/templates/workspace-core/.agents/skills/address-feedback/SKILL.md +2 -0
- package/src/templates/workspace-core/.agents/skills/authentication/SKILL.md +37 -4
- package/src/templates/workspace-core/.agents/skills/automations/SKILL.md +9 -4
- package/src/templates/workspace-core/.agents/skills/capture-learnings/SKILL.md +2 -0
- package/src/templates/workspace-core/.agents/skills/client-methods/SKILL.md +106 -0
- package/src/templates/workspace-core/.agents/skills/client-methods/references/legacy-client-fetch-audit-2026-06-03.md +53 -0
- package/src/templates/workspace-core/.agents/skills/client-side-routing/SKILL.md +2 -0
- package/src/templates/workspace-core/.agents/skills/context-awareness/SKILL.md +62 -61
- package/src/templates/workspace-core/.agents/skills/context-xray/SKILL.md +47 -0
- package/src/templates/workspace-core/.agents/skills/create-skill/SKILL.md +28 -0
- package/src/templates/workspace-core/.agents/skills/delegate-to-agent/SKILL.md +52 -1
- package/src/templates/workspace-core/.agents/skills/extension-points/SKILL.md +2 -0
- package/src/templates/workspace-core/.agents/skills/extensions/SKILL.md +95 -433
- package/src/templates/workspace-core/.agents/skills/extensions/references/api.md +285 -0
- package/src/templates/workspace-core/.agents/skills/extensions/references/examples.md +259 -0
- package/src/templates/workspace-core/.agents/skills/external-agents/SKILL.md +398 -0
- package/src/templates/workspace-core/.agents/skills/external-agents/references/mcp-apps-embedding.md +157 -0
- package/src/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +17 -0
- package/src/templates/workspace-core/.agents/skills/integration-webhooks/SKILL.md +13 -2
- package/src/templates/workspace-core/.agents/skills/mvp-followup/SKILL.md +51 -0
- package/src/templates/workspace-core/.agents/skills/observability/SKILL.md +14 -4
- package/src/templates/workspace-core/.agents/skills/onboarding/SKILL.md +13 -1
- package/src/templates/workspace-core/.agents/skills/portability/SKILL.md +27 -5
- package/src/templates/workspace-core/.agents/skills/qa/SKILL.md +24 -8
- package/src/templates/workspace-core/.agents/skills/real-time-collab/SKILL.md +53 -7
- package/src/templates/workspace-core/.agents/skills/real-time-sync/SKILL.md +43 -10
- package/src/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +2 -0
- package/src/templates/workspace-core/.agents/skills/secrets/SKILL.md +43 -14
- package/src/templates/workspace-core/.agents/skills/security/SKILL.md +50 -1
- package/src/templates/workspace-core/.agents/skills/self-modifying-code/SKILL.md +4 -2
- package/src/templates/workspace-core/.agents/skills/server-plugins/SKILL.md +11 -1
- package/src/templates/workspace-core/.agents/skills/shadcn-ui/SKILL.md +15 -0
- package/src/templates/workspace-core/.agents/skills/sharing/SKILL.md +5 -1
- package/src/templates/workspace-core/.agents/skills/storing-data/SKILL.md +48 -19
- package/src/templates/workspace-core/.agents/skills/tracking/SKILL.md +7 -3
- package/src/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +13 -6
- package/src/templates/workspace-core/.agents/skills/writing-agent-instructions/SKILL.md +236 -0
- package/src/templates/workspace-core/AGENTS.md +5 -1
- package/src/templates/workspace-root/AGENTS.md +5 -2
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-agent-instructions
|
|
3
|
+
description: >-
|
|
4
|
+
How to write great agent instructions for an agent-native app or template:
|
|
5
|
+
AGENTS.md, skills, and tool/action descriptions. Use when authoring or
|
|
6
|
+
reviewing AGENTS.md, writing a SKILL.md, wording action descriptions, or
|
|
7
|
+
deciding what belongs in instructions vs skills vs memory.
|
|
8
|
+
metadata:
|
|
9
|
+
internal: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Writing Agent Instructions & Skills
|
|
13
|
+
|
|
14
|
+
This is a creator-facing guide. When you build an agent-native app or template,
|
|
15
|
+
the agent's behavior is only as good as the instructions you give it. Three
|
|
16
|
+
surfaces carry that guidance: `AGENTS.md` (the map), skills (the deep dives),
|
|
17
|
+
and action/tool descriptions (how the agent picks the right tool). Write each
|
|
18
|
+
one for fast retrieval, not for prose.
|
|
19
|
+
|
|
20
|
+
## Keep AGENTS.md small and skimmable
|
|
21
|
+
|
|
22
|
+
`AGENTS.md` is loaded as orientation. It should be the smallest thing that lets
|
|
23
|
+
the agent act correctly, with everything deep pushed into skills. Aim for these
|
|
24
|
+
sections and little else:
|
|
25
|
+
|
|
26
|
+
- **Purpose line** — one sentence on what the app is and the primary workflow.
|
|
27
|
+
- **Core rules** — the handful of invariants that must always hold (data in SQL,
|
|
28
|
+
operations go through actions, AI goes through the agent chat, schema changes
|
|
29
|
+
are additive). Short, imperative bullets.
|
|
30
|
+
- **Application-state keys** — the `navigation`/selection/focus keys the agent
|
|
31
|
+
reads to know what the user is looking at, with their shape.
|
|
32
|
+
- **Action table** — a compact table of action name -> purpose (see below).
|
|
33
|
+
- **Skills index** — a list of the skills that exist and when to read each one.
|
|
34
|
+
|
|
35
|
+
If a section is growing past a screen, it belongs in a skill. `AGENTS.md`
|
|
36
|
+
answers "what is this app and what can I do," not "how exactly do I do the hard
|
|
37
|
+
thing."
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
# Projects App
|
|
41
|
+
|
|
42
|
+
One workspace for projects, tasks, and notes. Agent and UI share the same SQL
|
|
43
|
+
data and the same actions.
|
|
44
|
+
|
|
45
|
+
## Core Rules
|
|
46
|
+
|
|
47
|
+
- Data lives in SQL via Drizzle. Use actions for all writes.
|
|
48
|
+
- All AI work goes through the agent chat; never call an LLM inline.
|
|
49
|
+
- Schema changes are additive only.
|
|
50
|
+
|
|
51
|
+
## Application State
|
|
52
|
+
|
|
53
|
+
- `navigation.view`: `home` | `project`
|
|
54
|
+
- `navigation.projectId`: selected project on a project page
|
|
55
|
+
|
|
56
|
+
## Actions
|
|
57
|
+
|
|
58
|
+
| Action | Purpose |
|
|
59
|
+
| ---------------- | --------------------------- |
|
|
60
|
+
| `list-projects` | List accessible projects |
|
|
61
|
+
| `create-project` | Create a project |
|
|
62
|
+
| `update-project` | Rename or archive a project |
|
|
63
|
+
|
|
64
|
+
## Skills
|
|
65
|
+
|
|
66
|
+
- `project-imports` — read before importing legacy CSV exports.
|
|
67
|
+
- `sharing` — read before exposing a project to other users.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Single-source AGENTS.md (CLAUDE.md is a symlink)
|
|
71
|
+
|
|
72
|
+
Keep one canonical instructions file: `AGENTS.md`. If a client expects
|
|
73
|
+
`CLAUDE.md`, make it a symlink to `AGENTS.md` rather than a second copy. Two
|
|
74
|
+
hand-maintained files drift, and the agent ends up with contradictory rules.
|
|
75
|
+
One source of truth, linked where needed.
|
|
76
|
+
|
|
77
|
+
## SKILL.md frontmatter must say what AND when
|
|
78
|
+
|
|
79
|
+
The `description` is the only thing the agent sees when deciding whether to read
|
|
80
|
+
a skill. It must answer two questions: what the skill covers, and when to
|
|
81
|
+
trigger it. A description that only describes the topic will not fire.
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
---
|
|
85
|
+
name: project-imports
|
|
86
|
+
description: >-
|
|
87
|
+
How to import projects from the legacy CSV export. Use when the user uploads
|
|
88
|
+
a project CSV or asks to migrate projects from the old system.
|
|
89
|
+
---
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
- Lead with the capability, then add an explicit **"Use when…"** clause.
|
|
93
|
+
- Be slightly pushy — over-triggering beats a skill that never loads.
|
|
94
|
+
- Keep it under ~40 words; it is loaded into context on every conversation.
|
|
95
|
+
|
|
96
|
+
### Scope a skill to runtime vs dev
|
|
97
|
+
|
|
98
|
+
An optional `scope` field decides which agent loads the skill:
|
|
99
|
+
|
|
100
|
+
- `both` (default when omitted) and `runtime` — loaded by the in-app runtime
|
|
101
|
+
agent.
|
|
102
|
+
- `dev` — for the human's coding agent (e.g. Claude Code) only. A `scope: dev`
|
|
103
|
+
skill is invisible to the runtime agent everywhere (system-prompt skills block
|
|
104
|
+
and `docs-search`).
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
---
|
|
108
|
+
name: release-checklist
|
|
109
|
+
description: >-
|
|
110
|
+
Steps for cutting a release. Use when preparing or publishing a new version.
|
|
111
|
+
scope: dev
|
|
112
|
+
---
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Omit `scope` for normal skills (the default `both` keeps them loading at
|
|
116
|
+
runtime — fully backward compatible). For a dev-only skill, mark it `scope: dev`
|
|
117
|
+
and optionally mirror it under `.claude/skills/<name>/SKILL.md` so Claude Code
|
|
118
|
+
picks it up while the runtime agent skips it.
|
|
119
|
+
|
|
120
|
+
## Progressive disclosure: lean SKILL.md, depth in references/
|
|
121
|
+
|
|
122
|
+
Write the SKILL.md as the lean, must-know layer: the rule, how to do it, the
|
|
123
|
+
do/don't list, and pointers. Push long examples, exhaustive field references,
|
|
124
|
+
API quirks, and edge-case tables into `references/` files the agent reads only
|
|
125
|
+
when it needs them.
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
.agents/skills/project-imports/
|
|
129
|
+
├── SKILL.md # rule + happy path + do/don't
|
|
130
|
+
└── references/
|
|
131
|
+
└── csv-format.md # full column spec, encodings, edge cases
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
This keeps the always-loaded surface small and lets depth scale without bloating
|
|
135
|
+
context. See the **create-skill** skill for the full skill format.
|
|
136
|
+
|
|
137
|
+
## Write action-oriented tables
|
|
138
|
+
|
|
139
|
+
The agent scans tables faster than prose. Prefer a table of name -> purpose over
|
|
140
|
+
paragraphs describing each operation. The same applies to state keys, field
|
|
141
|
+
types, and any enumerable set. Tables are skimmable, diffable, and easy to keep
|
|
142
|
+
in sync when you add an action.
|
|
143
|
+
|
|
144
|
+
## Write clear tool/action descriptions
|
|
145
|
+
|
|
146
|
+
Action descriptions are tool descriptions — they drive tool selection. Make each
|
|
147
|
+
one a precise, single-purpose sentence:
|
|
148
|
+
|
|
149
|
+
- Say what it does and what it returns, not how it's implemented.
|
|
150
|
+
- Describe each parameter in its `.describe()` so the agent fills it correctly.
|
|
151
|
+
- One responsibility per action. If a description needs "and also…", split it.
|
|
152
|
+
- Mark read-only actions (`readOnly: true` / `http: { method: "GET" }`) so the
|
|
153
|
+
agent knows they're safe to call freely.
|
|
154
|
+
- For provider-backed shortcuts, make clear they are convenience paths, not
|
|
155
|
+
capability ceilings. If arbitrary provider endpoints/filters may matter,
|
|
156
|
+
point instructions to `provider-api-catalog`, `provider-api-docs`, and
|
|
157
|
+
`provider-api-request` instead of implying the shortcut is all the agent can
|
|
158
|
+
do.
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
defineAction({
|
|
162
|
+
description: "Create a project. Returns the new project id and title.",
|
|
163
|
+
schema: z.object({
|
|
164
|
+
title: z.string().min(1).describe("Project title shown in the sidebar"),
|
|
165
|
+
}),
|
|
166
|
+
// ...
|
|
167
|
+
});
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Bake in anti-fabrication and verify-before-done
|
|
171
|
+
|
|
172
|
+
App instructions should make honesty and verification the default behavior:
|
|
173
|
+
|
|
174
|
+
- **Never fabricate.** If data isn't found or an action fails, say so and recover
|
|
175
|
+
— don't invent results or claim success. Read the real value via an action or
|
|
176
|
+
query before reporting it.
|
|
177
|
+
- **Verify before declaring done.** After a change, confirm it with a read-back
|
|
178
|
+
(re-query the row, re-read the screen via `view-screen`) instead of assuming
|
|
179
|
+
the write worked.
|
|
180
|
+
- **Recover, don't give up.** On a recoverable error (a failed query, a transient
|
|
181
|
+
fetch), retry or fix the input rather than abandoning the task. Keep this
|
|
182
|
+
separate from the anti-fabrication rule — don't conflate "don't make things up"
|
|
183
|
+
with "stop at the first error."
|
|
184
|
+
|
|
185
|
+
Put these as core rules in `AGENTS.md` so they apply to every turn.
|
|
186
|
+
|
|
187
|
+
## Bake in secrets hygiene
|
|
188
|
+
|
|
189
|
+
Instruction authors must make credential handling explicit anywhere an app,
|
|
190
|
+
skill, action, webhook, integration, or extension touches external services.
|
|
191
|
+
Write the rule in terms of values, not just files: never hardcode real API keys,
|
|
192
|
+
tokens, webhook URLs, signing secrets, OAuth refresh tokens, private
|
|
193
|
+
Builder/internal data, or customer data in source, docs, tests, fixtures,
|
|
194
|
+
prompts, screenshots, or generated content.
|
|
195
|
+
|
|
196
|
+
Examples may name credential keys such as `OPENAI_API_KEY` or `SLACK_WEBHOOK`,
|
|
197
|
+
but values must be placeholders (`<OPENAI_API_KEY>`, `${keys.SLACK_WEBHOOK}`) or
|
|
198
|
+
clearly fake test data. Tell agents which approved channel to use instead:
|
|
199
|
+
deployment env vars for deploy-level secrets, `app_secrets` /
|
|
200
|
+
`saveCredential` / `resolveCredential` for scoped API keys, `oauth_tokens` for
|
|
201
|
+
OAuth, and `${keys.NAME}` substitution for extension/automation outbound HTTP.
|
|
202
|
+
|
|
203
|
+
## What goes where
|
|
204
|
+
|
|
205
|
+
- **AGENTS.md** — applies to the whole app, every turn: purpose, core rules,
|
|
206
|
+
state keys, action index, skills index.
|
|
207
|
+
- **Skills** — reusable how-to for a specific pattern, loaded on demand. Applies
|
|
208
|
+
to everyone working in the app.
|
|
209
|
+
- **Memory (`memory/MEMORY.md`)** — per-user preferences and corrections, not
|
|
210
|
+
authored guidance. See **capture-learnings**.
|
|
211
|
+
|
|
212
|
+
## Do
|
|
213
|
+
|
|
214
|
+
- Keep `AGENTS.md` to roughly one screen of orientation; link out for depth.
|
|
215
|
+
- Update the action table and skills index whenever you add an action or skill.
|
|
216
|
+
- Write every SKILL.md description with an explicit "Use when…".
|
|
217
|
+
- Use tables for any enumerable set (actions, state keys, field types).
|
|
218
|
+
|
|
219
|
+
## Don't
|
|
220
|
+
|
|
221
|
+
- Don't duplicate skill content inside `AGENTS.md` — point to the skill.
|
|
222
|
+
- Don't maintain two instruction files; symlink `CLAUDE.md` to `AGENTS.md`.
|
|
223
|
+
- Don't write vague descriptions ("helps with projects") — they won't trigger.
|
|
224
|
+
- Don't document niche/buried UI behaviors in instructions; let code and UI
|
|
225
|
+
carry those.
|
|
226
|
+
- Don't paste real credentials, credential-looking dummy strings, private
|
|
227
|
+
Builder/internal data, or customer data into examples. Use placeholders.
|
|
228
|
+
|
|
229
|
+
## Related Skills
|
|
230
|
+
|
|
231
|
+
- **create-skill** — The skill format and templates this guide refers to.
|
|
232
|
+
- **adding-a-feature** — The four-area model (UI, actions, skills/instructions,
|
|
233
|
+
application state) every feature must satisfy.
|
|
234
|
+
- **actions** — How action descriptions become agent tools.
|
|
235
|
+
- **context-awareness** — Application-state keys and the `view-screen` pattern.
|
|
236
|
+
- **capture-learnings** — Where per-user learnings go instead of AGENTS.md.
|
|
@@ -23,7 +23,11 @@ agent should know.
|
|
|
23
23
|
- Put shared code in `packages/shared` only when multiple apps need it.
|
|
24
24
|
- Keep app-specific screens, actions, state, and skills inside `apps/<app>`.
|
|
25
25
|
- Store shared runtime configuration in the workspace root `.env`; use
|
|
26
|
-
`apps/<app>/.env` only for app-specific overrides.
|
|
26
|
+
`apps/<app>/.env` only for app-specific overrides. Never hardcode API keys,
|
|
27
|
+
tokens, webhook URLs, signing secrets, private Builder/internal data, customer
|
|
28
|
+
data, or credential-looking literals in source, docs, prompts, fixtures,
|
|
29
|
+
application state, action responses, or generated app content. Use
|
|
30
|
+
secrets/OAuth/runtime configuration and obvious placeholders in examples.
|
|
27
31
|
- Prefer framework defaults until the workspace has a real custom rule,
|
|
28
32
|
component, plugin, action, or skill to share.
|
|
29
33
|
- Keep the Workspace files view for user-authored or user-requested resources.
|
|
@@ -43,8 +43,11 @@ coding agents can discover the same workspace-wide guidance from the root.
|
|
|
43
43
|
- Keep application routes, actions, server plugins, and app state inside the
|
|
44
44
|
relevant `apps/<app>` directory unless multiple apps need the same behavior.
|
|
45
45
|
- Put reusable code in `packages/shared` only after at least two apps need it.
|
|
46
|
-
- Never copy live credentials,
|
|
47
|
-
|
|
46
|
+
- Never copy live credentials, API keys, tokens, webhook URLs, signing secrets,
|
|
47
|
+
personal email addresses, customer data, private Builder/internal data, or
|
|
48
|
+
company-specific placeholder values into source files, docs, prompts,
|
|
49
|
+
fixtures, application state, action responses, or generated app content. Use
|
|
50
|
+
secrets/OAuth/runtime configuration and obvious placeholders in examples.
|
|
48
51
|
|
|
49
52
|
## New Workspace Apps
|
|
50
53
|
|