fix(custom-widgets): remove tools from copied prompt
This commit is contained in:
7 files changed
+36
-59
No files matched your search
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: homarr-custom-widget
|
||||
description: Author, validate, preview, and install safe Homarr Custom JSX v2 widgets from API documentation. Use when creating or fixing Homarr custom widgets, including multi-source dashboards, queries, actions, options, temporary inputs, and Mantine JSX.
|
||||
description: Author safe Homarr Custom JSX v2 widgets from API documentation. Use when creating or fixing Homarr custom widgets, including multi-source dashboards, queries, actions, options, temporary inputs, and Mantine JSX.
|
||||
license: Apache-2.0
|
||||
metadata:
|
||||
version: "2.0.0"
|
||||
@@ -10,22 +10,12 @@ metadata:
|
||||
|
||||
Create one widget at a time. Repeat the workflow when the user asks for several widgets; do not invent packs or shared connections.
|
||||
|
||||
## Standalone workflow
|
||||
## Authoring workflow
|
||||
|
||||
When Homarr MCP tools and `homarr://` resources are unavailable, continue offline using this skill and the supplied authoring prompt. Do not search repeatedly for missing tools, stop, or ask whether to proceed. Produce the requested credential-free manifest and JSX directly, without claiming they were validated, previewed, or installed. The user will paste them into Homarr and return any diagnostics for correction.
|
||||
|
||||
## Connected workflow
|
||||
|
||||
Use this workflow only when the Homarr MCP tools and resources are actually available:
|
||||
|
||||
1. Get `homarr-custom-widget-author`, then read `homarr://custom-widgets/schema` and `homarr://custom-widgets/components`.
|
||||
2. Read the API documentation supplied by the user. Ask for missing base URLs and credentials only when needed.
|
||||
3. Build one `homarr-custom-widget-v2` document. Keep credentials outside the document.
|
||||
4. Call `customWidget_validate`, fix every error, and treat advisory Mantine prop warnings as review items.
|
||||
5. Call `customWidget_previewCreate`, then test load/manual queries with `customWidget_previewQuery` and actions with `customWidget_previewAction`.
|
||||
6. If credentials are missing, call `customWidget_secretRequestUser`. Use `customWidget_secretSet` only when the user already supplied a credential and the tool is authorized.
|
||||
7. Inspect the preview URL and `customWidget_previewJournal`. Patch JSX with `customWidget_templatePatch` or update the draft and repeat.
|
||||
8. Call `customWidget_create` only after validation and preview pass. Continue with the next widget independently.
|
||||
1. Read the API documentation supplied by the user. Ask for a missing base URL only when it cannot be inferred safely.
|
||||
2. Build one credential-free `homarr-custom-widget-v2` manifest and one safe JSX template.
|
||||
3. Return the complete manifest and JSX in the exact fenced-block format requested by the authoring prompt.
|
||||
4. When the user supplies Homarr diagnostics, correct every reported issue while preserving unrelated fields.
|
||||
|
||||
## Output rules
|
||||
|
||||
@@ -37,4 +27,4 @@ Use this workflow only when the Homarr MCP tools and resources are actually avai
|
||||
- Include responsive loading, empty, error, and success states.
|
||||
- Keep actions explicit, permission-scoped, confirmed when destructive, and followed by targeted invalidation.
|
||||
|
||||
When connected through MCP, use the live schema, component, example, and skill resources. If live resources are unavailable, follow this document and the authoring prompt; do not assume access to repository-relative files.
|
||||
Follow this document and the supplied authoring prompt as the complete authoring reference. Do not assume access to repository-relative files.
|
||||
Reference in new issue
Block a user