Token导航 LogoToken导航

Agent Skill · 研究检索

modern-web-app-architecture(现代 Web 应用架构)

modern-web-app-architecture 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

modern-web-app-architecture 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 51,060。

总安装 594周安装 25GitHub Stars 35下载 208核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:modern-web-app-architecture(现代 Web 应用架构)
来源仓库:https://github.com/ratacat/claude-skills
仓库路径:skills/modern-web-app-architecture
安装命令:
npx skills add https://github.com/ratacat/claude-skills --skill modern-web-app-architecture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ratacat/claude-skills --skill modern-web-app-architecture

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,支持关键词和任务场景定位。适合在 Codex、Claude、Cursor、Gemini CLI 中快速获取候选结果。可结合来源仓库和原始 README 继续核验具体用法。安装前建议确认权限范围和维护状态,避免触发联网或命令执行。

modern-web-app-architecture 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/modern-web-app-architecture

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ratacat/claude-skills --skill modern-web-app-a…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

modern-web-app-architecture 怎么安装?

在终端执行 npx skills add https://github.com/ratacat/claude-skills --skill modern-web-app-architectur…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

modern-web-app-architecture 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

modern-web-app-architecture 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

modern-web-app-architecture 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

modern-web-app-architecture 用的人多吗?

公开数据是累计安装 594 次,近一周安装 25 次,下载 208 次,GitHub 35 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

modern-web-app-architecture 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
modern-web-app-architecture

现代 Web 应用架构 · 本页

59435操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Modern Web App Architecture (SPA/SSR/SSG/RSC)

Overview

Comprehensive guidance for designing and building modern web applications (including SPAs and hybrid rendering apps). This skill emphasizes trade-offs, explicit boundaries, and production-ready practices (performance, accessibility, security, testing, delivery).

Core principle: Everything in architecture is a trade-off. There are no "right" answers, only least-worst combinations for your specific context.

Operating Mode (How to Use This Skill)

When activated, work in this order:

  1. Clarify context (5–10 questions max) → users, routes, SEO, interactivity, data, auth, team, constraints.
  2. Choose a rendering strategy per route (not “one strategy for the whole app”).
  3. Define boundaries → feature/domain modules, shared libraries, ownership, and stable interfaces.
  4. Plan state + data → local/shared/global/server/URL state, cache strategy, invalidation, optimistic updates.
  5. Plan non-functionals → performance budgets + measurement, accessibility plan, security posture, observability.
  6. Produce artifacts → short recommendations with explicit trade-offs, plus concrete next steps (folder structure, ADRs, checklists).

If the user can’t answer a question, state reasonable assumptions and continue (don’t block).

When to Use

  • Starting a new SPA or web application
  • Choosing rendering strategies (CSR, SSR, SSG, ISR, RSC)
  • Implementing state management
  • Optimizing Core Web Vitals (LCP/INP/CLS)
  • Scaling for multiple frontend teams
  • Making architecture trade-off decisions
  • Migrating from legacy to modern frontend

Quick Discovery Questions (Ask First)

  • What are the top 3 user journeys and their target latency (e.g., “search → product → checkout”)?
  • Is SEO required for any routes? Which are public vs behind auth?
  • What’s the data shape: mostly CRUD, real-time, offline-first, heavy forms, large tables/charts?
  • What are the constraints: browser support, bundle limits, time-to-market, compliance (SOC2/HIPAA/PCI)?
  • What’s the team topology: how many devs/teams, release cadence, ownership boundaries?
  • What’s your preferred stack (React/Vue/Angular/vanilla), and are you open to TypeScript?

Reference Files

TopicWhen to Load
@references/design-patterns.mdImplementing JS patterns (Module, Observer, Factory, etc.)
@references/react-patterns.mdReact components, hooks, state, composition
@references/spa-fundamentals.mdSPA architecture, routing, module organization
@references/micro-frontends.mdScaling teams, independent deployments
@references/performance.mdBundle size, loading, Core Web Vitals
@references/architecture-decisions.mdTrade-offs, coupling, fitness functions
@references/rendering-strategies.mdCSR vs SSR vs SSG vs ISR vs RSC
@references/state-management.mdLocal, global, server state patterns
@references/security-and-auth.mdAuth choices, token storage, XSS/CSRF, CSP, API boundaries
@references/accessibility-and-i18n.mdWCAG basics, SPA focus mgmt, inclusive components, i18n pitfalls
@references/testing-and-quality.mdTesting strategy, CI quality gates, a11y checks, contract tests
@references/tooling-and-delivery.mdBundling, environments, deployment, observability, feature flags

