arklint 0.3.0
dotnet tool install --global arklint --version 0.3.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local arklint --version 0.3.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=arklint&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package arklint --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
arklint
The architectural rulebook for your codebase. Prevention, not detection.
Arklint enforces architectural rules before bad code ever lands — whether written by AI agents or humans. It's language-agnostic, runs locally with zero cloud dependency, and takes 60 seconds to set up.
This package is a .NET global tool wrapper. On first run it downloads the platform-specific prebuilt binary from GitHub Releases and caches it at ~/.arklint/bin/. No Python required.
Requires .NET 8.0+. Supported platforms: Linux x64, macOS ARM64 (Apple Silicon), Windows x64.
Installation
dotnet tool install -g arklint
Upgrade to a newer version:
dotnet tool update -g arklint
Quick start
# 1. Create a starter config in your project root
arklint init
# 2. Edit .arklint.yml to match your architecture
# 3. Check your codebase
arklint check
# 4. In CI — exit 1 on any violation
arklint check --strict
Key commands
| Command | Description |
|---|---|
arklint init |
Create a starter .arklint.yml |
arklint check |
Scan the codebase against all rules |
arklint check --strict |
Exit 1 on warnings too |
arklint check --diff origin/main |
Only scan changed files |
arklint check --json |
Machine-readable JSON output |
arklint check --github-annotations |
GitHub Actions inline PR annotations |
arklint validate |
Validate config without running checks |
arklint search <query> |
Search official rule packs |
arklint add arklint/fastapi |
Add an official rule pack |
arklint visualize |
Generate a Mermaid diagram of your rules |
arklint export --format cursorrules |
Export rules for Cursor/Claude/Copilot |
arklint learn --provider anthropic |
AI-powered rule generation |
arklint watch |
Re-run checks on every file save |
arklint mcp |
Start MCP server for AI agent integration |
Example .arklint.yml
version: "1"
# Extend an official rule pack
extends:
- arklint/fastapi
# Add your own project-specific rules
rules:
- id: no-direct-db-in-routes
type: boundary
description: "Routes must not import the database layer directly"
source: "routes/**"
blocked_imports:
- "sqlalchemy"
- "psycopg2"
severity: error
- id: layered-architecture
type: layer-boundary
description: "Enforce routes → services → repositories"
layers:
- name: routes
path: "routes/**"
- name: services
path: "services/**"
- name: repositories
path: "repositories/**"
allowed_dependencies:
routes: [services]
services: [repositories]
repositories: []
severity: error
Official rule packs
arklint search fastapi
arklint add arklint/fastapi
arklint add arklint/django
arklint add arklint/nextjs
arklint add arklint/express
arklint add arklint/clean-arch
Use in CI (.NET projects)
# .github/workflows/arklint.yml
- name: Install arklint
run: dotnet tool install -g arklint
- name: Run arklint
run: arklint check --diff origin/main --strict
Full documentation
https://arklint.elevane.org · GitHub · PyPI · npm
License
MIT © Kaushik13k
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.