Production-Grade Full-Stack Engineering
Build polished, responsive React.js frontends and secure, maintainable Node.js + Express.js backends with reliable API integration, database persistence, accessibility, testing, and production-readiness checks. Use when creating, extending, debugging, or reviewing full-stack web apps.
What it does
Build polished, responsive React.js frontends and secure, maintainable Node.js + Express.js backends with reliable API integration, database persistence, accessibility, testing, and production-readiness checks. Use when creating, extending, debugging, or reviewing full-stack web apps.
- Category
- fullstackfrontendbackendwebengineering
- Platforms
- web
- Frameworks and tools
- reactnodejsexpress
Example tasks
- “Build a premium responsive React dashboard connected to real Express APIs”
- “Implement secure authentication, role-based authorization, and CRUD workflows”
- “Review and improve an existing full-stack app without breaking working features”
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Full skill (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
Production-Grade Full-Stack Engineering Skill
1. Overview and Role
Use this skill when creating, extending, debugging, refactoring, testing, or reviewing a full-stack web application built with React.js on the frontend and Node.js + Express.js on the backend.
The objective is to deliver a cohesive product: polished UI, complete user journeys, reliable API behavior, safe data handling, maintainable architecture, and evidence-based validation. Use this skill alongside the user's project prompt, repository, design references, business rules, and deployment requirements.
The user's prompt defines product scope. This skill defines engineering quality and working method. Do not invent important product requirements or silently omit requested features. If a critical ambiguity blocks safe implementation, ask a focused question; otherwise state a reasonable assumption and proceed.
This skill improves consistency; it cannot guarantee 100% bug-free output. Quality depends on implementation, available context, execution, testing, and review.
2. Core Operating Rules
- Inspect before editing. Examine the repository structure, package scripts, installed versions, routing, state management, API patterns, database models, authentication, environment configuration, tests, and existing UI conventions.
- Preserve working behavior. Do not rewrite unrelated modules, change the stack, remove features, or add major dependencies without a clear reason or approval.
- Build end to end. Connect visible interactions to frontend state, API requests, server-side validation, business logic, persistence, and user feedback. Do not deliver only a static mockup when functionality is requested.
- Make requirements checkable. Translate the prompt into pages, roles, user journeys, data entities, API contracts, permissions, and acceptance criteria.
- Use least privilege. Validate and authorize on the server; never trust frontend checks as a security boundary.
- Verify before claiming. Do not state that a build, test, integration, or feature works unless the relevant check was actually run and its result inspected.
- Report honestly. Summarize changes, validation performed, failed or unavailable checks, assumptions, and known limitations.
3. Workflow: From Prompt to Release
Step 1 — Understand the Existing Project
- Inspect the file tree and read the relevant source files before choosing an implementation.
- Read
package.json, scripts, framework versions, environment examples, routing, and test configuration. - Identify whether the project uses JavaScript or TypeScript, ESM or CommonJS, and its current database/ORM.
- Identify reusable components, design tokens, API client patterns, error handling, and authentication conventions.
- Do not assume a file, endpoint, script, database, or integration exists until the repository confirms it.
Step 2 — Convert the Request into a Plan
- Extract user types, roles, permissions, pages, forms, tables, filters, reports, workflows, and integrations.
- Identify the expected data model and API contracts for each feature.
- Define loading, empty, success, validation-error, server-error, unauthorized, and forbidden states where relevant.
- Separate required scope from optional enhancements.
- Identify security, migration, performance, and deployment risks.
- For a large task, divide work into coherent phases and maintain a checklist of requirements.
Step 3 — Implement the Complete Feature
- Build UI and backend behavior together around clear API contracts.
- Keep business logic out of oversized React components and Express controllers.
- Use reusable components and services where they make code clearer.
- Add tests for important behavior and edge cases.
- Preserve existing patterns unless there is a documented reason to improve them.
Step 4 — Verify and Review
- Inspect the actual available scripts before running commands.
- Run relevant lint, type-check, unit tests, integration tests, and production builds when available.
- Test the principal user journeys and important failure conditions.
- Review the final diff for accidental edits, unused code, debug output, secret exposure, incomplete interactions, and regressions.
- Fix issues and rerun the relevant checks.
- Clearly report any check that could not run due to missing credentials, services, or environment setup.
4. Frontend Standards: React.js
4.1 Visual Design and UI Quality
- Create a deliberate visual system: typography scale, spacing, content widths, colors, borders, radii, shadows, icon style, and interaction states.
- Make the interface feel consistent and product-specific, not like an unmodified generic template.
- Prioritize hierarchy, readable content, predictable navigation, clear primary actions, alignment, and whitespace.
- Support mobile, tablet, and desktop. Avoid fixed widths and overflow-prone layouts.
- Use semantic HTML, logical heading order, accessible labels, keyboard navigation, visible focus states, sufficient contrast, and meaningful alternative text.
- Reuse the existing component library and design tokens. If none exists, introduce a small, consistent component system appropriate to the project.
- Use consistent icons; do not substitute emoji for interface icons unless requested.
- Use subtle, purposeful animation only when it improves understanding. Respect
prefers-reduced-motion. - Provide loading skeletons or progress indicators, empty states, inline validation, errors, success feedback, disabled states, and confirmations for destructive actions where appropriate.
- Avoid excessive gradients, shadows, motion, decorative cards, and visual effects that reduce readability.
- Never present fabricated analytics, testimonials, user counts, or financial metrics as real data. Label demo data clearly.
4.2 React Architecture and Behavior
- Use functional components and hooks, following the repository's current conventions.
- Keep components focused. Extract reusable UI, API clients, domain logic, and custom hooks when this improves clarity.
- Use stable keys for lists and correct effect dependencies.
- Avoid unnecessary effects, duplicated state, giant components, deeply nested ternaries, and premature memoization.
- Handle asynchronous requests safely; prevent stale results from overwriting newer state where relevant.
- Use the project's existing form and validation libraries consistently. Validate for usability in the UI, but repeat authoritative validation on the server.
- Every visible control must perform its stated action or be clearly disabled with an explanation. Avoid decorative buttons and dead links.
- Prevent duplicate form submissions where appropriate and provide clear feedback.
- Use route-level code splitting and lazy loading when supported and beneficial.
- Follow the existing JavaScript or TypeScript setup. Do not migrate the whole project to TypeScript without authorization.
- Avoid storing sensitive credentials in client-side code or insecure browser storage by default. Prefer the project's secure authentication pattern; browser sessions may use
HttpOnly,Secure, and appropriateSameSitecookies.
4.3 Frontend API Integration
- Centralize API base URL and request configuration.
- Keep request/response contracts consistent with the backend.
- Handle loading, success, empty, validation, unauthorized, forbidden, network, and server-error states.
- Show user-friendly error messages without exposing stack traces or internal server details.
- Do not hardcode production URLs or create fake successful responses to conceal unfinished backend work.
- Do not use silent
catchblocks. Handle errors visibly and log only safe diagnostic information. - Keep secrets out of frontend environment variables that are bundled into browser code.
5. Backend Standards: Node.js + Express.js
5.1 Architecture and API Design
- Follow the repository's module system (ESM or CommonJS) and existing conventions.
- Organize code by feature or responsibility, using routes, controllers, services, repositories/models, middleware, validators, and configuration where useful. Do not add empty layers for appearance.
- Keep HTTP handlers focused: controllers translate HTTP input/output; services enforce business rules; data-access modules manage persistence.
- Use consistent REST conventions, HTTP status codes, response shapes, pagination, filtering, and sorting.
- Document endpoints and request/response payloads when useful. Follow existing API versioning.
- Use centralized error middleware and reliable async error propagation. Do not return stack traces or internal details to production clients.
- Validate request bodies, query parameters, route parameters, uploaded files, and webhook payloads with the project's validation library or an established consistent approach.
- Enforce authentication, authorization, and resource ownership on every protected operation. Changing an ID must not allow access to another user's data.
- Use database transactions or equivalent safeguards for multi-step operations that require consistency.
- Make retryable operations idempotent where needed, especially payment flows, webhooks, and create operations that could duplicate records.
- Use constraints and indexes aligned with actual query patterns. Avoid unbounded queries and N+1 access patterns.
5.2 Security Requirements
- Load secrets from environment variables or a secret manager. Commit a safe
.env.example, never real.envfiles, credentials, private keys, or tokens. - Validate required environment variables at startup and fail with a clear, safe error if configuration is incomplete.
- Use HTTPS in production. Configure CORS for intended origins only; do not blindly allow every origin with credentials.
- Apply authentication, authorization, appropriate password hashing (such as Argon2 or bcrypt according to project standards), rate limits, and abuse protections where appropriate.
- Apply secure HTTP headers, request-size limits, input validation, and safe file-upload restrictions.
- Prevent injection using parameterized queries or safe ORM/driver APIs. Never build database queries directly from untrusted strings.
- Avoid mass assignment: explicitly allow writable fields instead of blindly passing request bodies into database updates.
- Redact passwords, tokens, cookies, payment details, and sensitive personal information from logs.
- Verify webhook signatures and prevent replay or duplicate processing where required by the provider.
- Do not claim compliance certification or security guarantees that have not been established.
5.3 Reliability and Operations
- Handle async errors consistently and return predictable response formats.
- Use timeouts and deliberate failure handling for external services. Retry only where safe; avoid retrying non-idempotent operations blindly.
- Add structured, useful logs without exposing secrets. Use request IDs/correlation IDs when appropriate.
- Implement graceful shutdown and close server/database connections correctly when required by the deployment model.
- Keep health/readiness checks aligned with actual infrastructure.
- Do not introduce a new database, queue, cache, or external service without a real requirement or approval.
6. Database, Files, and Third-Party Integrations
- Use the database already selected by the project or explicitly named in the prompt. Do not switch databases or add an ORM without approval.
- Model data from real product requirements. Add appropriate required fields, constraints, unique indexes, and indexes for common queries.
- Keep database credentials and private API keys server-side.
- Use consistent conventions for IDs, dates/time zones, currency, pagination, and soft deletion if the product requires it.
- Treat third-party API responses as untrusted and handle missing, malformed, delayed, or failed responses.
- Isolate integrations in focused service modules so they can be tested and replaced safely.
- For uploads, enforce file type, size, authorization, and safe storage rules.
- For payments or irreversible actions, validate amount and ownership server-side and implement duplicate-request protection and auditability as appropriate.
- Do not fabricate real API credentials, provider responses, or successful live integration results.
7. Code Quality and Maintainability
- Follow existing naming, formatting, linting, and directory conventions.
- Prefer clear names and small cohesive functions over compressed or clever code.
- Avoid giant components/controllers, duplicated business rules, magic values, dead code, unused dependencies, and catch blocks that hide errors.
- Keep configuration separate from business logic.
- Share constants and schemas where they prevent meaningful drift.
- Write comments to explain non-obvious decisions rather than narrating obvious code.
- Avoid unrelated refactors and preserve existing behavior.
- Add dependencies only when they solve a clear need; consider maintenance, security, bundle size, and compatibility.
- Keep error and success responses consistent across endpoints.
8. Testing and Validation
- Inspect
package.jsonand use actual project scripts; never assume thatlint,test, orbuildexists. - Run relevant lint, type-check, unit/integration tests, and production build when available.
- Test complete user journeys, not just isolated functions.
- For APIs, test status codes, response shape, validation, authentication, authorization, persistence, and failure behavior.
- For UI, test navigation, forms, loading/empty/error/success states, responsive behavior, keyboard interaction, and real API integration.
- Cover invalid input, unauthenticated and forbidden requests, missing records, duplicate requests, external-service failure, and boundary conditions where applicable.
- Mock external services when appropriate, but distinguish mocked tests from live integration checks.
- If a check cannot run because a database, environment variable, credential, or service is missing, state that limitation; do not mark it as passed.
- Review the final diff for secret leaks, debug statements, accidental files, dead buttons, fake success states, and unrelated changes.
9. Accessibility, Performance, and SEO
- Use semantic landmarks, correct heading order, accessible dialogs and menus, and keyboard-operable controls.
- Give inputs labels and actionable validation messages.
- Optimize images and avoid unnecessary large assets; lazy-load non-critical media where appropriate.
- Avoid blocking the main thread and unnecessary requests.
- Use pagination and caching when appropriate without weakening authorization or data freshness.
- For public indexable pages, use appropriate titles, descriptions, canonical URLs, and semantic content consistent with the rendering architecture.
- Measure before introducing complex performance optimizations.
- Do not promise specific SEO rankings, Lighthouse scores, or performance improvements without measurement.
10. Common Pitfalls
| Pitfall | Why it fails | Correct approach |
|---|---|---|
| Building only the visual screen | Controls and data flows do not work | Connect the full journey to real API behavior |
| Validating only in React | Requests can bypass the UI | Validate and authorize on the server |
| Returning mock success for unfinished APIs | Hides missing functionality | Implement persistence and verify actual responses |
| Putting all logic in one component/controller | Hard to maintain and test | Separate concerns and organize by feature |
| Hardcoding URLs or secrets | Breaks deployments and risks exposure | Use validated environment configuration |
| Silent error handling | Failures become invisible | Handle errors consistently and log safely |
| Skipping mobile and keyboard testing | Layout and accessibility regressions remain | Test responsive and accessible interactions |
| Claiming tests passed without running them | Creates false confidence | Report only observed results |
| Rewriting unrelated code | Increases regression risk | Keep scope focused and preserve behavior |
| Adding unrequested infrastructure | Increases complexity and cost | Use existing stack unless a requirement justifies change |
11. Definition of Done
A task is complete only when applicable items are satisfied:
- Requested requirements and acceptance criteria are implemented or explicitly marked blocked.
- UI is consistent, responsive, accessible, and includes relevant interaction states.
- Frontend controls connect to intended backend behavior.
- APIs validate input, enforce authentication/authorization, and handle failures safely.
- Data persists correctly in the chosen database.
- Relevant tests, lint/type checks, and builds were run where available; failures are disclosed.
- No known secrets, placeholder functionality, dead buttons, fake success states, or unrelated changes remain.
- Final response summarizes features/files changed, commands and checks actually run, results, assumptions, and remaining risks.
12. How to Use This Skill with a Project Prompt
Provide the product goal, target users, user roles, required pages, features, business rules, database, integrations, design direction, deployment target, and acceptance criteria. Attach screenshots or design references when available.
Ask the agent to:
- Inspect the repository and summarize its current architecture before editing.
- Convert the prompt into a requirements checklist and implementation plan.
- Identify blocking ambiguities and state non-blocking assumptions.
- Implement complete frontend and backend flows, including loading, empty, error, and success states.
- Add or update tests and run available validation commands.
- Review the final diff and report verified results honestly.
Do not ask for “100% bug-free” output or skipped validation. Ask for evidence: actual command output, endpoints implemented, files changed, and known limitations.
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
1.0.0: initial release.