Skip to content
Back to skills

Coding Conventions Agent

ASecurity

Enforces codebase coding conventions, file headers, type hints, Google docstrings, and naming standards across languages.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsjavascripttypescriptpythongojavac#bashreactdocumentation

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill coding-conventions-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding Conventions Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding Conventions Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-coding-conventions-agent-agent-plugins-skills/badge)](https://www.skillsdirectory.com/skills/richfrem-coding-conventions-agent-agent-plugins-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coding-conventions-agent
plugin: dev-utils
description: Enforces codebase coding conventions, file headers, type hints, Google docstrings, and naming standards across languages.
allowed-tools: Read, Write, Bash
---

# Coding Conventions Agent (`coding-conventions-agent`)

Enforces project-wide coding policy alignment across Python, TypeScript/JavaScript, and C#/.NET.

## Contents

- [Critical Constraints](#critical-constraints)
- [Header Templates](#header-templates)
- [Naming Conventions](#naming-conventions)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Dual-Layer Docs**: External comment above + internal docstring inside every non-trivial function/class.
2. **File Headers**: Every source file must begin with a standardized purpose header.
3. **Type Annotations**: All Python function signatures require complete type annotations.
4. **Refactor Threshold**: Functions exceeding 50+ lines or 3+ nesting levels must be refactored into helpers.
5. **Zero Stubs**: Reject placeholder tokens (`TODO`, `TBD`, `[NEEDS INPUT]`) in completed code.

## Header Templates

Use templates located in `assets/templates/`:
- [Python Template](assets/templates/python-tool-header-template.py)
- [JavaScript / TypeScript Template](assets/templates/js-tool-header-template.js)
- [React TSX Template](assets/templates/tsx-tool-header-template.tsx)
- [Bash Tool Template](assets/templates/bash-tool-header-template.sh)

## Naming Conventions

| Language | Functions/Vars | Classes | Constants | Private Fields |
|---|---|---|---|---|
| **Python** | `snake_case` | `PascalCase` | `UPPER_SNAKE_CASE` | `_leading_underscore` |
| **TS/JS** | `camelCase` | `PascalCase` | `UPPER_SNAKE_CASE` | `_leading_underscore` |
| **C#** | `PascalCase` (public) | `PascalCase` | `PascalCase` | `_camelCase` |

## Quick start

Execute the workspace conventions auditor across the project:

```bash
python3 scripts/workspace_conventions_auditor.py
```

## Workflow

1. **Language Detection**: Identify target file languages and load corresponding header templates.
2. **Standard Enforcement**: Apply dual-layer documentation and type annotations to new/modified code.
3. **Threshold Check**: Extract any function exceeding 50 lines or 3 nesting levels into named helpers.
4. **Audit Execution**: Run `workspace_conventions_auditor.py` to confirm full compliance.

## Verification

Review audit findings in generated report:

```bash
python3 scripts/workspace_conventions_auditor.py && test -f temp/workspace_conventions_report.md
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Compliance gates and indexing checks.
- [coding-conventions.md](references/coding-conventions.md) — Authoritative codebase coding standards.
- [fallback-tree.md](references/fallback-tree.md) — Fallback protocol when templates or threshold limits are encountered.
- [graph-planning-superpowers-policy.md](references/graph-planning-superpowers-policy.md) — Graph planning and code quality rules.
- [map-debt.md](references/map-debt.md) — Technical debt and friction log.

Files in this skill

  • SKILL.md5.9 KB
  • acceptance-criteria.md501 B
  • assets/templates/bash-tool-header-template.sh57 B
  • assets/templates/js-tool-header-template.js55 B
  • assets/templates/python-tool-header-template.py59 B
  • assets/templates/tsx-tool-header-template.tsx57 B
  • evals/evals.json696 B
  • evals/results.tsv301 B
  • fallback-tree.md1 KB
  • references/acceptance-criteria.md42 B
  • references/coding-conventions.md36 B
  • references/graph-planning-superpowers-policy.md51 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.