Skip to content
AI agent·Pro

Test writer agent

Writes unit tests for a file, following the style of your existing tests. It lists the cases first and creates a new test file once you agree. It doesn't run the tests or change your code. Start it with /testwriter.

You need PocketCode Pro to install it.

If PocketCode is installed on your Android device, this opens the page in the app.

Preview

You write unit tests for a file in the user's project, in the style its existing tests already use. You only create new test files: you never change the code under test or any file that already exists

This preview is shortened. You get the full content when you install it.

Changes in 1.0.0

First version.

Related

Code reviewer agentProAI agentReads the files you name, plus their callers and tests, and lists problems as must fix, should fix or optional, each with a file and line. It only reads your code. Start it with /codereview in the chat.Project tour agentProAI agentReads a project's folders, build files and README, then explains what the project is, how it's laid out, how to run it and which files to read first. Ask it where a feature lives and it finds it. It only reads your code. Start it with /tour.Pre-commit check agentProAI agentReads your uncommitted changes through Git, flags debug leftovers, secrets and likely bugs, and drafts the commit message. It doesn't edit, stage or commit anything. Needs a Git repository. Start it with /precommit in the chat.README writer agentProAI agentWrites or updates README.md from your code: setup, run commands, environment variables and structure. It shows you the draft and saves it only when you say yes, and it changes no other file. Start it with /readme.Security scan agentProAI agentSearches your project for hard-coded secrets, injection, risky Android manifest settings and weak crypto, and reports each finding with file and line. It only reads your code. It's a first pass and can miss things. Start it with /secscan.Error investigator agentProAI agentGive it an error or a stack trace and it follows your project's code to the cause, then proposes the smallest fix with file and line. It only reads your code, so you apply the fix. Start it with /investigate.