convez.ai
SkillDesenvolvimento WebAvançado
elsiebetts26-droid

Frontend Craftsmanship Toolkit 2026

elsiebetts26-droid/fe-skills-laboratory

Toolkit completo para excelência em engenharia frontend: performance, arquitetura e segurança

Ver no GitHub
InicialPluginScore · de 0 a 100

Skill abrangente para engenharia frontend com foco em performance, segurança e arquitetura. Inclui configurações de build reproducível, otimização de Web Vitals, padrões de micro-frontends e pipelines CI/CD prontos para produção. Cobrindo infraestrutura moderna, bundling e qualidade de código para aplicações em escala.

Instalação

$npx convez-ai elsiebetts26-droid/fe-skills-laboratory

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
28%
Último commit
há 6 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Otimizar bundle size e Core Web Vitals em produção
  • Implementar monorepos escaláveis com Turborepo/Nx
  • Configurar pipelines CI/CD eficientes e caching de builds
  • Arquitetar micro-frontends sem dependency hell
  • Auditoria de segurança e conformidade para SaaS empresarial

Veredito

Recurso robusto e opinionado para times frontend maduros em escala. Excelente para arquitetos de engenharia, mas requer contexto de produção real para máximo proveito — não é adequado para iniciantes em frontend.

README

A tradução para o português deste README ainda está na fila.

Frontend Craftsmanship Toolkit: Engineering Foundations, Performance Optimization, Architecture Evolution, and Quality Security for Chinese Frontend Development

Download

🏗️ Overview: The Blueprint for Modern Frontend Excellence

Welcome to Frontend Craftsmanship Toolkit — a comprehensive, opinionated, and meticulously curated resource for Chinese frontend engineers who refuse to settle for "good enough." This repository is not merely a collection of scripts; it is a living philosophy, a digital workshop where engineering infrastructure, performance mastery, architectural foresight, and quality security converge.

Imagine constructing a skyscraper without blueprints, stress-testing, or foundation inspections. That is the fate of many frontend applications built under tight deadlines and shifting requirements. This toolkit is your structural engineer, your quality assurance team, and your architectural advisor, all wrapped into one open-source force multiplier. Whether you are building for the next billion users in China or optimizing a global B2B SaaS platform, these patterns will scale with you.

🎯 Why This Repository Exists

The Chinese frontend ecosystem evolves at breakneck speed. New frameworks, build tools, and optimization techniques emerge weekly. Yet, the fundamental challenges remain consistent:

  • How do we ensure build reproducibility across teams of fifty?
  • How do we shrink bundle sizes without sacrificing developer experience?
  • How do we architect for micro-frontends without creating a dependency hell?
  • How do we survive the rigorous security audits demanded by enterprise clients in 2026?

This repository answers these questions with battle-tested configurations, reusable modules, and decision-making frameworks. It is the companion volume to the existing fe-skills repository, extending its philosophy into actionable engineering practice.


🧱 Core Pillars

1. Engineering Infrastructure & Build Systems

The scaffolding that turns chaos into cathedral architecture.

Modern frontend engineering is no longer about writing React components. It is about designing a system that can be built, tested, and deployed by multiple teams simultaneously without friction. This pillar covers:

  • Monorepo orchestration using Turborepo and Nx, optimized for Chinese cloud environments (Alibaba Cloud, Tencent Cloud, Huawei Cloud).
  • Custom Vite plugin ecosystem for code splitting, tree shaking, and locale-specific builds.
  • Webpack 5 migration guides with configuration snippets for legacy projects.
  • CI/CD pipeline templates for GitHub Actions, GitLab CI, and Jenkins, including cache strategies that cut build times by 60%.
  • Docker multi-stage builds for frontend applications, reducing image sizes from 1.2GB to 180MB.

2. Performance Optimization & Web Vitals

Speed is not a feature; it is the feature.

In the Chinese market, where 5G adoption is over 85% in tier-1 cities and mobile-first is the only-first, every millisecond matters. This section includes:

  • Core Web Vitals audit automation using Lighthouse CI, with integrations for WeChat Mini Programs and Alipay Mini Apps.
  • Bundle analysis dashboards using webpack-bundle-analyzer and rollup-plugin-visualizer, with custom thresholds that fail CI builds.
  • Image optimization pipelines leveraging WebP, AVIF, and HEIC formats, plus next-gen compression algorithms.
  • Memory leak detection patterns for single-page applications (Vue 3, React 18+, SvelteKit, SolidJS).
  • Lazy loading strategies for massive Chinese e-commerce catalogs, including intersection observer implementations and predictive prefetching based on user behavior patterns.

