service-scoping

Identify service context before editing files in monorepos.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/MinhDuyDEV/mdpi --skill service-scoping
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: service-scoping
Source: https://github.com/MinhDuyDEV/mdpi/tree/main/.pi/skills/service-scoping
Command: npx skills add https://github.com/MinhDuyDEV/mdpi --skill service-scoping

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents incorrect edits in monorepos and nested repositories by identifying the precise service context and loading only the relevant project rules, manifests, and technology information.

Core Features & Use Cases

  • Scoped Context Discovery: Walks upward from a target file to locate the nearest AGENTS.md, service manifest, and.pi/tech-stack.md while staying within the git worktree boundary.
  • Service Ownership Detection: Identifies the owning service through supported manifests such as package.json, pyproject.toml, Cargo.toml, go.mod, or Dockerfile.
  • Use Case: When modifying a file inside a large monorepo, use this Skill to determine which service conventions and technical context apply instead of loading unrelated sibling project rules.

Quick Start

Use the service-scoping skill to determine the correct service context and scoped configuration for the file I need to edit.

Frequently Asked Questions about service-scoping

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

FAQPage Schema
How do I find the correct AGENTS.md rules and service context before editing a file in a monorepo?

To find the correct service context in a monorepo, you need scoped context discovery that walks upward from a target file to locate the nearest AGENTS.md and service manifest while staying within the git worktree boundary. This prevents loading unrelated sibling project rules during file modification.

What is service ownership detection and how does it work for nested project structures?

Service ownership detection identifies the owning service by locating supported manifests such as package.json, pyproject.toml, Cargo.toml, go.mod, or Dockerfile. It applies bounded filesystem traversal to validate local project context and avoid loading unrelated configuration from nested repositories.

How do I scope technology stack discovery when modifying files across different services?

Scoping technology stack discovery requires walking upward from your target file to find the nearest tech-stack.md and service manifest within the git worktree. This ensures only relevant technology information and service conventions apply to your code editing scenario.

Why does my code editing agent load incorrect project configuration from sibling directories in a monorepo?

Incorrect project configuration loads when filesystem traversal is unbounded. You need service scoping to validate local project context and restrict traversal to the git worktree boundary, preventing unrelated sibling project rules and manifests from applying to your target file.

Does service scoping work with Python, Rust, and Go monorepos?

Service scoping supports Python, Rust, and Go monorepos by detecting service ownership through pyproject.toml, Cargo.toml, and go.mod manifests. It applies to nested project structures requiring scoped AGENTS.md rules and technology stack discovery across these platforms.

When do I need to use bounded filesystem traversal for service context discovery?

You need bounded filesystem traversal for service context discovery when modifying files inside a large monorepo with nested repositories. It ensures you determine which service conventions apply without loading unrelated configuration from sibling projects outside the git worktree boundary.