Borrowing it
Nothing to install: this file belongs to hamzaali81/nestjs-agent-workflow-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/hamzaali81/nestjs-agent-workflow-kit/main/.agents/skills/prisma-data-layer/SKILL.mdgit clone --depth 1 https://github.com/hamzaali81/nestjs-agent-workflow-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hamzaali81/nestjs-agent-workflow-kit/prisma-data-layer)<a href="https://agentmods.dev/skills/hamzaali81/nestjs-agent-workflow-kit/prisma-data-layer"><img src="https://agentmods.dev/badge/skills/hamzaali81/nestjs-agent-workflow-kit/prisma-data-layer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.00948 |
| Opus 5 | $0.00026 | $0.00474 |
| Sonnet 5 | $0.00011 | $0.00190 |
| Haiku 4.5 | $0.00005 | $0.00095 |
Grade A, and why
prisma-data-layer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prisma data layer
Persistence for this project uses Prisma. Rules summary lives in database.md; this skill is the deep reference.
PrismaService
The only place a Prisma client is instantiated:
@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy {
async onModuleInit() { await this.$connect(); }
async onModuleDestroy() { await this.$disconnect(); }
}
PrismaModule (global infrastructure)
@Global()
@Module({ providers: [PrismaService], exports: [PrismaService] })
export class PrismaModule {}
Never new PrismaClient() elsewhere. Inject PrismaService.
Where queries live
- Simple queries: directly in the feature service.
- Non-trivial aggregates: a repository per aggregate that wraps
PrismaService. Repositories translate domain intent into queries and return models/DTOs; they hold no business rules.
@Injectable()
export class UsersRepository {
constructor(private readonly prisma: PrismaService) {}
findById(id: string) {
return this.prisma.user.findUnique({ where: { id } });
}
create(data: Prisma.UserCreateInput) {
return this.prisma.user.create({ data });
}
}
Schema conventions (schema.prisma)
- Models PascalCase singular (
User,OrderItem); fields camelCase. - Use
@map/@@mapwhen the DB uses snake_case. - Prefer
cuid()/uuid()ids; addcreatedAt @default(now())andupdatedAt @updatedAt. - Index foreign keys and frequent filters (
@@index). Add@uniquefor natural keys.
model User {
id String @id @default(cuid())
email String @unique
name String
passwordHash String @map("password_hash")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
@@map("users")
}
Query hygiene
- Never
$queryRawUnsafe/$executeRawUnsafewith interpolated input. Use the typed API or parameterized$queryRawtagged templates. - Use
select/omitso sensitive columns never leave the data layer. - Avoid N+1: use
include/selectrelations or$transaction/findManybatching instead of awaiting queries in a loop. - Always paginate list queries (
take/skipor cursor).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 121 lines · 53 tokens per session scan A d454dbf5a271
prisma-data-layer is a skill published in the GitHub repository hamzaali81/nestjs-agent-workflow-kit (2 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 948 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
schema-exploration
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.
ha-data-stores
Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…
supabase
Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…
nornicdb-cypher-queries
Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.
dsql
Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…
volcengine-rds-postgresql
A tool for operating PostgreSQL databases hosted by Volcano Engine's managed database service. PostgreSQL is a relational database used to store structured application data.