cross-repo-workspace

Governs convention switching and coordination rules for sessions spanning spa-velocity and api-velocity repositories.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/TierOne-Studio/spa-velocity --skill cross-repo-workspace-tierone-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cross-repo-workspace
Source: https://github.com/TierOne-Studio/spa-velocity/tree/main/.ruler/skills/cross-repo-workspace
Command: npx skills add https://github.com/TierOne-Studio/spa-velocity --skill cross-repo-workspace-tierone-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a Claude Code session has both the spa-velocity React frontend and api-velocity NestJS backend loaded as working directories, the active doctrine (CLAUDE.md, skills, agents, settings) loads from only one repo, causing the wrong conventions to be applied to the other repo's files. This Skill prevents cross-repo mistakes such as applying React rules to NestJS code, citing ambiguous ADR numbers that collide between repos, and bundling cross-repo work into a single PR. ## Core Features & Use Cases - Path-based lens switching: Determines which repo's conventions apply based on the file being edited, and mandates reading the target repo's repo-conventions skill and subagents before editing non-primary-repo files. - ADR qualification rule: Enforces repo-qualified ADR citations (e.g., "spa-velocity ADR-007") in any cross-repo context, since both repos use overlapping ADR numbers with different meanings. - Coordination-doc pattern: Requires a coordination plan document, per-repo branches and PRs, per-repo test runs, and cross-linked SPECs for features spanning both repositories. - Use Case: A prompt asks to add a new API endpoint plus the React hook that consumes it. The skill triggers a coordination plan, applies NestJS conventions to the api-velocity controller, applies React/TanStack Query conventions to the spa-velocity hook, and requires a lens-switch attestation in the response. ## Quick Start Ask the assistant to implement a feature touching both repos, for example: "both: add a projects endpoint in api-velocity and a useProjects hook in spa-velocity."

Frequently Asked Questions about cross-repo-workspace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle Claude Code sessions with two repositories loaded?

Determine the active conventions by the file path being edited, not the primary working directory. Before editing files in the non-primary repo, read that repo's repo-conventions skill and instructions file, then apply its force-load skills and subagents.

How should I structure a feature that spans a React frontend and NestJS backend?

Author a coordination plan document in the repo owning the user-visible behavior, with per-repo steps prefixed by target. Implement each side under its own conventions, run each side's test suite from its own directory, and commit as two separate branches and PRs.

Why are bare ADR references ambiguous in a multi-repo workspace?

Both repos use overlapping ADR numbers with different meanings; for example ADR-007 means better-auth token storage in one repo and skill-vs-repo resolution in the other. Cross-repo artifacts must qualify every citation with the repo name.

When does this cross-repo skill not apply?

It does not fire for single-repo sessions, sessions involving any other repo combination, or read-only investigations that propose no changes. In those cases the active repo's doctrine applies as-is.

What happens if I cannot read the target repo's conventions before editing?

Stop and escalate rather than editing with the wrong lens. Applying the primary repo's conventions to the other repo's files is the central anti-pattern this skill exists to prevent.