Quick Architecture Decision Tree

Project Requirements?
├─ SEO critical + dynamic content → SSR (or SSR+streaming)
├─ SEO critical + mostly static → SSG/ISR (or hybrid)
├─ Mostly behind auth + app-like UX → CSR SPA (or hybrid with pre-rendered shell)
├─ Mixed (marketing + app) → Hybrid/Islands (route-level strategy)
│
Team Size?
├─ <5 developers → Modular monolith SPA
├─ 5-15 developers → Well-structured SPA or Service-based
├─ >15 developers, multiple teams → Consider micro-frontends
│
Domain Complexity?
├─ Simple CRUD → Layered architecture
├─ Complex workflows → Domain-partitioned (DDD)
├─ Multiple bounded contexts → Micro-frontends

Default Outputs (What You Should Produce)

Depending on the user request, aim to output:

  • Route strategy map: a small table of routes → CSR/SSR/SSG/ISR/RSC + why
  • Module boundary sketch: feature folders, shared libs, interface contracts
  • State map: local/shared/global/server/URL, plus the chosen tooling pattern
  • Data plan: caching/invalidation, error states, optimistic updates, pagination
  • Quality plan: testing layers + CI gates + accessibility checks
  • Performance plan: budgets + measurement + concrete loading strategy (split points)
  • Risk register: top 5 risks + mitigations (e.g., hydration cost, auth posture, team coupling)

Essential Patterns Quick Reference

Component Patterns

PatternUse When
Container/PresentationalSeparating data from UI
Compound ComponentsBuilding composable APIs (Select, Menu)
HooksSharing stateful logic without HOCs
ProviderAvoiding prop drilling for global data

State Management

ApproachUse When
useState/useReducerLocal component state
ContextTheme, auth, low-frequency global state
Zustand/JotaiSimple global state, minimal boilerplate
Redux ToolkitComplex state, time-travel debugging
React Query/SWRServer state, caching, background refresh
XStateComplex flows with explicit state machines

Performance Essentials

TechniqueImpact
Code splittingReduce initial bundle
Lazy loadingDefer non-critical
React.memoPrevent unnecessary re-renders
useMemo/useCallbackStable references
Virtual listsHandle large datasets

Architecture Characteristics (Pick 3-7)

CharacteristicQuestions to Ask
ScalabilityHow many concurrent users? Growth rate?
PerformanceWhat's acceptable TTI? LCP target?
DeployabilityHow often do you ship? Independent deploys?
TestabilityHow easy to verify changes?
MaintainabilityWhat's the expected lifespan?
ModularityHow often do requirements change?

Anti-patterns to Avoid

Anti-patternProblemFix
Prop drillingTight couplingContext or state management
God componentsToo many responsibilitiesSplit by concern
Premature optimizationComplexity without evidenceProfile first
Shared mutable stateRace conditions, bugsImmutable patterns
Monolithic bundleSlow initial loadCode splitting
Over-fetchingWasted bandwidthGraphQL or BFF
LocalStorage tokens by defaultXSS turns into account takeoverPrefer httpOnly cookies + CSP (see security refs)
Global store for server dataCache invalidation painUse React Query/SWR for server state

Performance Budgets

Budgets must be calibrated to your users/devices, but these are good starting points for a “fast by default” app:

MetricTargetNeeds Work
LCP<2.5s2.5–4s
INP<200ms200–500ms
CLS<0.10.1–0.25
TTFB<800ms800ms–1.8s
Route JS (initial)<170KB gzip<300KB gzip

Sources

Synthesized from:

  • Learning JavaScript Design Patterns (Osmani, 2023)
  • React in Depth (Barklund, 2024)
  • SPA Design and Architecture (Scott)
  • Single Page Web Applications (Mikowski & Powell)
  • Building Micro-Frontends (Mezzalira)
  • Micro Frontends in Action (Geers)
  • Responsible JavaScript (Wagner)
  • High Performance Browser Networking (Grigorik)
  • Web Performance in Action (Wagner)
  • Frontend Architecture for Design Systems (Godbolt)
  • Fundamentals of Software Architecture (Richards & Ford)
  • Software Architecture: The Hard Parts (Ford et al.)
  • Patterns.dev

平台分布

Codex

33.16%
按下载量换算69

Claude

28.31%
按下载量换算59

Cursor

19.18%
按下载量换算40

Gemini CLI

9.82%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills