Skip to content
Development
Command

/validate

Validate project structure and configurations against best practices with detailed issue reporting

From plugin
claude-night-market
325163 skills59 agents163 commands1 MCP
Install
$ npx -y skills add athola/claude-night-market --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/validate

Context preview

What this command does when you run it.

Validate project structure and configurations against best practices with detailed issue reporting

Command definition

validate.md
name: validate
description: "Validate project structure and configurations against best practices with detailed issue reporting"

Attune Validate Command

Check project setup against best practices, identify issues, and recommend improvements.

When To Use

Use this command when you need to:

  • Validate project structure and configurations
  • Check for missing required files or settings
  • Identify configuration issues before deployment
  • Audit project against best practices
  • Verify setup after initialization or upgrades

When NOT To Use

Avoid this command if:

  • Just initialized project (likely passing all checks)
  • Need to fix issues, not just identify them (use upgrade-project)
  • Looking for code quality issues (use linting/testing instead)
  • Validating specific component only (check component directly)

Usage

# Validate current project
/attune:validate

# Validate specific path
/attune:validate --path /path/to/project

# Show detailed report
/attune:validate --verbose

What This Command Does

1. **Detects project language** and type 2. **Checks for required files** and configurations 3. **Validates file contents** (e.g., proper Makefile targets) 4. **Reports issues and recommendations**

Validation Checks

Git Configuration

  • ✅ Git repository initialized
  • ✅ .gitignore present and complete
  • ✅ No large files tracked
  • ✅ No secrets in repository

Build Configuration

  • ✅ Makefile with standard targets (test, lint, format)
  • ✅ Dependency file present (pyproject.toml, Cargo.toml, package.json)
  • ✅ Version pinning for dependencies

Code Quality

  • ✅ Pre-commit hooks configured
  • ✅ Linter configuration present
  • ✅ Formatter configuration present
  • ✅ Type checker configured

CI/CD

  • ✅ Test workflow configured
  • ✅ Lint workflow configured
  • ✅ Type check workflow configured
  • ✅ Workflows use latest action versions

Project Structure

  • ✅ Source directory present (src/)
  • ✅ Test directory present (tests/)
  • ✅ README.md present
  • ✅ License file present

Output Format

Project Validation Report
========================
Project: my-awesome-project
Language: Python
Path: /home/user/my-awesome-project

Git Configuration
  ✅ Git repository initialized
  ✅ .gitignore present (50 patterns)

Build Configuration
  ✅ pyproject.toml present
  ✅ Makefile with 15 targets
  ⚠️  uv.lock is outdated (run: uv sync)

Code Quality
  ✅ Pre-commit hooks configured (7 hooks)
  ✅ Ruff configuration present
  ✅ MyPy strict mode enabled

CI/CD
  ✅ Test workflow (.github/workflows/test.yml)
  ✅ Lint workflow (.github/workflows/lint.yml)
  ❌ Missing: Type check workflow

Project Structure
  ✅ Source directory: src/my_awesome_project/
  ✅ Test directory: tests/
  ✅ README.md present
  ❌ Missing: LICENSE file

Score: 17/20 (85%)

Recommendations:
  1. Add .github/workflows/typecheck.yml (run: /attune:upgrade-project --component workflows)
  2. Add LICENSE file (run: Skill(sanctum:license-generation))
  3. Update uv.lock (run: make install)

Exit Codes

  • `0` - All checks passed
  • `1` - Minor issues (warnings only)
  • `2` - Major issues (missing required files)

Examples

Example 1: Quick Validation

/attune:validate

Example 2: Verbose Report with Suggestions

/attune:validate --verbose --suggestions

Includes:

  • Detailed explanation of each check
  • Links to documentation
  • Copy-paste commands to fix issues

Example 3: CI Integration

# .github/workflows/validate.yml
name: Project Structure Validation

on: [push, pull_request]

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Validate project structure
        run: |
          python3 plugins/attune/scripts/validate_project.py --strict

Related Commands

  • `/attune:project-init` - Initialize new project
  • `/attune:upgrade-project` - Fix validation issues automatically
Read more
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

Get the whole plugin, auto-invoked
Stats
325
Stars
0
Views
35
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
8mo ago
Created

Repo: athola/claude-night-market