skills/mp-script-discovery/SKILL.md
Discover runnable scripts across package.json files and identify frontend/backend/database run commands. Use when: "find scripts", "how to run app", "detect dev server"
npx skillsauth add MartinoPolo/mpx-claude-code mp-script-discoveryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Wrap $HOME/.claude/skills/mp-script-discovery/scripts/detect-project-scripts.sh. Use this skill when agents need a reliable fallback reference for script discovery behavior.
Script path:
SCRIPT_DETECTOR="$HOME/.claude/skills/mp-script-discovery/scripts/detect-project-scripts.sh"
bash "$SCRIPT_DETECTOR"
Usage:
bash "$SCRIPT_DETECTOR" [project_dir] [--recursive|-r] [--category|-c <name>] [--json]
Category options:
frontendbackenddatabasebuildtypechecklinttestotherBehavior:
package.json scripts only, concise text lines--recursive: scans nested package.json files and prints package headers with category groups--category: filters scripts to one category in either default or recursive mode--json: returns machine-readable JSON with package/script metadatabash "$SCRIPT_DETECTOR" ${ARGUMENTS:-.}
Default output format:
<packageManager> <scriptName> (<scriptCommand>) [:port]If detector returns an error line, report it and stop.
Recursive scan:
bash "$SCRIPT_DETECTOR" ${ARGUMENTS:-.} --recursive
Category filtered scan:
bash "$SCRIPT_DETECTOR" ${ARGUMENTS:-.} --category frontend
JSON scan (automation/debugging):
bash "$SCRIPT_DETECTOR" ${ARGUMENTS:-.} --recursive --json
Default, no flags:
yarn build (turbo run build)
yarn dev (turbo run dev)
yarn lint (turbo run lint)
With category filter:
yarn dev (turbo run dev)
yarn frontend (yarn turbo run start:dev --filter=@atc/frontend)
Recursive with package headers:
[apps/frontend] @atc/frontend
frontend:
yarn dev (vite --port 3000 --strictPort || vite --port 3010) :3000
JSON mode (truncated):
{
"packageManager": "yarn",
"recursive": true,
"categoryFilter": "frontend",
"packages": [
{
"packagePath": "apps/frontend",
"scripts": [
{
"name": "dev",
"command": "vite --port 3000",
"category": "frontend",
"port": 3000
}
]
}
]
}
For each category, prefer scripts in this order:
dev, start, preview, dev:web, dev:clientdev:api, dev:server, start:api, start:server, dev, startdb:migrate, migrate, prisma:migrate, db:seed, seedFavor root package commands when equivalent.
Return this structure:
{
"packageManager": "npm|pnpm|yarn|bun|unknown",
"frontend": {
"recommended": {
"cwd": "...",
"script": "...",
"command": "...",
"port": 3000
},
"alternatives": []
},
"backend": {
"recommended": { "cwd": "...", "script": "...", "command": "..." },
"alternatives": []
},
"database": {
"recommended": { "cwd": "...", "script": "...", "command": "..." },
"alternatives": []
},
"notes": []
}
--recursive, --category, or --json only when task requires themfrontend.recommended=nulldevelopment
Audit all active skills for consistency, convention drift, and common issues. Auto-fixes where possible, reports remaining issues. Use when: "audit skills", "skill audit", "check skills", "lint skills"
testing
Ship finished work: sync base, commit, push, PR, wait for CI green, merge. Use when: "ship it", "ship and merge", "ship this"
development
Scan recent Claude Code sessions for grilling/design discussions, extract decisions, and update CONTEXT.md + DECISIONS.md. Use when: "harvest decisions", "extract decisions from sessions", "update docs from sessions", "sync decisions"
tools
Consolidate CONTEXT.md: remove duplicates, outdated items, tighten language. Use when: "consolidate context", "clean up context", "simplify context", "consolidate requirements"