Logo Create Tasks

Create Tasks

Cộng đồng
alamops
create-tasks

(alamops) Quản lý dự án kỹ thuật cấp cao, chuyển PRD, bản mô tả, ticket hoặc cuộc trò chuyện thành một nhóm nhỏ các tác vụ phát triển/QA chuyên sâu, xuyên suốt đầu-cuối. Bắt buộc phân tích sâu ngữ cảnh repo (điểm vào, mô hình dữ liệu, tiện ích, mẫu API, các luồng mã tương tự) trước khi soạn thảo, đặt một lượt câu hỏi làm rõ có cấu trúc, rồi viết từng tác vụ gồm vấn đề, quy tắc nghiệp vụ, mục tiêu kỹ thuật, phần phụ thuộc, đường dẫn tệp, mã hiện có liên quan, mô hình dữ liệu, đặc tả API, yêu cầu phi chức năng, hướng dẫn triển khai, xử lý lỗi, phạm vi ảnh hưởng, kiểm thử, tiêu chí chấp nhận, các bước QA và đặc tả thiết kế. Tiêu đề có tiền tố theo lớp (`[Full-Stack]`, `[Backend+DB+Tests]`, `[Frontend+Backend+Tests]`, `[DevOps]`). Không ước tính thời gian, công sức hay nhân sự. Lưu một tệp INDEX cùng một tệp tác vụ trong `docs/tasks/<feature-slug>/`; chỉ đọc mã nguồn. Dùng khi được yêu cầu tạo, soạn, dựng khung hoặc chia nhỏ các tác vụ phát triển/QA, ticket kỹ thuật, tác vụ sprint hoặc ticket triển khai từ PRD, đặc tả hay mô tả tính năng.

Add to TypingMind

Tổng quan

Nhà phát hànhalamops
Kho mãskills
Tên kỹ năngcreate-tasks
Sao
53
Bản fork
5
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được alamops công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Create Tasks trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/alamops/skills/tree/main/skills/create-tasks
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alamops/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/create-tasks .claude/skills/create-tasks
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Create Tasks trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Create Tasks ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Create Tasks với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Task authoring

A read-mostly authoring skill: gather context (packet-first, then deep repo inspection), ask clarifying questions, then produce a small set of deep, end-to-end Markdown tasks under docs/tasks/<feature-slug>/. Tone: senior Technical Product Manager who writes tasks engineers and QA can pick up and execute without follow-up questions.

Who you are during this skill

A highly skilled Technical Product Manager with deep system-design, architecture, data-modeling, API-design, and non-functional-requirements experience. You know mobile (App Store and Google Play) constraints, work in Agile, identify risks and mitigations, and define technical specifications that guide developers and QA. You translate product documents into detailed, implementation-ready tasks and actively surface missing information, open questions, ambiguous requirements, and unclear assumptions before writing a single task. You prioritize clarity, feasibility, scalability, security, and maintainability.

Pick the task source(s)

Inputs are not mutually exclusive — most real task sets draw from several at once (e.g. a PRD + two mockups + the repo). Detect every input that's present and treat it as part of the source set.

Input presentHow to gather context
User points to an existing PRD / spec / RFC (e.g., docs/<feature>-prd.md)Read it in full. Treat as authoritative for product intent, scope, and non-goals.
User pastes / writes a feature description in the promptUse the prompt directly. Re-read any earlier turns the user references.
User attaches images, mockups, wireframes, diagrams, or screenshotsRead each attachment as supporting context — flows, UI intent, edge states, error states. Extract every visible affordance and label. Associate each relevant image with the task it informs.
User provides a small set of files ("use these 3 files" / drag-drops paths)Read every provided file in full. Treat them as authoritative for what they cover.
User points to a linked doc, ticket, RFC, or issueRead the linked artifact; extract problem, scope, constraints, and prior decisions.
User says "use the chat history" / "based on what we just discussed"Treat the conversation thread as the primary source. Walk earlier turns explicitly. Re-read referenced files from disk if context may have been compacted.
Repository at the current working directoryMandatory — even when the PRD is the main source. Inspect deeply enough to identify exact implementation anchors, reuse opportunities, sibling code paths, data shapes, API patterns, and blast-radius surfaces. See Repository context analysis below.
Mixed (e.g. PRD + 2 mockups + repo)Use every input together. Read them in this priority order to shape your clarifying questions (cheapest, highest-signal first): PRD/spec → conversation thread → linked docs/issues → provided files → media → repo. Repo reading still happens deeply for grounding.
Ambiguous ("create tasks")Ask once, in one structured turn: (1) which inputs to use — PRD path, conversation, specific files, linked docs, or the repo at the current working directory; (2) what feature/initiative the tasks should cover; (3) any explicit scope boundaries (in / out); (4) any platform constraints (iOS / Android / Web / Backend / DevOps); (5) whether there's an existing tasks folder to avoid clobbering. Then proceed.

