tdd-development
Skill by ruby-docx
Guides an assistant through a test-driven workflow for every code change in the ruby-docx/docx repository. It covers writing a failing spec, implementing the fix, then opening, checking and merging a pull request.
Install tdd-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ruby-docx/docx /tmp/docx && mkdir -p ~/.claude/skills && cp -r /tmp/docx/.claude/skills/tdd-development ~/.claude/skills/tdd-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ruby-docx/docx /tmp/docx && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/docx/.claude/skills/tdd-development ~/.gemini/antigravity-cli/skills/tdd-developmentAntigravity 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 out a test-driven workflow for every code change in the ruby-docx/docx repository, including features, bug fixes and refactors that change behavior. It tells the assistant to sync master, write a failing spec first, confirm it fails, implement the smallest change, run the full suite, then open a pull request, check CI, merge and clean up the branch.
It also covers where specs live, how to use fixture paths and temp files, and how to craft .docx fixtures with rubyzip and Nokogiri. It notes local Ruby 4.0.x quirks and tells contributors to run rspec directly. The skill is aimed at contributors to the docx gem who use Ruby and the gh command line tool.
Written from the project's SKILL.md and checked against it.
What it can do
- Sync masterSwitches to master and fast-forwards it from origin before starting a change.
- Write a failing testAdds a spec in the spec file of the class that owns the behavior, then confirms it fails.
- Implement to greenMakes the minimal change to pass the new test and runs the full suite for regressions.
- Open a pull requestCommits with a Co-Authored-By trailer, pushes the branch and opens a PR with a descriptive body.
- Check CI and mergeChecks PR status with gh and merges with a merge commit to match repository history.
- Clean up branchesUpdates master and deletes the topic branch locally and on origin after merging.
- Spec placement guidanceExplains where unit, document and integration specs belong in the repository.
- Craft .docx fixturesBuilds test fixtures programmatically by rewriting zip entries with rubyzip and Nokogiri.
What you need
- Ruby (local version 4.0.x is mentioned)
- Bundler with rspec
- git
- GitHub CLI (gh)
- Access to the ruby-docx/docx repository
Try asking
- Fix the bug in paragraph text extraction using the TDD workflow
- Add a new feature to docx and follow the test-first loop
- Open a PR for my fix in ruby-docx/docx and check CI
Good to know
- bundle exec rake spec does not run on local Ruby 4.0.x; use bundle exec rspec spec.
- Test output is noisy with rubygems warnings and needs filtering.
- Fixtures must be written to a temp directory, never into spec/fixtures.
- Raw exceptions from rubyzip or Nokogiri on corrupt input are out of scope.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/tdd-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to tdd-development
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-development: common questions
Does this workflow apply only to bug fixes?
No. The skill says it applies to every behavior change, including new features, bug fixes and refactors that change behavior.
How are tests run in this repo?
Run bundle exec rspec spec directly, since bundle exec rake spec is broken on local Ruby 4.0.x. A single example can be run with the -e option.
How are pull requests merged?
The skill uses gh pr merge with the --merge flag, which creates a merge commit to match the repository history.
How do I install tdd-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is tdd-development free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is tdd-development safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality B. 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-development?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
