Quick Start
60-Second Quickstart
Section titled “60-Second Quickstart”-
Initialize configuration
Terminal window npx repotype init .This creates a
repotype.yamlwith sensible defaults. -
Validate your repository
Terminal window npx repotype validate .See what violations exist in your current structure.
-
Fix auto-fixable issues
Terminal window npx repotype fix .Automatically fix naming, add missing files, etc.
-
Generate a report
Terminal window npx repotype report . --output report.mdGet a compliance report for documentation or audits.
What Just Happened?
Section titled “What Just Happened?”The init command creates a starter repotype.yaml:
version: "1"
defaults: unmatchedFiles: deny # Deny-by-default
files: - id: source-files glob: "src/**/*.{ts,tsx,js,jsx}"
- id: config-files glob: "*.{json,yaml,yml}"
- id: documentation glob: "docs/**/*.md"
- id: root-readme glob: "README.md"Common First Commands
Section titled “Common First Commands”# See what's wrongnpx repotype validate . --json
# Explain a specific file's rulesnpx repotype explain src/utils/helper.ts
# Preview fixes without applyingnpx repotype fix . --dry-run
# Install git hooks for automatic validationnpx repotype install-checks --hook bothStrict Mode
Section titled “Strict Mode”For maximum enforcement, initialize with strict mode:
npx repotype init . --type strictThis creates a config that explicitly allowlists every path.
Next Steps
Section titled “Next Steps”- Configuration Guide — Customize your rules
- Folder Rules — Control directory structure
- CI Integration — Add to your pipeline