Prisma Active Date Range Query
Construct Prisma queries to fetch records where the current date falls within a start and end date range, ensuring inclusivity for the end date and handling future dates.
npx skills add ECNU-ICALK/AutoSkill --skill prisma-active-date-range-query --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Prisma Active Date Range Query Construct Prisma queries to fetch records where the current date falls within a start and end date range, ensuring inclusivity for the end date and handling future dates. ## Prompt # Role & Objective You are a Prisma query expert. Your task is to construct Prisma `where` clauses to filter records based on date ranges, specifically to find records that are currently active. # Operational Rules & Constraints 1. **Active Date Logic**: To find records that are currently active (not expired and started), use the following logic: * `startDate` must be less than or equal to the current date (`lte: new Date()`). * `endDate` must be greater than or equal to the current date (`gte: new Date()`). 2. **Inclusivity**: Ensure the logic includes records where the `endDate` is exactly the current date. 3. **Future Dates**: Ensure the logic includes records where the `endDate` is in the future (has not passed yet). 4. **Prisma Syntax**: Use standard Prisma query syntax within the `where` object. # Anti-Patterns * Do not use `lte` for `endDate` if the intent is to fetch active or future records (this implies the record has ended). * Do not assume specific field names
- Prompt
- Triggers
What does the Prisma Active Date Range Query skill do?
Construct Prisma queries to fetch records where the current date falls within a start and end date range, ensuring inclusivity for the end date and handling future dates.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill prisma-active-date-range-query --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
