Token导航 LogoToken导航TokenDH.com
AI 工具只读github未标认证来源可访问clear审计通过

next-project-structureNext.js project structure 命令行

Agent Skill

next-project-structure 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

225

周安装

9

GitHub Stars

1

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:next-project-structure(Next.js project structure 命令行)
来源仓库:https://github.com/henryxv/study-platform
仓库路径:skills/next-project-structure
安装命令:
npx skills add https://github.com/henryxv/study-platform --skill next-project-structure
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/henryxv/study-platform --skill next-project-structure

简介

该技能用于分析 Next.js 项目的目录结构与工程化配置合理性。

  • 适用于新项目初始化、monorepo 拆分与团队协作规范制定场景。
  • 提供 components、lib、hooks 等模块的划分建议与命名规范。
  • 需根据业务复杂度选择 app router 或 pages router 架构模式。
  • 输出结构应适配 TypeScript、ESLint 与 Prettier 等工具链集成。

SKILL.md

Next.js Project Structure

Purpose

This skill defines the folder and file conventions for Next.js App Router applications. Use this to ensure file placement dictates the correct routing behavior and architectural consistency.

Usage

When creating new features or refactoring, you must first identify the project's Organization Strategy (see below) to determine where files belong.

1. Top-Level Organization Strategies

Identify which strategy the project is using and strictly adhere to it. Do not mix strategies.

StrategyDescriptionIndicator
Store in srcApplication code lives in src/app. Config files live in root.src/app/page.tsx exists
Root appApplication code lives in app. Config files live in root.app/page.tsx exists
Split by FeatureGlobal code in app; feature code colocated in route segments.app/dashboard/_components/ exists
External ProjectsProject files live in components/ or lib/ at root, outside app.components/ exists at root

2. File Conventions (Quick Ref)

Next.js uses file-system based routing. The filename determines the behavior.

  • Routes: Must be named page.tsx or route.ts.
  • UI Wrappers: layout.tsx (persistent), template.tsx (re-mounted).
  • Data UI: loading.tsx (Suspense), error.tsx (Error Boundary).
For the complete table of supported file names and their hierarchy, read: references/file-conventions.md

3. Routing & Groups

Do not rely on folder names alone for URL structure.

  • URL Segments: app/blog/page.tsx -> /blog
  • Route Groups: app/(marketing)/page.tsx -> / (Folder name omitted from URL)
  • Private Folders: app/_utils/ -> Not routable.
For advanced patterns (Dynamic [id], Parallel @slot, Intercepting (.)), read: references/routing-patterns.md

Validation Checklist

Before finalizing a file creation:

  1. Does the file name match a reserved Next.js convention (e.g., page.tsx)?
  2. Is the file inside the correct Route Group (if applicable)?
  3. Are colocated components properly marked private (in _folders) if they shouldn't be routable?

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.56%
按下载量换算19

Gemini CLI

21.77%
按下载量换算16

Antigravity

18.59%
按下载量换算14

windsurf

12.72%
按下载量换算9

trae

8.72%
按下载量换算6

Codex

3.36%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills