Logo Agent Engineering Handbook

Agent Engineering Handbook

Cộng đồng
d-padmanabhan

Engineering handbook for AI coding agents - rules, skills, slash commands, MCP server, and hooks for Cursor, Claude Code, and Codex

Nhà phát hànhd-padmanabhan
Kho mãagent-engineering-handbook
Ngôn ngữPython
Bản fork
2
Sao
17
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Agent Engineering Handbook cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    17 sao và 2 bản fork từ kho mã được liên kết.

Agent Engineering Handbook

Rules, Agent Skills, commands, hooks, evaluation tooling, and an MCP server for AI-assisted software engineering.

License: MIT

This repository contains 52 Cursor rule files, 54 Agent Skills, 19 custom Cursor commands, and 32 behavioral eval suites covering software design, languages, cloud platforms, infrastructure, security, identity, data, AI systems, and documentation.

The content is organized for progressive disclosure:

  • Rules provide concise mandatory gates that apply automatically, by file scope, or when selected.
  • Skills provide detailed workflows, examples, references, and verification procedures.
  • Commands provide manually invoked Cursor workflows.
  • Hooks provide deterministic checks around agent activity.
  • Evals measure whether skills improve behavior.
  • The MCP server exposes handbook rules through the Model Context Protocol.

Contents

Start Here

  1. Clone or update this repository.
  2. Resolve the checkout's absolute path.
  3. Link each handbook surface into its matching Cursor user directory.
  4. Run the repository's setup or validation commands.
  5. Keep project-specific exceptions in the target repository rather than modifying shared handbook policy.

From the handbook checkout, resolve the absolute source path:

bash
cd "/absolute/path/to/agent-engineering-handbook"
export HANDBOOK_ROOT="$(pwd -P)"
mkdir -p "${HOME}/.cursor"

On a new Cursor installation, link each repository directory to the corresponding Cursor user path:

bash
ln -s "${HANDBOOK_ROOT}/rules" "${HOME}/.cursor/rules"
ln -s "${HANDBOOK_ROOT}/skills" "${HOME}/.cursor/skills"
ln -s "${HANDBOOK_ROOT}/commands" "${HOME}/.cursor/commands"
ln -s "${HANDBOOK_ROOT}" "${HOME}/.cursor/agent-engineering-handbook"

The first three links make rules, skills, and commands discoverable in their actual Cursor home locations. The final stable-root link supports portable ${HANDBOOK_ROOT}/... references used inside handbook content. Before running these commands, confirm that none of the destination paths already contains user configuration. Use the merge-safe installation below when a destination already exists.

Rules and Skills

Cursor project rules live under .cursor/rules/. Current rule activation fields are description, globs, and alwaysApply. This repository also uses title and numeric priority as catalog metadata; do not assume Cursor uses them for activation order.

Cursor project skills live in .cursor/skills/ or .agents/skills/; user skills live in ~/.cursor/skills/ or ~/.agents/skills/. Cursor also discovers compatible skill directories used by Claude Code and Codex. This repository's portable skill contract requires name and description.

