Agent skill

QR Codes with qrcode.vue

by scopewu in scopewu/qrcode.vue

Renders, styles and downloads QR codes in Vue 3 apps with the qrcode.vue component, covering canvas versus SVG output, embedded logos, gradients and rounded modules.

MITAuto-check passedFrontend & Design

Install QR Codes with qrcode.vue

skills CLI
$ npx skills add scopewu/qrcode.vue --skill qrcode-vue -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install scopewu/qrcode.vue qrcode-vue --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/scopewu/qrcode.vue.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/qrcode-vue .claude/skills/qrcode-vue && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
qrcode-vue
GitHub stars
827
Token cost
~1.3k tokens
SKILL.md length
354 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Renders, styles and downloads QR codes in Vue 3 apps with the qrcode.vue component, covering canvas versus SVG output, embedded logos, gradients and rounded modules.

  • Adding a QR code to a Vue 3 component
  • SKILL.md covers Install, Exports, Props and Template ref methods, plus 2 more sections
  • Calls npm
  • Embedding a logo or gradient into a rendered QR code

What it does

The library exports a default QrcodeVue component that switches between canvas and SVG rendering through a render-as prop, plus dedicated QrcodeCanvas and QrcodeSvg components for when the renderer is fixed; SVG is the one suited to server-side rendering. Shared props cover the QR value, size, error-correction level, background and foreground color, margin, module corner radius for rounded or circular modules, and an embedded logo through an image-settings object.

A gradient fill can replace the flat foreground color, with linear or radial direction and separate start and end colors. Template ref methods expose toDataURL and download on every component, with QrcodeVue forwarding to whichever renderer is active. Version 3.x targets Vue 3 only, with a vue peer dependency and no other runtime dependencies; Vue 2 apps need the 1.x release of the library instead.

When your agent uses it

  • Adding a QR code to a Vue 3 component
  • Embedding a logo or gradient into a rendered QR code
  • Choosing between canvas and SVG output for SSR or download

Example prompts

  • “Add a QR code component that links to our signup page, with rounded modules.”
  • “Render this QR code as SVG so it works with SSR, and add our logo in the center.”
  • “Add a download button that saves the QR code as a PNG using the component's ref methods.”

Requirements

  • Vue 3

What it can do on your machine

Read from SKILL.md and the folder at commit 0252bbb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

QR Codes with qrcode.vue loads about 1.3k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 354 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from scopewu/qrcode.vue at commit 0252bbb, republished under its MIT licence (© scopewu). 354 words, ~1,256 tokens.

