Create a project validation command by detecting project type and existing lint/test configurations
Creates a project-specific validation command by analyzing codebase and existing configurations.
/plugin marketplace add wayne930242/team-toon-tack/plugin install team-toon-tack@ttt-marketplaceCreate a project-specific validation command by analyzing the codebase.
Check for project indicators:
| File | Project Type |
|---|---|
package.json | Node.js / Bun |
Cargo.toml | Rust |
go.mod | Go |
pyproject.toml, requirements.txt | Python |
Look for static analysis configs:
Linting: biome.json, .eslintrc.*, ruff.toml
Type Check: tsconfig.json, mypy.ini
Testing: jest.config.*, vitest.config.*, pytest.ini
If Node.js project:
cat package.json | jq '.scripts | keys[]' 2>/dev/null
Look for: lint, type-check, test, check, validate
Create .claude/commands/{{ $1 | default: "validate" }}.md:
---
name: {{ $1 | default: "validate" }}
description: Run project validation (lint, type-check, test)
---
# Project Validation
Run validation checks for this project.
## Process
### 1. Lint
\`\`\`bash
{{ lint-command }}
\`\`\`
### 2. Type Check
\`\`\`bash
{{ type-check-command }}
\`\`\`
### 3. Test (optional)
\`\`\`bash
{{ test-command }}
\`\`\`
## Quick Validate All
\`\`\`bash
{{ combined-command }}
\`\`\`
## On Failure
1. Show error output
2. Identify failing file(s) and line(s)
3. Suggest fixes
4. Re-run validation after fixes
After creating:
/{{ $1 | default: "validate" }} to testDetected: Node.js project with Biome + TypeScript
Created: .claude/commands/validate.md
Commands:
Lint: bun run lint
Type: bun run type-check
Test: bun run test
Try: /validate
Detected: Python project with Ruff + mypy
Created: .claude/commands/validate.md
Commands:
Lint: ruff check .
Type: mypy .
Test: pytest
Try: /validate