.claude/agents/class-diagram-analyst/SKILL.md
Class Structure Analyst chuyên về Class Diagram theo chuẩn dual-format (Mermaid + YAML Contract) cho PayloadCMS/MongoDB. Kích hoạt khi cần tạo class diagram từ sequence diagram hoặc chạy pipeline UML stage 3. Đầu ra: Docs/life-2/diagrams/class/{module}/class-{module}.md + class-{module}.yaml
npx skillsauth add vuthuonghai-steve/KLTN-By_Thuong_Hai-Steve class-diagram-analystInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
🚨 MỆNH LỆNH BẮT BUỘC TỪ HỆ THỐNG (CRITICAL DIRECTIVE): Bạn CHỈ MỚI ĐỌC file
SKILL.mdnày. Trí tuệ của bạn chưa được nạp đầy đủ. Hệ thống KHÔNG tự động nạp các file kiến thức khác trong thư mục. Bạn BẮT BUỘC PHẢI sử dụng toolReadhoặcGlobhoặcBash(ls) để QUÉT VÀ ĐỌC TRỰC TIẾP nội dung các file trong các thư mụcknowledge/,templates/,scripts/hoặcloop/của bạn TRƯỚC KHI bắt đầu làm bất cứ nhiệm vụ nào. Tuyệt đối không được đoán ngữ cảnh hoặc tự bịa ra kiến thức nếu chưa tự mình gọi tool đọc file!
[sequence-design-analyst-agent] → [class-diagram-analyst-agent] → [activity-diagram-design-analyst-agent]
↓ ↓
Docs/life-2/diagrams/sequence/ Docs/life-2/diagrams/class/
| Loại | Path | Bắt buộc | Mô tả |
|------|------|----------|-------|
| file | Docs/life-2/diagrams/sequence/{module}/*.md | ✅ Có | Sequence diagrams |
| file | Docs/life-2/database/schema-design.md | ❌ | Schema reference |
| Loại | Path | Format |
|------|------|--------|
| index | Docs/life-2/diagrams/class/index.md | markdown |
| detail | Docs/life-2/diagrams/class/{module}/index.md | markdown |
| detail | Docs/life-2/diagrams/class/{module}/class-{module}.md | markdown |
| contract | Docs/life-2/diagrams/class/{module}/class-{module}.yaml | yaml |
Docs/life-2/diagrams/class/
├── index.md # File tổng quan
└── {module}/
├── index.md # Module index
├── class-{module}.md # Mermaid class diagram
└── class-{module}.yaml # YAML Contract (LOCKED)
# Class Diagram — {Module}
## Entities
```mermaid
classDiagram
class User {
+string id
+string email
+string passwordHash
+Date createdAt
+beforeChange()
+afterChange()
}
class Post {
+string id
+string title
+string content
+relation author
}
User "1" --o "many" Post : authors
| Field | Type | Source | Notes | |-------|------|--------|-------| | id | string | schema | Primary key | | email | string | schema | Unique |
| Field | Source | Assumption? | |-------|--------|--------------| | ... | er-diagram.md | No |
### class-{module}.yaml (Contract)
```yaml
# ⚠️ LOCKED CONTRACT — DO NOT EDIT MANUALLY
# Generated by Class Diagram Analyst
meta:
module: {module}
module_name: {module_name}
skill_version: "1.0"
generated_at: {timestamp}
sources_consumed:
- Docs/life-2/diagrams/sequence/{module}/
- Docs/life-2/database/schema-design.md
entities:
- slug: user
display_name: User
payload_collection: users
aggregate_root: true
fields:
- name: id
type: text
source: schema-design.md
behaviors:
- name: beforeChange
trigger: validation
- name: afterChange
trigger: denormalization
access_control:
read: anyone
create: authenticated
update: owner
delete: owner
validation_report:
total_fields: {n}
fields_with_source: {n}
fields_as_assumption: 0
unresolved: []
.claude/skills/class-diagram-analyst/SKILL.mdpayload-types.md, mongodb-patterns.md, module-map.yaml<<Collection>>, <<EmbeddedDoc>>, <<ValueObject>>tools
Automates end-to-end drawing of UI screens in Pencil canvas from module spec files. Reads spec file → generates wireframe blueprint → draws each screen using Pencil MCP tools. Triggers when user provides a UI spec path and asks to draw, generate, or auto-build screens for Steve Void modules M1–M6 in STi.pen.
testing
Extracts UI Screen Specs by analyzing Schema and Diagrams. Use when you need to bridge database logic and flow diagrams into intermediate UI component specifications for a given module. Trigger when user says "analyze UI for module X", "generate ui spec", "phân tích UI module", or invokes "ui-architecture-analyst --module M[X]".
development
Giải thích lỗi TypeScript một cách dễ hiểu bằng tiếng Việt. Sử dụng khi gặp lỗi type, generic, inference, hoặc bất kỳ lỗi TS nào cần được giải thích rõ ràng.
development
Skill phan tach yeu cau/tinh nang thanh cac phase, task va subtask cu the. Tao bo tai lieu planning clean, khong chua code mau, tap trung mo ta logic va nghiep vu. Su dung khi: (1) nhan yeu cau tinh nang moi can lap ke hoach, (2) co tai lieu nghien cuu can chuyen thanh task plan, (3) nguoi dung yeu cau phan tach cong viec, (4) can tao roadmap trien khai cho du an/tinh nang. Trigger: /task-planner, /plan-tasks, "phan tach task", "lap ke hoach", "tao plan", "chia phase".