test-frontend-unit
Skill by pwndoc
Generates Vitest and Vue Test Utils unit tests for the PwnDoc frontend. It covers services, components, pages and Pinia stores. Aimed at developers working on the PwnDoc frontend codebase.
Install test-frontend-unit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/pwndoc/pwndoc /tmp/pwndoc && mkdir -p ~/.claude/skills && cp -r /tmp/pwndoc/.claude/skills/test-frontend-unit ~/.claude/skills/test-frontend-unitRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/pwndoc/pwndoc /tmp/pwndoc && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pwndoc/.claude/skills/test-frontend-unit ~/.gemini/antigravity-cli/skills/test-frontend-unitAntigravity 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 skill writes frontend unit tests for PwnDoc using Vitest, Vue Test Utils and Quasar. You pass a target such as service:audit, component:breadcrumb, page:profile or store:index, and it reads the source file, a matching reference test and the shared test utilities before writing the test file. Each type has its own pattern: services mock boot/axios, components use createTestWrapper, pages mock their services and stub Quasar components, and stores use Pinia.
The skill can also scan for untested files when given all or gaps. A fix mode reads a failing test and its source, then edits the test using the failure message. Unless --no-run is passed, it runs ./pwndoc-cli test --frontend-unit and iterates until the tests pass. It is written for developers maintaining the PwnDoc frontend.
Written from the project's SKILL.md and checked against it.
What it can do
- Service testsWrites tests that mock boot/axios and check each method calls the correct endpoint.
- Component testsWrites mounted component tests using createTestWrapper, covering props, computed values and events.
- Page testsWrites page tests with mocked services, stubbed Quasar components, Pinia and routing.
- Store testsWrites Pinia store tests covering initial state, actions and getters.
- Gap scanningScans for untested files when the argument is all or gaps and generates tests for each.
- Fix modeReads a failing test and its source, then edits the test based on the failure message.
- Test runsRuns ./pwndoc-cli test --frontend-unit and can add --coverage, repeating fixes until tests pass.
What you need
- PwnDoc repository with the frontend directory
- pwndoc-cli available to run the test command
Try asking
- Generate unit tests for service:audit in PwnDoc
- Write a store test for store:index and run the frontend tests
- Find untested frontend files and generate tests for the gaps
Good to know
- Quasar is registered globally in setup.js, so tests should not register it again
- Tests should not import from the Quasar testing unit package
- With --no-run, the skill stops after writing or fixing the test file and does not run tests
Security check
B- Allowed to use Bash, Write, Edit without limitsIn
SKILL.md
Checked automatically: .claude/skills/test-frontend-unit/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashGlobGrepReadWriteEdit
-
SKILL.md9 KB -
template-component-test.md2 KB -
template-page-test.md2 KB -
template-service-test.md2 KB -
template-store-test.md1 KB
Alternatives to test-frontend-unit
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
test-frontend-unit: common questions
What test frameworks does this skill use?
It uses Vitest, Vue Test Utils and Quasar for PwnDoc frontend unit tests. Stores are tested with Pinia.
What targets can I pass to the skill?
Use service, component, page or store followed by a name, such as component:breadcrumb. You can also pass all or gaps to scan for untested files.
Does it run the tests after writing them?
Yes, unless --no-run is passed. It then runs ./pwndoc-cli test --frontend-unit and fixes failing tests until they pass.
How do I install test-frontend-unit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is test-frontend-unit free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is test-frontend-unit safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, write, edit without limits). Review the code before you install. How grades work.
What are alternatives to test-frontend-unit?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
