tdd
Skill by Xoshbin
Sets a test-first workflow for new features and bug fixes in the Asyar project. It covers Rust code in src-tauri and TypeScript or Svelte 5 code in src. Aimed at developers working on this codebase.
Install tdd
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Xoshbin/asyar /tmp/asyar && mkdir -p ~/.claude/skills && cp -r /tmp/asyar/.agents/skills/tdd ~/.claude/skills/tddRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Xoshbin/asyar /tmp/asyar && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/asyar/.agents/skills/tdd ~/.gemini/antigravity-cli/skills/tddAntigravity 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 sets a test-driven development workflow for the Asyar project. It applies to new features and bug fixes in both the Rust code under src-tauri and the TypeScript and Svelte 5 code under src. The rule is to write a failing test first, watch it fail, write only enough code to pass it, then refactor.
It lists commands for Rust tests with cargo test and for frontend tests with pnpm test and pnpm test:run. Rust tests sit in inline cfg(test) modules, and TypeScript tests are colocated *.test.ts files that use Vitest. The skill also describes inner and outer check loops and integration tests for shared registries. It is written for developers working on this project.
Written from the project's SKILL.md and checked against it.
What it can do
- Red-green-refactor workflowRequires a failing test before any implementation, then minimal code and cleanup.
- Rust inline testsPlaces cargo tests in an inline #[cfg(test)] module at the bottom of each .rs file.
- Vitest test patternShows colocated *.test.ts files with vi.mock setup for Tauri invoke and logging.
- Inner and outer check loopsSeparates targeted test runs during coding from full pnpm check:ci before hand-off.
- Cross-module integration testsGuides tests that check for duplicate IDs or shortcuts across ActionService and ExtensionLoader.
- Common mistakes tableLists frequent TDD errors such as forgotten vi.mock hoisting and uncleared mocks.
What you need
- Rust toolchain with cargo
- pnpm
- Vitest test setup in the project
Try asking
- Add a new launcher action in src-tauri, writing the failing cargo test first
- Fix this bug in FooService, starting with a failing Vitest test
- Implement a new feature and add an integration test for its registry entries
Good to know
- Written for the Asyar project, with its paths and commands
- Covers only Rust and TypeScript or Svelte 5 code in this project
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/tdd/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to tdd
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
tdd: common questions
Does this skill apply to every change in the project?
It applies to implementing any new feature or fixing any bug in the project, in both Rust and TypeScript or Svelte 5. The source also says trivial changes and refactors still need a test first.
Where do Rust tests go?
Rust tests go in an inline #[cfg(test)] module at the bottom of the same .rs file. The skill runs them with cargo test from src-tauri.
How often should the full check run?
The source says not to run the full pnpm check:ci on every minor edit. It should run after tests pass and the implementation is complete, or when changing cross-domain bindings, IPC contracts, or migrations.
How do I install tdd?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is tdd free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is tdd safe to use?
It scores 76 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 tdd?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
