
codebase-attributes-plugin
Structured codebase health attributes that route findings to specialized agents by severity.
- version
- 1.3.4
- GitHub stars
- 60
What it does
- Adds
/attributes:collect,/attributes:route, and/attributes:dashboardfor scanning health signals and acting on them - Collects findings for docs, tests, security, quality, and CI into JSON with severity and remediation actions
- Routes each attribute to security-audit, test, docs, or refactor agents, prioritized from critical down to info
- Injects a one-line SessionStart cue, at most once per session, naming the top severity and category when
.claude/attributes.jsonexists
Structured codebase health attributes with severity-based agent routing and dashboard
Add marketplace
/plugin marketplace add laurigates/claude-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install codebase-attributes-plugin@laurigates-claude-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from source/attributes:collect
Collect structured codebase health attributes with severity and remediation actions.
When to Use This Skill
| Use this skill when... | Use another approach when... |
|---|---|
| Need structured health assessment before routing | Quick health score only (use /health:check) |
| Want machine-readable attribute JSON | Human-readable report (use /attributes:dashboard) |
| Planning which agents to invoke | Already know what needs fixing |
| Comparing health across repos | Checking specific component only |
Parameters
| Parameter | Description |
|---|---|
--output <path> | Write JSON to file (default: stdout) |
--categories <list> | Comma-separated categories to check: docs,tests,security,quality,ci |
Execution
Perform these checks and output structured JSON.
Step 1: Documentation Attributes
Check for these files and emit attributes:
| Check | Attribute ID | Severity |
|---|---|---|
| README.md exists | missing-readme | high |
| README.md > 200 chars | short-readme | low |
| CLAUDE.md exists | missing-claude-md | medium |
| docs/ directory exists | no-docs-directory | low |
| LICENSE file exists | missing-license | low |
Score: Start at 0, add points per check (max 20).
Step 2: Testing Attributes
| Check | Attribute ID | Severity |
|---|---|---|
| tests/ or test/ directory exists | no-test-directory | high |
| Test config file exists (vitest, jest, pytest, etc.) | no-test-config | medium |
| CI workflow runs tests | no-ci-tests | high |
Test configs to look for: vitest.config.{ts,js}, jest.config.{js,ts}, pytest.ini, conftest.py, playwright.config.ts
Step 3: Security Attributes
| Check | Attribute ID | Severity |
|---|---|---|
| .gitignore exists | missing-gitignore | high |
| .env file NOT committed | env-file-committed | critical |
| Pre-commit hooks configured | no-pre-commit-hooks | medium |
| Security scanning in CI | no-security-scanning | high |
| Dependabot configured | no-dependabot | low |
Step 4: Code Quality Attributes
| Check | Attribute ID | Severity |
|---|---|---|
| Linter configured (eslint, biome, ruff) | no-linter-configured | medium |
| Formatter configured (prettier, biome, ruff) | no-formatter | medium |
| Type checking (tsconfig, pyright, mypy) | no-type-checking | low |
Step 5: CI/CD Attributes
| Check | Attribute ID | Severity |
|---|---|---|
| CI workflows exist | no-ci-workflows | high |
| Workflows dir has files | empty-workflows-dir | medium |
Step 6: Output
Output JSON matching this schema:
{
"version": "1",
"repo": "<path>",
"timestamp": "<ISO 8601>",
"attributes": [
{
"id": "missing-readme",
"category": "docs",
"severity": "high",
"description": "Missing README.md",
"source": "attributes-collect",
"actions": [
{"type": "agent", "target": "docs", "args": "create README.md", "auto_fixable": true}
]
}
],
"scores": {
"overall": 72,
"grade": "C",
"max_score": 100,
"categories": {"docs": 15, "tests": 12, "security": 8, "quality": 17, "ci": 20}
}
}
If --output is specified, write the JSON to that file.
Agentic Optimizations
| Context | Command |
|---|---|
| Full attribute collection | /attributes:collect |
| Save to file | /attributes:collect --output .claude/attributes.json |
| Specific categories | /attributes:collect --categories security,tests |
| Check README exists | test -f README.md && echo exists || echo missing |
| Check test dir | test -d tests || test -d test && echo exists || echo missing |
| Count README chars | wc -c < README.md 2>/dev/null || echo 0 |
Readme
codebase-attributes-plugin
Structured codebase health attributes with severity-based agent routing.
Flow
See docs/flow.md for a diagram of how the skills fit together.
SessionStart Cue
When .claude/attributes.json exists in a repo, the plugin injects a one-line additionalContext cue at session startup/resume offering to run /attributes:route or /attributes:dashboard. The cue fires at most once per session and names the highest severity and category found. It never blocks — it is purely informational.
Skills
| Skill | Description |
|---|---|
/attributes:collect | Collect codebase health attributes as structured JSON |
/attributes:route | Route to specialized agents based on attribute severity |
/attributes:dashboard | Compact text-based health dashboard with findings |
How It Works
- Collect —
/attributes:collectscans the codebase for health signals (README, tests, linter, CI, security) and emits structured JSON with severity and remediation actions - Route —
/attributes:routereads the attributes and delegates to the right agents (security-audit, test, docs, etc.) based on priority - Dashboard —
/attributes:dashboardrenders a compact terminal-style health overview
Attribute Schema
Each attribute contains:
| Field | Type | Description |
|---|---|---|
id | string | Kebab-case identifier (e.g., missing-readme) |
category | string | docs, tests, security, quality, ci |
severity | string | critical, high, medium, low, info |
description | string | Human-readable finding |
source | string | Collector that produced this attribute |
actions | array | Remediation actions with agent targets |
Integration
Works with the git-repo-agent Python tool (which produces the same JSON schema) and the agents-plugin router agents.
Details
- Marketplace
- laurigates/claude-plugins
- Source
- codebase-attributes-plugin
- Author
- Lauri Gates
- Category
- Quality
- License
- MIT
- Keywords
- attributes, health, routing, agents, diagnostics, dashboard
- Listed since
- Apr 7, 2026
More from laurigates/claude-plugins
All 52- comfyui-pluginv1.15.7
- communication-pluginv1.2.7
- component-patterns-pluginv1.5.4
- configure-pluginv1.43.12
- container-pluginv2.11.5
- css-pluginv1.2.4
- documentation-pluginv1.16.1
- evaluate-pluginv1.21.1
- feedback-pluginv1.16.3
- finops-pluginv1.4.7
- foundryvtt-pluginv1.6.4
- git-pluginv2.74.4
- github-actions-pluginv1.13.8
- health-pluginv1.24.9
- home-assistant-pluginv1.4.1
- hooks-pluginv2.22.3
- kernel-pluginv1.1.1
- kitty-pluginv2.0.0
- kubernetes-pluginv1.10.4
- langchain-pluginv1.5.10
- linux-pluginv1.1.1
- macos-pluginv2.0.1
- migration-patterns-pluginv1.7.1
- networking-pluginv1.4.3
Similar to codebase-attributes-plugin
More Code Review & Quality
code-quality-pluginPluginlaurigates/claude-plugins60 starsCode review, refactoring, linting, dependency auditing, dead code detection, test quality, complexity metrics, and static analysis
health-pluginPluginlaurigates/claude-plugins60 starsDiagnose and fix Claude Code configuration issues - plugin registry, settings, hooks, MCP servers
codebase-healthPluginmelodic-software/claude-code-plugins32 starsRepo-wide drift audit between docs, config, code, and architecture: verifies every factual claim against reality via parallel subagent fan-out, severity-rates f
Codebase MemoryMCP serverdeusdata49K starsLocal knowledge graph that connects code, docs, and infrastructure for AI coding agents.
healthSkilltw93/waza16.5K installsAgent-assisted health audit for agent config drift, hooks/MCP, verifier coverage, and AI maintainability.
agent-architecture-auditSkillaffaan-m/ecc6.3K installsFull-stack diagnostic that audits twelve agent layers for regressions, memory pollution, and hidden repair loops.