No slash command · from archon-os
Detects monorepo structure and ensures commands run in correct package scope. Handles pnpm/yarn/npm workspaces, Turborepo, Nx, Lerna, Rust, and Go workspaces.
Ships in archon-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.
Monorepos break many assumptions: which package.json is "the" one, where node_modules live, which test command runs, what install actually does. This skill ensures operations target the correct scope.
On session start or first file edit, check for these markers:
| File | Tool |
|---|---|
pnpm-workspace.yaml | pnpm workspaces |
turbo.json | Turborepo |
nx.json | Nx |
lerna.json | Lerna |
package.json with "workspaces": [...] | npm / yarn workspaces |
Cargo.toml with [workspace] | Rust workspaces |
go.work | Go workspaces |
pyproject.toml with Poetry/uv workspace config | Python workspaces |
If detected → monorepo mode ON. Record in workflow state. All subsequent commands must respect package scope.
Before any install, test, or build:
packages/<name>/pnpm --filter <name> testIf a change touches package A's API used by package B:
grep -r "@your-org/package-a" packages/| Dependency type | Where to install |
|---|---|
| Used by 1 package | That package's package.json |
| Used by 2+ packages | Shared config package or root devDependencies |
| Dev tooling (eslint, prettier, jest) | Root |
| Workspace packages | Listed as "workspace:*" in consumer's dependencies |
Don't assume alphabetical build order. Check the graph:
turbo.json pipeline fieldnx graph visualises itpnpm list --recursive --depth=0# ❌ Wrong — runs all tests, slow, often broken
npm test
# ✓ Right — tests only affected packages
turbo test --filter=[HEAD^1]
nx affected:test
pnpm --filter='...[HEAD^1]' test
[HEAD^1] computes packages affected since the last commit. CI should use the same.
tsc --build runs across references. Check tsconfig.json → references.skills/framework-expert/SKILL.md — your framework may have monorepo-specific integrationskills/test-writer/SKILL.md — test placement in monorepo (per-package vs shared test dir)rules/core/verification.md — verify commands ran in the right scope (which tests actually executed?)commands/run.md — run-orchestrator loads this skill when monorepo markers detectedWhat SKILL.md sets; muted values are Claude Code's defaults
monorepo, workspace, turborepo, nx, lerna, pnpm workspace, multiple packages, cross-package, packages/ directory, workspace:*
Three short reads, in order
npx claudepluginhub nguyenthienthanh/archon --plugin archon-os45 skills in this plugin
/agent-detectorCRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens./api-designerDesigns RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs./bugfix-quickFast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return./chain-of-verificationDraft → generate verification questions → answer independently via tools → revise. Catches hallucinated facts in reports and reviews. MANDATORY for Phase 4 security/test claims. Paper: Dhuliawala et al. 2023./code-mapReverse-dependency lookup — "I am about to change this file, what breaks?" Use when assessing the blast radius of an edit, finding every importer of a module (including the ones that never name it), or checking what the startup code-map digest was derived from. Not for finding text: grep is better at that./code-reviewer8-aspect evidence-based code review/audit (security, correctness, compatibility, architecture, error handling, test gaps, type safety, simplicity) built on Google eng-practices, OWASP Top 10:2025, CWE Top 25, SemVer. Every finding needs file:line + a concrete failure scenario. Use when the user asks to review/audit code, check a PR, review before merge, in TDD Phase 4, via /check review or /run review.Other plugins' skills for the same job