principle-register-cleanup-before-work
Apply when a test acquires a resource that must be released, such as a server, socket, timer, subscription, temporary directory, database, or browser context. Register cleanup immediately after acquisition, before assertions or any other work that can throw.
Source facts
- Repository
- alexanderop/pstack
- Last source activity
- September 21, 2026 at 11:53
- Detected SKILL.md language
- English
- Stars
- 1
- Forks
- 0
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.
Showing SKILL.md
| name | principle-register-cleanup-before-work |
|---|---|
| description | Apply when a test acquires a resource that must be released, such as a server, socket, timer, subscription, temporary directory, database, or browser context. Register cleanup immediately after acquisition, before assertions or any other work that can throw. |