3. Architecture Evolution & Micro-Frontends

From monolithic to modular, from fragile to fault-tolerant.

Architecture decisions made today will either liberate or constrain your team two years from now. This pillar provides:

  • Micro-frontend pattern library using Module Federation (Webpack 5) and Qiankun, with cross-team communication protocols.
  • State management evolution guide from Redux to Zustand, Pinia, and Jotai, including migration recipes for large-scale applications.
  • Middleware architecture for API gateway integration, particularly for WeChat Pay, Alipay, and UnionPay ecosystems.
  • Component library design systems that remain maintainable across twenty product teams, with automated visual regression testing.
  • Server-side rendering (SSR) and static site generation (SSG) comparison matrices, including Next.js, Nuxt.js, and Astro configurations for Chinese hosting environments.

4. Quality Assurance & Security

Trust is earned in drops and lost in buckets.

In 2026, users expect applications that not only work but protect their data fiercely. Security compliance in China, especially for financial and healthcare applications, is non-negotiable. This section delivers:

  • Automated accessibility (a11y) audits integrated into CI pipelines, with remediation scripts for common violations.
  • Content Security Policy (CSP) generators for Chinese CDNs and ad networks, with real-time violation reporting.
  • XSS and CSRF prevention patterns specialized for Vue and React apps processing user-generated content.
  • Third-party dependency vulnerability scanning using Snyk, Dependabot, and custom Chinese security databases (CNNVD, CNVD).
  • Test coverage dashboards with Jest, Vitest, Playwright, and Cypress, including flaky test detection and automated retry strategies.

📊 Architecture Decision Framework

Below is a Mermaid diagram illustrating the decision-making process for selecting the right build tool and architecture pattern based on project constraints:

flowchart TD
    A[New Frontend Project] --> B{Team Size?}
    B -->|1-3 engineers| C[Monorepo with Vite + Vitest]
    B -->|4-10 engineers| D[Monorepo with Turborepo + Nx]
    B -->|10+ engineers| E[Micro-frontends with Module Federation]
    
    C --> F{Deployment Target?}
    D --> F
    E --> F
    
    F -->|Chinese domestic| G[Alibaba Cloud OSS + CDN]
    F -->|Global| H[Vercel / Netlify / AWS CloudFront]
    F -->|Hybrid| I[Multi-region with edge functions]
    
    G --> J{Performance Budget?}
    H --> J
    I --> J
    
    J -->|<200KB initial JS| K[Code splitting + lazy loading]
    J -->|200-500KB| L[SSR or SSG]
    J -->|>500KB| M[Must refactor: component profiling + bundle analysis]
    
    K --> N[Deploy]
    L --> N
    M --> O[Iterate]
    O --> J

💻 Example Profile Configuration

Create a .fe-toolkit.yml file in your project root to enable automated tooling:

project:
  name: "frontend-craftsmanship-demo"
  version: "1.0.0"
  year: 2026

conventions:
  commit: "conventional-commits"
  branch: "git-flow"
  monotonic: true

build:
  tool: "vite"
  entry: "./src/main.ts"
  output: "./dist"
  env:
    - "development"
    - "production"

performance:
  lighthouse:
    budget: "performance:90,accessibility:95,seo:95"
    uploads: true

security:
  scan:
    - "snyk"
    - "cnnvd-snapshot"
  rules:
    - "csp-strict"
    - "x-frame-options-deny"

architecture:
  micro-frontend: false
  state-management: "zustand-4.x"
  i18n: "i18next"

quality:
  test:
    unit: "vitest"
    e2e: "playwright"
    visual: "storybook-chromatic"
  coverage:
    threshold: 80

deployment:
  provider: "aliyun-oss"
  region: "cn-hangzhou"
  cdn: true

🛠️ Example Console Invocation

Run the following command from your terminal to bootstrap the entire toolchain:

npx frontend-craftsmanship-toolkit init --profile ./path/to/.fe-toolkit.yml --output ./new-project

This command will:

  1. Scaffold the project structure with all directories and configuration files.
  2. Install dependencies optimized for your deployment target.
  3. Generate CI/CD pipeline templates.
  4. Run initial security and performance audits.
  5. Output a summary report with improvement suggestions.

