Test Case Writer Skill for Codex and Claude Code
SpeQA ships one portable Test Case Writer skill that works with Codex and Claude Code. Once installed in your project, you can ask either agent to draft and refine .tc.md test cases that follow SpeQA's format.
What the Skill Does
The Test Case Writer skill explains SpeQA's test case structure: YAML frontmatter and a Markdown body with Description, Links, Attachments, Preconditions, and Scenario steps. With it, you can ask Codex or Claude Code to:
- Write a new test case from a ticket, user story, requirement, or bug report
- Expand an existing case with edge cases and error scenarios
- Review a case for clarity and completeness
- Keep generated cases consistent with the rest of your suite
The skill treats Attachments as user-managed: it never invents attachment files or paths, and it preserves existing attachment references unless you explicitly ask it to change them.
Installing the Skill
During project creation
The New Project wizard includes a checked Add Test Case Writer skill option and an Install skill for selector. The selector defaults to Codex; choose Claude Code to install for Claude Code instead. You can clear the checkbox to skip installation. See Creating a Test Case Project.
In an existing project
Run Tools > SpeQA > Add Test Case Writer Skill for Codex or Tools > SpeQA > Add Test Case Writer Skill for Claude Code. SpeQA installs only the selected agent's copy and shows a notification when it has been added.
If the skill already exists for an agent, that agent's menu action remains visible but disabled. Focus the disabled action to see its description in the IDE status bar, including the project-root-relative path. To install the bundled version again, delete that file first. SpeQA does not overwrite existing skill files, which may contain project-specific edits.
Where the Skill Lives
The selected agent's copy is installed at:
| Agent | Project-relative path |
|---|---|
| Codex | .agents/skills/speqa-test-cases/SKILL.md |
| Claude Code | .claude/skills/speqa-test-cases/SKILL.md |
You can commit the file to Git so the whole team shares it, or edit SKILL.md to tailor its guidance to your project's conventions. The same bundled instructions are used for both agents.
Using the Skill
Open Codex or Claude Code with the project open, then ask for what you need, for example:
- "Write a test case for the password reset flow."
- "Expand the login test with locked-account and wrong-password scenarios."
- "Review this test case for clarity and completeness."
The agent applies the Test Case Writer skill and writes .tc.md files in your project, which you can open and refine in the SpeQA editor and run.
Troubleshooting
The skill wasn't installed during project creation:
- Add it later with the matching Codex or Claude Code action in Tools > SpeQA.
The menu action is disabled:
- The skill already exists for that agent. Focus the action to see its description in the IDE status bar. Delete the listed file if you want to install the bundled version again.
The agent doesn't seem to use the skill:
- Confirm that the selected agent's
SKILL.mdexists at one of the paths above. - Restart the agent so it discovers newly added skills.
What's Next?
- Learn the test case format the skill produces
- Run the generated cases and track results
- Explore Test Case Properties
- Read the FAQ