بنقرة واحدة
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