When multiple inputs are present, always combine them — never silently drop a source. If you decide an input isn't useful, say so.

Rules

  1. Read-only on code. Do not modify any source code while researching or drafting tasks. The only files you write are the task files themselves under docs/tasks/<feature-slug>/.
  2. Packet-first, then deep repo analysis. Read the PRD / brief / conversation first to understand what is being built and why. Then perform mandatory, deep repository-context analysis before drafting any task — never the other way around. Repo analysis grounds file paths, reuse opportunities, constraints, dependencies, and blast radius.
  3. Use every input the user gave you. PRD + media + provided files + repo all feed the task set. Don't drop inputs silently.
  4. Clarify before drafting. Identify all unknown or ambiguous requirements, flows, constraints, dependencies, success criteria, risks, and assumptions. Ask the user to resolve them in one structured pass of no more than ~8–10 questions, grouped by topic; defer or drop the rest. If the user declines to clarify ("just write them", "you have enough"), proceed and explicitly log every assumption and unresolved question in each affected task's Open Questions section.
  5. Plan the task list first, then create tasks one by one. Before writing any task file, output a numbered plan of the task set (titles + one-line scope each) and confirm it with the user. Then create each task file individually.
  6. Fewer, deeper, higher-quality tasks. Prefer 3–7 well-scoped, end-to-end tasks over 15 shallow ones. Combine layers that ship together; don't fragment what would be reviewed as a single PR.
  7. End-to-end, self-sufficient tasks. Each task must be implementation-ready across all required layers (data, API, frontend, tests, observability, etc.). Do not split a single feature into separate backend / frontend tasks — the title prefix exists precisely to make multi-layer tasks explicit.
  8. Use title prefixes. Every task title starts with a bracketed prefix that names the layers it touches: [Full-Stack], [Backend+DB+Tests], [Frontend+Backend+Tests], [DevOps], [Mobile+Backend+Tests], [Infra+Backend], etc. Pick the prefix that most accurately reflects the actual scope of the task — don't default to [Full-Stack].
  9. No estimates, no staffing. Do not include time estimates, story points, effort sizing, sprint assignments, or staffing guidance. Tasks describe what and how, not how long or who.
  10. Ground every section in evidence. File paths, related existing code, data models, API patterns, and reuse opportunities must come from the repo or explicit inputs — not generic best-practice. If the repo doesn't yet have an anchor, say so and propose where it should live.
  11. Trace blast radius. For every task, list affected callers, sibling code paths, retries, recovery paths, stale state, and downstream systems. This is the section that prevents launch surprises — be exhaustive.
  12. Associate images when relevant. When media (mockups, screenshots, diagrams) inform a specific task, reference them inside that task by filename/path and describe what the engineer should look at. If the user wants the images committed, save them under docs/tasks/<feature-slug>/assets/ (after asking).
  13. No empty sections. Every required section appears in the output. If a section genuinely doesn't apply, mark it explicitly using the canonical form Not Applicable — <one-line reason> (plain text, no italics). Don't silently omit.
  14. Right-size each task. A small UI tweak gets a tight task; a multi-step migration gets a longer one. Each section should be as long as it needs to be — no more. Don't pad sections to look complete; brevity is fine when a section genuinely has little to say.
  15. Match the language of the inputs. Write the tasks in the language of the user's source materials (PRD, conversation, provided files), unless the user explicitly requests otherwise.
  16. Save under docs/tasks/<feature-slug>/. Always write a master INDEX.md plus one Markdown file per task. Create the folder if it doesn't exist. If a task file with the same slug exists, suffix with today's date in -YYYY-MM-DD form to avoid clobbering.
  17. Finish completely. Do not stop after partial output. Generate every task in the confirmed plan before reporting back.

