forge-coding-standards

forge-coding-standards is a skill for Claude Code from Hassaan146/forge-mentor. It costs 40 tokens per session (567 once invoked), scanned A, original, MIT.

A set of coding rules applied while building or editing a Forge project, so code written at different times follows the same style and safety rules.

In plain words
What is it for?
Use it to guide naming, function and module structure, comments, error handling, and recorded exceptions to the rules.
Why use it?
It reduces inconsistent code, unclear errors, and rules being forgotten between build steps or work sessions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the forge plugin — 4 skills, 6 commands, 4 agents, 4 hooks, 1 MCP server shipped together

Good fit Use it to guide naming, function and module structure, comments, error handling, and recorded exceptions to the rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hassaan146/forge-mentor/forge-coding-standards
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Hassaan146/forge-mentor --skill forge-coding-standards
Clone the repo
git clone --depth 1 https://github.com/Hassaan146/forge-mentor

Made for: Claude Code.

Or install forge, the plugin that ships this one along with the rest of its 4 skills, 6 commands, 4 agents, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for forge-coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/hassaan146/forge-mentor/forge-coding-standards.svg)](https://agentmods.dev/skills/hassaan146/forge-mentor/forge-coding-standards)
Your own site
<a href="https://agentmods.dev/skills/hassaan146/forge-mentor/forge-coding-standards"><img src="https://agentmods.dev/badge/skills/hassaan146/forge-mentor/forge-coding-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00567
Opus 5 $0.00020 $0.00283
Sonnet 5 $0.00008 $0.00113
Haiku 4.5 $0.00004 $0.00057

Measured 8d ago against content hash 896719ab4537, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

forge-coding-standards scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/forge-coding-standards/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coding standards

Loaded on every build step. Not advice — the reason the project still looks like one project by phase eight, when the code was written weeks apart across different sessions.

Overridable, but only by a recorded decision that says which rule and why. The security floor is the exception; it is not overridable at all.

Write for the person who reads it next

  • Names say what a thing is, not what type it is. pending_invoices, not list2.
  • A function does one thing at one level of abstraction. If the name needs "and", split it.
  • Comments say why, never what. The code already says what. A comment restating the line above it is noise; a comment explaining the constraint that forced an odd shape is the most valuable line in the file.
  • Match the surrounding code. A file with one clever idiom in it reads worse than a plain file.

Errors

  • Fail on the specific exception, never a bare catch-all.
  • An error message says what failed, what was expected, and what to do next.
  • Never swallow an error to make a test pass. Never log-and-continue where the caller needed to know.

Structure

  • One responsibility per module. When a file needs "and" to describe it, it is two files.
  • Dependencies point inward: the thing that changes often depends on the thing that does not.
  • No configuration in code. No magic numbers — a named constant says what the number means.

Tests

  • A test names the behaviour it protects, not the function it calls: test_a_write_with_no_decision_is_blocked, not test_governor_2.
  • Every test must be able to fail. A trailing or True slipped through here once and the test looked green for weeks.
  • Test the boundary and the failure, not only the happy path. The happy path is the case that was already working.
  • Prefer a real filesystem or a real repository over a mock wherever it is cheap. A mock proves the code calls what you expected, not that it works.

What to do when the standards and the request conflict

Read the full file on GitHub · 52 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 52 lines · 40 tokens per session scan A 896719ab4537

Subscribe to this mod's changes

forge-coding-standards is a skill published in the GitHub repository Hassaan146/forge-mentor (22 stars, last pushed 22d ago), licensed MIT. It adds 40 tokens to every session and 567 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

source-command-audit-whitepapers

Audit version freshness, FR/EN parity, and metadata quality of all whitepapers and recap cards.

FlorianBruniaux/claude-code-ultimate-guide · 26 tokens

audit-agents-skills

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

FlorianBruniaux/claude-code-ultimate-guide · 41 tokens

design-patterns

Detect, suggest, and evaluate GoF design patterns in TypeScript/JavaScript codebases. Use when refactoring code, applying singleton/factory/observer/strategy patterns, reviewing pattern quality, or finding stack-native alternatives for React, Angular, NestJS, and Vue.

FlorianBruniaux/claude-code-ultimate-guide · 59 tokens

eval-agents

Audit Claude Code agents defined in .claude/agents/ for description specificity, model tier appropriateness, tools scoping, and system prompt quality. Detects dispatch ambiguity between agents, flags over-permissive tool grants, and checks for human-in-the-loop patterns that break programmatic orchestration. Use when…

FlorianBruniaux/claude-code-ultimate-guide · 93 tokens

issue-triage

3-phase issue backlog management with audit, deep analysis, and validated triage actions. Use when triaging GitHub issues, sorting bug reports, cleaning up stale tickets, or detecting duplicate issues. Args: 'all' to analyze all, issue numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit only.

FlorianBruniaux/claude-code-ultimate-guide · 81 tokens

pr-triage

4-phase PR backlog management with audit, deep code review, validated comments, and optional worktree setup. Use when triaging pull requests, catching up on pending code reviews, or managing a backlog of open PRs. Args: 'all' to review all, PR numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit…

FlorianBruniaux/claude-code-ultimate-guide · 86 tokens