diff options
| author | Jesse Vincent <jesse@fsck.com> | 2025-12-11 21:10:00 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2025-12-17 16:44:52 -0800 |
| commit | ae0ef56b442c106e4faec603bf65ba89c6c2cf39 (patch) | |
| tree | 2ffaa4f8b2f3fd0226933e9c909ed24fd8ea28e5 /tests/skill-triggering/prompts | |
| parent | 030a222af19c1f3a93c6eb876a7422d8e4fc0162 (diff) | |
Add skill triggering test framework
Creates tests/skill-triggering/ to validate skills trigger correctly from
naive prompts (without explicitly naming the skill). Tests 6 skills:
- systematic-debugging
- test-driven-development
- writing-plans
- dispatching-parallel-agents
- executing-plans
- requesting-code-review
All 6 tests pass - skills trigger correctly based on their descriptions.
Diffstat (limited to 'tests/skill-triggering/prompts')
6 files changed, 40 insertions, 0 deletions
diff --git a/tests/skill-triggering/prompts/dispatching-parallel-agents.txt b/tests/skill-triggering/prompts/dispatching-parallel-agents.txt new file mode 100644 index 0000000..fb5423f --- /dev/null +++ b/tests/skill-triggering/prompts/dispatching-parallel-agents.txt @@ -0,0 +1,8 @@ +I have 4 independent test failures happening in different modules: + +1. tests/auth/login.test.ts - "should redirect after login" is failing +2. tests/api/users.test.ts - "should return user list" returns 500 +3. tests/components/Button.test.tsx - snapshot mismatch +4. tests/utils/date.test.ts - timezone handling broken + +These are unrelated issues in different parts of the codebase. Can you investigate all of them?
\ No newline at end of file diff --git a/tests/skill-triggering/prompts/executing-plans.txt b/tests/skill-triggering/prompts/executing-plans.txt new file mode 100644 index 0000000..1163636 --- /dev/null +++ b/tests/skill-triggering/prompts/executing-plans.txt @@ -0,0 +1 @@ +I have a plan document at docs/plans/2024-01-15-auth-system.md that needs to be executed. Please implement it.
\ No newline at end of file diff --git a/tests/skill-triggering/prompts/requesting-code-review.txt b/tests/skill-triggering/prompts/requesting-code-review.txt new file mode 100644 index 0000000..f1be267 --- /dev/null +++ b/tests/skill-triggering/prompts/requesting-code-review.txt @@ -0,0 +1,3 @@ +I just finished implementing the user authentication feature. All the code is committed. Can you review the changes before I merge to main? + +The commits are between abc123 and def456.
\ No newline at end of file diff --git a/tests/skill-triggering/prompts/systematic-debugging.txt b/tests/skill-triggering/prompts/systematic-debugging.txt new file mode 100644 index 0000000..d3806b9 --- /dev/null +++ b/tests/skill-triggering/prompts/systematic-debugging.txt @@ -0,0 +1,11 @@ +The tests are failing with this error: + +``` +FAIL src/utils/parser.test.ts + ● Parser › should handle nested objects + TypeError: Cannot read property 'value' of undefined + at parse (src/utils/parser.ts:42:18) + at Object.<anonymous> (src/utils/parser.test.ts:28:20) +``` + +Can you figure out what's going wrong and fix it?
\ No newline at end of file diff --git a/tests/skill-triggering/prompts/test-driven-development.txt b/tests/skill-triggering/prompts/test-driven-development.txt new file mode 100644 index 0000000..f386eea --- /dev/null +++ b/tests/skill-triggering/prompts/test-driven-development.txt @@ -0,0 +1,7 @@ +I need to add a new feature to validate email addresses. It should: +- Check that there's an @ symbol +- Check that there's at least one character before the @ +- Check that there's a dot in the domain part +- Return true/false + +Can you implement this?
\ No newline at end of file diff --git a/tests/skill-triggering/prompts/writing-plans.txt b/tests/skill-triggering/prompts/writing-plans.txt new file mode 100644 index 0000000..7480313 --- /dev/null +++ b/tests/skill-triggering/prompts/writing-plans.txt @@ -0,0 +1,10 @@ +Here's the spec for our new authentication system: + +Requirements: +- Users can register with email/password +- Users can log in and receive a JWT token +- Protected routes require valid JWT +- Tokens expire after 24 hours +- Support password reset via email + +We need to implement this. There are multiple steps involved - user model, auth routes, middleware, email service integration.
\ No newline at end of file |
