aureuserp-test-case-builder
Build and refactor Pest feature tests for AureusERP plugin APIs with reusable helpers, policy-permission auth setup, factory-first payloads, stable JSON assertions, and plugin-install bootstrap strategy. Use when creating or updating API tests under `plugins/*/*/tests`. This skill is structured to support a future Filament test-case track without changing current API behavior.
How do I install this agent skill?
npx skills add https://github.com/aureuserp/agent-skills --skill aureuserp-test-case-builderIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill facilitates the creation and maintenance of Pest-based API tests for AureusERP plugins. It adheres to standard testing security practices and provides a structured workflow. A minor surface for indirect prompt injection is present, which is typical for skills that read and interpret local source code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1/2 files flagged
What does this agent skill do?
AureusERP Test Case Builder
Use this skill to build plugin API tests with Pest using test-only fixes and reusable helpers.
Scope Tracks
- API test-case track (active now)
- Follow
references/api.mdfor end-to-end workflow, helper boundaries, assertions, and guardrails.
- Filament test-case track (reserved for future)
- Do not invent Filament-specific testing rules in this skill yet.
- Keep API conventions unchanged.
- When Filament guidance is added later, it should be added as separate references (for example
references/filament-*.md) and selected explicitly by task type.
Core Rules
- Use Pest feature tests for API endpoints (
getJson,postJson,patchJson,deleteJson). - Prefer factories for setup and payload creation.
- Keep helper responsibility split strict:
SecurityHelperfor auth/permissions/guards.TestBootstrapHelperfor non-security bootstrap and plugin installation.
- Do not use
RefreshDatabaseorLazilyRefreshDatabasein test files; use globalDatabaseTransactionswiring. - Prefer test/helper fixes before app code edits.
- Do not use skip-as-solution.
Quick Routing
- API controller endpoint tests (
index/store/show/update/destroy, auth, validation, restore/force-delete): usereferences/api.md. - API refactor/bugfix with helper cleanup: use
references/api.md. - Template generation for a new plugin API test file: use
references/api.md.
Output Expectations
- Keep tests plugin-scoped and reusable.
- Keep assertions deterministic and aligned with JSON resources.
- Keep payloads factory-first with targeted overrides only.
- Keep install/bootstrap non-interactive and environment-safe.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/aureuserp/agent-skills/aureuserp-test-case-builder">View aureuserp-test-case-builder on skillZs</a>