agentleFS
codedroid-teamcodedroid-team/codedroid-mcp/skills/create-tests/SKILL.md

create-tests

Skill1 starsChanged 21 days agoMITView on GitHub

Write test cases for an Android app's critical user journeys (CUJs) into the CUJ markdown files in the app's repo (cujs/) - steps as you would ask a person and the expected result, from the app's code, PRDs and the real app on the phone. Use when asked to write, generate or plan test cases or a test plan for an app or one of its journeys.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. buildpad-ai/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the file, its tests and its Source files, so tests name screens and buttons as the app does and don't repeat one already there.

    line 16
  2. Very specific:

    If the phone is connected and the app installed, walk the journey once: open_app, then get_screen and tap (the codedroid-phone skill covers …

    line 18
  3. Distinctive:

    Write passwords, card numbers or other secrets into a test.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing test cases for a CUJ

Tests live in the CUJ's file in the app's repo, under its ## Tests heading (the create-cujs skill writes those files). test-on-device runs them on the phone: CodeDroid follows the steps, then checks each expected line on the screen. Nothing is saved on the phone.

1. Know the journey

  1. Find the CUJ files: cujs/ in the repo, or where the user says. No file for the journey the user means? Write it first, as the create-cujs skill does.
  2. Read the file, its tests and its Source files, so tests name screens and buttons as the app does and don't repeat one already there.
  3. If the phone is connected and the app installed, walk the journey once: open_app, then get_screen and tap (the codedroid-phone skill covers driving). Back out of anything that sends, buys, posts or deletes.

2. Pick the tests

The happy path first, then the edges that matter for this journey: empty or long input, an empty or long list, signed out, back or rotation in the middle, a PRD rule (a limit, an error message). One goal per test. Leave out offline: CodeDroid drives the phone over the internet, so it cannot run a test with the phone offline.

3. Write them

Append each under ## Tests:

### Follow a podcast from search

Steps:
1. Tap Search and type "Daily".
2. Open The Daily from the results.
3. Tap Follow.

Expected:
- The Follow button reads Following.
- The Daily is listed in the Following tab.
  • Title: what it checks, a few words.
  • Steps: what to do, as you would ask a person, from the CUJ's Starts state. Name the things to tap as the app shows them. No coordinates, no node numbers.
  • Expected: what must be true after, one outcome per line, each something visible on the screen or in the app. Not how it got there. It must hold on any phone: no exact coordinates, distances, times or other values that change with the screen or the clock; say what must be there instead ("The episode shows how long it runs").

A test that would send, buy, post or delete something for real: keep it reversible (a draft, a cart left unpaid) and say so in its steps, or ask the user before writing it.

4. Report

List the tests added, by CUJ file. Offer to run them with test-on-device.

Never

  • Force-stop, clear or uninstall com.codedroid.agent: it switches CodeDroid off.
  • Write passwords, card numbers or other secrets into a test; say which test account to use instead.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.