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

roadhero · roadhero/claude-code-setup

Kho lưu trữ này chia sẻ một thiết lập Claude Code cấp sản xuất, bao gồm một xương sống kỹ thuật không phụ thuộc stack, các gói quy tắc tự động kích hoạt và 42 subagent có phạm vi cụ thể.

Thiết lập Claude Code thực tế của tôi: một xương sống kỹ thuật không phụ thuộc stack, các gói rule tự động kích hoạt, 50 subagent được phân vùng trên web/Android/iOS/compute, safety hooks và một công cụ tạo cấu trúc repo. Từ cuốn sách "42: The AI Builder's Stack."

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

Xem trước

▍

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

  • Thiết lập môi trường Claude Code với các gói quy tắc cụ thể cho phát triển web, Android hoặc iOS.
  • Triển khai một danh sách các subagent chuyên biệt cho các tác vụ lập trình khác nhau trong quy trình làm việc của tác nhân của bạn.
  • Tích hợp các hook an toàn vào quy trình commit của tác nhân để ngăn chặn mã xấu bị đẩy lên.

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 setup

This is the actual Claude Code configuration I run day to day at EltexSoft: a stack-agnostic engineering "spine," platform-specific rule packs that load per file via path globs, a roster of 42 subagents across four stacks, a commit-guard hook plus an auto-formatter, and a repo scaffolder. It's the same setup I describe in 42: The AI Builder's Stack. Take what's useful.

Most people publish a single CLAUDE.md and call it a setup. The thing that actually makes Claude Code reliable is structure: a global file that never changes, rules that load only when Claude reads a file matching their path globs, agents scoped to one job each, and hooks that stop bad commits before they happen. That's what's here.

What's inside

PathWhat it is
CLAUDE.mdThe universal spine — a lean (~220-line) always-loaded core: workflow, git rules, coding guidelines, secrets, anti-patterns. Stack-agnostic. Longer reference material lives in docs/ and loads on demand.
rules/{web,android,ios,compute}.mdPlatform rule packs. Each carries a paths: frontmatter glob; Claude Code loads a pack when it reads a file matching that glob (*.kt → android, *.swift → ios, *.ts/*.py → web, *.cpp/*.cu → compute). Path-triggered, so packs whose files you never touch stay out of context.
agents/ (15 + explorer)The default subagent roster: the four-hat chain (architect → senior-swe → code-reviewer → qa), plus specialists (security, performance, db-migration, debugger, devops, docs, design), release-engineer + tech-writer, and a delivery layer (TPM, scrum-master). Plus a read-only explorer search utility (cheap model) that the roster and main model delegate reads to — a tool, not counted in the 42-agent roster.
agents-android/ (7), agents-ios/ (7), agents-compute/ (13)Per-stack overrides. Drop them into a repo's .claude/agents/ and they override the generic ones of the same name with platform-brained versions.
hooks/guard-commit.shA Claude Code Bash hook (PreToolUse) that blocks the agent from force-pushing, skipping git hooks with --no-verify, committing as a non-human, writing AI
Xem mã nguồn trên GitHub