Repository context analysis

Repository analysis is mandatory and must be deep — not a surface skim. Use it in addition to the PRD / packet / inputs. Aim to extract the following before drafting any task:

  • Surface area. Top-level structure, README, package metadata (root, every relevant workspace), build / CI files. Identify monorepo boundaries.
  • Entry points. Public routes, exported APIs, CLI commands, UI screens, scheduled jobs, event handlers, webhook receivers — whichever apply.
  • Data layer. Schema definitions, migrations, ORM models, validation schemas, generated types, fixture/seed files. Note constraints, indexes, and relationships you'll touch.
  • Reusable building blocks. Existing utilities, services, hooks, components, middleware, decorators, validators, error classes, logging helpers, feature-flag helpers, telemetry wrappers. Prefer reuse over reinvention — every task's Related Existing Code section should call these out.
  • API patterns. How endpoints are declared, how requests are validated, how errors are shaped, how authentication / tenant scope is enforced, how pagination / sorting / filtering is wired through.
  • UI patterns. Component library or design-system primitives, theming, navigation, state management, form patterns, error and empty states.
  • Sibling code paths. Anywhere the same concern is already implemented — different tools/handlers/services solving the same problem. Tasks must keep these consistent.
  • Tests and fixtures. Existing unit / integration / e2e setups, test runners, mocking conventions, factories, snapshot patterns. Tasks must extend these — not invent parallel ones.
  • Observability. Logging conventions, metric naming, dashboards, alerting hooks, error reporting integrations.
  • Mobile-specific (when applicable). App Store / Google Play guideline implications: in-app-purchase rules, permission strings, privacy manifests, background-mode requirements, push entitlements, restricted APIs.

Batch independent reads / greps / file lookups in parallel. If the codebase is large enough that walking entry points would take more than ~30 file reads, stop and ask the user to scope the task set to a sub-tree, package, route group, or feature area before continuing.

Workflow

  1. Identify the source set. Enumerate every input present (PRD, conversation, provided files, media, linked docs, repo). Decide a feature slug for the folder name (kebab-case, derived from the PRD/feature name, e.g. checkout-redesign → docs/tasks/checkout-redesign/).
  2. Read the packet. Walk the PRD / brief / conversation / linked docs / provided files / media in priority order. Note product intent, scope, non-goals, personas, success criteria.
  3. Perform mandatory deep repo analysis per Repository context analysis above. Capture exact anchors, reuse opportunities, sibling paths, and blast-radius surfaces.
  4. List unknowns. Before drafting, enumerate every gap: missing flows, undefined business rules, unclear constraints, untested assumptions, ambiguous scope boundaries, missing dependencies, unstated edge cases, missing success criteria.
  5. Ask clarifying questions — at most ~8–10, grouped by topic, in one structured pass. Defer or drop the rest. Wait for answers before drafting. If the user declines to clarify, proceed and route every assumption to each affected task's Open Questions section.
  6. Plan the task list. Output a numbered plan with each task's title (with prefix), one-line scope, and any obvious dependencies. Confirm with the user before generating files.
  7. Generate one task file at a time using the task template below. Every section appears; non-applicable ones use the canonical Not Applicable — <reason> line. Verify each task is genuinely end-to-end before moving to the next.
  8. Write the master INDEX.md that lists every task, its prefix, scope, and dependencies — in execution order. The index is the single entry point for the engineering team.
  9. Self-check every task against the checklist below before reporting.
  10. Report the saved folder, the file list, the suggested execution order, and any open questions back to the user.

Task-set checklist

Copy this into your response and check items off as you progress:

