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-practices

SKILL.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
  1. Đọc SKILL.md trước - Luôn load skill trước khi thực hiện task
  2. Multiple skills - Một task có thể cần nhiều skills bổ trợ
  3. User-provided skills - Ưu tiên skills do user cung cấp
Ví dụ mapping
User: "Tạo API endpoint mới"
-> Load: api-development/SKILL.md
User: "Fix lỗi test failures"
-> Load: testing/SKILL.md
User: "Refactor module X song song"
-> Load: task-subagents/SKILL.md

2. Search Guidelines

Khi NÊN search
Tình huốngAction
Current state có thể thay đổiSearch để verify
Thông tin fast-changing (docs, APIs)Search ngay
External library usage/versionsSearch verify
Khi KHÔNG NÊN search
Tình huốngAction
Timeless facts (định lý Pythagoras)Answer trực tiếp
Technical concepts cơ bảnAnswer trực tiếp
Code đã có trong codebaseDùng Grep/Glob
Scaling Tool Calls
ComplexityTool calls
Single fact1
Medium tasks3-5
Deep research5-10
Extensive researchDùng Task tool với subagent_type=Explore

3. Tool Priority

Thứ tự ưu tiên trong Claude Code CLI:

  1. Dedicated tools (Read, Edit, Write, Glob, Grep) - Cho file operations
  2. Bash - Cho system commands, builds, tests
  3. Task tool - Cho parallel/independent subagent work
  4. 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ốngVí dụ
Parallel file operationsConvert 5 files cùng lúc
Independent batch workTest/lint từng module riêng
Research explorationTìm hiểu codebase rộng
Context isolationGiữ 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
User Request / Bug Report / CI Failure
|
v
Analyze -> Plan -> Execute -> Verify
(không hỏi lại user cho non-critical decisions)
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ả
  1. Glob để tìm files theo pattern
  2. Grep để tìm content trong files
  3. Read để đọc full file content
  4. 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.json hoặc settings
  • Cung cấp specialized tools beyond built-in set
  • Prefer MCP tools khi available cho specific tasks

8. Critical Notes

  1. Skill-first approach - Đọc SKILL.md trước khi làm bất cứ gì
  2. Dedicated tools first - Ưu tiên Read/Edit/Grep/Glob over Bash
  3. Scale appropriately - Đừng over-search, đừng under-search
  4. Verify before claiming - Không claim completion mà không evidence
  5. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/wollfoo/codex-cli/claude-opus-best-practices/badge)](https://verified-skill.com/skills/wollfoo/codex-cli/claude-opus-best-practices)

Something wrong with this skill or its page? Tell us.