Ns tasks

From Melvynx/saveit.now · View interactive version

Ns tasks is an AI agent skill from the GitHub repository Melvynx/saveit.now. Slice a NowStack Mobile app's .agents/plan/PRD.md + .agents/plan/ARCHITECTURE.md into well-scoped, implementable task files under .agents/plan/tasks/, each an autonomous 1–3h vertical slice (Convex schema/function → Expo screen → wiring) with success criteria, dependencies, and verification commands

How to use this skill

Skill file

ns-tasks — Mobile implementation tasks

<objective>

Turn .agents/plan/PRD.md + .agents/plan/ARCHITECTURE.md into a set of implementable task files under .agents/plan/tasks/ plus a .agents/plan/tasks/README.md overview. Final step of the pipeline: PRD → architecture → tasks.

Each task is a vertical slice an agent can finish autonomously in ~1–3h with a clear deliverable and a way to verify it. Mobile slices usually run schema + index → Convex function (built with the project builders) → Expo screen/route → wire-up → verify.

</objective>

<process>

Phase 1 — Read specs + the codebase

  1. Read .agents/plan/PRD.md and .agents/plan/ARCHITECTURE.md (require both; if missing → /ns prd / /ns architecture first).
  2. Skim the real structure so tasks cite real paths: convex/ domains + convex/functions.ts builders, mobile-app/app/ route groups, mobile-app/components/ui/, site-config.ts, and the .agents/rules/ that match (convex, mobile-app, auth-payments-storage, verification).

Phase 2 — Decompose into slices + dependency graph

Phase 3 — Verify before writing

Confirm: every PRD must-have maps to ≥1 task; every architecture table/function/screen is covered; dependencies are acyclic; each task has a concrete verification step. If gaps, analyze more — don't emit tasks with holes.

Phase 4 — Write the files

  1. Create .agents/plan/tasks/ (numbered: 01-…md, 02-…md).
  2. One file per task using the template below.
  3. Write .agents/plan/tasks/README.md: project summary, execution guidelines (read the matching .agents/rules/ first, follow convex/_generated/ai/guidelines.md), and the phased checklist with dependencies.

</process>

<task_template>

# Task [NN]: [Action-oriented title]

## Context
[1–2 sentences linking back to the PRD feature / ARCHITECTURE section this delivers.]

## Scope
[The specific, end-to-end deliverable for this slice.]

## Implementation
**Files to create/modify**
- `convex/<domain>/<file>.ts` — [function(s), built with `authQuery`/`authMutation`/`adminQuery`…]
- `convex/schema.ts` — [table + indexes, if any]
- `mobile-app/app/(<group>)/<screen>.tsx` — [screen]
- [web `web-app/app/routes/…` if the `/app` surface is touched]

**Key functionality**
- […] (server-derived identity, validators on args, `.withIndex` not `.filter`)

**Patterns / rules to follow**
- `.agents/rules/convex.md`, `.agents/rules/mobile-app.md`, `.agents/rules/auth-payments-storage.md` as applicable
- Route-group paths (e.g. `/(flow)/paywall`); IAP iOS / Stripe Android-web; entitlement user-level + idempotent grants

## Success Criteria
- [ ] [Observable outcome 1]
- [ ] [Observable outcome 2]

## Verification
- `npx convex dev --once` (Convex changes)
- `cd mobile-app && npx tsc --noEmit` (+ `npm run lint` if shared UI)
- [Simulator/manual step for nav/auth/paywall/native behavior]

## Dependencies
- Blocked by: Task [N] — [name] (or "none")
- Blocks: Task [X]

**Phase**: Foundation / Core / Monetization / Polish

</task_template>

<constraints>

</constraints>

<verification>

</verification>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.