ConcernRulesSkills
PurposeMandatory constraints and routingWorkflows, examples, references, and procedures
Typical location.cursor/rules/*.mdc.cursor/skills/*/SKILL.md or .agents/skills/*/SKILL.md
SelectionalwaysApply, globs, description-based selection, or explicit useAutomatic selection or /skill-name
Context costKeep concise, especially when always appliedLoad only when the task matches
Repository policyOne canonical owner for each mandatory gateRoute to the owning rule instead of duplicating policy

Other supported instruction surfaces include:

  • root or nested AGENTS.md files;
  • local User Rules under ~/.cursor/rules;
  • account-synced User Rules configured in Cursor;
  • Team Rules managed through the Cursor dashboard.

The legacy .cursorrules file is still recognized during migration but is marked for deprecation. Do not use the undocumented rulesDirectory or rules: YAML shapes previously shown by this README. Migrate legacy content to .cursor/rules/*.mdc, AGENTS.md, or Agent Skills.

Current Cursor references:

Install for Cursor

Merge-Safe User Installation

If ~/.cursor/rules, ~/.cursor/skills, or ~/.cursor/commands already exists, preserve it and link individual handbook entries:

bash
cd "/absolute/path/to/agent-engineering-handbook"
export HANDBOOK_ROOT="$(pwd -P)"
mkdir -p "${HOME}/.cursor/rules" \
  "${HOME}/.cursor/skills" \
  "${HOME}/.cursor/commands"
shopt -s nullglob

for source in "${HANDBOOK_ROOT}"/rules/*.mdc; do
  destination="${HOME}/.cursor/rules/$(basename "${source}")"
  test -e "${destination}" || test -L "${destination}" || ln -s "${source}" "${destination}"
done

for source in "${HANDBOOK_ROOT}"/skills/*; do
  if [[ ! -f "${source}/SKILL.md" ]]; then
    continue
  fi
  destination="${HOME}/.cursor/skills/$(basename "${source}")"
  test -e "${destination}" || test -L "${destination}" || ln -s "${source}" "${destination}"
done

for source in "${HANDBOOK_ROOT}"/commands/*.md; do
  if [[ "$(basename "${source}")" == "README.md" ]]; then
    continue
  fi
  destination="${HOME}/.cursor/commands/$(basename "${source}")"
  test -e "${destination}" || test -L "${destination}" || ln -s "${source}" "${destination}"
done

Existing destinations are left unchanged. Review any skipped name collision manually; do not overwrite unrelated user configuration.

Bootstrap a Project Workspace

The setup script creates workspace context files and can link the repository's rule directory into a target workspace:

bash
"${HANDBOOK_ROOT}/setup-workspace.sh" \
  --symlink-all \
  --lightweight \
  --ensure-gitignore \
  .

This symlink layout is a handbook convention for local workspaces. Cursor documentation explicitly supports skill discovery through symlinked directories, but does not guarantee every rule-symlink topology. If rule discovery does not work in the installed Cursor version, use the copy fallback below.

Option 2: Copy Rules into a Project

Copy all rules:

bash
mkdir -p .cursor/rules
cp "${HANDBOOK_ROOT}/rules/"*.mdc .cursor/rules/

Or copy only the rules required by the project:

bash
mkdir -p .cursor/rules
cp "${HANDBOOK_ROOT}/rules/100-core.mdc" .cursor/rules/
cp "${HANDBOOK_ROOT}/rules/200-python.mdc" .cursor/rules/
cp "${HANDBOOK_ROOT}/rules/310-security.mdc" .cursor/rules/

Copy the files again when the handbook changes, or automate a reviewed synchronization process.

Install Skills

The Cursor CLI changelog documents skill discovery through symlinked directories:

bash
mkdir -p .cursor
ln -s "${HANDBOOK_ROOT}/skills" .cursor/skills

Copying is the portable fallback:

bash
mkdir -p .cursor/skills
cp -R "${HANDBOOK_ROOT}/skills/." .cursor/skills/

For Codex-native project discovery, use .agents/skills/. Claude Code commonly uses .claude/skills/. Verify client-specific installation and precedence against current vendor documentation.

Create a Project Rule

Use supported file-scoped frontmatter:

markdown
---
description: Python API conventions for this project
globs:
  - "src/api/**/*.py"
alwaysApply: false
---

# Python API Conventions

- Validate request data before policy or business logic.
- Keep project-specific exceptions narrow and documented.

Place the file under .cursor/rules/, for example .cursor/rules/python-api.mdc.

Custom Commands

The commands/ directory contains 19 Cursor custom command files. Copy them only when command-based workflows are desired:

bash
mkdir -p .cursor
cp -R "${HANDBOOK_ROOT}/commands" .cursor/commands

Cursor still supports .cursor/commands, but reusable commands can be migrated to manually invoked Agent Skills with /migrate-to-skills. Names such as /plan and /review can collide with Cursor built-ins; confirm the selected command in the UI or rename the local file.

CommandPurpose
/initInitialize work and classify complexity
/planDesign an implementation before editing
/creativeExplore alternatives for complex design decisions
/qaValidate dependencies, configuration, and environment
/buildImplement an approved plan
/reviewReview completed implementation
/self-reviewReview local branch changes against the base
/quick-reviewRun a focused critical-issue review
/check-progressFix clear issues and summarize progress
/code-commitRun the controlled commit and push workflow with approval gates
/archiveRecord lessons and archive completed complex work
/awsApply AWS guidance
/bashApply Bash guidance
/ghaApply GitHub Actions guidance
/goApply Go guidance
/javascriptApply JavaScript and TypeScript guidance
/markdownApply Markdown guidance
/pythonApply Python guidance
/terraformApply Terraform guidance

Typical workflow:

