/marathon-ralph:project-detectionfrom marathon-ralph
Detects project type, package manager, and monorepo structure. Returns correct commands for test/build/lint/dev. Run at project initialization and cache results in state.
Ships in marathon-ralph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Detects project configuration and provides standardized commands. Run once at init, cache in state file.
Run the detection script from the project root:
./marathon-ralph/skills/project-detection/scripts/detect.sh /path/to/project
Returns JSON:
{
"language": "node",
"packageManager": "bun",
"monorepo": {
"type": "turbo",
"workspaces": ["apps/web", "apps/api", "packages/shared"]
},
"commands": {
"install": "bun install",
"dev": "bun run dev",
"build": "bun run build",
"test": "bun run test",
"testWorkspace": "bun run --filter={workspace} test",
"lint": "bun run lint",
"typecheck": "bun run check-types"
}
}
After detection, store in marathon state file under project key:
{
"project": {
"language": "node",
"packageManager": "bun",
"monorepo": { "type": "turbo", "workspaces": [...] },
"commands": { ... },
"detectedAt": "2024-01-03T12:00:00Z"
}
}
When running commands, always check state first:
project.commands from stateWhen tests/builds need to target a specific workspace:
# Use testWorkspace with the workspace name
bun run --filter=web test
# Or for all workspaces
turbo run test
| Lock File | Package Manager | Install | Run |
|---|---|---|---|
bun.lock or bun.lockb | bun | bun install | bun run |
pnpm-lock.yaml | pnpm | pnpm install | pnpm run |
yarn.lock | yarn | yarn install | yarn |
package-lock.json | npm | npm install | npm run |
| Config File | Monorepo Type |
|---|---|
turbo.json | Turborepo |
nx.json | Nx |
lerna.json | Lerna |
pnpm-workspace.yaml | pnpm workspaces |
package.json with workspaces | npm/yarn workspaces |
| Indicator | Language |
|---|---|
package.json | Node.js |
pyproject.toml, setup.py | Python |
go.mod | Go |
Cargo.toml | Rust |
build.gradle, pom.xml | Java |
For Python projects:
| Tool | Install | Run Script | Test |
|---|---|---|---|
| poetry | poetry install | poetry run {script} | poetry run pytest |
| poetry+poe | poetry install | poe {task} | poe test |
| pip + venv | pip install -r requirements.txt | python -m {module} | pytest |
| uv | uv pip install -r requirements.txt | uv run {script} | uv run pytest |
| pipenv | pipenv install | pipenv run {script} | pipenv run pytest |
Note: If [tool.poe.tasks] exists in pyproject.toml, poe commands are preferred.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
project-detection, monorepo, package-manager, build-commands
npx claudepluginhub gruckion/marathon-ralph --plugin marathon-ralph8 skills in this plugin
/marathon-ralphAutonomous long-running development from specifications. Use when user wants to build an application from a spec file, run continuous development, or automate feature implementation. Triggers on phrases like "marathon this", "build from spec", "autonomous development", "keep coding until done"./setup-playwrightConfigure Playwright for E2E testing. Use when setting up end-to-end tests, when no E2E framework is detected, or when the user asks to configure browser testing./setup-vitestConfigure Vitest for unit and integration testing. Use when setting up a test framework, when no test runner is detected, or when the user asks to configure testing./sqliteSQLite Skill for better-t-stackSQLite database implementation using LibSQL client and Drizzle ORM. This skill covers local development, Turso cloud, and Cloudflare D1 deployments./update-stateProgrammatically update marathon-ralph state file using deterministic jq commands. Use this instead of manually editing the JSON file./visual-verificationVisually verify implemented features work correctly before marking complete. Use when testing UI changes, verifying web features, or checking user flows work in the browser.Other plugins' skills for the same job