From cc-auto-workflow
Implement a feature from a GitHub Issue. Use when user asks "implement issue 1, implement
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-auto-workflow:implement-issueThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Before implementing, validate:**
Before implementing, validate:
1 or #1)specs/issues/ folderapproved (not pending)If validation fails:
❌ Cannot implement issue — validation failed!
Possible issues:
- Issue #42 not found in specs/issues/
- Issue status is Pending (not Approved)
- specs/issues/ folder doesn't exist
- Not in a git repository
Solution:
1. Run /generate-issues first
2. Approve the issue (change Status: Pending → Approved)
3. Run /sync-github-issues to create GitHub issue
4. Then retry /implement-issue [number]
Đọc spec từ GitHub Issue, implement feature theo đúng spec, chạy quality checks, commit, và notify Slack.
mcp__slack__slack_post_message tool directly (NOT bash, NOT env var checks)mcp__slack__slack_reply_to_threadUser gọi: implement issue #42 → extract number 42
gh issue view 42 --json title,body,labels
grep -rl "GitHub Issue:** #42" specs/issues/
→ Đọc file đó để lấy đầy đủ context: Acceptance Criteria, Implementation Checklist, Wireframe Reference, Notes
approvedNếu Review là Pending` → dừng lại, thông báo:
❌ Issue #42 chưa được Approve. Dev cần đổi Review → Approved trước.
git checkout develop
git pull origin develop
git checkout -b feature/hung-#[issue-number]-[slug-title]
Slug từ title: lowercase, space → -, bỏ ký tự đặc biệt
Use mcp__slack__slack_post_message:
feature/hung-#[N]-[slug]"ts value for threading later
If MCP fails → fallback to slack CLIĐọc các file sau trước khi viết bất kỳ dòng code nào:
specs/rules/coding.mdspecs/rules/flutter.mdspecs/rules/design.mdBefore writing any code, if the spec references colors or design tokens:
specs/designs/ (referenced in the issue spec)--variables against AppColors constants in lib/core/constants/app_colors.dartAppColors disagrees with the HTML, update AppColors firstspecs/rules/design.md to stay in syncLàm tuần tự từng item trong ## Implementation Checklist của file spec:
specs/designs/const constructorsTODO comment cho data placeholderspecs/rules/Quy tắc khi code:
flutter analyze
→ Phải đạt 0 warnings, 0 errors trước khi tiếp tục
flutter test
→ Tất cả tests phải pass
Nếu có lỗi → tự fix trước khi commit, không commit code lỗi
git add .
git commit -m "feat: [title] (#42)"
git push origin feature/issue-42-[slug]
Sửa dòng status:
## **Status:**
- PR: Todo
Thành:
## **Status:**
- PR: Draft
gh issue edit 42 --add-label "coding-done"
THREAD_TS=$(cat .claude/tmp/thread_${ISSUE_NUMBER}.txt)
gh pr create --draft \
--title "[title]" \
--body "## Summary
[Tóm tắt ngắn gọn những gì đã implement]
## Designs
- [Tham chiếu file Designs nếu có trong specs/designs dựa vào tệp specs/issues]
## Changes
[Liệt kê các file/widget đã tạo]
## Issue
Closes #42
<!-- slack-thread-ts: $THREAD_TS -->"
Use mcp__slack__slack_reply_to_thread:
If MCP fails → fallback to slack CLI
flutter analyze còn warningmain| Lỗi | Xử lý |
|---|---|
| Issue không tồn tại | Dừng, thông báo issue number không hợp lệ |
| Status không phải approved | Dừng, nhắc dev đổi status |
| flutter analyze có lỗi | Tự fix, không được skip |
| flutter test fail | Tự fix, không được skip |
| Spec không rõ | Dừng, hỏi dev — không tự assume |
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub nxhung2204/cc-auto-workflow-plugin --plugin cc-auto-workflow