Agent skill
run
Run TypeScript solution against test cases. Use when user wants to test their code.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/run-diana-uk-senior-interview-men
SKILL.md
Run the user's TypeScript solution against test cases.
File to run: $ARGUMENTS (If empty, look for solution.ts in current directory)
Process:
- Find the solution file
- Find corresponding test file (solution.test.json or tests.json in same directory)
- Execute with: npx tsx lib/leetcode_problem_runner/index.ts [test-file]
- Report results clearly
Test file format expected:
{
"functionName": "twoSum",
"cases": [
{ "input": [[2,7,11,15], 9], "expected": [0,1] },
{ "input": [[3,2,4], 6], "expected": [1,2] }
]
}
Output format:
Running: [functionName]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Test 1: ✓ PASS (0.12ms)
Input: [2,7,11,15], 9
Expected: [0,1]
Got: [0,1]
Test 2: ✗ FAIL (0.08ms)
Input: [3,2,4], 6
Expected: [1,2]
Got: [0,2]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Results: 1/2 passed
Total time: 0.20ms
If tests fail, analyze the failure and offer to help debug. If no test file exists, offer to create one based on the problem.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?