mp-script-discovery

Identify runnable scripts and dev server commands from package.json files.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/MartinoPolo/mpx-claude-code --skill mp-script-discovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mp-script-discovery
Source: https://github.com/MartinoPolo/mpx-claude-code/tree/main/skills/mp-script-discovery
Command: npx skills add https://github.com/MartinoPolo/mpx-claude-code --skill mp-script-discovery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It helps you quickly identify how to run a project by discovering runnable scripts across one or more package.json files, including likely frontend, backend, and database commands and ports.

Core Features & Use Cases

  • Detects package manager (npm, pnpm, yarn, bun) from lockfiles.
  • Enumerates runnable npm-style scripts from root package.json by default, or scans nested packages in recursive mode.
  • Classifies scripts into categories (frontend, backend, database, build, typecheck, lint, test, other) and extracts likely server ports when present.
  • Supports automation outputs via a machine-readable JSON mode for downstream selection.

Quick Start

Ask an AI to discover how to run the app in the current repository by running this skill in default mode for root scripts.

Frequently Asked Questions about mp-script-discovery

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

FAQPage Schema
How do I find runnable npm scripts in a monorepo with nested package.json files?

To find npm scripts in a monorepo, use recursive mode to scan nested package.json files and enumerate runnable commands. This script discovery process classifies commands into frontend, backend, and other categories, producing human-readable recommendations.

What is the best way to detect which package manager a JavaScript repository uses?

The best way to detect a package manager is by inspecting repository lockfiles. This identifies whether npm, pnpm, yarn, or bun is used, ensuring you run the correct script commands for your JavaScript or TypeScript project.

How do I identify dev server commands and ports from a package.json file?

You identify dev server commands by inspecting package.json scripts and classifying them into categories. This process extracts likely server ports when present, helping you quickly determine how to run your frontend or backend application.

Can I get JSON output of classified package.json scripts for automation?

Yes, you can get JSON output of classified package.json scripts by enabling machine-readable JSON mode. This provides structured metadata of your runnable scripts for downstream selection and automation workflows.

Does script discovery work for both single-package and monorepo JavaScript repositories?

Script discovery works for both single-package and monorepo JavaScript repositories. By default it enumerates root package.json scripts, and in recursive mode it scans nested packages to handle scenarios where commands may be nested.