agent-browser
Browser automation CLI for AI agents. Use when needs to interact with websites, including navigating pages, filling forms,…
Use this skill for developing software in TDD (Test-Driven Design).
$ npx -y skills add archibate/dotfiles-opencode --skill tdd-workflow --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/tdd-workflowContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill for developing software in TDD (Test-Driven Design).
name: tdd-workflow
description: |
Use this skill for developing software in TDD (Test-Driven Design).A strict 7-step TDD cycle that produces high-quality, well-tested code. Each step must be **verified and confirmed** before proceeding. Status is only updated after real verification
Core principle: **RED (failing test) -> GREEN (minimal implementation) -> REFACTOR**.
---
At the start of each session, before doing anything else:
---
an "Assumptions" section rather than asking for clarification.
Write `tdd-summary/step-1.md`:
# Step 1 - Understand Intent ## Functional Requirements ### FR-1: <title> <description> ### FR-2: <title> <description> ## Assumptions - <any ambiguous point and the assumption made>
---
For each functional requirement, create a scenario document at `docs/scenario/<name>.md`:
# Scenario: <Title> - Given: <precondition> - When: <action> - Then: <expected outcome> ## Test Steps - Case 1 (happy path): <brief description> - Case 2 (edge case): <brief description> - Case N: ... ## Status - [x] Write scenario document - [ ] Write solid test according to document - [ ] Run test and watch it failing - [ ] Implement to make test pass - [ ] Run test and confirm it passed - [ ] Refactor implementation without breaking test - [ ] Run test and confirm still passing after refactor **IMPORTANT**: Only update above status when a step is confirmed complete. Do not hallucinate.
**Invariant**: Count of FR = count of scenario documents. Verify before continuing.
Write `tdd-summary/step-2.md`:
# Step 2 - Write Scenario Docs ## Scenario Documents Created - FR-1: <title> - `docs/scenario/<name>.md` - ...
---
For each scenario document:
After writing, **run each test** and verify it fails:
**Invariant**: Count of scenario documents = count of test files. Verify before continuing.
Write `tdd-summary/step-3.md`:
# Step 3 - Write Failing Test ## Failing Tests Created - FR-1: <title> - `docs/scenario/<name>.md` - `tests/scenario/test_<name>.py` - ...
---
For each failing test:
Write `tdd-summary/step-4.md`:
# Step 4 - Implement to Make Tests Pass ## Implementations Completed - FR-1: <title> - `docs/scenario/<name>.md` - Implementation in `<module>` - ... All tests now pass. Scenario documents updated.
---
For each scenario where tests now pass:
Write `tdd-summary/step-5.md`:
# Step 5 - Refactor for Maintainability ## Refactorings Completed - FR-1: <title> - `docs/scenario/<name>.md` - <what was improved> - ... All tests still pass after refactoring. Scenario documents updated.
---
Run the **complete test suite** (all tests, not just those added in this session):
**NEVER modify existing tests that are unrelated to the current functional requirements.**
Write `tdd-summary/step-6.md`:
# Step 6 - Regression Test ## Regression Test Results - Complete test suite executed: `<command>` - All tests pass: Yes / No - If regression found: <brief description of fix applied>
---
Verify that **every scenario document has all status checkboxes checked**.
Review:
Write `tdd-summary/step-7.md`:
# Step 7 - Final Review
## Summary
- Functional requirements addressed:
- FR-1: ...
- Scenario documents: `docs/scenario/...`
- Test files: `te小彭老师现在改用claude code的开源替代opencode,满足了开源人士旺盛的定制需求x(其实opencode中也可以继续用claude的闭源模型,只是换成了开源的opencode客户端) 安装方法:SETUP.md
Browser automation CLI for AI agents. Use when needs to interact with websites, including navigating pages, filling forms,…
Review common AI slops of defensive programming patterns, avoid silent errors. TRIGGER when reviewing code for defensive…
Guide for writing ast-grep rules to perform structural code search and analysis. This skill should be used when users need to…
Best practices for AI-driven English-to-Chinese translation. This skill should be used when the user asks to "translate to…
This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list…
Interact with local Chrome browser session (only on explicit user approval after being asked to inspect, debug, or interact with…