Tasks progress:
- [ ] Source set enumerated (PRD / conversation / provided files / media / linked docs / repo)
- [ ] Packet read (PRD / brief / linked docs / conversation)
- [ ] Repository analyzed deeply (entry points, data layer, reusable utilities, API/UI patterns, sibling paths, tests, observability, mobile constraints if applicable)
- [ ] Unknowns and ambiguities listed
- [ ] Clarifying questions asked and answered (or declined and logged as Open Questions)
- [ ] Task list planned and confirmed (titles, prefixes, one-line scopes, dependencies)
- [ ] Each task is end-to-end across required layers (no backend-only / frontend-only splits)
- [ ] Each task has every required section (non-applicable explicitly marked)
- [ ] Exact file paths, related existing code, data models, API specs grounded in evidence
- [ ] Non-functional requirements covered (performance, security, scalability, tenant isolation, reliability, atomicity, observability, validation)
- [ ] Blast radius traced (callers, sibling paths, retries, downstream systems, stale state)
- [ ] Testing strategy covers unit / integration / e2e where applicable
- [ ] Acceptance criteria measurable; QA steps explicit
- [ ] Design specifications included where UI/UX is in scope
- [ ] Images associated with the tasks they inform
- [ ] No time / effort / story-point / staffing estimates
- [ ] INDEX.md generated with execution order
- [ ] Saved under docs/tasks/<feature-slug>/
- [ ] Summary reported back to the user

What to clarify before drafting

Use this list as a prompt for the clarifying-questions step. Cap the first pass at ~8–10 questions, grouped by topic. Don't ask all of these — ask only the ones whose answers you genuinely need now to write defensible tasks. Defer or drop the rest; route them to each task's Open Questions section if needed.

Scope & boundaries

  • Which features in the PRD are in scope for this task set, and which are explicitly deferred?
  • Are there platforms (iOS, Android, Web, Desktop, Backend-only, DevOps) excluded from this set?
  • Is anything blocked by an upstream dependency that isn't ready yet?