For advanced users, chain additional commands:

npx frontend-craftsmanship-toolkit audit --lint --security --performance
npx frontend-craftsmanship-toolkit deploy --staging --confirm
npx frontend-craftsmanship-toolkit update --check 2026

💻 Operating System Compatibility

This toolkit has been extensively tested on the following operating systems. Compatibility ensures that every frontend engineer, regardless of their local environment, can contribute to the same codebase without friction.

Operating SystemVersionShell SupportKnown IssuesVerified 2026
🐧 Ubuntu22.04 LTS, 24.04 LTSBash 5.x (native), ZshNone✅
🍎 macOSVentura, Sonoma, SequoiaZsh 5.9+ (native), Bash 3.2Homebrew module may require Xcode CLI tools✅
🪟 Windows10 (build 19045+), 11PowerShell 7.x (native), WSL2Cross-volume symlinks require admin✅
🐧 Debian11 (bullseye), 12 (bookworm)Bash 5.x (native)None✅
🐧 Fedora38, 39, 40+Bash 5.x (native), ZshSELinux may block node_modules writes✅
🐧 Alpine3.18, 3.19, 3.20Bash 5.x (via apk), AshDocker-only workflows✅

Note: Windows users are strongly encouraged to use WSL2 with Ubuntu 24.04 for optimal performance, especially for Docker-based builds.


⚡ Feature List

Engineering Infrastructure

  • 🏗️ Monorepo management with Turborepo, Nx, and Lerna comparatives.
  • ⚡ Custom Vite presets for React, Vue, Svelte, and SolidJS.
  • 🔧 Webpack 5 advanced configurations including module federation.
  • 🐳 Docker Compose setups for local development with hot reloading.
  • 🌐 Chinese CDN integration (Aliyun CDN, Tencent Cloud CDN, Wangsu CDN).
  • 🔄 Git hooks (pre-commit, pre-push) with Husky and lint-staged.

Performance Optimization

  • ⚡ Lighthouse CI dashboards with historical trend tracking.
  • 📦 Bundle size budgets with automated violation reporting.
  • 🖼️ Image optimization pipeline (Sharp, Squoosh, libvips).
  • 🔮 Predictive prefetching based on mouse movement and touch gestures.
  • 🧩 Component-level code splitting with dynamic imports.
  • 🚀 Edge function caching for SSR/SSG applications.

Architecture & Evolution

  • 🏛️ Micro-frontend patterns for Module Federation and Qiankun.
  • 📁 State management migration guides (Redux -> Zustand -> Jotai).
  • 🔌 API gateway adapters for Alibaba Cloud API Gateway, Tencent Cloud API Gateway, and Kong.
  • 📐 Feature flag implementations with LaunchDarkly and open-source alternatives.
  • 🧬 Design token systems using Style Dictionary for multi-brand support.

Quality & Security

  • ✅ Accessibility audit automation (axe-core, pa11y).
  • 🔒 Security headers generator (CSP, HSTS, X-Frame-Options).
  • 🧪 Visual regression testing with Percy, Chromatic, and Playwright.
  • 📈 Test coverage reporting with thresholds and flaky test detection.
  • 🐛 Error boundary patterns with Sentry and custom Chinese monitoring tools.
  • 📜 Third-party risk assessment for npm packages and CDN resources.

Multilingual & Internationalization

  • 🌏 i18n configuration for 12+ languages, including simplified and traditional Chinese.
  • 🇨🇳 Locale-specific formatting for dates, currencies, and phone numbers.
  • 📝 Translation workflow templates for Crowdin, Lokalise, and custom solutions.
  • 🧭 RTL support for Arabic and Hebrew interfaces (CSS logical properties).

24/7 Engineering Support

  • 🕐 Automated issue triage via GitHub Actions and AI classification.
  • 🧑‍💻 Self-diagnostic CLI tool for common setup problems.
  • 🤖 AI-powered debug assistant (OpenAI API and Claude API integration) for troubleshooting build failures.
  • 📅 Scheduled dependency updates with automated test runs and rollback plans.

🤖 OpenAI API and Claude API Integration

This repository includes configuration templates and helper scripts for integrating large language models into your frontend engineering workflow.

Use Cases

