dhpk-vue-2-notes

dhpk-vue-2-notes is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 181 tokens per session (1,966 once invoked), scanned A, original, MIT.

A guide to building and reviewing Vue 2 components using the older Options API. Vue is a JavaScript interface framework; the Options API organises a component through sections such as data, computed values, methods, and watchers.

In plain words
What is it for?
Use it when working on Vue 2 single-file components, especially projects using Laravel Mix and Vue 2.5.
Why use it?
It prevents Vue 3 patterns from being used in a Vue 2 project and explains the state-reactivity rules that can cause bugs.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it when working on Vue 2 single-file components, especially projects using Laravel Mix and Vue 2.5.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/dhpk-vue-2-notes
View source ↗ hmj1026/dhpk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hmj1026/dhpk --skill dhpk-vue-2-notes
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dhpk-vue-2-notes

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-vue-2-notes/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-vue-2-notes)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-vue-2-notes"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-vue-2-notes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dhpk-vue-2-notes

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-vue-2-notes"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-vue-2-notes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 181 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,966 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00181 $0.01966
Opus 5.5 $0.00072 $0.00786
Sonnet 5.5 $0.00036 $0.00393
Haiku 4.5 $0.00018 $0.00197

Measured yesterday against content hash 9645705f1758, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dhpk-vue-2-notes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

generated/claude-marketplace/package/modules/vue-2/skills/dhpk-vue-2-notes/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vue 2 — Options API baseline

Targets vue ^2.5.17. Options API only — the Composition API (setup(), ref, reactive, <script setup>) does not exist here; it arrives in 2.7 as a backport and is the default in Vue 3.

SFCs (.vue) are compiled by vue-loader driven by Laravel Mix (webpack 4). Source lives under resources/assets/js. See the laravel family skill's mix selector for the build wiring.


Signature features

Options API component structure

export default {
    name: 'OrderTicket',

    props: {
        order: { type: Object, required: true },
        compact: { type: Boolean, default: false },
    },

    // data MUST be a function returning a fresh object, so each
    // component instance gets its own state (not a shared reference).
    data() {
        return {
            expanded: false,
            note: '',
        };
    },

    computed: {
        // cached, re-evaluated only when a reactive dependency changes
        title() {
            return this.compact ? this.order.no : this.order.fullName;
        },
    },

    methods: {
        toggle() {
            this.expanded = !this.expanded;
        },
    },

    watch: {
        // imperative side effects on a value change
        'order.status'(next, prev) {
            if (next === '6') this.$emit('done', this.order.id);
        },
    },

    created() {
        // instance + reactivity ready; DOM NOT yet mounted
    },

    mounted() {
        // DOM available; safe to read $refs / attach listeners
    },
};

Lifecycle order: beforeCreate → created → beforeMount → mounted → beforeUpdate → updated → beforeDestroy → destroyed. Fetch data in created (no DOM needed); touch the DOM in mounted.

Props down, events up

State flows one direction. A child never mutates a prop; it emits an event and lets the owner of the state change it.

// child
methods: {
    remove() {
        this.$emit('remove', this.item.id); // ask parent to mutate
    },
},

Read the full file on GitHub · 243 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +1 lines 9645705f1758
  2. 23d ago Changed f77b80a27b8b
  3. 1mo ago First seen · 242 lines · 181 tokens per session scan A 048628948f62

Subscribe to this mod's changes

dhpk-vue-2-notes is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 181 tokens to every session and 1,966 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

harness

A meta-skill for designing and maintaining a project harness: a coordinated set of specialist agents, skills, and project instructions. It defines their roles, connects them to the project, and updates the setup as the work changes.

revfactory/harness · 184 tokens

evolve

A workflow for improving an existing setup that guides coding agents. It collects results and feedback, compares the current setup with its starting version, and records useful changes.

revfactory/harness · 184 tokens

portable-text-serialization

Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown…

sanity-io/agent-toolkit · 85 tokens

bun-sveltekit

Use when building or running SvelteKit apps on Bun, including SSR, adapters, and Bun-specific APIs.

secondsky/claude-skills · 26 tokens

dev-plan

A planning tool that breaks a software project into features arranged in dependency-based waves, or groups of work that can be done in sequence or parallel.

andrewcigan/vibe-dev-plugin · 77 tokens

research

A research workflow that assigns separate agents to study open-source projects, competing products, and current development practices. Git worktrees are separate working copies used to keep those investigations isolated.

andrewcigan/vibe-dev-plugin · 69 tokens