Loading...
Loading...
Polyglot Clean Architecture governance, dynamic visual workbench companion, policy scaffolding, mailbox refactoring protocols, LLM prompt dossiers, and Model Context Protocol (MCP) diagnostics for Archlens.
npx skill4agent add fmatar/archlens archlens.archlens/policy.json.archlens/to-agent.json.archlens/to-viewer.jsoninspectArchitectureexportLlmDossierlistSnapshotsgetSnapshot[Level 3: Infrastructure / Web / DB / CLI]
│
▼
[Level 2: Adapters / Controllers / Presenters / Gateways]
│
▼
[Level 1: Application / Use Cases / Ports]
│
▼
[Level 0: Domain Core / Entities / Value Objects][!IMPORTANT] Dependency Inversion Principle (DIP): When an inner layer (e.g. Domain or Application) needs a service provided by an outer layer (e.g. Database or External API), declare an interface port in the inner layer. Implement the interface in the outer layer (Adapter), and inject it.
skills.sh# Add Archlens to your active agent skills library:
npx skills add fmatar/archlens# Initialize Clean Architecture policy in target project:
npx @fmatar/archlens-skill --path . --yes
# Launch Workbench container (auto-resurrects on demand if stopped or killed):
npx @fmatar/archlens-skill start --open
# Export Clean Architecture LLM Refactoring Prompt Dossier:
npx @fmatar/archlens-skill prompt --path .
# Copy LLM refactoring prompt directly to system clipboard:
npx @fmatar/archlens-skill prompt --path . --copy
# Synchronize policy with newly added packages:
npx @fmatar/archlens-skill update --path .
# Migrate legacy .uml-viewer configuration to modern .archlens layout:
npx @fmatar/archlens-skill upgrade --path .
# Auto-configure MCP manifests for AI assistants (Antigravity, Claude, Cursor):
npx @fmatar/archlens-skill --mcp
# Launch Model Context Protocol (MCP) stdio server:
npx @fmatar/archlens-skill mcpnpx @fmatar/archlens-skill start --openarchlens-skill starthttp://localhost:8088quarkus-run.jar~/.archlens/target/--jar <PATH>archlens-server--docker--nativeinspectArchitectureexportLlmDossierhttp://localhost:8088.archlens/to-agent.json.uml-viewer/to-agent.json.archlens/to-viewer.json.uml-viewer/to-viewer.jsonto-agent.json{
"nextId": 2,
"queue": [
{
"id": 1,
"op": "REGEN",
"target": { "id": "project" },
"payload": {}
}
]
}REGENmvn test-compileREGEN_COMPLETEAPPLY_PROPOSAL.archlens/policy.jsonREFRESH_CRAPmvn testnpm testREFRESH_MUTATIONOMIT:omitto-viewer.json.archlens/to-viewer.json{
"op": "REGEN_COMPLETE",
"target": { "id": "project" },
"payload": { "status": "SUCCESS" }
}| MCP Tool | Purpose | Key Arguments |
|---|---|---|
| Inspect concentric rings, outward violations, and instability metrics | |
| Generate copy-ready LLM refactoring prompt with DIP prescriptions | |
| List historical Git release tags and pre-compiled architecture snapshots | |
| Retrieve graph model for a historical release or snapshot tag | |