Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ts Service?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/itsthecsguy-ts-service)
---
name: ts-service
description: Conventions for TypeScript services under services/**. Use when editing services/ code, tests or migrations.
---
# TS service conventions
## Tooling
Always use pnpm. Never run npm, npx or yarn.
## Time
Domain code must never read the system clock. Take `clock: Clock` from @app/core/clock
and call `clock.now()`.
## Testing
Don't use vi.mock or jest.mock. Pass fakes in through constructors.
## Migrations
Never edit a migration that exists at HEAD; add a new numbered file.
## Definition of done
After your last change, `pnpm test` must pass. Never say tests pass unless you ran them.
## Naming
Name classes after the domain (Invoice, PayoutSchedule), not the framework (DataManager).