Output language: All output mirrors the language of the invoking prompt. Vietnamese prompt → Vietnamese output; English prompt → English output. Canonical tokens (PENDING HUMAN REVIEW, PENDING, APPROVED), file paths, and CLI commands are language-invariant.
Dùng khi bắt đầu feature để làm rõ bài toán nghiệp vụ và tạo CONTEXT.md.
Cập nhật CONTEXT.md đã approved? Dùng /sdd-update --artifact=context --reason="..." thay vì chạy lại skill này. /sdd-context dùng để tạo Context lần đầu hoặc làm lại khi yêu cầu thay đổi hoàn toàn.
Shared methodology contract
Đọc AI Review Protocol trước khi tạo artifact. CONTEXT.md mới phải dùng Intent Packet, Describe-back record và Methodology Profile trong protocol. Intent giữ technology-neutral; solution kỹ thuật chỉ được ghi như question, constraint hoặc decision đã approved, không phải requirement mặc định.
CONTEXT.md được tạo với core-only baseline; không chọn HTTP framework, DB, ORM, validation library hoặc test command.
Ghi profile version, baseline, evidence và chỉ unknown liên quan feature.
Evidence mâu thuẫn profile thì dừng và tạo PENDING HUMAN REVIEW recommendation.
Các bước
Tạo .sdd/features/{feature-slug}/CONTEXT.md.
Ghi ## Intent Packet: WHAT, WHY, Definition of Done, boundaries, exclusions và decision owner.
Thu thập problem, user pain và desired behavior; chưa thiết kế giải pháp kỹ thuật.
Lập domain glossary, entity/state và business rule.
Xác định stakeholder, decision maker, business constraint và open question.
Ghi ## Methodology Profile với depth SKIP | SKETCH | DETAILED | FORMAL, rationale, risk posture, high-risk review route và unresolved-decision owner. Depth là recommendation, không bỏ gate.
Gán disposition cho từng open question material: resolved, approved assumption, deferred hoặc blocking decision.
Ghi ## Describe-back record: Agent diễn giải lại WHAT, WHY, DoD, boundaries/exclusions, assumptions/unknowns và material-question disposition; đối chiếu với Intent Packet, glossary và constraints.
Nếu intent bị trộn với solution, material question chưa disposition, describe-back mâu thuẫn evidence, hoặc Agent tự thêm technology/solution không có evidence, dừng trước /sdd-spec.
Kiểm tra DoD, ghi artifact và cập nhật .sdd/README.md.
DoD
Intent Packet nêu observable WHAT, WHY, Definition of Done, boundary/exclusion và decision owner.
Team/Developer hiểu problem, không nhầm với solution.
Domain glossary rõ nghĩa.
Tech, business và time constraint đã ghi.
Có decision maker rõ ràng.
Methodology Profile có depth, rationale, risk posture và review route khi high-risk.
Open question quan trọng đã trả lời, có approved assumption, deferred rõ ràng hoặc được đánh dấu blocking.
Describe-back record khớp Intent Packet, glossary và constraints; assumption/unknown có impact và disposition.
Không chuyển sang Spec khi intent lẫn solution, có material question chưa disposition hoặc describe-back mâu thuẫn.
AI Recommendation và Human Final Review
Sau khi tạo/sửa CONTEXT.md, lưu canonical recommendation trong artifact, gồm Intent Packet, Describe-back record, business question, assumption, stakeholder, constraint, exclusion, Methodology Profile và alternative. Giữ Human Final Review.Status: PENDING. Chỉ chuyển sang /sdd-spec sau APPROVED có decision, reviewer và timestamp. Agent phải dừng, không self-approve.
1---2name: sdd-context3description: Sdd Context4---56# SDD Phase 0 — Context Discovery (`/sdd-context`)78**Output language:** All output mirrors the language of the invoking prompt. Vietnamese prompt → Vietnamese output; English prompt → English output. Canonical tokens (`PENDING HUMAN REVIEW`, `PENDING`, `APPROVED`), file paths, and CLI commands are language-invariant.910Dùng khi bắt đầu feature để làm rõ bài toán nghiệp vụ và tạo `CONTEXT.md`.1112## Tham số1314- `--feature=<feature-slug>`: Feature identifier kebab-case, ví dụ `feat-001-order-checkout`.1516> **Cập nhật CONTEXT.md đã approved?** Dùng `/sdd-update --artifact=context --reason="..."` thay vì chạy lại skill này. `/sdd-context` dùng để tạo Context lần đầu hoặc làm lại khi yêu cầu thay đổi hoàn toàn.1718## Shared methodology contract1920Đọc [AI Review Protocol](../_shared/ai-review-protocol.md) trước khi tạo artifact. `CONTEXT.md` mới phải dùng `Intent Packet`, `Describe-back record` và `Methodology Profile` trong protocol. Intent giữ technology-neutral; solution kỹ thuật chỉ được ghi như question, constraint hoặc decision đã approved, không phải requirement mặc định.2122## Architecture Profile preflight2324Tuân thủ [Architecture Profile Protocol](../_shared/architecture-profile-protocol.md).2526- Đọc profile và governance bắt buộc.27- `CONTEXT.md` được tạo với core-only baseline; không chọn HTTP framework, DB, ORM, validation library hoặc test command.28- Ghi profile version, baseline, evidence và chỉ unknown liên quan feature.29- Evidence mâu thuẫn profile thì dừng và tạo `PENDING HUMAN REVIEW` recommendation.3031## Các bước32331. Tạo `.sdd/features/{feature-slug}/CONTEXT.md`.342. Ghi `## Intent Packet`: `WHAT`, `WHY`, `Definition of Done`, boundaries, exclusions và decision owner.353. Thu thập problem, user pain và desired behavior; chưa thiết kế giải pháp kỹ thuật.364. Lập domain glossary, entity/state và business rule.375. Xác định stakeholder, decision maker, business constraint và open question.386. Ghi `## Methodology Profile` với depth `SKIP | SKETCH | DETAILED | FORMAL`, rationale, risk posture, high-risk review route và unresolved-decision owner. Depth là recommendation, không bỏ gate.397. Gán disposition cho từng open question material: resolved, approved assumption, deferred hoặc blocking decision.408. Ghi `## Describe-back record`: Agent diễn giải lại WHAT, WHY, DoD, boundaries/exclusions, assumptions/unknowns và material-question disposition; đối chiếu với Intent Packet, glossary và constraints.419. Nếu intent bị trộn với solution, material question chưa disposition, describe-back mâu thuẫn evidence, hoặc Agent tự thêm technology/solution không có evidence, dừng trước `/sdd-spec`.4210. Kiểm tra DoD, ghi artifact và cập nhật `.sdd/README.md`.4344## DoD4546- [ ] `Intent Packet` nêu observable WHAT, WHY, Definition of Done, boundary/exclusion và decision owner.47- [ ] Team/Developer hiểu problem, không nhầm với solution.48- [ ] Domain glossary rõ nghĩa.49- [ ] Tech, business và time constraint đã ghi.50- [ ] Có decision maker rõ ràng.51- [ ] Methodology Profile có depth, rationale, risk posture và review route khi high-risk.52- [ ] Open question quan trọng đã trả lời, có approved assumption, deferred rõ ràng hoặc được đánh dấu blocking.53- [ ] Describe-back record khớp Intent Packet, glossary và constraints; assumption/unknown có impact và disposition.54- [ ] Không chuyển sang Spec khi intent lẫn solution, có material question chưa disposition hoặc describe-back mâu thuẫn.5556## AI Recommendation và Human Final Review5758Sau khi tạo/sửa `CONTEXT.md`, lưu canonical recommendation trong artifact, gồm Intent Packet, Describe-back record, business question, assumption, stakeholder, constraint, exclusion, Methodology Profile và alternative. Giữ `Human Final Review.Status: PENDING`. Chỉ chuyển sang `/sdd-spec` sau `APPROVED` có decision, reviewer và timestamp. Agent phải dừng, không self-approve.
Run npx skillmds@latest add khangpqvn/sdd-context in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Sdd Context It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
khangpqvn (@khangpqvn) published this skill. Their other Agent Skills are listed on their SkillMD profile.