원클릭으로
add-test
Add tests for a feature based on specs/issues. Trigger khi user noi "add test
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add tests for a feature based on specs/issues. Trigger khi user noi "add test
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create a pull request for current branch. Trigger khi user noi "create pr", "tao PR", "open pull request", "pr cho issue
Implement a issue. When user ask: "implement issue #1, implement feature #1,..."
Send message to slack channel. Use when user asks "send slack message, "send message to slack",...
Sync spec file to github issue. When user type: "Sync issue #1", "sync spec #1",...
Translate GitHub issue content to Vietnamese. When user type: "translate issue #1", "dịch issue #2", "comtor #3",...
Create a git branch feature, find issue number in github. When user type: feature #issue-number,...
| name | add-test |
| description | Add tests for a feature based on specs/issues. Trigger khi user noi "add test |
| allowed-tools | Bash(git *), Bash(find cat grep), Read, Write, Edit, Glob, Grep |
| priority | medium |
Generate tests for a feature dua tren spec issue trong specs/issues/. Skill nay se:
Xac dinh issue can test
specs/issues/{number}-*.mdgit branch --show-current -> extract issue number tu branch name (pattern: feature/hung-#{number}-{slug})Phan tich spec de xac dinh test cases
Xac dinh test framework va structure
minitest (stdlib) hoac rspec (neu da co trong project)jest hoac vitestpytesttest/ hoac spec/ folder (theo convention cua project)test_{feature_name}.rb, {feature_name}_test.rb, hoac {feature_name}_spec.rbViet tests
test "rejects email without @", it "masks password input"Verify va output
Chay tests neu co the: ruby -Itest test_file.rb hoac tuong ung
Neu test fail -> fix test (khong fix source code)
Output summary:
| # | Test Name | Category | Acceptance Criteria |
|---|---|---|---|
| 1 | valid login | happy path | AC-1, AC-5 |
| 2 | invalid email | validation | AC-2 |
| ... |
Ket thuc