Skip to content
Back to skills

Tasks

ASecurity

根據 plan package 的 `spec.md`、`plan.md`、`research.md`、`ui/**`,以及 `truth-delta.md` 與 `specs/truth/**` 產出可直接執行的 `tasks.md`。先寫 Setup 與 Foundational,測試層集中在 Phase 3 `Test Alignment & Implementation`;Feature phase 只留 Green / Refactor 或 CODE-REMOVE / REGRESSION。

  • 44 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 7, 2026
development

Works with

  • cursor

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned October 7, 2026

npx -y skills add YuDefine/nuxt-supabase-starter --skill tasks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tasks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tasks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yudefine-tasks/badge)](https://www.skillsdirectory.com/skills/yudefine-tasks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tasks
description: >-
  根據 plan package 的 `spec.md`、`plan.md`、`research.md`、`ui/**`,以及
  `truth-delta.md` 與 `specs/truth/**` 產出可直接執行的 `tasks.md`。先寫 Setup 與
  Foundational,測試層集中在 Phase 3 `Test Alignment & Implementation`;Feature phase 只留
  Green / Refactor 或 CODE-REMOVE / REGRESSION。
metadata:
  clade:
    invocation: explicit
---
<!-- LOCKED: mirrored from Waterball-Software-Academy/aixbdd@bc8fdebe2d30db384f77911aaed81888ad03bf5f, modified by clade (added this banner and clade metadata lines) via scripts/sync-upstream-mirrors.ts — edit upstream, never here -->
<!-- clade-targets: claude,codex,cursor -->
> clade 覆寫:clade lifecycle repo(本次 plan package 的 `plan.md` frontmatter 同時含 `work_id:` 與 `truth_baseline:`)或適用 canonical doctor 的 clade consumer:執行本 skill 前先讀 `work-route` skill 根下的 `rules/上游覆寫-lifecycle落點與doctor.md`,命中該檔判準的條目以該檔為準,未命中照本檔原文。

# Tasks Skill

`tasks` 是 plan-side execution planner。它不修改 truth,只把本次 plan、truth-delta 與目前 truth 轉成 `/implement` 可逐步執行的 `tasks.md`。本輪新增技術先寫 Setup;若 canonical doctor 缺失或非零,即使本輪沒有新增技術,也必須以 doctor bootstrap/repair 例外先寫 Setup;再寫 Foundational。測試層在寫產品碼之前一次對齊最新版 truth。盤點既有自動化測試只發生在寫 Phase 3 時,不得輸出成 implement task。

tasks.md 的結構產出與 doctor 驗證是兩個結果:`/tasks` 必須跑一次 consumer 的 canonical doctor,並交付 tasks artifact、doctor receipt 與狀態。doctor 只依目前 repo 已確認的 package manager、workspace root、技術棧與既有 check 入口決定;不得把 `pnpm run doctor` 當成跨 repo 預設。doctor 缺失或非零時,tasks artifact 仍可完成產出,但必須在 Setup 插入一個具名、無後續依賴且可解鎖的 bootstrap/repair task,回報真實診斷並將 doctor 標為 `needs-repair` 或 `blocked`;不得宣稱 doctor pass,也不得在 `/tasks` 越權實作修復。交 `/implement` 後先執行這個修復 task,修復 task 自己重新跑 canonical doctor,exit 0 才能 `[X]`。不得用 no-op、固定 exit 0 或未驗證的替代命令假裝通過。

# SOP

## Phase 1 -- 收斂 plan package、truth-delta 與本輪 DSL 清單

1. READ 讀取使用者需求、目標 plan package 的 `spec.md`、`plan.md`、`research.md`、`ui/**`、`truth-delta.md`,以及受影響模組的 truth feature、模組 DSL、truth-delta 實際引用的介面根共用 DSL rows、相關 contracts/data 與 `specs/truth/techstack.md`。
   - 命中 clade lifecycle repo 判準(本次 plan package 的 `plan.md` frontmatter 同時含 `work_id:` 與 `truth_baseline:`)時,`plan.md` 是 lifecycle 檔:系統分析內容改讀同 package 的 `system-analysis.md`,本輪 truth delta 改讀 `plan.md` 的 `## Truth delta` 表,該 package 沒有 `truth-delta.md`。判準只看那兩個 frontmatter 鍵,NEVER 用 repo 名、manifest 或其他檔案存在與否推斷。
2. READ 讀取 `.agents/constitution/CONSTITUTION.md` 與 `.agents/constitution/shared.md`,並將其中規則視為高於本地 artifact 規範的約束。
3. READ 讀取 `rules/TruthDelta影響盤點與任務型態判準.md`,確認 ADD / MODIFY / DELETE / NOOP 如何拆到 Phase 3 測試層與 Feature 產品層,以及 Setup、Foundational 與 Test Alignment 的邊界。
4. THINK 盤點本輪 Feature 用到的全部 DSL 句:含 truth-delta 有改的句,以及本輪 Feature 用到、尚無 stepdef 的句。若有 `MODIFY` 或 `DELETE`,同時盤點既有 stepdef、helper、fixture 與產品分支,只用來寫後續 task,不輸出獨立 phase。若任一句沒有唯一 DSL 定義,停止受影響範圍並回交 `/dsl-refine`。

## Phase 2 -- 產生 Setup 與 Foundational

1. THINK 若本輪有新增技術,建立 Phase 1 `Setup`:寫清套件名、配置、技術環境與最後的 smoke-test;不寫 DSL 語意、不寫產品行為。
2. THINK 若本輪沒有新增技術且 canonical doctor 已存在並通過,省略 Setup;若 doctor 缺失或非零,Setup 例外保留一個具名、無依賴、可解鎖的 bootstrap/repair task。不得把 helper、fixture 或落點骨架塞進 Setup。
3. THINK 建立 Phase 2 `Foundational`:只建立後續實作程式、測試共用元件、入口、fixture、helper 與落點骨架;每則寫「只做/不做」。
4. THINK Setup 與 Foundational 不得偷做 Phase 3 測試層或 Feature Green。

## Phase 3 -- 建立 Test Alignment & Implementation

1. READ 讀取 `templates/tasks.md` 與 `templates/tasks.example.md`,確認 Phase 3 固定章節:`DSL 參照`、`Markers`、`Shared Must Read`、`Boundary`、`Parallel Hint`。
2. THINK 為盤點出的每一句標 `[BDD-ALIGN]`、`[BDD-REMOVE]` 或 `[BDD-RED]`;一條 DSL 一個 `[P]` task;最後一個 task 是 subagent review。
3. THINK 寫入 `DSL 參照`(每句的權威 `dsl.md` 與讀 `StepDef 實作語意` 的方法)、`Markers`、本輪要讀的句、`Boundary` 與 `Parallel Hint`。
4. THINK 本 phase 不得安排產品碼任務。

## Phase 4 -- 建立 Feature phases

1. THINK 對 `ADD` 的 truth interface feature file,建立 `[BDD-GREEN] -> [BDD-REFACTOR]`,並宣告 `Test Scope`。
2. THINK 對 `MODIFY` 的 truth interface feature file,建立 `[BDD-GREEN] -> [BDD-REFACTOR]`,並宣告 `Test Scope`。
3. THINK 對 `DELETE` 的 truth interface feature file、Rule、Example 或 DSL 句型,建立 `[CODE-REMOVE] -> [REGRESSION]`,並宣告 `Test Scope`。
4. THINK 為每個 Feature phase 填入 `Shared Must Read`、`Boundary` 與 `Test Scope`;未使用介面根共用 DSL row 時省略根 DSL 參照。truth 參照必須使用 `specs/truth/**` 路徑。
5. THINK 若驗收情境無法被現有 truth feature、同模組 DSL 與相關共用 DSL rows 唯一承接,停止受影響範圍並回交 `/dsl-refine`。

## Phase 5 -- 輸出並驗證 tasks.md

1. WRITE 依 template 骨架輸出 `specs/plans/NNN-<slug>/tasks.md`。
   - 命中 Phase 1 的 clade lifecycle repo 判準時,輸出路徑換成 `specs/plans/<work-id>/tasks.md`:本次 plan package 是 `flow plan open` 鑄出的 `specs/plans/<work-id>/`,NEVER 另建 `NNN-<slug>` 目錄。
2. READ 回頭檢查:任務皆為 `- [ ] T###`、truth-delta 已納入 Core Inputs、沒有 Impact Audit phase、有新增技術時 Setup 寫清套件名與 smoke-test;若 doctor 缺失或非零,即使沒有新增技術也保留具名 doctor bootstrap/repair Setup task;Foundational 每則有「只做/不做」、Phase 3 已集中 ALIGN / REMOVE / RED、Feature phase 不含 `[BDD-RED]` / `[BDD-ALIGN]` / `[BDD-REMOVE]`、每個 Feature phase 有 `Test Scope`、truth 路徑都指向 `specs/truth/**`;若不符合,立即修正。
3. RUN consumer 的 canonical doctor,並在 tasks.md 或本輪 carrier 留下可重跑 receipt:
   <!-- clade-doctor-hook: tasks-after-generation -->
   命令、cwd、使用的 package manager/workspace root、exit code 與失敗摘要。doctor 通過時標記 `pass`;doctor 非零或入口缺失時,保留真實失敗,新增一個具名、無後續依賴且可解鎖的 Setup bootstrap/repair task 並排在依賴它的 task 之前,標記 `needs-repair` 或 `blocked`。這代表 doctor 未通過,不代表 tasks artifact 沒有產出;`/tasks` 不實作修復,交 `/implement` 執行該修復 task。若失敗來自環境不可達,具名記錄 blocked 原因與證據。

### Doctor gate contract

- 有既有 canonical doctor:以 repo 自己的入口執行,健康 fixture 必須 exit 0,刻意違規 fixture 必須非零。
- 沒有入口:Setup 必須產出一個可解鎖的 bootstrap task,交 `/implement` 建立並驗證 canonical doctor;不能建立只回 0 的包裝器,也不能把後續 task 當成 doctor 已存在的證據。
- doctor 需要後續 task 才能通過:把依賴重排到 Setup/前置 task,保留 gate,不在當前 task 偷修後續責任。
- `[BDD-RED]` 的預期 assertion/產品行為失敗屬測試層狀態,不是 doctor 失敗;不得排除或改寫該測試來製造綠燈。canonical doctor 仍須使用真實入口執行並取得自己的 exit 0 receipt。
- package manager、workspace root 或命令不確定:先以 repo canonical 文件/設定收斂;仍無法判定時記錄阻塞,不猜 `pnpm`。

Doctor bootstrap 的交付形狀至少要讓下一個 agent 能直接執行:

```md
- [ ] T### Bootstrap canonical doctor(unlocked、無前置依賴)
  - Doctor receipt: status=`needs-repair`/`blocked`, command=`...`, cwd=`...`, exit=`...`, evidence=`...`
```

修復後只把同一個 `T###` 改成 `[X]`,並附新的 canonical doctor receipt;具名任務能唯一對應時,不要求虛構固定數字。

Files in this skill

  • LICENSE1.2 KB
  • SKILL.md8.8 KB
  • rules/TruthDelta影響盤點與任務型態判準.md5.5 KB
  • templates/tasks.example.md10.8 KB
  • templates/tasks.md8.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.