mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-10-26 15:05:04 +00:00
fix(test-driven-development): say the skill applies to pasted code even when tests are not mentioned
This commit is contained in:
1 parent
1be8e34187
commit
7c4714658f
2 files changed
+9
-1
No files matched your search
@@ -13,6 +13,14 @@
|
||||
{
|
||||
"prompt": "What tests should cover this new parsing logic before I write it?",
|
||||
"top_k": 3
|
||||
},
|
||||
{
|
||||
"prompt": "Add unit tests for this function. There are none yet.",
|
||||
"top_k": 3
|
||||
},
|
||||
{
|
||||
"prompt": "Fix this bug: splitCents(100, 3) returns [33, 33, 33] and a cent goes missing. Here is the function.",
|
||||
"top_k": 3
|
||||
}
|
||||
],
|
||||
"negative": [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: test-driven-development
|
||||
description: Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.
|
||||
description: Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline and the request does not mention tests.
|
||||
---
|
||||
|
||||
# Test-Driven Development
|
||||
|
||||
Reference in new issue
Block a user