wollfoo/codex-cli/claude-opus-best-practices
Claude Code and agent skill by wollfoo/codex-cli
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Best practices khi làm việc với Claude Opus 4.6 trong Claude Code CLI. Bao gồm skill activation, search guidelines, autonomous execution, và subagent orchestration.
Install
npx vskill@latest install wollfoo/codex-cli/claude-opus-best-practicesSKILL.md
The same SKILL.md was published earlier as wollfoo/codex-cli/claude-opus-best-practices.
Claude Opus 4.6 Best Practices
Best practices tối ưu khi làm việc với Claude Opus 4.6 trong Claude Code CLI.
1. Skill Activation Protocol
Nguyên tắc cốt lõi (từ Anthropic)
"Claude's efforts are greatly aided by reading the documentation available in the skill BEFORE writing any code, creating any files, or using any tools."
Quy trình bắt buộc
- Đọc SKILL.md trước - Luôn load skill trước khi thực hiện task
- Multiple skills - Một task có thể cần nhiều skills bổ trợ
- User-provided skills - Ưu tiên skills do user cung cấp
Ví dụ mapping
2. Search Guidelines
Khi NÊN search
| Tình huống | Action | |
|---|---|---|
| Current state có thể thay đổi | Search để verify | |
| Thông tin fast-changing (docs, APIs) | Search ngay | |
| External library usage/versions | Search verify |
Khi KHÔNG NÊN search
| Tình huống | Action | |
|---|---|---|
| Timeless facts (định lý Pythagoras) | Answer trực tiếp | |
| Technical concepts cơ bản | Answer trực tiếp | |
| Code đã có trong codebase | Dùng Grep/Glob |
Scaling Tool Calls
| Complexity | Tool calls | |
|---|---|---|
| Single fact | 1 | |
| Medium tasks | 3-5 | |
| Deep research | 5-10 | |
| Extensive research | Dùng Task tool với subagent_type=Explore |
3. Tool Priority
Thứ tự ưu tiên trong Claude Code CLI:
- Dedicated tools (Read, Edit, Write, Glob, Grep) - Cho file operations
- Bash - Cho system commands, builds, tests
- Task tool - Cho parallel/independent subagent work
- WebSearch / WebFetch - Cho external info
Nguyên tắc quan trọng
- Dùng Read thay vì
cat/head/tail - Dùng Grep thay vì
grep/rg - Dùng Glob thay vì
find/ls - Dùng Edit thay vì
sed/awk
4. Subagent Orchestration (Task Tool)
Khi nào dùng subagents
| Tình huống | Ví dụ | |
|---|---|---|
| Parallel file operations | Convert 5 files cùng lúc | |
| Independent batch work | Test/lint từng module riêng | |
| Research exploration | Tìm hiểu codebase rộng | |
| Context isolation | Giữ main thread sạch |
Khi nào KHÔNG dùng
- Single logical task -> làm trực tiếp
- Edit cùng file -> sequential
- Chưa có plan rõ -> research trước
subagent_type options
- Explore - Cho codebase research, exploration
- Default - Cho implementation tasks
5. Autonomous Execution Patterns
Self-driven workflow
Auto-decision cho
- Implementation details, naming, code style
- File organization, error handling
- Library choice (built-in > popular > niche)
Gate-check (PHẢI confirm user)
- Delete files/data
- DB migration/schema changes
- Auth/Security changes
- External API with cost
6. File Reading & Code Analysis
Pattern hiệu quả
- Glob để tìm files theo pattern
- Grep để tìm content trong files
- Read để đọc full file content
- Task(Explore) cho broad codebase research
Tips
- Đọc file trước khi edit (bắt buộc)
- Dùng parallel tool calls cho independent reads
- Limit output cho files lớn (offset + limit params)
7. MCP Server Integration
Claude Code hỗ trợ MCP (Model Context Protocol) servers:
- Configured trong
.mcp.jsonhoặc settings - Cung cấp specialized tools beyond built-in set
- Prefer MCP tools khi available cho specific tasks
8. Critical Notes
- Skill-first approach - Đọc SKILL.md trước khi làm bất cứ gì
- Dedicated tools first - Ưu tiên Read/Edit/Grep/Glob over Bash
- Scale appropriately - Đừng over-search, đừng under-search
- Verify before claiming - Không claim completion mà không evidence
- Parallel when possible - Dùng parallel tool calls và subagents cho independent work
Nguồn: Best practices cho Claude Opus 4.6 trong Claude Code CLI environment.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-opus-best-practices/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wollfoo/codex-cli/claude-opus-best-practices)