commit
Run when user calls /commit or asks to generate a commit message. Analyzes staged changes and writes a structured commit message.
Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.
> /plugin marketplace add guanyang/open-agent-hub > /plugin install open-agent-hub@open-agent-hub
How it fires
How this command gets triggered: by you, by Claude, or both.
/test-tddContext preview
What this command does when you run it.
Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.
name: test-tdd description: Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them. type: command
Locate and execute the test suites corresponding to modified files.
1. **Identify Modified Code**: Run `git status` or `git diff --name-only` to identify source code files that have changed. 2. **Find Matching Tests**: Search for matching test files in the project. For example:
3. **Deduce Test Command**: Determine the correct command runner based on `package.json` scripts or file types (e.g., `npm test -- <file>`, `npx jest <file>`, `pytest <file>`, `go test <file>`). 4. **Execute**: Run the test command and display the execution results. 5. **Loop Strategy**:
A lightweight, zero-dependency CLI tool to manage and activate capabilities for AI coding assistants (such as Claude Code, Cursor, Trae, etc.).
Repo: guanyang/open-agent-hub
Run when user calls /commit or asks to generate a commit message. Analyzes staged changes and writes a structured commit message.