Linting for your entire repository. Not just code.
ESLint checks your code. Prettier formats it. Repotype checks your repository structure — folders, file naming, schemas, frontmatter, and documentation standards.
npm install -g repotype
# or
npx repotype validate .# Initialize config
repotype init .
# Validate
repotype validate .
# Auto-fix issues
repotype fix .
# Generate report
repotype report . --output report.md- 📁 Folder structure — required directories, allowlists, path patterns
- 📋 File standards — naming conventions, companion files, JSON/YAML schemas
- 📝 Documentation — frontmatter schemas, required sections, template detection
- 🔒 Content policies — forbidden patterns, secret detection
# repotype.yaml
version: "1"
defaults:
unmatchedFiles: deny # Strict mode
folders:
- id: src-structure
path: src
requiredFolders: [components, hooks, utils]
pathCase: kebab
files:
- id: typescript
glob: "src/**/*.ts"
pathCase: kebab
- id: docs
glob: "docs/**/*.md"
frontmatter:
required: [title, description]| Guide | Description |
|---|---|
| Getting Started | Installation and first steps |
| Configuration | Full config reference |
| Folder Rules | Control directory structure |
| File Rules | Validate files by pattern |
| CI Integration | GitHub Actions, GitLab CI |
| CLI Reference | All commands |
repotype init [target] # Create repotype.yaml
repotype validate [target] # Validate repository
repotype fix [target] # Auto-fix violations
repotype report [target] # Generate compliance report
repotype explain <file> # Explain rules for a file
repotype status [target] # Show operations status
repotype apply [target] # Apply hooks/watcher config
repotype install-checks # Install git hooks# .github/workflows/repotype.yml
name: Repotype
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx repotype validate . --jsonRepotype is designed for human + agent teams. Add this to your agent instructions:
Use
repotype validate .before committing. Runrepotype fix .to auto-fix issues. Checkrepotype.yamlfor repository standards.
MIT — Supernal Intelligence
Built to Help Fight Entropy with ♥ from Supernal Intelligence