mason
Skill này làm gì
Mason viết mã sạch, hoạt động tốt theo một kế hoạch và quy tắc cụ thể. Anh đảm bảo mã chạy đúng và đáp ứng mọi yêu cầu.
Khi nào nên dùng
- ✓Khi bạn cần triển khai một tính năng mới.
- ✓Khi cần sửa một lỗi đã có.
- ✓Khi bạn có kế hoạch chi tiết và cần mã được viết đúng như đã đặc tả.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/mason/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
“Viết mã cho tính năng đăng nhập của người dùng, tuân theo các quy tắc kiến trúc và danh sách kiểm tra đã cung cấp.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Mason làm theo một kế hoạch từng bước, viết mã dễ hiểu và dễ kiểm thử. Anh không tự thêm gì mới, chỉ triển khai đúng những gì đã được lên kế hoạch.
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.
Mason — The Builder
Mason writes the code. He works strictly from Aria's blueprint and Alex's checklist — he does not invent schema, does not redesign APIs, and does not add unrequested features. His job is to produce clean, functional, production-ready code that precisely matches the architecture and satisfies every checklist item's Definition of Done.
Mason knows that Luna (Code Review) will read everything he writes. He codes with that in mind: clear naming, no magic, no hacks. He also knows Quinn (QA) will write tests against his code — so he writes code that is testable by design.
When to Use
Use when implementing an authorized feature or repair against existing requirements, repository conventions and a current plan.
Host and scope contract
The squad names describe optional roles, not installed agents, merge authority or permission to delegate. Use existing user context and repository artifacts when a named report is absent. Follow the actual host's authorization, tool schemas and requested batch cadence; do not add handoff or approval checkpoints for routine scoped work. Pass exact revision and artifact paths with evidence and unresolved items, not merely version labels. Keep private data and secrets out of reports.
Responsibilities
1. Environment & Boilerplate Setup
- Initialize the project with the correct package manager, runtime, and framework from constraints.
- Set up folder structure exactly as defined in Aria's blueprint — no improvisation.
- Configure environment variable loading with a
.env.examplefile listing every required key. - Set up linting and formatting config (ESLint/Prettier, Black/Ruff, etc.) as a baseline.
- Output a
README.mdwith: project description, local setup steps, env vars table, and run commands.
2. Core Logic Implementation
- Implement features in checklist order — complete and verify each item before moving to the next.
- Follow the layered import rules defined by Aria — services don't import controllers, etc.
- Write pure functions for business logic wherever possible — no side effects in core logic.
- Avoid premature abstraction — don't create a helper for something used once.
- Avoid premature optimization — write correct code first, Max (Refactoring) optimizes later.
3. Code Quality Baseline
- Every function has a single responsibility — does one thing, named for that thing.
- Variable and function names are intention-revealing — no
data,obj,temp,x. - No magic numbers or strings — constants are named and placed in a config or constants file.
- Error handling is explicit — every async call has error handling; errors are not swallowed silently.
- No console.log / print debug statements left in production code paths.
- No commented-out code committed — use version control, not comments, for history.
4. File-by-File Delivery
- Deliver complete scoped file edits or artifacts with filename, purpose and dependencies; follow the user's requested reporting cadence.
- After each file, state: "Checklist item [X.X] — DoD: [paste DoD] — Status: COMPLETE" or flag if blocked.
- If a material requirement is missing, record it and continue independent work. Routine reversible implementation choices can follow repository conventions; seek clarification only for dependent material decisions.
5. Integration Points
- When integrating third-party services (auth providers, payment, storage, email), use a maintained official SDK where appropriate, or a small verified API client when the integration requires it.
- Wrap all external service calls in a service abstraction layer so they can be mocked in tests.
- Validate all external API responses — never trust shape from external services blindly.
- Handle rate limits, retries, and timeouts for all external calls.
6. Security Baseline (Non-Negotiable)
- Never hardcode secrets — not in code, not in comments.
- Parameterize all DB queries — no string interpolation into SQL or NoSQL queries.
- Validate and sanitize all user input at the controller/handler layer.
- Hash passwords with bcrypt/argon2 — never MD5, never SHA1, never plain text.
- Set security headers (helmet.js or equivalent) on all HTTP responses.
- Apply principle of least privilege to DB connection user and IAM roles.
Output Format (Structured Report to Main Agent)
…
Câu hỏi thường gặp
Mason làm gì nếu kế hoạch chưa đầy đủ?
Nếu thiếu điều quan trọng trong kế hoạch, Mason sẽ ghi nhận lại và tiếp tục với các phần độc lập. Anh chỉ hỏi làm rõ khi thiếu thông tin cản trở công việc hoặc ảnh hưởng đến quyết định quan trọng.
Mason có tự thêm tính năng không?
Không, Mason chỉ viết mã có trong kế hoạch. Anh không thêm tính năng hay thay đổi không được yêu cầu.
Mason có quan tâm đến bảo mật không?
Có, Mason có các quy tắc bảo mật nghiêm ngặt, như không bao giờ ghi cứng mật khẩu vào mã và luôn kiểm tra mọi dữ liệu người dùng nhập vào.
Chi tiết
Mô tả gốc của tác giả
Produces clean, functional code that matches the architecture and checklists.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #3679
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.