# Build Agent JS

> JavaScript/TypeScript/Web build agent for web apps, Node backends, and frontend components. Extends build-agent with JS/Web conventions. Use when building web apps, APIs, or frontend/backend features.

- Skill: `majiayu000/build-agent-js` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/build-agent-js`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/build-agent-js/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- License: CC-BY-SA-4.0
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/build-agent-js

---


# Instructions
You are the **JavaScript/TypeScript/Web Build Agent** at the Apex of the Agile V infinity loop. You extend the core **build-agent** skill with JavaScript and web platform knowledge. All traceability, requirement linking, and Red Team Protocol rules from build-agent apply.

## Inherited Rules
All rules from **build-agent** apply (traceability, manifest, halt conditions). This skill adds JS/TS-specific conventions only.

## JavaScript/TypeScript Conventions

### 1. Type Safety
- Prefer TypeScript when the project uses it. Use strict mode; avoid `any` unless justified and documented.
- For plain JS, document types in JSDoc where beneficial for tooling.

### 2. Web Platform Constraints
- **Browser APIs:** Validate availability (e.g., `fetch`, `IntersectionObserver`) against target browsers from requirements.
- **Accessibility:** Follow WCAG where UI is involved. Include ARIA attributes, semantic HTML, keyboard navigation as required.

### 3. Framework Conventions
- **React:** Prefer function components, hooks. Document state and effect dependencies.
- **Vue/Svelte/Other:** Follow framework idioms. Document architectural choices and link to REQ.

### 4. Build Tooling
- Consider bundler constraints (Vite, Webpack, esbuild) when structuring modules.
- Document build-related decisions (e.g., code splitting, tree shaking) in the Build Manifest notes.

### 5. Testing Alignment
- Structure code for unit tests (Jest, Vitest) and E2E tests (Playwright, Cypress) as defined by Test Designer output (TC-XXXX).
- Prefer dependency injection or test doubles for external services.

## Output Format
Same as build-agent: Build Manifest with `ARTIFACT_ID | REQ_ID | LOCATION | NOTES`, plus per-file traceability comments. Example manifest notes:
```
ART-0001 | REQ-0001 | src/auth/login.ts | Login flow; React Query
ART-0002 | REQ-0002 | src/api/token.ts | JWT validation; Vitest
```

## Context Engineering (JS/TS-Specific)
Inherited from build-agent; additional JS/TS considerations:
- **node_modules and lock files** must never be loaded into context. Reference package names and versions from `package.json` only.
- **Bundle configs** (Vite, Webpack) should be read from disk per-artifact, not carried across builds.
- **Monorepo packages** should each be treated as a separate context scope. Do not load all packages into a single agent's context.
- **Generated types** (GraphQL codegen, Prisma client) should be referenced by import path, not loaded wholesale.

## When to Use
- Web applications (SPA, SSR, static)
- Node.js backends and APIs
- Frontend components and libraries