Download SKILL.mdSave it as .claude/skills/qrcode-vue/SKILL.md (or your agent's skills folder).
name
qrcode-vue
description
Generate QR codes in Vue 3 apps with the qrcode.vue component library. Use this skill whenever the user wants to render, style, or download a QR code in Vue — including QR with a logo/image, gradient or rounded modules, SVG vs canvas output, SSR/Nuxt usage, or TypeScript typing — even if they don't name the library explicitly.

qrcode.vue

A Vue.js component to generate QR codes. Version 3.x targets Vue 3 only (Vue 2 apps must use qrcode.vue 1.x). Peer dependency: vue@^3.0.0. No other runtime dependencies.

Install

bash
npm install --save qrcode.vue   # or: yarn add qrcode.vue

Exports

ts
import QrcodeVue, { QrcodeCanvas, QrcodeSvg } from 'qrcode.vue'
import type { Level, RenderAs, GradientType, ImageSettings } from 'qrcode.vue'
  • QrcodeVue (default) — switches between canvas and SVG via the render-as prop.
  • QrcodeCanvas / QrcodeSvg (named) — single-renderer components. Prefer these when the renderer is fixed.

CommonJS / CDN note: exports are named since 3.5 — use require('qrcode.vue').default or QrcodeVue.default when loading the UMD bundle.

Props

All three components share these props (render-as exists only on QrcodeVue):

PropTypeDefaultNotes
valuestring''Required. QR content.
sizenumber100Element size in px.
render-as'canvas' | 'svg''canvas'QrcodeVue only. Use 'svg' for SSR.
level'L' | 'M' | 'Q' | 'H''L'Error correction. Use 'H' when embedding a logo.
backgroundstring'#fff'Background color.
foregroundstring'#000'Module color (ignored when gradient is on).
marginnumber0Quiet-zone width in modules, >= 0.
radiusnumber0Module corner radius, 0–0.5. 0.5 = circular modules. Inner corners between adjacent modules stay sharp.
gradientbooleanfalseEnable gradient fill.
gradient-type'linear' | 'radial''linear'Gradient direction type.
gradient-start-colorstring'#000'Gradient start.
gradient-end-colorstring'#fff'Gradient end.
image-settingsImageSettings{}Embedded logo, see below.
idstringundefinedID base for internal SVG defs. Pass useId() (Vue 3.5+) for SSR hydration safety.
ts
type ImageSettings = {
  src: string                                          // image URL
  x?: number; y?: number                               // offset; centered when omitted
  height?: number; width?: number                      // default: 10% of `size`
  excavate?: boolean                                   // clear modules behind the image
  borderRadius?: number
  crossOrigin?: 'anonymous' | 'use-credentials' | ''   // required to export canvas with a cross-origin logo
}
Show full SKILL.md (146 more words)Show less

Template ref methods

Expose toDataURL and download on all components (QrcodeVue forwards to the active renderer):

html
<script setup>
import { ref } from 'vue'
import { QrcodeCanvas } from 'qrcode.vue'

const qrRef = ref()
const save = () => qrRef.value?.download('qrcode.png')
</script>

<template>
  <qrcode-canvas ref="qrRef" value="https://example.com" />
  <button @click="save">Download</button>
</template>
  • Canvas: toDataURL(type?, quality?), download(filename?) → PNG.
  • SVG: toDataURL(), download(filename?) → SVG.

Recipes

QR with a centered logo — always raise level so the code stays scannable:

html
<qrcode-svg
  value="https://example.com"
  :size="300"
  level="H"
  :image-settings="{ src: logoUrl, width: 60, height: 60, excavate: true, borderRadius: 8 }"
/>

Gradient + rounded modules:

html
<qrcode-vue
  value="https://example.com"
  render-as="svg"
  gradient
  gradient-type="radial"
  gradient-start-color="#000000"
  gradient-end-color="#38bdf8"
  :radius="0.35"
/>

SSR / Nuxt — render as SVG and pass a stable id:

html
<script setup>
import { useId } from 'vue'
import { QrcodeSvg } from 'qrcode.vue'
const uid = useId() // Vue 3.5+; on older versions pass any unique string
</script>

<template>
  <qrcode-svg value="https://example.com" :id="uid" />
</template>

Pitfalls

  • Vue 2: do not use 3.x — install qrcode.vue@1.x.
  • Tainted canvas: with a cross-origin logo, set imageSettings.crossOrigin: 'anonymous' and ensure the image server sends Access-Control-Allow-Origin, or toDataURL/download throws SecurityError.
  • SSR hydration: without an explicit id, internal SVG IDs come from a module-level counter and can mismatch between server and client. Always pass useId() under SSR.
  • Scannability: keep contrast high between foreground/gradient and background; a logo covering too much area breaks scanning even at level H.
  • Multiple instances with gradients: id keeps each SVG's <defs> unique; collisions cause one QR's gradient to leak into another.

© scopewu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/qrcode-vue of scopewu/qrcode.vue.

Open the folder on GitHubat commit 0252bbb

Compare with similar skills

QR Codes with qrcode.vue next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

QR Codes with qrcode.vue compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
QR Codes with qrcode.vue this skillscopewu/qrcode.vue827—~1.3kAutomated safety check: PassMIT
Vue ExpertJeffallan/claude-skills12k—~1.1kAutomated safety check: PassMIT
GSAP in Vue, Nuxt and Sveltegreensock/gsap-skills16k3 repos~2.6kAutomated safety check: PassMIT
React Frontend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2.9kAutomated safety check: PassMIT
Create Docsvictorgarciaesgi/nuxt-typed-router4132 repos~2.8kAutomated safety check: PassMIT
Phoenix FrontendArize-ai/phoenix12k—~709Automated safety check: PassCustom licence

Similar skills

  • Vue Expert

    Jeffallan/claude-skills

    Builds Vue 3 apps with the Composition API and script setup, Pinia state, Nuxt 3, Vite tuning and Quasar or Capacitor mobile builds, checked with vue-tsc and Vitest.

    12k GitHub stars~1.1k tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed
  • GSAP in Vue, Nuxt and Svelte

    greensock/gsap-skills

    Shows how to use GSAP in Vue, Nuxt, Svelte and other lifecycle-based frameworks: create after mount, scope selectors to the component, and revert on unmount.

    16k GitHub starsUsed in 3 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • React Frontend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Guidelines for React 18 and TypeScript apps covering Suspense data fetching, lazy loading, feature folders, MUI v7 styling, TanStack Router and performance.

    10k GitHub starsUsed in 2 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • Create Docs

    victorgarciaesgi/nuxt-typed-router

    Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.

    413 GitHub starsUsed in 2 repos~2.8k tokens
    Frontend & DesignAuto-check passed
  • Phoenix Frontend

    Arize-ai/phoenix

    Frontend development guidelines for the Phoenix AI observability platform.

    12k GitHub stars~709 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Builds the visual layer of a holaOS dashboard app with TanStack Start and @holaboss/ui, starting from a bundled reference instead of a blank page.

    11k GitHub stars~6.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed

Questions about QR Codes with qrcode.vue

What does QR Codes with qrcode.vue do?

Renders, styles and downloads QR codes in Vue 3 apps with the qrcode.vue component, covering canvas versus SVG output, embedded logos, gradients and rounded modules. The library exports a default QrcodeVue component that switches between canvas and SVG rendering through a render-as prop, plus dedicated QrcodeCanvas and QrcodeSvg components for when the renderer is fixed; SVG is the one suited to server-side rendering. Shared props cover the QR value, size, error-correction level, background and foreground color, margin, module corner radius for rounded or circular modules, and an embedded logo through an image-settings object.

When should I use QR Codes with qrcode.vue?

QR Codes with qrcode.vue fits situations like: adding a QR code to a Vue 3 component; embedding a logo or gradient into a rendered QR code; choosing between canvas and SVG output for SSR or download.

How do I install QR Codes with qrcode.vue in Claude Code?

Run `npx skills add scopewu/qrcode.vue --skill qrcode-vue -a claude-code`. Or copy the skill folder (skills/qrcode-vue in scopewu/qrcode.vue) into .claude/skills/qrcode-vue in your project. Claude Code loads it when a task matches its description.

How do I install QR Codes with qrcode.vue in Codex?

Run `npx skills add scopewu/qrcode.vue --skill qrcode-vue -a codex`. Or copy the skill folder (skills/qrcode-vue in scopewu/qrcode.vue) into .agents/skills/qrcode-vue in your project. Codex loads it when a task matches its description.

Can I use QR Codes with qrcode.vue in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add scopewu/qrcode.vue --skill qrcode-vue -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/qrcode-vue, .gemini/skills/qrcode-vue, .github/skills/qrcode-vue and .opencode/skills/qrcode-vue in your project.

What does QR Codes with qrcode.vue need to run?

Going by SKILL.md and its folder, QR Codes with qrcode.vue needs the command-line tools its instructions call (npm). Our summary lists: Vue 3.

Does QR Codes with qrcode.vue access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is QR Codes with qrcode.vue safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does QR Codes with qrcode.vue use?

QR Codes with qrcode.vue is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does QR Codes with qrcode.vue use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to QR Codes with qrcode.vue?

Skills that share tags, products or a category with QR Codes with qrcode.vue: Vue Expert (Jeffallan/claude-skills, 12k stars), GSAP in Vue, Nuxt and Svelte (greensock/gsap-skills, 16k stars), React Frontend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars) and Create Docs (victorgarciaesgi/nuxt-typed-router, 413 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains QR Codes with qrcode.vue?

scopewu (a GitHub user) maintains it in scopewu/qrcode.vue, which has 827 GitHub stars. The repository was last updated on October 9, 2026.

Source: scopewu/qrcode.vue on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.