Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
SkillAn toànQuy trình & bộ nhớ agentNâng cao

claude-code-insights

dianyike · dianyike/claude-code-insights

Hướng dẫn toàn diện này cung cấp những hiểu biết sâu sắc về Claude Code, bao gồm kiến trúc CLAUDE.md, cách viết Skills và điều phối Subagent với các ví dụ thực tế có sẵn.

中文社群最完整的 Claude Code 進階指南 — 涵蓋 CLAUDE.md 架構設計、Skills 撰寫、Subagent 編排,附可直接使用的實戰範例。

69 sao12Giấy phép: MITCập nhật 6 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Hiểu kiến trúc ba lớp và các phương pháp hay nhất để thiết kế tệp CLAUDE.md.
  • Học cách viết Skills nâng cao cho Claude, bao gồm nguyên tắc viết nội dung và mẫu thiết kế.
  • Điều phối nhiều subagent cho các quy trình làm việc phức tạp bằng kiến trúc Hub-and-Spoke.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Claude Code Insights

English | 繁體中文

The most comprehensive advanced Claude Code guide in the Chinese-speaking community — covering CLAUDE.md architecture, Skills authoring, Subagent orchestration, with ready-to-use practical examples.

Maintained by dianyike / 典億創研工作室. Freelance engineer specializing in web development, web scraping automation, and API integration. This repo is a distillation of my real-world experience using Claude Code in client projects.

Website · Threads · Contact

Who Is This For

You are...Start hereWhat you'll get
New to Claude CodeCLAUDE.md GuideUnderstand the three-layer architecture, Hooks, and how to avoid common anti-patterns
Experienced, looking to level upSkills Guide → Subagent GuideHub-and-Spoke architecture, decision matrices, black-box problem solutions
Freelancer / Solo developerPractical Examples: grill-me → write-prd → prd-to-plan → tddA complete workflow from design interrogation to TDD implementation

Contents

FileDescriptionAudience
claude-md-best-practices.mdCLAUDE.md Best Practices — why not to use /init, the three-layer architecture model, Hooks over directives, anti-patternsBeginners
skills-best-practices.mdSkills Best Practices — file format, loading mechanics, content writing principles, advanced patterns, design templatesAdvanced
subagent-best-practices.mdSubagent Best Practices — the black-box problem and solutions, result persistence, tool scoping strategies, architectural patternsAdvanced

The three guides cross-reference each other. Recommended reading order: CLAUDE.md → Skills → Subagent.

Practical Examples

Subagent Examples

ExampleDescriptionDifficulty
examples/security-reviewerDual-verification security audit — read-only /security:review (Semgrep + Codex cross-validation, confidence scoring) + opt-in /security:fix (convergence-hardened Fix-Verify Loop with falsifiable predictions, tiered rollback, hypothesis ledger). Strict review/fix boundary: review is always read-only; fix requires explicit user opt-in and runs in main conversation. Implements Harness Engineering methodologyAdvanced

Hook Examples

ExampleDescriptionDifficulty
examples/npm-supply-chain-defensenpm supply chain three-layer defense — .npmrc script blocking + PreToolUse Hook checks (registry, OSV.dev, version resolution, CLI syntax validation) + Semgrep supply chain scanning. Includes 42 regression testsAdvanced

Rules Examples

ExampleDescriptionDifficulty
examples/rulesProduction-tested .claude/rules/ starter kit — 6 rule files + localization template. Features a pragmatism layer (risk-tier meta-rule that scopes enforcement), violation signals for self-detection, and a "Why" line on every rule so Claude follows intent, not just the letter. Ready to copy into any project.Beginner

Skills Examples

The following Skills are adapted from mattpocock/skills, reworked with templates extracted to templates/, reference materials moved to reference/, and Gotchas sections added.

ExampleDescriptionUse Case
examples/grill-meDesign Interrogation — traverses every branch of a decision tree, resolving design decision dependencies one by onePre-coding design stress test
examples/write-prdWrite PRD — turns design decisions or rough ideas into a structured requirements document, bridging grill-me and prd-to-planRequirements authoring and structuring
examples/tddTDD Workflow — red-green-refactor vertical slices with test examples, mock guidelines, and deep module design referenceFeature development and bug fixes
examples/prd-to-planPRD to Implementation Plan — breaks requirements into tracer bullet vertical slices, outputs to ./plans/, with optional Codex review for high-risk plansRequirements decomposition and phase planning
examples/write-a-skillSkill Builder Meta-Skill — content type decisions, invocation control, security configuration, Gotchas iteration loop. Includes eval workflow referenceCreating new Skills
examples/skill-eval-toolkitSkill Eval Toolkit — eval-driven testing, quantitative benchmarking, blind A/B comparison, description trigger optimization, and SKILL.md body autopilot keep/revert loopValidating and optimizing existing Skills

Solo Development Workflow: /grill-me (interrogate the design) → /write-prd (write the PRD) → /prd-to-plan (break into phases, optionally review with Codex) → /tdd (implement one by one)

Skill Development Workflow: /write-a-skill (author the skill) → /skill-eval-toolkit (evaluate and optimize)

write-prd — PRD Authoring Skill

Fills the gap between /grill-me and /prd-to-plan — turns design decisions or rough ideas into a structured PRD:

  • One-question-per-turn structured interview (target user → success state → non-goals)
  • Enforces P0/P1/P2 priority tiers, References citing decision records, docs/prds/ output convention
  • Stays at product / system-contract level — n
Xem mã nguồn trên GitHub