testing-strategy
Skill by chthollyphile
Guides an AI assistant on whether a change needs a new test and how to validate it in this repository. It covers Vitest unit tests, Playwright UI screenshot tests, component tests, and when to avoid extra builds while a dev server runs.
Install testing-strategy
Built from the published package, never by AI.
git clone --depth 1 https://github.com/chthollyphile/folia-major /tmp/folia-major && mkdir -p ~/.claude/skills && cp -r /tmp/folia-major/skills/testing-strategy ~/.claude/skills/testing-strategyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/chthollyphile/folia-major /tmp/folia-major && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/folia-major/skills/testing-strategy ~/.gemini/antigravity-cli/skills/testing-strategyAntigravity 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 gives an assistant a decision guide for testing changes in one repository. It explains when a new test is needed, and it routes each kind of change to a validation method. Pure logic, parsing, stores and utilities go to Vitest unit tests. Frontend layout and interaction changes go to the existing Playwright UI screenshot tests. Browser-only component behavior goes to Playwright component tests that use probe pages.
The skill also sets rules for efficiency. If a hot-reload dev server is already running, the assistant should read its errors instead of running a build. Documentation-only changes usually need no tests. Electron and packaging checks should not default to a full build. The guide lists the repository's npm test commands and says how to tell whether a failing test was caused by the current change. It is written for developers working in that specific codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- New test decisionDecides whether a change needs a new fast logic test, a browser test, or no new test.
- Vitest unit testsRoutes pure logic, utilities, stores and cache code to npm run test:unit.
- Playwright UI testsRuns existing UI screenshot tests with npm run test:ui and updates baselines with test:ui:update.
- Component testsUses Playwright component tests with probe pages for behavior that only shows in a real browser.
- Dev server handlingTells the assistant to read errors from a running dev server rather than starting builds or a second server.
- Failing test triageSuggests running the test on the previous commit to see if the failure predates the change.
- Dev launch shortcutsDescribes dev-only URL flags that skip the startup flow and load a mock song or mock library.
- Documentation changesAdvises that documentation-only changes usually need no tests, beyond static path and command checks.
What you need
- npm with the repository's package.json scripts
- Playwright (@playwright/test) 1.62 or later for component tests
- Vitest for unit tests
Try asking
- Does my change to the lyrics parser need a new unit test?
- Run the UI screenshot tests for my player panel changes.
- Check whether this failing test was already broken before my commit.
Good to know
- Written for one specific repository and its npm scripts.
- Sync tests should mock local storage, IndexedDB and remote clients, not connect to a real sync service.
- Visual and timing checks are left to maintainers unless they ask for new browser tests.
- Temporary test-results folders should not be committed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/testing-strategy/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to testing-strategy
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
testing-strategy: common questions
Does this skill run tests by itself?
The source describes which commands to run and when, such as npm run test:unit or npm run test:ui. It is a guide for the assistant's choices and does not describe running tests on its own.
When should the assistant avoid running a build?
The source says not to run npm run build when a hot-reload dev server such as vite or npm run dev is already running. It should read the existing terminal errors instead.
How do I check if a failing test was caused by my change?
The source says to run the test on the commit before your change. If it also fails there, the failure was not caused by your change, and you should note that in the handoff.
How do I install testing-strategy?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is testing-strategy free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is testing-strategy safe to use?
It scores 89 of 100. Grades: maintenance A, licence C, 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 testing-strategy?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
