Agent skill
repl-e2e-test
Run and maintain the REPL PTY-based end-to-end test after code changes. Use when implementation is complete and you need REPL E2E verification beyond unit tests, especially for output stream or prompt behavior.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/repl-e2e-test
SKILL.md
REPL E2E Test
Overview
Verify REPL behavior via a PTY-driven E2E test that uses a local Anthropic SSE mock and checks that agent replies appear in the output stream.
Workflow
-
确认测试文件存在
tests/e2e/repl-pty.test.tstests/e2e/helpers/anthropic-mock.tstests/e2e/helpers/repl-pty-runner.mjs
-
确认依赖
node-pty在devDependencies中- 如有变更,先执行
bun install
-
运行 REPL E2E 测试
bun test tests/e2e/repl-pty.test.ts
-
失败处理
- 先阅读测试的 stderr 输出
- 按需查看
references/troubleshooting.md
维护要点
- 不要在生产代码中引入
SYNAPSE_TEST_MODE,仅允许测试代码使用环境变量。 - 若 REPL 输出提示或交互逻辑变更,需要同步更新断言文本。
- 若 CLI 入口路径变更,需要同步更新
repl-pty-runner.mjs的脚本路径。
References
references/troubleshooting.md
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?