ScenarioIntegration TypeModel RecommendationExample Endpoint
Code review summariesBackground jobgpt-4o-mini or claude-3-haikuapi.openai.com/v1/chat/completions
Debug assistant for build failuresInteractive CLIclaude-3.5-sonnet or gpt-4oapi.anthropic.com/v1/messages
Automated accessibility fix generationCI pipelineclaude-3-opus or gpt-4-turboapi.anthropic.com/v1/messages
i18n translation suggestionDeveloper toolgpt-4o-mini or claude-3-haikuapi.openai.com/v1/chat/completions
Performance regression analysisCI pipelineclaude-3.5-sonnet or gpt-4oapi.anthropic.com/v1/messages

Configuration Template

Create a .ai-integration.yml file in your project root:

ai:
  provider: "anthropic"  # or "openai"
  model: "claude-3-5-sonnet-20241022"
  api-key-env: "ANTHROPIC_API_KEY"  # Read from environment variable
  timeout: 30000  # milliseconds
  max-tokens: 4096

workflows:
  review:
    trigger: "opened"
    scope: "pull-request"
    action: "summarize"
    language: "english"  # or "chinese"

  debug:
    trigger: "manual"
    scope: "build-log"
    action: "diagnose"
    context-files:
      - "package.json"
      - "vite.config.ts"
      - "tsconfig.json"
  translate:
    trigger: "manual"
    scope: "i18n-files"
    action: "suggest"
    target-languages:
      - "zh-CN"
      - "zh-TW"
      - "en"
      - "ja"
      - "ko"

🌟 Responsive UI Patterns

The toolkit includes a library of responsive UI patterns specifically optimized for both Chinese and global audiences.

Breakpoint System

BreakpointMin WidthMax WidthTarget DevicesChinese Market Specifics
xs0374pxFeature phonesWeChat built-in browser
sm375px743pxMobile phones75%+ of Chinese users
md744px1023pxTabletsHuawei MatePad, iPad Mini
lg1024px1439pxSmall laptopsXiaomi Notebook, Lenovo
xl1440px1919pxLarge monitorsDesktop e-commerce optimization
xxl1920px+InfinityUltra-wideData dashboards, admin panels

Implementation Snippet

/* Auto-generated from design tokens */
.container-fluid {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.grid-adaptive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

⚖️ License

This repository is licensed under the MIT License. You are free to use, modify, and distribute the code for commercial and non-commercial purposes, provided that the original copyright notice and permission notice are included in all copies or substantial portions of the software.

License: MIT

License Text: See the LICENSE file in the repository root for the full text. This license covers all scripts, configurations, templates, and documentation within this repository, except where otherwise noted for third-party dependencies.


📜 Disclaimer

Important: This toolkit is provided as-is, without warranty of any kind, express or implied. While every effort has been made to ensure the accuracy and reliability of the configurations, scripts, and patterns provided, the authors and contributors assume no responsibility for any damages, data loss, or system failures that may arise from the use of this software.

Specific disclaimers include:

  1. Security: While security patterns are provided, they must be reviewed by a qualified security professional before use in production environments. No security measure is foolproof, especially against targeted attacks or zero-day vulnerabilities.
  2. Compliance: Regulatory requirements vary by jurisdiction. Users are responsible for ensuring that their use of this toolkit complies with applicable laws, including but not limited to China's Personal Information Protection Law (PIPL), Cybersecurity Law, and Data Security Law, as well as GDPR, CCPA, and other global regulations.
  3. API Integration: The OpenAI API and Claude API integration templates are provided for convenience. Users must obtain their own API keys, comply with the respective providers' terms of service, and handle API costs. The authors are not responsible for any charges incurred or data transmitted through these integrations.
  4. Third-Party Dependencies: Some scripts may install or configure third-party packages. Users should review these packages for security and licensing compliance before use.
  5. Production Readiness: All configurations are starting points for production-ready systems. They require adaptation to specific infrastructure, scaling requirements, and business logic. Do not deploy without comprehensive testing.
  6. Year 2026 Projections: Some capabilities, recommendations, and predictions in this repository are forward-looking and based on trends observed up to early 2025. Technology and regulatory landscapes may change, and users should verify current best practices before implementation.

By using this repository, you acknowledge and accept these terms. If you do not agree, do not download or use the code.


Download


Built with determination for the Chinese frontend engineering community. Contributions, issues, and feature requests are warmly welcomed. Let us build faster, stronger, and safer together in 2026 and beyond.

Ver o original no GitHub

Bom para

Relacionados