mirror of
https://github.com/tiennm99/miti99.git
synced 2026-08-04 20:29:09 +00:00
fix(skills): keep user communication in English
This commit is contained in:
@@ -11,6 +11,7 @@ This skill analyzes Hugo blog post content and generates a relevant list of tags
|
||||
- Blog: Vietnamese tech content at `content/post/YYYY/MM/DD/index.md`
|
||||
- Tags: Mix of English (tech terms, tools, concepts) and Vietnamese where natural
|
||||
- Target: **2-3 tags** for regular posts, **6-7 tags** for newsletter posts
|
||||
- User-facing questions and reports: English unless the user explicitly requests another language
|
||||
|
||||
## Workflow
|
||||
|
||||
@@ -29,7 +30,7 @@ Read the frontmatter. Check the `tags` field:
|
||||
|
||||
- **Missing or empty** → generate fresh tags
|
||||
- **Only generic tags** like `["AI-Assisted"]` or `["Newsletter"]` alone → these are placeholders; offer to generate richer tags
|
||||
- **Already has 5+ meaningful tags** → show them and ask: *"Post đã có [N] tags: [...]. Bạn có muốn cập nhật không?"* Default: **yes**
|
||||
- **Already has 5+ meaningful tags** → show them and ask: *"Post already has [N] tags: [...]. Do you want to update them?"* Default: **yes**
|
||||
|
||||
### 3. Analyze post content
|
||||
|
||||
@@ -80,10 +81,10 @@ Produce **2-3 tags** for regular posts, **6-7 tags** for newsletter posts (title
|
||||
Present the proposed tags before writing:
|
||||
|
||||
```
|
||||
Đề xuất tags cho "[post title]":
|
||||
Suggested tags for "[post title]":
|
||||
["Tag1", "Tag2", "Tag3", "Tag4", "Tag5", "Tag6"]
|
||||
|
||||
Bạn có muốn áp dụng không? [Y/n]
|
||||
Apply these tags? [Y/n]
|
||||
```
|
||||
|
||||
Wait for confirmation. If the user says no or wants changes, revise accordingly.
|
||||
@@ -113,6 +114,6 @@ git status --short | grep "content/post/" | awk '{print $2}' | head -1
|
||||
|
||||
If a post file is found and its tags look minimal (only 1-2 tags, or only `AI-Assisted`/`Newsletter`), say:
|
||||
|
||||
> "Post `content/post/.../index.md` chỉ có tags: [...]. Bạn có muốn thêm tags trước khi commit không? [Y/n]"
|
||||
> "Post `content/post/.../index.md` only has these tags: [...]. Add richer tags before committing? [Y/n]"
|
||||
|
||||
Default is **yes** — proceed to generate and confirm tags unless the user declines.
|
||||
|
||||
@@ -75,7 +75,9 @@ If the post has **no `### Bonus`** yet:
|
||||
```
|
||||
When a subsection (e.g. `**Videos:**`) already exists, append under it; otherwise create it. Keep subsections in this order: **Images** → **Videos** → **Documents**.
|
||||
|
||||
## 5. Language guidelines
|
||||
## 5. Post content language guidelines
|
||||
|
||||
These rules apply only to text written into `content/post/**/index.md`. Keep user-facing questions, status updates, reports, and final responses in English unless the user explicitly requests another language.
|
||||
|
||||
**Primary**: Vietnamese (99%) | **Secondary**: English (1% — unavoidable technical terms only)
|
||||
|
||||
|
||||
@@ -6,9 +6,12 @@ Canonical instructions for AI coding tools (Claude Code, OpenCode, Codex) workin
|
||||
|
||||
- **Type**: Hugo static site with Vietnamese tech content
|
||||
- **Theme**: hugo-theme-stack
|
||||
- **Language**: Vietnamese (with common English tech words)
|
||||
- **Post content language**: Vietnamese (with common English tech words)
|
||||
- **User communication**: English by default; use another language only when the user explicitly requests it
|
||||
- **Timezone**: Asia/Ho_Chi_Minh (UTC+7)
|
||||
|
||||
Vietnamese language requirements apply only to content written into Hugo posts, including summaries and localized labels. Keep questions, status updates, reports, and final responses in English unless the user asks for another language.
|
||||
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
|
||||
@@ -9,7 +9,7 @@ Analyze a Hugo blog post and generate relevant tags, then write them to the fron
|
||||
|
||||
Target (optional): `$ARGUMENTS`
|
||||
|
||||
Blog: Vietnamese tech content at `content/post/YYYY/MM/DD/index.md`. Tags: mix of English (tech terms) and Vietnamese where natural.
|
||||
Blog: Vietnamese tech content at `content/post/YYYY/MM/DD/index.md`. Tags: mix of English (tech terms) and Vietnamese where natural. Keep user-facing questions and reports in English unless the user explicitly requests another language.
|
||||
|
||||
## Workflow
|
||||
|
||||
@@ -20,7 +20,7 @@ If `$ARGUMENTS` names a post (date, path, or title), use it. Otherwise use today
|
||||
Read the frontmatter `tags`:
|
||||
- Missing/empty → generate fresh.
|
||||
- Only generic (`["AI-Assisted"]` or `["Newsletter"]`) → placeholders; offer richer tags.
|
||||
- Already 5+ meaningful → show them, ask "Post đã có [N] tags: [...]. Bạn có muốn cập nhật không?" (default yes).
|
||||
- Already 5+ meaningful → show them, ask "Post already has [N] tags: [...]. Do you want to update them?" (default yes).
|
||||
|
||||
### 3. Analyze post content
|
||||
Read the full body. Identify main topics, technologies, languages/frameworks/tools, core concepts, and content type.
|
||||
@@ -34,10 +34,10 @@ Produce **2-3** for regular posts, **6-7** for newsletter posts (title starts wi
|
||||
|
||||
### 5. Confirm with user
|
||||
```
|
||||
Đề xuất tags cho "[post title]":
|
||||
Suggested tags for "[post title]":
|
||||
["Tag1", "Tag2", "Tag3", ...]
|
||||
|
||||
Bạn có muốn áp dụng không? [Y/n]
|
||||
Apply these tags? [Y/n]
|
||||
```
|
||||
Wait for confirmation; revise if requested.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user