Skip to content

aiskillstore/marketplace / skills/92bilal26/nx-monorepo

nx-monorepo

Verified

Nx monorepo management skill for AI-native development. This skill should be used when working with Nx workspaces, project graphs, affected detection, code generation, and caching. Use when: analyzing dependencies, running affected commands, generating code, configuring Nx Cloud, or optimizing build performance. Invoke nx-mcp tools for documentation queries.

FileKindSize
SKILL.mdskill md7.7 KB
references/team-lead.mdmarkdown3.9 KB
references/workflow.mdmarkdown3.0 KB
skill-report.jsonconfig62.0 KB

references/workflow.md

View on GitHub
# Monorepo Workflow

> Reference doc for nx-monorepo skill. Covers trunk-based dev, PR stacking, code review.

## Overview

This skill provides expert-level (L3-L4) capabilities for trunk-based development, PR workflows, code review, and change management.

**Skill Level**: Principal (E5/L4)
**Matrix Coverage**: W.1.x (TBD), W.2.x (PR Stacking), W.3.x (Code Review), W.4.x (Change Mgmt)

## Trunk-Based Development

### Core Rules

```
1. SINGLE TRUNK: All devs commit to main
2. SHORT-LIVED BRANCHES: Max 24 hours
3. CONTINUOUS INTEGRATION: Commit daily
4. FEATURE FLAGS: Ship incomplete behind flags
```

### Daily Workflow

```bash
git checkout main && git pull --rebase
git checkout -b feat/small-change
# ... make changes ...
git commit -m "feat(scope): description"
git push -u origin feat/small-change
gh pr create --fill
gh pr merge --squash --delete-branch
```

## PR Stacking

### When to Stack

- Feature requires > 400 lines
- Multiple logical units
- Need early feedback on foundation

### Graphite Workflow

```bash
gt create -m "feat: add types"      # PR #1
gt create -m "feat: implement"      # PR #2 (stacked)
gt create -m "feat: add UI"         # PR #3 (stacked)
gt submit --stack                   # Submit all
gt sync                             # After merge, rebase
```

### Manual Stacking

```bash
git checkout -b feat/base
git push && gh pr create

git checkout -b feat/next
git push && gh pr create --base feat/base

# After base merges:
git checkout feat/next
git rebase main
git push --force-with-lease
gh pr edit --base main
```

## Code Review

### PR Title Format

```
type(scope): description

feat(auth): add OAuth support
fix(api): handle null user
refactor(ui): extract Button
docs(readme): add setup guide
```

### Review Checklist

```
[ ] Understand context (PR description, issues)
[ ] High-level: approach makes sense?
[ ] Code quality: readable, clear logic?
[ ] Correctness: does what it claims?
[ ] Testing: tests present and adequate?
[ ] Monorepo: boundaries respected?
```

### Comment Conventions

```
🚫 Blocking: must fix
πŸ’‘ Suggestion: consider changing
❓ Question: need clarification
πŸ”§ Nitpick: optional improvement
✨ Praise: good work
```

## Breaking Changes

### Protocol

```markdown
## Breaking Change: @myorg/auth v2.0

**Change:** Removed legacyLogin()

### Migration
// Before
legacyLogin(user, pass)
// After
login({ user, pass })

### Timeline
- Day 0: Announcement
- Day 5: Deprecation warning
- Day 15: Removal

### Approvals
- [ ] @owner-team
- [ ] @affected-team
```

### Deprecation Pattern

```typescript
/**
 * @deprecated Use login() instead. Removed in v2.0.
 */
export function legacyLogin() {
  console.warn('legacyLogin is deprecated');
  return login(...arguments);
}
```

## Quick Reference

```bash
# Trunk-based
git checkout main && git pull --rebase
git checkout -b feat/change
gh pr create --fill
gh pr merge --squash

# Stacking (Graphite)
gt create -m "message"
gt submit --stack
gt sync

# Review
gh pr checkout 123
gh pr review --approve
gh pr review --request-changes
```
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product β€” it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product β€” not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial β€” a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK β€” model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER β€” read BEFORE opening the target file; don't skip because it "looks like a one-liner" β€” whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) β€” never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named β€” don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall