Automated summary
Works out the real lint, test, build and format commands for a project by reading its manifests and configs instead of assuming them.
Strengths
- Covers a broad set of ecosystems (Node, Dart/Flutter, Rust, Go, Python, JVM) with an explicit lookup order
- Requires detecting the package manager from the lockfile and respecting monorepo task filtering
- Clearly separates 'the tests fail' from 'the tests did not run' on missing binaries
- Asks for the resolved toolchain to be reported to the human and then recorded in CLAUDE.md or .claude/settings.json
Limitations
- The ecosystem list is closed: projects without a listed manifest (C#, Swift, PHP, etc.) are not addressed
- Persisting to CLAUDE.md or .claude/settings.json assumes a repo and tooling compatible with Claude Code
- Re-verifying recorded commands stays manual; nothing automates invalidating a stale record
Use it whenever a command or agent must run a repo's lint, test or build, or when a check fails with 'command not found'.
Skip it when the project's toolchain is already documented and trusted, or outside the ecosystems it lists.
Security analysis
CautionThe skill is not malicious: it reads manifests and configs, avoids guessing, forbids unasked dependency installation, and uses Bash only to run legitimate project checks. However, it deliberately executes repository-defined scripts and may persist inferred toolchain data into shared project files, so it carries real execution and modification risk and should be listed as caution.
- •Runs project-defined lint/test/build commands through Bash after resolving them from manifests; in an untrusted repository those scripts can execute arbitrary code.
- •Step 7 instructs writing resolved commands into CLAUDE.md or .claude/settings.json, modifying project configuration without an explicit confirmation gate.
- •Does not warn against executing unvetted manifest scripts or advise reviewing script contents before the verification run.
Examples
Run this project's lint and tests for me — I just cloned it and have no idea what the setup is.The PR check failed with 'command not found', can you figure out what the actual lint and test commands are for this repo?I only changed the api package — work out the toolchain and run just that package's tests instead of the whole monorepo.name: project-toolchain description: Work out which commands actually lint, test, build and format THIS project before running any of them - by reading its manifests and configs, never by assuming. Use whenever a command or agent needs to "run the project's lint/test/build", when a check fails with "command not found", or when onboarding the AI-SDLC harness into an unfamiliar repo. allowed-tools: Read, Grep, Glob, Bash
project-toolchain
Several parts of this harness say "run the project's lint and test commands"
without saying what they are — /review, /pr, /skill-approve, and the
reviewer and security agents all defer that decision to the project. This
skill is how that decision gets made, so a framework-agnostic harness can run
real checks in a repo it has never seen.
Never assume npm test or flutter analyze. Guessing produces one of two bad
outcomes: a "command not found" that looks like a broken harness, or — worse —
a check that appears to pass because it silently did nothing.
Steps
-
Find the manifest, nearest to the working directory, checking in this order and stopping at the first hit:
| File | Ecosystem | Where the commands are | |---|---|---| |
package.json| Node | itsscriptsobject | |pubspec.yaml| Dart/Flutter | conventionalflutter/dartcommands | |Cargo.toml| Rust |cargo fmt/clippy/test/build| |go.mod| Go |gofmt,go vet,go test ./...,go build ./...| |pyproject.toml/setup.cfg| Python | tool sections (ruff,black,pytest) | |Makefile/Justfile| any | its targets — these override the above when present | |build.gradle(.kts)/pom.xml| JVM |gradle/mvntasks | -
Read the scripts, do not infer them. For Node, print
package.json'sscriptsand use those exact names. A repo with"test": "turbo run test"is run with the package manager'stestscript, not withvitestorjestdirectly, even when those are the underlying runners — the script may set env, ordering, or workspace scope that matters. -
Identify the package manager from the lockfile, not from habit:
pnpm-lock.yaml→pnpm,yarn.lock→yarn,bun.lockb→bun,package-lock.json→npm. Runningnpm testin a pnpm workspace is a common way to get confusing failures. -
Detect a monorepo and respect its scoping.
pnpm-workspace.yaml,turbo.json,nx.json,lerna.json, or aworkspacesfield mean a root-level command fans out to every package. When the change is scoped to one package, prefer that tool's filter (turbo run test --filter=<pkg>,pnpm --filter <pkg> test) so a five-minute full run does not hide a ten-second answer. -
Verify before relying on it. Run the resolved lint or test command once. If it fails with a missing-binary error rather than a real finding, dependencies are not installed — say so and stop, rather than reporting the check as failed on its merits. There is a real difference between "the tests fail" and "the tests did not run", and only one of them is the author's problem.
-
Report the resolved toolchain explicitly before using it, so the human can correct a wrong guess cheaply:
Toolchain for <repo>: package manager: pnpm (pnpm-lock.yaml) monorepo: turbo (turbo.json) — filter with --filter=<pkg> lint: pnpm lint test: pnpm test build: pnpm build format check: pnpm format:check -
Record it so the next session does not re-derive it: write the resolved commands into the project's
CLAUDE.md, or atoolchain:block in.claude/settings.json. Prefer reading that record on later runs, but re-verify it if a command starts failing — records go stale when a repo migrates package managers.
Anti-patterns to refuse
- Running
npm test/yarn test/flutter testwithout having read a manifest that says so. - Reporting "lint passed" when the command was not found or exited non-zero for a setup reason.
- Running a full monorepo test suite when the diff touches one package and the tool supports filtering — unless the change is cross-cutting.
- Installing dependencies unasked as a way to make a check run. Report the missing setup; installing can rewrite a lockfile the team owns.
- Writing a resolved toolchain into a shared file when it was only inferred, not verified by running it.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/detect-the-project-s-toolchain-mtwgrtdt/download' --output '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md.part' && mv '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md.part' '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Grep, Glob, Bash
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md' && test -s '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/project-toolchain' && cp -R '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt' '.claude/skills/project-toolchain'Cursor
test -f '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md' && test -s '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/project-toolchain' && cp -R '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt' '.cursor/skills/project-toolchain'Codex
test -f '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md' && test -s '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/project-toolchain' && cp -R '.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt' '.agents/skills/project-toolchain'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/detect-the-project-s-toolchain-mtwgrtdt'openskills read 'detect-the-project-s-toolchain-mtwgrtdt'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/detect-the-project-s-toolchain-mtwgrtdt/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.