Functional behavior

  • What are the exact business rules, eligibility checks, defaults, and limits?
  • What are the edge cases and error states (and what's the expected user-facing behavior in each)?
  • For multi-step flows: where does each step start, and where does "done" land?

Data & contracts

  • Are there schema changes, migrations, or new indexes required?
  • Are there contract changes the frontend / mobile / partners depend on?
  • Are there enum / constant additions that need to be propagated through every UI surface?

Non-functional constraints

  • Performance budgets (latency, payload size, throughput)?
  • Security / privacy / tenancy / compliance constraints?
  • Reliability targets (retry semantics, idempotency, recovery)?
  • Observability requirements (logs, metrics, alerts) for this feature?
  • Mobile platform constraints (App Store / Play Store rules) where applicable?

Dependencies & risks

  • Are there feature flags, kill switches, or staged rollout requirements?
  • Which existing systems will this affect (the blast-radius surfaces)?
  • What's the worst-case failure mode? Who notices first?

Design & UX

  • Are there approved designs (Figma, mockups, screenshots)? Where?
  • Are there accessibility / localization requirements?
  • Are there empty / loading / error / offline states designed?

Testing & acceptance

  • What's the bar for "done" — unit only, or unit + integration + e2e?
  • Are there manual QA scenarios that must be covered?
  • Are there metrics or analytics events that must fire and be verified?

Operational

  • Is there a target launch date or staged-rollout plan?
  • Are there documentation / runbook updates required at ship time?
  • Is there an existing tasks folder or naming convention to follow?

Task-list plan format

Before generating any task file, output a plan like this and confirm with the user:

markdown
## Task plan — <Feature Name>

Folder: `docs/tasks/<feature-slug>/`

1. **[<Prefix>] <Task title>** — <one-line scope>. Depends on: <none | task #s>.
2. **[<Prefix>] <Task title>** — <one-line scope>. Depends on: …
3. …

Suggested execution order: <e.g. 1 → 2 → (3 + 4 in parallel) → 5>.

Confirm or revise before I generate the task files.

Task template

Each task is its own file: docs/tasks/<feature-slug>/<NNN>-<kebab-title>.md, where <NNN> is a zero-padded index (001, 002, …) reflecting execution order.

markdown
# [<Prefix>] <Task Title>

| Field | Value |
| --- | --- |
| Task ID | <feature-slug>-<NNN> |
| Feature | <Feature Name> |
| Source PRD / Brief | <relative path or link, or "Not Applicable — conversation-only"> |
| Date | <YYYY-MM-DD> |
| Depends on | <task IDs or "None"> |
| Blocks | <task IDs or "None"> |

## 1. Problem / Motivation
Why this task exists and what outcome it unlocks. 2–5 sentences. A reader should leave knowing the *user* or *business* problem, not just the technical change.

## 2. Business Rules
The complete rules, edge cases, and constraints the implementation must enforce. Numbered (BR-1, BR-2, …) so QA can reference them.

- **BR-1.** <rule>
- **BR-2.** <rule>
- **Edge cases:** …
- **Constraints:** …

## 3. Technical Goals
Specific, measurable implementation goals. Numbered (TG-1, TG-2, …).

- **TG-1.** …
- **TG-2.** …

## 4. Dependencies
Upstream (must land first) and downstream (depends on this).

- **Upstream:** …
- **Downstream:** …
- **Cross-team / external:** …

## 5. Files to Modify
Exact file paths grounded in repo evidence. Include `(new)` for files that don't exist yet and explain why they go where they do.

- `path/to/file.ts` — <what changes>
- `path/to/new-file.ts` (new) — <purpose>
- …

If the repo has no clear anchor for a piece of work, say so and propose a location.

## 6. Related Existing Code
Existing utilities, services, components, hooks, validators, helpers to **reuse** (not duplicate). Cite file paths.

- `path/to/util.ts` — <how to reuse>
- `path/to/component.tsx` — <how to compose>
- …

## 7. Architecture Notes
Diagrams, data flow, sequence of operations for non-trivial changes. Use Mermaid (` ```mermaid `) when a diagram aids comprehension. For simple tasks, write `Not Applicable — <reason>`.

## 8. Data Model
Schemas, field types, constraints, indexes, relationships. For each new or changed entity:

- **Entity:** `<name>`
- **Fields:** `<name>: <type>` (nullable / unique / default / index)
- **Relationships:** …
- **Migrations:** <up/down notes; backfill strategy if applicable>

If no data changes: `Not Applicable — no schema impact.`

## 9. API Specs
For each endpoint or RPC affected:

- **Method + Path:** `POST /api/...`
- **Auth:** <session / token / public / scope>
- **Request:** schema (fields, types, required)
- **Response (success):** schema + status code
- **Response (error):** status codes, error shape, client-facing messages
- **Headers:** …
- **Pagination / sorting / filtering:** how the contract is exposed
- **Idempotency:** <key strategy if applicable>

If no API changes: `Not Applicable — no contract impact.`

## 10. Non-Functional Requirements
Group by quality attribute. Each entry includes a measurable target where possible.

- **Performance:** <latency / throughput targets>
- **Security:** <auth, tenant isolation, sensitive-data handling>
- **Privacy / Compliance:** <regulatory, data-residency>
- **Scalability:** <concurrency, data volume>
- **Reliability:** <retry semantics, idempotency, recovery>
- **Atomicity:** <transactions, TOCTOU windows>
- **Observability:** <logs, metrics, alerts that must exist at launch>
- **Validation:** <client + server, single source of truth>
- **Event-driven correctness:** <event ordering, deduplication, replay>
- **Mobile platform compliance (if applicable):** <App Store / Play Store rules touched>

## 11. Implementation Guide
The approach, in enough detail for direct execution. Numbered steps. Reference the files and existing utilities you cited above. Note any decisions the implementer should make and any explicitly forbidden approaches.

1. …
2. …
3. …

## 12. Error Handling
- **Client-facing errors:** <messages, status codes>
- **Log-level errors:** <what to log, with which fields>
- **Ownership / authorization failures:** <expected response>
- **Truncation / size limits:** …
- **Enum consistency:** <where the same enum lives — keep aligned>
- **Mutual-exclusion / co-dependency:** <which fields must be present together>

## 13. Blast-Radius & Impact Analysis
Every code path, flow, retry, recovery, stale state, and sibling system this task touches.

- **Affected callers / consumers:** …
- **Affected flows (user / job / event):** …
- **Affected integrations / downstream systems:** …
- **Affected sibling code paths (consistency to maintain):** …
- **Stale state / cache invalidation:** …
- **Retry / recovery paths:** …
- **Data assumptions changed:** …
- **Feature flags / staged rollout considerations:** …

## 14. Testing Strategy
- **Unit tests:** <what to cover; existing test setup to extend>
- **Integration tests:** <what to cover>
- **End-to-end tests:** <what to cover; tooling>
- **Fixtures / factories:** <existing helpers to reuse>
- **Negative-path tests:** <edge cases, error states>
- **Performance / load tests (if applicable):** …
- **Mobile-specific tests (if applicable):** <device matrix, platform-specific cases>

## 15. Acceptance Criteria
Measurable statements of done. Numbered (AC-1, AC-2, …) so each is checkable.

- **AC-1.** …
- **AC-2.** …
- **AC-3.** …

## 16. QA Testing Steps
Explicit manual test scenarios with expected outcomes. Numbered for traceability.

1. **Scenario:** <setup + action>
   - **Expected:** <outcome>
2. **Scenario:** …
   - **Expected:** …
3. **Negative scenario:** …
   - **Expected:** …

## 17. Design Specifications
UI/UX details where applicable. Reference associated images by path (e.g., `assets/<file>.png`) and describe what the implementer should look at.

- **Screens / states:** <list with image refs>
- **Components:** <names; design-system primitives to use>
- **Behavior:** <interactions, animations, transitions>
- **Empty / loading / error / offline states:** …
- **Accessibility:** <contrast, keyboard, screen-reader labels>
- **Localization:** <strings extracted; pluralization>
- **Theming:** <light/dark; tokens used>

If no UI changes: `Not Applicable — backend-only task.`

## 18. Open Questions
Anything still unresolved at write time (assumptions made because the user declined to clarify, or items deferred to delivery). The implementer should resolve these before merge.

- **Open question:** <what still needs to be answered, by whom>
- **Assumption made:** <what we assumed and why>

INDEX.md template

Save as docs/tasks/<feature-slug>/INDEX.md. This is the single entry point for the team.

markdown
# Tasks — <Feature Name>

| Field | Value |
| --- | --- |
| Source PRD / Brief | <relative path or link, or "Not Applicable"> |
| Date | <YYYY-MM-DD> |
| Total tasks | <N> |

## Execution order
<e.g. 001 → 002 → (003 + 004 in parallel) → 005>

## Tasks
| # | Title | Layers | Depends on | File |
| --- | --- | --- | --- | --- |
| 001 | [<Prefix>] <Title> | <e.g. DB, API, Web> | None | [001-<slug>.md](./001-<slug>.md) |
| 002 | [<Prefix>] <Title> | … | 001 | [002-<slug>.md](./002-<slug>.md) |
| … | … | … | … | … |

## Cross-task notes
- **Shared assumptions:** …
- **Shared open questions:** …
- **Shared blast-radius surfaces:** …
- **Feature flag(s):** …

Minimal example output

A skeleton showing the expected shape for a single task file, derived from the Saved-Cart Recovery PRD example used by the to-prd skill (truncated for illustration):

docs/tasks/saved-cart-recovery/001-recovery-email-worker.md:

markdown
# [Backend+DB+Tests] Saved-cart recovery email worker

| Field | Value |
| --- | --- |
| Task ID | saved-cart-recovery-001 |
| Feature | Saved-Cart Recovery |
| Source PRD / Brief | `docs/saved-cart-recovery-prd.md` |
| Date | 2026-05-08 |
| Depends on | None |
| Blocks | saved-cart-recovery-002 (resume endpoint), saved-cart-recovery-003 (email template) |

## 1. Problem / Motivation
Authenticated shoppers abandon carts after distractions (tab close, notification, network drop) and rarely rebuild them. Today the system has no nudge mechanism. This task introduces the background worker that detects idle authenticated carts and enqueues exactly one recovery email per abandonment event, unlocking the PRD's first measurable cart-recovery lift (target ≥3% within 7 days).

## 2. Business Rules
- **BR-1.** Only authenticated carts are eligible (anonymous carts are out of scope per PRD non-goals).
- **BR-2.** "Idle" = no `cart_items` write for ≥30 minutes.
- **BR-3.** Exactly one recovery email per abandonment event — re-activity resets the clock and opens a new event window.
- **BR-4.** `resume_token` is single-use, HS256-signed, valid for 7 days, scoped to `(cart_id, user_id)`.
- **Edge cases:** cart emptied during idle window → skip; user logged out → skip; user already on `/checkout` → skip.

## 3. Technical Goals
- **TG-1.** P95 latency from idle threshold crossed → email enqueued < 2 minutes.
- **TG-2.** Zero double-sends under retry — idempotency key `(cart_id, abandonment_event_id)`.
- **TG-3.** No new infra tier; reuse the existing background-job budget envelope.

## 4. Dependencies
- **Upstream:** existing job-queue infrastructure (`workers/queue/`); email-template task (saved-cart-recovery-003) must land before production rollout.
- **Downstream:** resume endpoint (saved-cart-recovery-002) consumes the `resume_token` shape defined here.
- **Cross-team / external:** None.

## 5. Files to Modify
- `workers/jobs/cart-recovery.ts` (new) — main job handler.
- `workers/queue/registry.ts` — register the new job type.
- `db/migrations/2026_05_08_cart_abandonment_events.sql` (new) — `cart_abandonment_events` table.
- `db/models/cart.ts` — add `last_activity_at` index; expose `findIdle(since)` helper.
- `lib/tokens/resume.ts` (new) — sign / verify `resume_token`.
- `config/feature-flags.ts` — add `saved_cart_recovery_enabled` (default off).

## 6. Related Existing Code
- `workers/queue/scheduler.ts` — existing cron-driven scheduler; reuse its `every('1m', fn)` primitive.
- `lib/tokens/share-link.ts` — existing signed-token pattern; mirror its HS256 + claim-validation shape.
- `lib/emails/transactional.ts` — existing sender wrapper; do not create a parallel email path.
- `tests/factories/cart.ts` — existing fixtures; extend with `idleCart()` factory.

…

(Sections 7–18 — Architecture Notes, Data Model, API Specs, Non-Functional Requirements, Implementation Guide, Error Handling, Blast-Radius & Impact Analysis, Testing Strategy, Acceptance Criteria, QA Testing Steps, Design Specifications, and Open Questions — are fleshed out in the generated file using the full Task template above. Sections that don't apply use the canonical Not Applicable — <reason> line.)

Final summary back to the user

After saving, reply with:

  • Saved folder — docs/tasks/<feature-slug>/ and the file list (INDEX + each task).
  • Suggested execution order — one line.
  • Open questions — any unresolved items the user still needs to decide before delivery starts.
  • Suggested next step — when relevant, and if the code-review skill is also installed, recommend running it against each task's PR as work lands; if the to-prd skill is installed and the source PRD has gaps the tasks surfaced, recommend tightening the PRD before the next task set.

Câu hỏi thường gặp

Kỹ năng AI Create Tasks làm được gì?

(alamops) Quản lý dự án kỹ thuật cấp cao, chuyển PRD, bản mô tả, ticket hoặc cuộc trò chuyện thành một nhóm nhỏ các tác vụ phát triển/QA chuyên sâu, xuyên suốt đầu-cuối. Bắt buộc phân tích sâu ngữ cảnh repo (điểm vào, mô hình dữ liệu, tiện ích, mẫu API, các luồng mã tương tự) trước khi soạn thảo, đặt một lượt câu hỏi làm rõ có cấu trúc, rồi viết từng tác vụ gồm vấn đề, quy tắc nghiệp vụ, mục tiêu kỹ thuật, phần phụ thuộc, đường dẫn tệp, mã hiện có liên quan, mô hình dữ liệu, đặc tả API, yêu cầu phi chức năng, hướng dẫn triển khai, xử lý lỗi, phạm vi ảnh hưởng, kiểm thử, tiêu chí chấp nhận,...

Vì sao nên dùng Create Tasks trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Create Tasks là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Create Tasks trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/alamops/skills/tree/main/skills/create-tasks. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Create Tasks?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Create Tasks với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Create Tasks với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Create Tasks có miễn phí không?

Có. Kỹ năng này được alamops phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