v3-use-composables
Skill by un-pany
v3-use-composables is a usage guide for the built-in composables in the V3 Admin Vite project's src/common/composables directory. It covers device detection, async select options, fullscreen loading, pagination, route listening, themes, page titles, and watermarks. It is for developers working in that project who want their AI assistant to use these functions instead of writing new ones.
Install v3-use-composables
Built from the published package, never by AI.
git clone --depth 1 https://github.com/un-pany/v3-admin-vite /tmp/v3-admin-vite && mkdir -p ~/.claude/skills && cp -r /tmp/v3-admin-vite/.agents/skills/v3-use-composables ~/.claude/skills/v3-use-composablesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/un-pany/v3-admin-vite /tmp/v3-admin-vite && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/v3-admin-vite/.agents/skills/v3-use-composables ~/.gemini/antigravity-cli/skills/v3-use-composablesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill documents the reusable composable functions shipped in the V3 Admin Vite project, located in src/common/composables and imported through the @@/composables/ path alias. Each section shows the import, the returned values, and example usage, with Element Plus component snippets where relevant. It covers functions such as useDevice, useFetchSelect, useFullscreenLoading, usePagination, useRouteListener, useTheme, useTitle, useWatermark, useGreyAndColorWeakness, and useLayoutMode.
The skill tells the assistant to prefer these built-in composables over writing duplicate logic. It also states that composables handle their own lifecycle cleanup, and that new general-purpose composables should go in src/common/composables with names starting with use, while page-specific ones belong in that page's composables subfolder. It is aimed at developers building admin pages in this project.
Written from the project's SKILL.md and checked against it.
What it can do
- useDeviceReports whether the current device is mobile or desktop, based on appStore.device.
- useFetchSelectLoads select options from an API function when the component mounts, returning loading, options and value.
- useFullscreenLoadingWraps a function so a fullscreen Loading overlay shows while it runs and closes after it finishes.
- usePaginationManages pagination state and reloads data when the page or page size changes.
- useRouteListenerListens for route changes through a publish and subscribe pattern and removes the listener on unmount.
- useThemeInitializes and switches the normal, dark and dark-blue themes, with View Transition animation.
- useTitleSets the browser tab title in the format project name plus page name, or resets it to the default.
- useWatermarkAdds a watermark to the page or a chosen container, with optional defense against removal and cleanup on unmount.
- useGreyAndColorWeaknessApplies grey mode and colour weakness mode by toggling CSS classes on the HTML root from settingsStore.
- useLayoutModeChecks and switches the layout mode between left menu, top menu and left plus top menu.
What you need
- A project that includes src/common/composables
- Element Plus, for the select and pagination examples
- The @@ path alias configured to point to src
Try asking
- Use useDevice to show a different layout on mobile.
- Load my select options with useFetchSelect and the getSelectDataApi call.
- Wrap my delete request with useFullscreenLoading and show a text message.
Good to know
- setTheme needs a mouse event to run the theme transition animation.
- The skill covers only the composables documented in the file, and new ones must be created when they are missing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/v3-use-composables/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to v3-use-composables
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
v3-use-composables: common questions
Where are the built-in composables located in the project?
They are in src/common/composables and are imported with the @@/composables/ path alias. Page-specific composables should go in that page's composables subfolder instead.
What does resetCurrentPage do in usePagination?
If the table is already on page 1, it runs the callback directly. Otherwise it resets to page 1 and lets the watcher trigger the request, which avoids duplicate requests.
Is watermark defense on by default?
Yes. The useWatermark options list defense with a default of true, and the watermark is cleared automatically when the component unmounts.
How do I install v3-use-composables?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is v3-use-composables free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is v3-use-composables safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to v3-use-composables?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
