detect-commands
Infer and verify install/test/lint/build commands for the repo.
When & Why to Use This Skill
The detect_commands skill automates the discovery and verification of essential repository workflows, including installation, testing, linting, and building. By intelligently analyzing project manifests, Makefiles, and CI configurations, it eliminates manual guesswork and provides a verified, high-confidence roadmap for interacting with any codebase, significantly boosting developer productivity and agentic automation.
Use Cases
- Automated Repository Onboarding: Instantly identify the correct setup and test commands when working with a new or unfamiliar codebase.
- CI/CD Pipeline Configuration: Verify and extract runnable commands to accurately configure automated build and deployment scripts.
- Living Documentation: Automatically generate and maintain a COMMANDS.md file that reflects the current, verified state of project scripts.
- Standardized Development Workflows: Ensure all team members and AI agents use the same verified linting and formatting commands to maintain code quality.
| name | detect_commands |
|---|---|
| description | Infer and verify install/test/lint/build commands for the repo. |
| short-description | Detect common commands |
Purpose
Identify runnable commands and record them with confidence.
Steps
- Search for Makefile, package manifests, CI configs.
- Propose install/test/lint/format/build commands.
- Record in
COMMANDS.mdandCOMMANDS.json. - Verify when safe, and update confidence.
Guardrails
- Mark unverified commands with low confidence.
- Do not execute destructive commands.