text
Simple:  /init -> /build -> /review
Planned: /init -> /plan -> /qa -> /build -> /review
Complex: /init -> /plan -> /creative -> /qa -> /build -> /review -> /archive

See the command reference for installation details and command-specific behavior.

Hooks

Cursor hook configuration locations include:

  • project hooks: .cursor/hooks.json;
  • user hooks: ~/.cursor/hooks.json.

Install the optional local hook pack:

bash
./scripts/cursor-hooks-install.sh --project .

The hook pack gates selected destructive shell behavior and records bounded audit events. Review the generated configuration and scripts before enabling them in another repository.

See the hooks guide and Cursor hook pack.

MCP Server

The repository includes a local stdio MCP server that exposes handbook rules. Build and link it:

bash
cd mcp/cursor-rules-mcp
npm install
npm run build
npm link

Configure Cursor in .cursor/mcp.json or ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "agent-engineering-handbook": {
      "command": "cursor-rules-mcp",
      "env": {
        "CURSOR_RULES_PATH": "/absolute/path/to/agent-engineering-handbook/rules"
      }
    }
  }
}

Claude Desktop uses the same server definition inside ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "agent-engineering-handbook": {
      "command": "cursor-rules-mcp",
      "env": {
        "CURSOR_RULES_PATH": "/absolute/path/to/agent-engineering-handbook/rules"
      }
    }
  }
}

The server currently uses a maintained topic map rather than automatic filesystem discovery. Update and test that map when rules are added or renamed.

See the MCP server reference for tools, development commands, and troubleshooting.

Rule Highlights

The repository currently contains 52 .mdc rule files. The following list highlights common entry points; the rule index is authoritative.

Workflow and Core Engineering

Languages and Application Design

Security and Identity

Cloud and Infrastructure

Data, AI, and Documentation

Skill Catalog

The repository currently contains 54 skill packages. Each directory listed below contains a SKILL.md.

Engineering and Languages

Security and Identity

Cloud, Infrastructure, and Delivery

Data Engineering

AI and Analysis

Documentation and Artifacts

Skill Maintenance

Skill Evaluation

The dependency-free Agent Skills eval harness validates all skill metadata and the 32 available behavioral suites. Model-backed comparisons use an external command adapter; pull-request CI runs deterministic validation and unit tests without model credentials.

Current behavioral suites:

Run deterministic validation:

bash
uv run python -m evals.skill_eval validate
uv run python -m unittest discover -s evals/tests -v

See the eval harness documentation for adapter limits, paired comparisons, output redaction, and artifact handling.

Repository Utilities

Preview and run Cursor cache cleanup:

bash
./scripts/cursor-maintenance.sh --dry-run
./scripts/cursor-maintenance.sh

Run repository checks:

bash
pre-commit run --all-files
uv run python -m evals.skill_eval validate
uv run python -m unittest discover -s evals/tests -v

Current runtime and toolchain requirements are owned by the relevant rule or skill and should be verified against the deployment target before adoption. Do not treat a version number in this README as an evergreen recommendation.

Contributing

Contributions should keep mandatory rules concise, place procedures and examples in skills, update affected evals, and preserve safe runnable examples. See the contribution guide.

Acknowledgments

The repository drew ideas from:

The command-based workflow was suggested by @DaKaZ.

Related references:

License

Licensed under the MIT License. See LICENSE.

Cài đặt

TypingMind
{
  "mcpServers": {
    "agent-engineering-handbook": {
      "command": "cursor-rules-mcp",
      "args": []
    }
  }
}

Dùng MCP Agent Engineering Handbook với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Agent Engineering Handbook, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Agent Engineering Handbook làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Agent Engineering Handbook.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "agent-engineering-handbook": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Agent Engineering Handbook, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Agent Engineering Handbook.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Agent Engineering Handbook giúp tôi làm việc này không?
Agent Engineering Handbook
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Agent Engineering Handbook.

Câu hỏi thường gặp

Máy chủ MCP Agent Engineering Handbook dùng để làm gì?

Agent Engineering Handbook là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Agent Engineering Handbook với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Agent Engineering Handbook với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Agent Engineering Handbook với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Agent Engineering Handbook, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Agent Engineering Handbook với TypingMind?

Agent Engineering Handbook hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Agent Engineering Handbook cung cấp những công cụ nào trong TypingMind?

Agent Engineering Handbook cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Agent Engineering Handbook không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Agent Engineering Handbook yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