Vue Auto-Import Checker Agent Skill
Use this workflow when the user asks to scan a Vue project for tags that are not registered in
components.d.ts. Supported files are Vue Single-File Components (*.vue / SFC). At minimum, each file
must contain a <template> block.
<script>
/* TypeScript or JavaScript content */
</script>
<template>
<!-- HTML content -->
</template>
<style>
/* CSS content */
</style>
1. Collect Required Inputs
Ask the user for:
projectPaths: one or more directories to scan (--project-paths/-p).componentsFile: path tocomponents.d.ts(--components-file/-c).
Do not run the checker until both are provided.
2. Collect Optional Inputs
Ask the user these questions in order:
frameworks: optional list of frameworks to treat as known (-f). Allowed values:naiveui,nuxt,primevue,quasar,vuetify,vueuse.negateKnown: optional list of base sets to treat as not known (-n). Allowed values:html,svg,vue,vuerouter.knownTags: optional list of known tags (-l).knownTagsFile: optional file path that contains known tags (-j).
Also ask whether imported components should be treated as known (-i).
3. Ask Output Preference
Ask how the user wants output presented:
- Output format:
text,md, orjson(-o). - Include detailed entries (
-r) or summary only. - Include scan stats (
-s) or not. - Show all tags (known and unknown,
-k) or unknown-only (default). - Quiet mode (
-q) only if the user wants exit behavior without details.
4. Validate Inputs
Before execution, validate all user inputs:
componentsFileexists and is a file.- Every entry in
projectPathsexists and is a directory. knownTagsFileexists and is a file, if provided.frameworksonly contains allowed framework names.negateKnownonly contains allowed set names.
If a value is invalid, ask for correction and do not run the checker.
5. Build and Run Command
Run from the repository root (or where vue-auto-import-checker is installed):
npx vue-auto-import-checker \
-c <componentsFile> \
-p <projectPath1> <projectPath2> ... \
[ -f <framework1> <framework2> ... ] \
[ -n <set1> <set2> ... ] \
[ -l <tag1> <tag2> ... ] \
[ -j <filePath> ] \
[ -i ] \
[ -r ] \
[ -s ] \
[ -k ] \
[ -q ] \
-o <text|md|json>
Rules:
- Use only flags requested by the user.
- Keep user-provided path values unchanged unless the user asks for normalization.
- If the user requests multiple runs, confirm whether to reuse the previous configuration.
6. Present Results
After execution:
- Report exit code.
- Present output in the user-requested style:
- exact console output when requested, or
- concise summary when requested.
- If unknown tags are found and output was too minimal to diagnose the issue, ask whether to run again with
-rand-s.
7. Safety and Consistency
- Never invent framework names.
- Keep framework names normalized to lowercase.
- Preserve tag casing passed by the user for
-l. - If the user asks for multiple runs, repeat from Step 3 unless they confirm that previous settings should be reused.
Source: marcelwagner/vue-auto-import-checker — distributed by TomeVault.