Verify code quality by running build and lint commands for both .NET and React projects
Verifies code compiles and passes quality checks before deployment. Automatically runs dotnet build for .NET projects and npm lint/build for React projects, fixing auto-fixable issues.
/plugin marketplace add usmanali4073/stylemate-plugins/plugin install stylemate-architecture@stylemate-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Use this skill to ensure code compiles and passes quality checks before deployment or testing.
Ensures backend code compiles:
dotnet buildEnsures frontend code compiles:
npm run buildEnforces code quality standards:
npm run lint for ReactValidates TypeScript types:
npm run type-check (if available)any types without justificationcd {context}/{context}-api
# Build
dotnet build
# Check output:
# ✓ Build succeeded. 0 Warning(s). 0 Error(s)
# ✗ Build FAILED. X Error(s)
# If errors, review and fix
# Run tests
dotnet test
# Check output:
# ✓ Passed! - Total: X, Passed: X, Failed: 0
# ✗ Failed! - Failed: Y
cd {context}/{context}-ui
# Install dependencies (if needed)
npm install
# Lint
npm run lint
# Check output:
# ✓ No linting errors
# ✗ X problems (Y errors, Z warnings)
# Fix auto-fixable
npm run lint -- --fix
# Type check (if available)
npm run type-check
# Build
npm run build
# Check output:
# ✓ built in Xs
# ✗ error TS2xxx: ...
dotnet list package --vulnerablenpm run lint -- --fix
Fixes:
dotnet build succeedsdotnet test all passnpm run lint passesnpm run type-check passes (if available)npm run build succeeds#!/bin/bash
PROJECT_DIR="scheduling/scheduling-api"
echo "Verifying $PROJECT_DIR..."
cd $PROJECT_DIR
# Build
echo "Building..."
if dotnet build --no-incremental > build.log 2>&1; then
echo "✓ Build succeeded"
else
echo "✗ Build failed"
cat build.log
exit 1
fi
# Test
echo "Testing..."
if dotnet test > test.log 2>&1; then
echo "✓ Tests passed"
else
echo "✗ Tests failed"
cat test.log
exit 1
fi
# Check vulnerabilities
echo "Checking for vulnerabilities..."
dotnet list package --vulnerable
echo "✓ All checks passed!"
#!/bin/bash
PROJECT_DIR="scheduling/scheduling-ui"
echo "Verifying $PROJECT_DIR..."
cd $PROJECT_DIR
# Lint
echo "Linting..."
if npm run lint > lint.log 2>&1; then
echo "✓ Lint passed"
else
echo "⚠ Lint failed, attempting auto-fix..."
npm run lint -- --fix
if npm run lint > lint-fixed.log 2>&1; then
echo "✓ Lint passed after auto-fix"
else
echo "✗ Lint failed after auto-fix"
cat lint-fixed.log
exit 1
fi
fi
# Type check
if command -v npm run type-check &> /dev/null; then
echo "Type checking..."
if npm run type-check > typecheck.log 2>&1; then
echo "✓ Type check passed"
else
echo "✗ Type check failed"
cat typecheck.log
exit 1
fi
fi
# Build
echo "Building..."
if npm run build > build.log 2>&1; then
echo "✓ Build succeeded"
# Check bundle size
BUNDLE_SIZE=$(du -sh dist | cut -f1)
echo "Bundle size: $BUNDLE_SIZE"
else
echo "✗ Build failed"
cat build.log
exit 1
fi
echo "✓ All checks passed!"
MUST run build and lint verification first:
1. npm run lint (must pass)
2. npm run build (must succeed)
3. Then proceed to Playwright testing
MUST run build verification first:
1. dotnet build (must succeed)
2. dotnet test (must pass)
3. Then proceed to API testing
Common errors:
Fix: Run npm run lint -- --fix first
Common errors:
Fix: Add proper types, null checks
Common warnings:
Fix: Update dependencies, optimize imports
Common warnings:
Fix: Clean up code, enable nullable reference types
This skill ensures code quality and prevents broken code from reaching testing or deployment.
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.