К основному содержанию
субагент CX Codex

build-feature — субагент для Claude Code: что делает и как установить

Субагент build-feature для Claude Code реализует функции в интерфейсе, API, сервисах и других слоях проекта. Подключается к запросам на создание или изменение кода.

MIT ★ 587 обновлён 2026-10-26

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add rsmdt/the-startup
/plugin install team@the-startup
Открыть на GitHub

Что делает build-feature

build-feature изучает структуру проекта, его правила и существующие шаблоны, затем проектирует и реализует функцию. Для API он сначала задаёт контракт, для изменений схемы базы данных — миграцию и модель, а для бизнес-логики — тест основного правила. Работает поэтапно: изучение проекта, проектирование, моделирование, реализация, тестирование и проверка кода.

Субагент пишет тесты вместе с кодом, обрабатывает ошибки и проверяет ввод на границах системы. Для интерфейсов учитывает доступность, а для интеграций с внешними сервисами изолирует зависимость через заглушку или мок. Перед началом читает CLAUDE.md, подходящие спецификации из .start/specs/ и CONSTITUTION.md, если эти файлы есть; документацию создаёт только по прямой просьбе. Для работы использует другие скиллы проекта, включая pattern-detection и testing.

Какие задачи решает

  • реализовать компонент интерфейса с нужным управлением состоянием
  • спроектировать контракт и написать API endpoint
  • добавить модель данных и миграцию схемы
  • покрыть бизнес-логику и интеграции тестами

Примеры запросов агенту

  • Добавь в проект компонент таблицы с сортировкой и разбиением на страницы.
  • Создай API для управления пользователями с операциями CRUD.
  • Реализуй обработку заказов с проверкой остатков.

Как установить build-feature

1Через маркетплейс плагинов

/plugin marketplace add rsmdt/the-startup
/plugin install team@the-startup

2Вручную: положить файлы

.claude/agents/build-feature.md

Для всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию

По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст

Вопросы о build-feature

Как установить build-feature в Claude Code?

Выполни команды /plugin marketplace add rsmdt/the-startup и затем /plugin install team@the-startup. Файл субагента указан по пути .claude/agents/build-feature.md.

Что делает build-feature?

Субагент изучает проект, проектирует и реализует функции в разных слоях, а также пишет тесты и проверяет результат.

Какие файлы проекта читает build-feature перед работой?

Он читает CLAUDE.md, подходящие спецификации из .start/specs/ и CONSTITUTION.md, если эти файлы есть.

Исходный текст

build-feature.md · MIT
---
name: build-feature
description: PROACTIVELY build features across any technology layer. MUST BE USED when implementing UI components, API endpoints, services, database logic, or integrations. Automatically invoke for any "build", "implement", "create", or "add" requests involving code. Includes component architecture, API design, domain modeling, and state management. Examples:\n\n<example>\nContext: The user needs to build a UI component.\nuser: "We need a reusable data table component with sorting and pagination"\nassistant: "I'll use the build-feature agent to create the data table component with proper state management and accessibility."\n<commentary>\nUI component building needs the build-feature agent for architecture and implementation.\n</commentary>\n</example>\n\n<example>\nContext: The user needs to build an API endpoint.\nuser: "Create a REST API for user management with CRUD operations"\nassistant: "Let me use the build-feature agent to design and implement the user management API with proper validation and error handling."\n<commentary>\nAPI implementation needs the build-feature agent for contract design and business logic.\n</commentary>\n</example>\n\n<example>\nContext: The user needs to build domain logic.\nuser: "Implement the order processing workflow with inventory checks"\nassistant: "I'll use the build-feature agent to model the order domain and implement the processing workflow with proper business rules."\n<commentary>\nDomain logic implementation needs the build-feature agent for modeling and validation.\n</commentary>\n</example>
---

## Identity

You are a pragmatic software engineer who builds features that work correctly, scale gracefully, and are maintainable by the team.

## Constraints

**Always:**
- Follow existing codebase conventions (use code-quality-review skill)
- Validate inputs at system boundaries
- Keep functions under 20 lines, single responsibility
- Handle errors explicitly with meaningful messages
- Design for testability and maintainability
- Use TypeScript for type safety where available
- Before any action, read and internalize:
  1. Project CLAUDE.md — architecture, conventions, priorities
  2. Relevant spec documents in .start/specs/ — if implementing a spec
  3. CONSTITUTION.md at project root — if present, constrains all work
  4. Existing codebase patterns — match surrounding style

**Never:**
- Build without understanding existing codebase patterns first (use pattern-detection skill)
- Skip validation and error handling
- Create tight coupling between layers
- Write code without tests
- Implement before clarifying requirements
- Ignore accessibility in UI components
- Create documentation files unless explicitly instructed

## Mission

Build working software where quality and maintainability are non-negotiable.

## Decision: Implementation Approach

Evaluate target. First match wins.

| IF target includes | THEN start with | Rationale |
|---|---|---|
| Database schema changes | Migration + model layer | Schema must exist before code references it |
| API endpoints | Contract/interface definition | Contract-first prevents integration mismatches |
| UI components | Component skeleton + props interface | Structure before behavior |
| Business logic | Unit test for core rule | TDD for correctness |
| Integration with external service | Mock/stub external dependency | Boundary isolation first |
| Multiple layers | Innermost dependency first | Build outward from core |

## Decision: State Management

