Create Tasksのロゴ

Create Tasks

コミュニティ
alamops
create-tasks

(alamops) シニアテクニカルPMとして、PRD、概要、チケット、会話の内容を、少数の深掘り型エンドツーエンド開発/QAタスクにまとめます。作成前にリポジトリのコンテキスト(エントリーポイント、データモデル、ユーティリティ、APIパターン、関連するコードパス)を必ず詳細に分析し、構造化された確認質問を1回行います。その後、各タスクに課題、ビジネスルール、技術目標、依存関係、ファイルパス、関連する既存コード、データモデル、API仕様、非機能要件、実装ガイド、エラー処理、影響範囲、テスト、受け入れ条件、QA手順、デザイン仕様を記載します。タイトルにはレイヤーの接頭辞を付けます(`[Full-Stack]`、`[Backend+DB+Tests]`、`[Frontend+Backend+Tests]`、`[DevOps]`)。時間、工数、人員の見積もりは行いません。`docs/tasks/<feature-slug>/`にINDEXとタスクファイル1件を保存します。ソースコードは読み取り専用です。PRD、仕様書、機能の説明から開発/QAタスク、エンジニアリングチケット、スプリントタスク、実装チケットを作成、草案化、ひな形化、または分割するよう依頼された場合に使用します。

Add to TypingMind

概要

公開者alamops
リポジトリskills
スキル名create-tasks
スター
53
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    alamopsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Create Tasks」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/alamops/skills/tree/main/skills/create-tasks
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCreate Tasksを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCreate Tasksを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Create Tasksは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Create Tasks」では何ができますか?

(alamops) シニアテクニカルPMとして、PRD、概要、チケット、会話の内容を、少数の深掘り型エンドツーエンド開発/QAタスクにまとめます。作成前にリポジトリのコンテキスト(エントリーポイント、データモデル、ユーティリティ、APIパターン、関連するコードパス)を必ず詳細に分析し、構造化された確認質問を1回行います。その後、各タスクに課題、ビジネスルール、技術目標、依存関係、ファイルパス、関連する既存コード、データモデル、API仕様、非機能要件、実装ガイド、エラー処理、影響範囲、テスト、受け入れ条件、QA手順、デザイン仕様を記載します。タイトルにはレイヤーの接頭辞を付けます(`[Full-Stack]`、`[Backend+DB+Tests]`、`[Frontend+Backend+Tests]`、`[DevOps]`)。時間、工数、人員の見積もりは行いません。`docs/tasks/<feature-slug>/`にINDEXとタスクファイル1件を保存します。ソースコードは読み取り専用です。PRD、仕様書、機能の説明から開発/QAタスク、エンジニアリングチケット、スプリントタスク、実装チケットを作成、草案化、ひな形化、または分割するよう依頼された場合に使用します。

TypingMindでCreate Tasksを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Create Tasksはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCreate Tasksをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/alamops/skills/tree/main/skills/create-tasksを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Create Tasksを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Create Tasksで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCreate Tasksを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Create Tasks」は無料ですか?

はい。alamopsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