planning-and-task-breakdown
Skill này làm gì
Công cụ này chia công việc lớn thành các tác vụ nhỏ, có tổ chức. Nó giúp hiểu cần làm gì, theo thứ tự nào, và đảm bảo mỗi bước đều dễ quản lý.
Khi nào nên dùng
- ✓Khi một dự án có vẻ quá lớn để bắt đầu.
- ✓Khi bạn cần lên kế hoạch xem nên làm gì trước.
- ✓Khi nhiều người có thể làm các phần khác nhau cùng lúc.
Liên kết skill
https://github.com/addyosmani/agent-skills/blob/main/skills/planning-and-task-breakdown/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi cần lên kế hoạch các tác vụ để tạo một website portfolio đơn giản gồm trang chủ, trang giới thiệu và trang liên hệ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ phân tích công việc được mô tả và chia thành các bước hợp lý. Nó xem xét các phụ thuộc (việc gì cần làm trước việc gì) và sắp xếp mọi thứ thành một danh sách rõ ràng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Planning and Task Breakdown
Overview
Decompose work into small, verifiable tasks with explicit acceptance criteria. Good task breakdown is the difference between an agent that completes work reliably and one that produces a tangled mess. Every task should be small enough to implement, test, and verify in a single focused session.
When to Use
- You have a spec and need to break it into implementable units
- A task feels too large or vague to start
- Work needs to be parallelized across multiple agents or sessions
- You need to communicate scope to a human
- The implementation order isn't obvious
When NOT to use: Single-file changes with obvious scope, or when the spec already contains well-defined tasks.
The Planning Process
Step 1: Enter Plan Mode
Before writing any code, operate in read-only mode:
- Read the spec and relevant codebase sections
- Identify existing patterns and conventions
- Map dependencies between components
- Note risks and unknowns
Do NOT write code during planning. The output is a plan document saved to tasks/plan.md and a task list recorded in the task list target (see Output Files; default tasks/todo.md), not implementation.
Step 2: Identify the Dependency Graph
Map what depends on what:
Database schema
│
├── API models/types
│ │
│ ├── API endpoints
│ │ │
│ │ └── Frontend API client
│ │ │
│ │ └── UI components
│ │
│ └── Validation logic
│
└── Seed data / migrations
Implementation order follows the dependency graph bottom-up: build foundations first.
Step 3: Slice Vertically
Instead of building all the database, then all the API, then all the UI — build one complete feature path at a time:
Bad (horizontal slicing):
Task 1: Build entire database schema
Task 2: Build all API endpoints
Task 3: Build all UI components
Task 4: Connect everything
Good (vertical slicing):
Task 1: User can create an account (schema + API + UI for registration)
Task 2: User can log in (auth schema + API + UI for login)
Task 3: User can create a task (task schema + API + UI for creation)
Task 4: User can view task list (query + API + UI for list view)
Each vertical slice delivers working, testable functionality.
Step 4: Write Tasks
Each task follows this structure, whether it lands in the markdown task list or as an item in an external tracker (see Output Files):
## Task [N]: [Short descriptive title]
**Description:** One paragraph explaining what this task accomplishes.
**Acceptance criteria:**
- [ ] [Specific, testable condition]
- [ ] [Specific, testable condition]
**Verification:**
- [ ] Tests pass: [the repository's focused-test command]
- [ ] Build succeeds: [the repository's build command]
- [ ] Manual check: [description of what to verify]
**Dependencies:** [Task numbers this depends on, or "None"]
**Files likely touched:**
- `src/path/to/file.ts`
- `tests/path/to/test.ts`
**Estimated scope:** [Small: 1-2 files | Medium: 3-5 files | Large: 5+ files]
Step 5: Order and Checkpoint
Arrange tasks so that:
- Dependencies are satisfied (build foundation first)
- Each task leaves the system in a working state
- Verification checkpoints occur after every 2-3 tasks
- High-risk tasks are early (fail fast)
Add explicit checkpoints to the task list target:
## Checkpoint: After Tasks 1-3
- [ ] All tests pass
- [ ] Application builds without errors
- [ ] Core user flow works end-to-end
- [ ] Review with human before proceeding
Task Sizing Guidelines
| Size | Files | Scope | Example |
|---|---|---|---|
| XS | 1 | Single function or config change | Add a validation rule |
| S | 1-2 | One component or endpoint | Add a new API endpoint |
| M | 3-5 | One feature slice | User registration flow |
| L | 5-8 | Multi-component feature | Search with filtering and pagination |
| XL | 8+ | Too large — break it down further | — |
If a task is L or larger, it should be broken into smaller tasks. An agent performs best on S and M tasks.
When to break a task down further:
- It would take more than one focused session (roughly 2+ hours of agent work)
- You cannot describe the acceptance criteria in 3 or fewer bullet points
- It touches two or more independent subsystems (e.g., auth and billing)
…
Câu hỏi thường gặp
“Vertical slicing” là gì?
Nghĩa là hoàn thành một phần nhỏ, trọn vẹn tại một thời điểm (ví dụ tạo toàn bộ trang đăng nhập gồm cơ sở dữ liệu, code và màn hình), thay vì làm hết phần cơ sở dữ liệu, rồi đến code, rồi đến màn hình.
Nếu tôi đã có kế hoạch thì sao?
Công cụ kiểm tra xem đã có kế hoạch với các tác vụ chưa xong hay chưa. Nếu có, nó hỏi bạn muốn làm gì để không làm gián đoạn công việc đang diễn ra.
Các tác vụ được lưu ở đâu?
Tác vụ được lưu trong file tên 'todo.md' trong thư mục 'tasks'. Kế hoạch chi tiết hơn có thể được lưu trong 'plan.md'.
Chi tiết
Mô tả gốc của tác giả
Breaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.
repo: addyosmani/agent-skills
Độ phổ biến
- Sao GitHub
- 107k
- Vị trí xếp hạng
- #779
- Giấy phép
- MIT
- Cập nhật
- 13/10/2026
Bình luận
- …
Thêm skill từ kho mã này
api-and-interface-design
107kGiúp tạo các API và giao diện được định nghĩa rõ ràng. Hữu ích khi thiết kế cách các phần của phần mềm giao tiếp với nhau.
browser-testing-with-devtools
107kGiúp agent kiểm thử code trực tiếp trên trình duyệt thật. Hữu ích để kiểm tra cách hoạt động trong môi trường thực tế, tìm lỗi và vấn đề hiệu suất.
ci-cd-and-automation
107kDạy agent AI của bạn tự động hóa các việc lặp lại, đưa dự án đi triển khai và quản lý hạ tầng.
code-review-and-quality
107kThực hiện rà soát code chi tiết trên nhiều khía cạnh. Hữu ích trước khi gộp thay đổi mới để đảm bảo chất lượng và ngăn vấn đề sau này.
Skill tương tự
knowledge-capture
394kDạy agent của bạn lưu các quyết định, sở thích và sự kiện quan trọng vào kho Knowledge dưới dạng ghi chú ngắn có ghi nguồn.
knowledge-claim-consolidation
394kGiúp agent của bạn dọn gọn kho Knowledge bằng cách gộp các khẳng định trùng lặp, chuyển chúng đến đúng trang chủ đề và loại bỏ những cái lỗi thời.
knowledge-correct
394kCho phép agent của bạn sửa hoặc rút lại một khẳng định hoặc trang Knowledge cụ thể theo yêu cầu của bạn, và giữ nhật ký những gì đã thay đổi.