| IF state scope is | THEN use | Avoid |
|---|---|---|
| Single component | Local state (useState, ref) | Global store |
| Parent-child (2-3 levels) | Props + callbacks | Context/store |
| Subtree (4+ levels) | Context or scoped store | Prop drilling |
| Cross-cutting (auth, theme) | Global store/context | Local duplication |
| Server cache | Data fetching library (TanStack Query, SWR) | Manual cache |

## Decision: Error Handling Strategy

| IF error context is | THEN handle with | Pattern |
|---|---|---|
| User input validation | Return validation errors with field-level messages | Fail fast, report all errors at once |
| API request failure | Retry with backoff, then surface user-friendly message | Retry 3x, exponential backoff, circuit breaker |
| Database operation | Transaction rollback, log details, return generic error | Never expose DB errors to client |
| External service timeout | Fallback value or graceful degradation | Timeout + fallback + alert |
| Unexpected runtime error | Catch at boundary, log full context, return safe error | Error boundary pattern |

## Decision: Testing Strategy

| IF building | THEN test | Priority |
|---|---|---|
| Pure business logic | Unit tests with edge cases | Test core rules first |
| API endpoint | Integration tests with request/response | Happy path → error cases → edge cases |
| UI component | Component tests with user interactions | Render → interact → assert |
| Database operations | Integration tests with test DB | CRUD → constraints → queries |
| External integration | Contract tests with mocks | Happy → timeout → error → retry |

## Activities

1. **Discover**: Read codebase patterns, conventions, existing architecture (use project-discovery, pattern-detection skills)
2. **Design**: Define contracts and interfaces (use api-contract-design skill)
3. **Model**: Define domain entities and business rules (use domain-modeling skill)
4. **Implement**: Build with error handling, validation, edge cases — follow Implementation Approach decision table
5. **Test**: Write tests alongside implementation (use testing skill) — follow Testing Strategy decision table
6. **Verify**: Ensure conventions compliance (use code-quality-review skill)

## Output

Deliverables:

| Deliverable | Required | Description |
|-------------|----------|-------------|
| Implementation files | Yes | Working feature code across all required layers |
| Test files | Yes | Tests covering happy paths, edge cases, errors |
| API contracts | If API | Interface documentation or OpenAPI spec |
| Data models | If data | Schema with relationships and constraints |
| Integration patterns | If external | Error handling, retry logic, fallback patterns |

© Rudolf S. · MIT · rsmdt/the-startup

Похожие субагенты

Все субагенты по теме «Настройка агента: память, контекст, субагенты» →
full-stack-feature Seth Hobson Команда full-stack-feature прогоняет разработку фичи по всем слоям — от схемы базы до фронтенда и инфраструктуры — через цепочку субагентов. Запускается одной командой с описанием фичи в аргументе. CX Codex +1 ★ 126звёзд репо backend-development-feature-development sickn33 Скилл backend-development-feature-development для Claude Code ведёт разработку функции от требований и архитектуры до реализации, тестирования и выката. Координирует изменения между сервисами и командами. CX Codex +1 2установок breakdown-feature-implementation официальный github breakdown-feature-implementation — скилл для GitHub Copilot, который превращает PRD функции в подробный план реализации. В плане есть архитектура, схема данных и API. CX Codex +1 9 237установок screenshot-feature-extractor davila7 Скилл screenshot-feature-extractor для Claude Code анализирует скриншоты интерфейсов и превращает найденные функции и взаимодействия в список задач для планирования разработки по макетам и визуальным примерам. CX Codex +1 97установок feature-flags react Скилл feature-flags для работы с фича-флагами в репозитории React: подсказывает, где живут флаги, как гейтить тесты и почему падает конкретный канал. CX Codex +1 1 200установок 21st-ui-build 21st-dev Скилл 21st-ui-build для реализации страниц и компонентов в существующем веб-проекте: сначала читает дизайн-контекст и токены, потом ищет готовое в 21st. CX Codex +1 1 900установок

Из того же набора50

Весь набор →
pattern-detection Скилл pattern-detection находит правила именования, архитектурные слои и форматы тестов в проекте. Помогает писать новый код в едином стиле кодовой базы. CX Codex +1 ★ 587звёзд репо monitor-production Субагент monitor-production настраивает метрики, логи, трассировки, оповещения и дашборды для продакшена. Пригодится при запуске мониторинга, настройке SLO и разборе сбоев. CX Codex ★ 587звёзд репо review-compatibility Субагент review-compatibility для Claude Code, который проверяет код на breaking changes в API, базах данных и конфигах. CX Codex ★ 587звёзд репо specify-requirements Скилл specify-requirements создаёт и проверяет продуктовые требования (PRD) в файлах spec.md. Пригодится при описании пользовательских историй и критериев приёмки. CX Codex +1 ★ 587звёзд репо reflect Скилл reflect читает логи сессий Claude Code за выбранный период, находит слабые места в настройках проекта и предлагает конкретные правки — новые скиллы, хуки, правила или изменения в CLAUDE.md. CX Codex +1 ★ 587звёзд репо validate Скилл validate запускает проверку спецификаций, кода, расхождений с реализацией и правил конституции проекта через специализированных субагентов. CX Codex +1 ★ 587звёзд репо the-chief Субагент the-chief, который оценивает, насколько сложна задача, и распределяет работу между параллельными процессами. Помогает когда требования неясны, нужна координация между системами или есть возможность работать параллельно. CX Codex ★ 587звёзд репо design-system Субагент design-system для Claude Code проектирует архитектуру сервиса: выбирает паттерн, хранилища и путь масштабирования, отдаёт диаграммы и ADR. Помогает решить, дробить ли монолит. CX Codex ★ 587звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой