tejas0111/pharos/monorepo-workspace-management
Claude Code and agent skill by tejas0111/pharos
- community
Checking that the SKILL.md file is still in the repository.
Handle workspace boundaries, package scripts, and shared tooling in Pharos monorepos. Use when managing monorepos, Turborepo, pnpm workspaces, shared packages, workspace boundaries, package scripts, or multi-package setups for Pharos dapps. Keywords: monorepo, workspace, Turborepo, pnpm workspace, shared package, workspace boundaries, package scripts, multi-package, Pharos, Solidity, TypeScript, Next.js, Foundry, Hardhat.
Install
npx vskill@latest install tejas0111/pharos/monorepo-workspace-managementSKILL.md
The same SKILL.md was published earlier as tejas0111/pharos/monorepo-workspace-management.
Monorepo and Workspace Management
Handle workspace boundaries, package scripts, and shared tooling in Pharos monorepos with Foundry contracts, Next.js frontend, and shared config for chain 1672.
Pharos Monorepo Structure
pnpm-workspace.yaml
shared/pharosChain.ts
frontend/next.config.js
turbo.json
Verification
When to Use
monorepo, workspace, Turborepo, pnpm workspace, shared package, workspace boundaries, package scripts, multi-package
When NOT to Use
working within a single package (use the relevant feature subskill), or adding a single dependency (use dependency-upgrade-management)
Prerequisites
- Security:
- .env Usage: Environment variables MUST be stored in a
.envfile in the project root. NEVER useexport VAR=...for sensitive data. - Mandatory Check: The Agent MUST verify
.envexists and variables are set usinggrep -q(NEVERcat,head,tail— those expose secrets) before any deployment or on-chain action. - Git: Ensure
.envis listed in.gitignoreto prevent accidental commits.
- Git repository:
git statusmust succeed (run from repo root). - CI platform: GitHub Actions configured (check
.github/workflows/exists). - Foundry (if workflows include forge commands):
forge buildmust succeed.
Workflow
- Strict .env Check: Confirm
.envexists withtest -f .envand check variables viagrep -q(without printing values). NEVER print.envcontents. Do NOT proceed if missing or if the user suggestsexport.
- Requirement Gathering: Analyze the user's request to identify the specific task, target environment (Atlantic 688689 or Pacific 1672), and any missing context. Zero-assumption delivery.
- Mandatory Plan (`PLAN.md`): Create or update
PLAN.mdin the project root with the proposed strategy. Wait for explicit 'Approve' or 'Proceed' from the user before taking any action. - Detect the user target network — Use
references/pharos-context.mdNetwork Detection table to determine if the user means testnet (688689, PHRS), mainnet (1672, PROS), or is ambiguous. If the user didn't specify, ask: 'Atlantic Testnet or Mainnet?' Adapt all following steps (RPC URLs, token symbols, deploy commands, chain IDs) to match. - Map the workspace structure and package boundaries.
- Check prerequisites: verify required tools are installed, env vars are set, and any required context is available. Ask the user for any missing values before proceeding.
- Identify the minimum workspace changes required.
- Present the plan and ask for confirmation.
- Apply the workspace changes and verify the affected packages.
Output
- workspace map
- package boundary notes
- script changes
- verification result
Examples
- "Organize this repo as a pnpm monorepo with Foundry contracts, Next.js frontend, and shared Pharos chain config for 1672"
- "Fix the workspace scripts so the app and contracts build together with transpilePackages for @pharos-dapp/shared"
- "Set up Turborepo caching for this Pharos monorepo's forge build and Next.js build pipeline"
- "Create a shared pharosChain.ts package consumed by both contracts and frontend"
- "Configure pnpm workspaces with contracts/ (forge build) and frontend/ (next build) and shared types"
Verification
pnpm build across all packages or turbo run build. forge test --fork-url pharos_testnet from root.
Related
dependency-upgrade-management (package version changes), repo-automation-and-tooling (workspace scripts)
Gate
Mode A: Low risk — read-only map.
Mode B: Medium risk. Show the workspace change plan (files, deps, turbo tasks) before editing; verify build/test on touched packages after apply.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/subskills/monorepo-workspace-management/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tejas0111/pharos/monorepo-workspace-management)