Package Anidev Skill and standalone API panel integration
This commit is contained in:
1 parent
8e4e8e6ef0
commit
61b05abe44
43 files changed
+1859
-57
No files matched your search
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: anidev-design-system
|
||||
description: "Build or refine application interfaces with the approved Anidev Dock design system, its light/dark tokens, icons and native HTML/CSS/ESM components. Use when the user requests Anidev styling or works in a project that already uses it."
|
||||
---
|
||||
|
||||
# Anidev Design System
|
||||
|
||||
Use the approved Dock as one unified application panel. Keep the project's product, framework, router and API architecture; do not turn an existing application into the design-system gallery.
|
||||
|
||||
## Resources
|
||||
|
||||
Paths below are relative to this installed Skill. Its build bundles all resources; no sibling repository, external skill or network connection is needed to read them.
|
||||
|
||||
- Start with [design rules](assets/anidev/docs/DESIGN.md) and [public API](assets/anidev/docs/PUBLIC-API.md) when implementing UI.
|
||||
- Read [component contracts](assets/anidev/docs/components/CONTRACT.md) for forms, overlays, selection and feedback; [UX patterns](assets/anidev/docs/patterns/UX.md) for tables and flows.
|
||||
- Use [the starter](assets/starter/index.html) and its app.js when introducing a new shell. Copy assets/starter into the project and assets/anidev into its anidev subfolder; serve over HTTP. For an existing UI, integrate only what its task needs.
|
||||
- Read [identity patterns](assets/anidev/docs/patterns/IDENTITY.md) only for account/auth UI, and [workspace contracts](assets/anidev/docs/patterns/WORKSPACES.md) only for SSH or logs. Their demo adapters are not real authentication or server access.
|
||||
- Check [anti-slop rules](assets/anidev/docs/ANTI-SLOP.md) before visual review. [Package metadata](assets/anidev/package.json) and manifest.json identify the bundled version. Preserve [distribution notices](assets/anidev/NOTICE.md).
|
||||
|
||||
## Integration decisions
|
||||
|
||||
Use the bundled CSS, tokens and icon pack rather than approximate equivalents. Preserve the target project's framework; wrap mount/cleanup in its lifecycle instead of adding another framework. Use public exports from runtime/index.js; do not import the gallery or its fixtures. Do not fetch a newer version implicitly. If the project pins another version, compare its API and changes before migration.
|
||||
|
||||
One document owns one Dock and a document-wide theme. The rail is compact, expands over a dimmed inert content area, and does not move the page. Put a/ at the top; no separate disclosure icon. Selecting a nav item keeps the Dock open. Hover, focus, selected and disabled states must remain visible, with the selected item stable on hover. Keep the approved light and dark palettes, themed native scrolling, shared icon axis and reduced-motion behavior.
|
||||
|
||||
The host can be an independent frontend that calls an API. Treat available sections as data: update items/groups through mountNavigation rather than hardcoding one panel per service. The host owns routes and active content; the server authorizes every operation regardless of menu visibility. Render API strings as text. Use loading/empty/error states and cancel stale requests during navigation. Do not introduce a backend proxy unless the product requires it.
|
||||
|
||||
Use semantic tokens for surfaces, text and states; preserve native form controls, associated labels, keyboard behavior and focus return. Related checkboxes may share horizontal or vertical capsules. Status includes words and an icon when useful, rather than relying on color. Toasts report results without stealing focus. Terminal surfaces remain black in either theme.
|
||||
|
||||
## Verification
|
||||
|
||||
Verify the changed flows in both themes and desktop/mobile, with keyboard, long Russian labels, empty/error data and any affected modal or popover. Confirm that dynamic menu changes preserve an available active section and provide a sensible fallback when it disappears. Dispose controllers, listeners and requests on unmount. Review the rendered result; automated checks alone are not an accessibility audit. Report the actual checks and remaining integration limits.
|
||||
@@ -0,0 +1,4 @@
|
||||
interface:
|
||||
display_name: "Anidev Design System"
|
||||
short_description: "Build interfaces with the approved Anidev Dock"
|
||||
default_prompt: "Use $anidev-design-system to build this interface with Anidev Dock."
|
||||
Reference in new issue
Block a user