/gabbe-coordination:agentic-linterfrom gabbe-coordination
Enforces architecture layer boundaries defined in AGENTS.md by detecting import violations, circular dependencies, and layer inversions. Proposes concrete fixes using the Dependency Inversion Principle.
Ships in gabbe-coordination. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Enforce the architectural layer rules defined in AGENTS.md Section 3. Act as a semantic linter that detects boundary violations and proposes concrete fixes using the Dependency Inversion Principle.
Load architecture rules from AGENTS.md
Run import graph analysis
For TypeScript/JavaScript (Node.js):
# Check circular dependencies
npx [email protected] --circular --extensions ts,js src/
# Check layer violations (if .dependency-cruiser.cjs configured)
npx dependency-cruiser --config .dependency-cruiser.cjs src/
For PHP/Laravel:
# Deptrac for DDD layer enforcement
vendor/bin/deptrac analyse --config-file deptrac.yaml
For Python/FastAPI:
# Import Linter (layer rules defined in .import-linter.ini)
lint-imports
Manual check (if tools not installed):
Classify violations
For each violation, propose a concrete fix
Circular dependency fix:
// PROBLEM: UserService imports OrderService, OrderService imports UserService
// SOLUTION: Extract shared interface
// src/domain/ports/user-query-port.ts
export interface IUserQueryPort {
findById(id: string): Promise<User | null>;
}
// UserService implements IUserQueryPort
// OrderService depends on IUserQueryPort (not UserService directly)
Layer inversion fix (Dependency Inversion Principle):
// PROBLEM: domain/User.ts imports from infrastructure/PrismaClient
// SOLUTION: Create interface in inner layer
// src/domain/ports/user-repository.ts
export interface IUserRepository {
save(user: User): Promise<void>;
findById(id: string): Promise<User | null>;
}
// src/infrastructure/prisma-user-repository.ts
// implements IUserRepository (infrastructure depends on domain, not reverse)
Apply fixes (if instructed, or propose for human review)
Re-run analysis — confirm violations are resolved
Generate configuration file (if requested)
// .dependency-cruiser.cjs — generated configuration
module.exports = {
forbidden: [
{
name: 'domain-not-to-infrastructure',
severity: 'error',
from: { path: '^src/domain' },
to: { path: '^src/infrastructure' }
},
{
name: 'no-circular',
severity: 'error',
from: {},
to: { circular: true }
}
]
};
Violation report with file:line references + concrete fix for each. Run summary: "[N] violations found, [N] fixed, [N] proposed for review."
.dependency-cruiser.cjs, deptrac.yaml or the import-linter config to make a violation disappear; changing them needs the human's yes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/agentic-patternsImplements advanced AI patterns like Reflection, ReAct, Planning, and Tool Use. Use when: agentic, reflection, react pattern, planning, memory, tool use./agent-interopManage connections, handshakes, and protocol negotiation between agents (MCP, A2A, ACP). Use when: Connect to agent [Name], Negotiate protocol, Send A2A message, Establish handshake, Join swarm./agent-protocolDefines and validates standard communication protocols between agents (A2A). Use when: protocol, handshake, ipc, agent-messaging, a2a./agent-workflow-patternsBuild LLM systems from composable workflow patterns (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) and decide workflow vs. autonomous agent. Use when: prompt chaining, routing workflow, parallelization sectioning, orchestrator workers, evaluator optimizer, workflow vs agent, build effective agents, fan-out fan-in./meta-optimizeSelf-refining engine — analyze repeated failures in other skills and rewrite their prompts/logic to improve future runs. Use when: optimize skill, refine prompt, improve agent, meta-learning, self-evolution, fix recurring error./meta-promptingWrite or tighten a prompt for a sub-agent: role, context, constraints, reasoning style, examples. Use when delegating a task or when a prompt gives inconsistent results.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coordinationOther plugins' skills for the same job