yarn

yarn is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 17 tokens per session (359 once invoked), scanned A, original, MIT.

A package manager for JavaScript projects that installs dependencies and manages multiple packages in one repository. A monorepo is one repository containing several related projects.

In plain words
What is it for?
Use it to install JavaScript packages, manage workspaces, enforce shared dependency rules, and cache dependencies for reproducible builds.
Why use it?
It helps keep dependency versions and workspace rules consistent across a monorepo. Its Plug'n'Play mode can resolve packages without creating a node_modules folder.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to install JavaScript packages, manage workspaces, enforce shared dependency rules, and cache dependencies for reproducible builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/yarn
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 G1Joshi/Agent-Skills --skill yarn
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

Made for: Claude Code, Codex.

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 yarn

README.md
[![agentmods](https://agentmods.dev/badge/skills/g1joshi/agent-skills/yarn/github.svg)](https://agentmods.dev/skills/g1joshi/agent-skills/yarn)
Your own site
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/yarn"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/yarn/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 yarn

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/yarn"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/yarn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 359 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.
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.00017 $0.00359
Opus 5 $0.00009 $0.00179
Sonnet 5 $0.00003 $0.00072
Haiku 4.5 $0.00002 $0.00036

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

Security

Grade A, and why

yarn 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 9d 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.

skills/devops/yarn/SKILL.md · 56 lines

What it actually says

Yarn

Yarn (Berry) is a modern package manager. It introduced Plug'n'Play (PnP) to eliminate node_modules and support Zero Installs.

When to Use

  • Monorepos: Yarn Workspaces are robust and feature-rich (Constraints, plugins).
  • Speed: PnP is faster than node_modules linking.
  • Correctness: Strict phantom dependency checks prevent requiring packages you didn't list.

Quick Start

corepack enable
yarn set version stable
yarn init -2

# Install
yarn add react

Core Concepts

Plug'n'Play (PnP)

Instead of copying files to node_modules, Yarn generates a .pnp.cjs map. Node requires are intercepted and resolved directly from the cache.

Zero Installs

Commit the .yarn/cache folder. Cloning the repo = Installation complete. No yarn install needed in CI.

Constraints

Enforce rules across workspaces (e.g., "All packages must use React 18").

Best Practices (2025)

Do:

  • Use Corepack: Manage Yarn versions via Node's corepack tool.
  • Use yarn dlx: Equivalent to npx.
  • Commit Cache: If using Zero Installs, do commit the binary cache.

Don't:

  • Don't use Yarn 1: Legacy Yarn (v1) is dead. Migrate to Berry (v4+).

References

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. 9d ago First seen · 56 lines · 17 tokens per session scan A 04bde3f9f446

Subscribe to this mod's changes

yarn is a skill published in the GitHub repository G1Joshi/Agent-Skills (12 stars, last pushed 7mo ago), licensed MIT. It adds 17 tokens to every session and 359 once invoked, about $0.0001 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

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple…

addyosmani/agent-skills · 89 tokens

conductor-revert

Reverts previous work (tracks, phases, or tasks) by identifying associated commits and performing Git reverts.

gemini-cli-extensions/conductor · 27 tokens

ui-designer

Elite UI/UX Design Lead & Frontend Architect. Generates distinctive, non-templated interfaces with opinionated aesthetics, deliberate typography, and exact UX copy. Triggers on UI design, frontend styling, or layout creation.

GulajavaMinistudio/awesome-copilot-id · 49 tokens

awesome-git-history-rebuild

Erases a repository's git history and rebuilds it as a curated commit series over the same tree: an approved split plan (proposed here or supplied by awesome-git-commit-plan), the repo's own commit rules and hooks, paced timestamps, signed commits, a verified mirror backup, a confirmation gate before every…

khasky/awesome-agent-skills · 150 tokens

awesome-git-author-rewrite

Rewrites the author and committer identity on a commit — or on every commit carrying a wrong identity — and force-pushes it safely: ownership and write-access checks, a verified mirror backup, a counted hash blast radius, and a confirmation gate before anything irreversible. Takes a commit URL plus the replacement…

khasky/awesome-agent-skills · 134 tokens

css-architecture

Structure CSS/Tailwind for maintainability — tokens, BEM naming, specificity control, responsive patterns.

sawrus/agent-guides · 25 tokens