code-metrics SKILL.md skillA

code-metrics from jvoliveiran/constellation-harness is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add jvoliveiran/constellation-harness/code-metrics@git:20260902.647530a

Pins git:20260902.647530a in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
jvoliveiran/constellation-harness
Path
plugins/constellation/skills/code-metrics/SKILL.md
Versions recorded
4
Latest version
git:20260902.647530a, committed Sep 2, 2026
First version recorded
Aug 24, 2026
Size
6,581 bytes
Repository stars
10
License
MIT

Numeric code-quality budgets (function/file size, params, complexity) enforced mechanically at the Lint Gate, plus structural boundary rules via dependency-cruiser and the exception-audit policy. Loaded by the engineer agents when writing code and referenced by the Code Reviewer when auditing suppressions.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Code Metrics & Boundaries

Numeric budgets against the failure modes agent-written code drifts toward: god classes, long complex functions, files with no separation of concerns. The budgets live here; the **enforcement lives in the project's linter**, wired into `commands.lint` and run by the Lint Gate — rules in prompts drift, rules in gates hold.

## The Budgets

| Metric | Budget | ESLint rule |
|---|---|---|
| Function parameters | ≤ 3 | `max-params` |
| Function length | ≤ 50 lines (excl. blanks/comments) | `max-lines-per-function` |
| File length | ≤ 300 lines (excl. blanks/comments) | `max-lines` |
| Cyclomatic complexity | ≤ 10 | `complexity` |
| Cognitive complexity | ≤ 15 | `sonarjs/cognitive-complexity` |
| Nesting depth | ≤ 4 | `max-depth` |

All budgets are **errors, not warnings** — the Lint Gate treats a violation like any other lint failure. These are starting values, deliberately achievable; tighten per project once a baseline holds (record the decision in an ADR).
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jvoliveiran/constellation-harness/code-metrics@sha256:5f4b3cf78cb8abe3

The line at the top of this page pins the label git:20260902.647530a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_52m7ep4tgkxfk42q.svg)](https://markdownregistry.com/a/art_52m7ep4tgkxfk42q)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Aug 24, 2026 and Sep 2, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20260902.647530a latest2026-09-02 647530a 6,581 BA view · diff
git:20260828.c3e4efb2026-08-28 c3e4efb 6,570 BA view · diff
git:20260828.a89ede02026-08-28 a89ede0 6,298 BA view · diff
git:20260824.c5fdf862026-08-24 c5fdf86 6,123 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6581 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jvoliveiran/constellation-harness · 10 stars · license MIT · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_52m7ep4tgkxfk42q
GET https://markdownregistry.com/api/v1/resolve?ref=jvoliveiran/constellation-harness/code-metrics
GET https://markdownregistry.com/api/v1/blob/5f4b3cf78cb8abe3d1f9a4c09c3298c59f3fe8c154e568df34c8d40ce10ddcb8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from jvoliveiran/constellation-harness

AGENTS.md@docs/spikes/opencode-port AGENTS.md file
jvoliveiran/constellation-harness · docs/spikes/opencode-port/AGENTS.md
git:20260921.d132908 · audit A · 10 stars
frontend-design SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-frontend/skills/frontend-design/SKILL.md · Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to…
git:20260611.d17d9ad · audit A · 10 stars
cloud-accessory-services SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-infra/skills/cloud-accessory-services/SKILL.md · The services around the app — secrets (OCI Vault / AWS Secrets Manager), TLS certificates, DNS, container registries…
git:20260708.0e0f20a · audit A · 10 stars
oci-container-platform SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-infra/skills/oci-container-platform/SKILL.md · Running Docker containers and databases on OCI inside the Always Free tier — the AWS Lightsail equivalent built from…
git:20260708.0e0f20a · audit A · 10 stars
terraform-environments SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-infra/skills/terraform-environments/SKILL.md · Multi-environment Terraform — remote state backends (OCI Object Storage or S3), directory-per-environment layout…
git:20260708.0e0f20a · audit A · 10 stars
terraform-module-design SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-infra/skills/terraform-module-design/SKILL.md · Designing reusable Terraform modules as composable building blocks — interface conventions, file layout, versioning…
git:20260708.0e0f20a · audit A · 10 stars
error-handling SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-node/skills/error-handling/SKILL.md · Domain exception hierarchy, error codes, GraphQL error formatting, and error logging standards for a NestJS + GraphQL…
git:20260610.47ec162 · audit A · 10 stars
graphql-federation SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-node/skills/graphql-federation/SKILL.md · How to build a graphql federated API approach, composing a supergraph based on subgraph graphql servers
git:20260610.47ec162 · audit A · 10 stars
graphql SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-node/skills/graphql/SKILL.md · How to use graphql with Nestjs and Typescript on a code-first approach
git:20260610.47ec162 · audit A · 10 stars
nestjs SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-node/skills/nestjs/SKILL.md · Most recommended practices and modules to use alongside with NestJS framework for backend development
git:20260610.47ec162 · audit A · 10 stars
observability SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-node/skills/observability/SKILL.md · Logging, tracing, and monitoring standards using Winston and OpenTelemetry in a NestJS + TypeScript backend
git:20260610.47ec162 · audit A · 10 stars
prisma-migrations SKILL.md skill
jvoliveiran/constellation-harness · plugins/constellation-stack-node/skills/prisma-migrations/SKILL.md · Best practices for Prisma schema changes, migrations, seeding, and rollback in a NestJS + TypeScript backend
git:20260610.47ec162 · audit A · 10 stars

Every file in jvoliveiran/constellation-harness

Other files named code-metrics

code-metrics SKILL.md skill
amey-thakur/ai-skills · skills/code-quality/code-metrics/SKILL.md · Read code metrics as smoke that points at where to look, not as verdicts that rank code good or bad. Use when triaging…
git:20260728.fac4544 · audit A · 10 stars

Browse by kind, by grade A, or by owner.