AgentStack
SKILL verified MIT Self-run

Write Tests

skill-apgamerinfo-boyser-ai-write-tests · by apgamerinfo

เขียนและรันเทสต์ ใช้เมื่อผู้ใช้ขอเขียน test เพิ่ม coverage ทำ TDD หรือทำให้โค้ดมีเทสต์

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-apgamerinfo-boyser-ai-write-tests

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Write Tests? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Skill: write-tests

  1. หา framework ที่โปรเจกต์ใช้ก่อน (glob/grep): pytest, unittest, jest, vitest, go test ฯลฯ — ใช้ตัวเดิม อย่าเอาตัวใหม่มาปน
  2. ดูโค้ดที่จะเทสต์ เข้าใจ input/output และเคสที่เป็นไปได้
  3. เขียนเทสต์ให้ครอบคลุม:
  • happy path (เคสปกติ)
  • edge cases (ว่าง, 0, ลบ, ใหญ่มาก, ตัวอักษรพิเศษ)
  • error cases (input ผิด → ควร raise/return error)
  1. TDD ถ้าแก้บั๊ก: เขียนเทสต์ที่ reproduce บั๊ก (ให้ fail ก่อน) แล้วค่อยแก้โค้ดให้ผ่าน
  2. รันจริงด้วย bash แล้วดูผล แก้จนเขียว
  3. กฎ: เทสต์ต้อง isolated (ไม่พึ่งกัน), เร็ว, assert พฤติกรรม ไม่ใช่ implementation detail; ตั้งชื่อเทสต์ให้บอกว่าเทสต์อะไร

จบด้วยการรันเทสต์ทั้งชุดให้เห็นว่าผ่านหมด

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.