fec-monorepo-project-standard

fec-monorepo-project-standard is a skill for Claude Code from bovinphang/frontend-craft. It costs 62 tokens per session (1,327 once invoked), scanned A, original, MIT.

A guide for organising a monorepo, which is one code repository containing several applications and shared packages. It covers workspace dependencies, folder structure, build tasks, testing, caching, and package releases.

In plain words
What is it for?
Creating or reviewing pnpm workspaces, Turborepo, and Nx projects; arranging apps and shared libraries; managing internal dependencies; configuring build, lint, and test tasks; and checking package exports, circular dependencies, and version rules.
Why use it?
Multiple projects in one repository can accidentally depend on each other in confusing ways or repeat the same work in CI. This sets clear package boundaries and helps run only the affected projects while keeping full checks available.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the frontend-craft plugin — 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers shipped together

Good fit Creating or reviewing pnpm workspaces, Turborepo, and Nx projects; arranging apps and shared libraries; managing internal dependencies; configuring build, lint, and test tasks; and checking package exports, circular dependencies, and version rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bovinphang/frontend-craft/fec-monorepo-project-standard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bovinphang/frontend-craft --skill fec-monorepo-project-standard
Clone the repo
git clone --depth 1 https://github.com/bovinphang/frontend-craft

Made for: Claude Code.

Or install frontend-craft, the plugin that ships this one along with the rest of its 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fec-monorepo-project-standard

README.md
[![agentmods](https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-monorepo-project-standard/github.svg)](https://agentmods.dev/skills/bovinphang/frontend-craft/fec-monorepo-project-standard)
Your own site
<a href="https://agentmods.dev/skills/bovinphang/frontend-craft/fec-monorepo-project-standard"><img src="https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-monorepo-project-standard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fec-monorepo-project-standard

Your own site · 80×15
<a href="https://agentmods.dev/skills/bovinphang/frontend-craft/fec-monorepo-project-standard"><img src="https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-monorepo-project-standard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.01327
Opus 5 $0.00031 $0.00664
Sonnet 5 $0.00012 $0.00265
Haiku 4.5 $0.00006 $0.00133

Measured 12d ago against content hash 89ed4c40409d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

fec-monorepo-project-standard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

localized/zh-CN/skills/fec-monorepo-project-standard/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Monorepo 项目规范

适用于使用 pnpm workspace、Turborepo 或 Nx 的多包前端仓库。

用途

规范 Monorepo 项目的目录结构、依赖管理、任务编排和包发布流程,确保多包协作的构建效率和版本一致性。

流程

  1. 先确认仓库是否已使用 pnpm workspace、Turborepo 或 Nx,并沿用现有包命名与任务约定。
  2. 将应用放在 apps/,共享库、配置和工具放在 packages/ 或既有等价目录。
  3. 内部依赖使用 workspace:*,通过依赖图驱动构建顺序。
  4. 为 build、lint、test 配置可缓存、可并行、可增量的根任务,并明确输入、输出和环境变量。
  5. 在 Turborepo/Nx 中配置 affected/changed 范围命令,CI 优先跑受影响包,同时保留主干全量验证入口。
  6. 发布包前检查包边界、循环依赖、exports、peer dependencies 和版本策略。

工具选择

工具 适用 特点
pnpm workspace 基础 依赖提升、链接、脚本聚合
Turborepo 推荐 缓存、并行、依赖图
Nx 大型 增量构建、云缓存、插件生态

目录结构

pnpm + Turborepo

├── package.json                # 根 package,workspace 配置
├── pnpm-workspace.yaml         # workspace 包列表
├── turbo.json                  # Turborepo 配置
│
├── apps/
│   ├── web/                    # 主应用
│   │   ├── package.json
│   │   └── ...
│   ├── admin/                  # 管理后台
│   └── docs/                   # 文档站
│
├── packages/
│   ├── ui/                     # 共享 UI 组件
│   │   ├── package.json
│   │   └── src/
│   ├── utils/                  # 工具函数
│   ├── config-eslint/         # 共享 ESLint 配置
│   └── config-typescript/     # 共享 TS 配置
│
└── tooling/                    # 构建/测试工具(可选)
    └── scripts/

pnpm-workspace.yaml

packages:
  - "apps/*"
  - "packages/*"

依赖管理

  • 内部包使用 workspace:* 协议
  • package.json 统一部分依赖版本,子包可覆盖
  • 禁止循环依赖,通过 pnpm why 检查
{
  "dependencies": {
    "@repo/ui": "workspace:*",
    "@repo/utils": "workspace:*"
  }
}

Turborepo 任务编排

{
  "$schema": "https://turbo.build/schema.json",
  "tasks": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**"]
    },
    "lint": {
      "dependsOn": ["^build"]
    },
    "test": {
      "dependsOn": ["^build"]
    }
  }
}
  • ^build 表示先执行依赖包的 build
  • outputs 用于缓存命中判断
  • inputs 应包含源码、配置、锁文件和环境相关文件;不要把 .env secret 值写入缓存 key
  • 远程缓存要区分可信 CI 与本地开发,避免把含敏感信息的产物上传

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 143 lines · 62 tokens per session scan A 89ed4c40409d

Subscribe to this mod's changes

fec-monorepo-project-standard is a skill published in the GitHub repository bovinphang/frontend-craft (21 stars, last pushed 10d ago), licensed MIT. It adds 62 tokens to every session and 1,327 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.