This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标很明确: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。
git clone https://github.com/huangjia2019/claude-code-engingeering.gitThis repository contains curriculum materials and runnable projects for the GeekBang course 'Claude Code Engineering in Practice.' It demonstrates how to transform Claude Code from a conversational coding tool into a designable, reusable, and governed engineering system. The course covers 23 lectures organized across five sections: fundamentals, sub-agents, skills system, extension mechanisms, and production workflows. Each lecture includes practical projects covering code review agents, testing pipelines, multi-agent collaboration, hooks for event-driven automation, MCP protocol integration, headless CI/CD integration, and plugin packaging. The repository also hosts 226 code snippets from the accompanying published book 'Claude Code in Practice,' organized by chapter.
["1. **Prepare Your Data**: Gather your team’s email domains, assignment rules (e.g., geographic regions), and email templates. Ensure you have admin access to Sortd for Gmail and Gmail’s API permissions enabled.","2. **Run the Automation Script**: Use Claude Code to execute a script that automates the Sortd board setup. Example command: `claude run --automate-sortd-setup --project-name \"Acme Corp Sales\" --team-name \"Sales Team\" --columns \"New,Qualified,Proposal Sent,Negotiation,Closed\"`.","3. **Configure Workflows**: Define your assignment rules (e.g., route US leads to John, EMEA leads to Sarah) and set up AI urgency detection for keywords like \"urgent\" or \"deadline\". Use Sortd’s \"Automation Rules\" feature to create these workflows.","4. **Test the System**: Send test emails to the shared inbox and verify that leads are correctly assigned, templates are triggered, and urgency detection works. Adjust rules as needed.","5. **Train Your Team**: Schedule a 30-minute training session to walk the team through the new board structure, automation rules, and email templates. Provide a quick-reference guide for common tasks like moving cards or updating statuses."]
Building production-grade AI agent systems with Claude Code
Implementing multi-agent workflows with role-based isolation and coordination
Creating reusable skills and command systems for team standardization
Integrating event-driven hooks for automated quality gates and safety checks
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/huangjia2019/claude-code-engingeeringCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use Claude Code to automate the setup of a [PROJECT_NAME] project in Sortd for Gmail. Create a shared inbox board for [TEAM_NAME] with [NUMBER_OF_COLUMNS] columns (e.g., 'New', 'In Progress', 'Waiting for Client', 'Closed Won', 'Closed Lost'). Include automated workflows for [WORKFLOW_TASKS] such as assigning leads to team members based on [ASSIGNMENT_RULES], setting up email templates for [EMAIL_TEMPLATES], and configuring AI-powered urgency detection for [URGENCY_CRITERIA]. Generate a step-by-step guide for the team to adopt this system within [TIMEFRAME].
### Automated Sortd for Gmail Setup for Acme Corp Sales Team **Project Overview:** Acme Corp’s sales team requested an automated Sortd workspace to manage their lead pipeline directly from Gmail. The goal was to reduce response times, improve lead tracking, and ensure no inquiries fell through the cracks. Using Claude Code, we automated the creation of a shared inbox board with five columns: *New*, *Qualified*, *Proposal Sent*, *Negotiation*, and *Closed*. The system was configured to assign leads to team members based on geographic regions (North America, EMEA, APAC) and set up automated email templates for initial outreach, follow-ups, and proposal requests. AI-powered urgency detection was enabled to flag emails containing keywords like "urgent", "ASAP", or "deadline" for immediate attention. **Board Structure:** - **New:** Incoming sales inquiries from the company website and demo requests. - **Qualified:** Leads that met the BANT criteria (Budget, Authority, Need, Timeline) after a 15-minute qualification call. - **Proposal Sent:** Automatically moved here when a proposal was generated using HubSpot’s integration. - **Negotiation:** Deals in the final stages of negotiation, with a 7-day SLA for responses. - **Closed:** Won or lost deals, with a 30-day follow-up reminder for lost deals. **Automation Rules:** 1. **Lead Assignment:** Incoming emails from [@acmecorp.com] were automatically assigned to the North America team (e.g., [email protected] for US leads, [email protected] for Canadian leads). Emails from [@acmecorp.co.uk] were routed to the EMEA team. 2. **Email Templates:** Three templates were created: - **Initial Outreach:** A personalized email sent within 1 hour of lead capture, including a Calendly link for a discovery call. - **Follow-Up:** A 3-day follow-up email sent to leads who hadn’t responded to the initial outreach. - **Proposal Request:** An email sent when a lead requested a proposal, with a link to a Google Drive folder containing the proposal. 3. **Urgency Detection:** Emails containing phrases like "urgent" or "deadline" were automatically moved to the top of the *New* column and assigned to the team lead (e.g., [email protected]). **Team Adoption Guide:** 1. **Day 1:** Team members attended a 30-minute training session on Sortd’s kanban board features and automation rules. Each member was assigned their first 5 leads to review and qualify. 2. **Day 3:** The team tested the email templates by sending mock proposals to internal stakeholders. Feedback was collected and templates were refined. 3. **Week 1:** The team began using the system for all new leads. The AI urgency detection flagged 12 emails as high-priority, all of which were responded to within 2 hours. 4. **Week 2:** The team reported a 40% reduction in response times and a 25% increase in qualified leads. The shared inbox board became the single source of truth for the sales pipeline. **Results After 30 Days:** - **Response Time:** Average response time dropped from 12 hours to 2.5 hours. - **Lead Qualification Rate:** Increased from 30% to 55% due to automated BANT criteria checks. - **Deal Closure Rate:** Improved by 15% as follow-ups were more consistent. - **Team Satisfaction:** 90% of team members reported feeling more organized and less stressed. **Next Steps:** - Integrate Sortd with HubSpot to sync deal stages automatically. - Expand the system to include customer support tickets using AI-powered categorization. - Train new hires on the system using the automated onboarding checklist created in Sortd.
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan