monorepo-management-skill

monorepo-management-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 36 tokens per session (3,194 once invoked), scanned A, original, Apache-2.0.

A management workflow for JavaScript and TypeScript monorepos, where one repository contains multiple related packages or applications. It covers Turborepo, Nx, and pnpm workspaces.

In plain words
What is it for?
It helps set up workspaces, manage inter-package dependencies, enforce import boundaries, configure build caching, troubleshoot builds, and create version changesets.
Why use it?
It helps organize package boundaries, shared settings, dependencies, builds, caching, and version changes across many packages.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is "paths": { "@/*": ["./src/*"], "@repo/ui": ["../../packages/ui/src"] }.

Good fit It helps set up workspaces, manage inter-package dependencies, enforce import boundaries, configure build caching, troubleshoot builds, and create version changesets.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template
agentmods
npx agentmods add skills/darellchua2/opencode-config-template/monorepo-management-skill

Made for: OpenCode.

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 monorepo-management-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/monorepo-management-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/monorepo-management-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/monorepo-management-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/monorepo-management-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,194 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 warn 7 Sept 2026
SkillSpector: 9 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 154
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium MCP Rug Pull · line 350
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 351
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 482
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 483
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 484
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 490
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 491
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 492
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00036 $0.03194
Opus 5 $0.00018 $0.01597
Sonnet 5 $0.00007 $0.00639
Haiku 4.5 $0.00004 $0.00319

Measured 4d ago against content hash 90cd2faa0ade, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

monorepo-management-skill 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 4d 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.

opencode_app/.opencode/skills/monorepo-management-skill/SKILL.md · 494 lines

How it starts

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

What I do

I help you set up and manage JavaScript/TypeScript monorepos:

  1. Turborepo: Configuration, pipeline design, caching strategies
  2. Nx: Workspace setup, generators, affected commands
  3. pnpm Workspaces: Package management, dependency hoisting
  4. Package Boundaries: ESLint rules for import restrictions
  5. Shared Configs: Centralized ESLint, TypeScript, and Tailwind configs
  6. Build Caching: Local and remote cache configuration
  7. Changesets: Version management and changelog generation
  8. OpenCode LSP Integration: Root-level opencode.json enabling typescript + eslint LSP across all packages

When to use me

Use this skill when:

  • Setting up a new monorepo (Turborepo, Nx, or pnpm workspaces)
  • Configuring build pipelines and caching
  • Implementing package boundary enforcement
  • Creating shared configurations across packages
  • Managing inter-package dependencies
  • Setting up changesets for versioning
  • Troubleshooting monorepo build or dependency issues
  • Migrating from a single repo to monorepo structure
  • typescript-dry-principle-skill: Code deduplication within monorepo packages
  • nextjs-standard-setup-skill: Next.js app setup within monorepo packages
  • python-ruff-linter-skill: Python monorepos (this skill focuses on JS/TS)

Step 1: Tool Selection

Tool Best For Learning Curve Build Speed
Turborepo Next.js apps, simple pipelines Low Very fast
Nx Complex dependency graphs, generators Medium Fast
pnpm workspaces Simple package management Low Standard

Recommendation: Start with Turborepo + pnpm workspaces for Next.js projects. Use Nx if you need generators or complex affected-graph calculations.


Step 2: Turborepo Setup

Project Structure

monorepo/
├── turbo.json
├── package.json
├── pnpm-workspace.yaml
├── packages/
│   ├── ui/              # Shared component library
│   │   ├── package.json
│   │   └── src/
│   ├── config/          # Shared configurations
│   │   ├── eslint-config/
│   │   ├── typescript-config/
│   │   └── tailwind-config/
│   └── utils/           # Shared utilities
│       ├── package.json
│       └── src/
├── apps/
│   ├── web/             # Next.js app
│   │   ├── package.json
│   │   └── src/
│   └── api/             # API server
│       ├── package.json
│       └── src/
└── .changeset/
    └── config.json

Read the full file on GitHub · 494 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. 4d ago First seen · 494 lines · 36 tokens per session scan A 90cd2faa0ade

Subscribe to this mod's changes

monorepo-management-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 36 tokens to every session and 3,194 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories