Agent skill

Code Quality Metrics

by archibate in archibate/dotfiles-opencode

This skill should be used when the user asks about "code complexity", "cyclomatic complexity", "cognitive complexity", "code metrics", "maintainability index", "code coverage", or when measuring…

No licenceAuto-check passedDevelopment

Install Code Quality Metrics

skills CLI
$ npx skills add archibate/dotfiles-opencode --skill code-quality-metrics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install archibate/dotfiles-opencode code-quality-metrics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/archibate/dotfiles-opencode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-quality-metrics .claude/skills/code-quality-metrics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-quality-metrics
GitHub stars
108
Token cost
~1.3k tokens
SKILL.md length
483 words
Files
3 (incl. references)
Skills in repo
34
Repo updated
First seen
Licence
None found

At a glance

This skill should be used when the user asks about "code complexity", "cyclomatic complexity", "cognitive complexity", "code metrics", "maintainability index", "code coverage", or when measuring…

  • Works in 4 steps: +1 for each break in linear flow (if,… → +1 for each nesting level inside these… → +1 for binary logical operators (&&, ||) → …
  • Asks about code complexity
  • SKILL.md covers Overview, Complexity Metrics, Maintainability Metrics and Coupling Metrics, plus 4 more sections
  • Calls npx

What it does

Code Quality Metrics is an agent skill from archibate/dotfiles-opencode. This skill should be used when the user asks about "code complexity", "cyclomatic complexity", "cognitive complexity", "code metrics", "maintainability index", "code coverage", or when measuring code quality quantitatively. Provides metrics thresholds and measurement techniques.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `.skillfish.json` and `references/measurement-tools.md`).

It sits in Development, covering Code quality and Test coverage. The repository describes itself as: Archibate's personal configuration for OpenCode.

When your agent uses it

  • Asks about code complexity
  • Cyclomatic complexity
  • Cognitive complexity
  • Maintainability index

Example prompts

  • “code complexity”
  • “cyclomatic complexity”
  • “cognitive complexity”
  • “/code-quality-metrics”

Requirements

  • Python 3
  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. +1 for each break in linear flow (if, for, while, switch, catch, ?:)
  2. +1 for each nesting level inside these structures
  3. +1 for binary logical operators (&&, ||)
  4. Recursion adds +1

What it can do on your machine

Read from SKILL.md and the folder at commit 46b6b23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Quality Metrics loads about 1.3k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 75 tokens; SKILL.md has 483 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 483 words (~1,291 tokens).

“Code quality metrics provide quantitative measures of code characteristics. This skill covers complexity metrics, maintainability indices, and their practical thresholds across different languages.”

— opening of SKILL.md by archibate
name
code-quality-metrics
disable-model-invocation
true
version
0.1.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in skills/code-quality-metrics of archibate/dotfiles-opencode.

  • SKILL.md
  • .skillfish.json
  • references/measurement-tools.md

Open the folder on GitHubat commit 46b6b23

Compare with similar skills

Code Quality Metrics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Quality Metrics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Quality Metrics this skillarchibate/dotfiles-opencode108—~1.3kAutomated safety check: PassNone
Constraint-Driven Developmentaddyosmani/agent-skills103k2 repos~5.2kAutomated safety check: PassMIT
Code ReviewerYikai-Liao/symusic1891 repos~1.3kAutomated safety check: PassMIT
Code Quality ReviewStudentWeis/ropy194—~2.2kAutomated safety check: PassMIT
Code Quality WorkflowLiarMTTT/TavernWeave150—~3.3kAutomated safety check: PassCustom licence
Eval Code QualityIbrahim-3d/orchestrator-supaconductor380—~1.5kAutomated safety check: PassAGPL-3.0

Similar skills

  • Constraint-Driven Development

    addyosmani/agent-skills

    Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

    103k GitHub starsUsed in 2 repos~5.2k tokens
    DevelopmentAuto-check passed
  • Code Reviewer

    Yikai-Liao/symusic

    Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then…

    189 GitHub starsUsed in 1 repo~1.3k tokens
    DevelopmentAuto-check passed
  • Code Quality Review

    StudentWeis/ropy

    Review a code change, diff, pull request, module, or test suite for code quality, comment and documentation quality, and test quality.

    194 GitHub stars~2.2k tokensUpdated 29 days ago
    DevelopmentAuto-check passed
  • Code Quality Workflow

    LiarMTTT/TavernWeave

    End-to-end code quality workflow for evidence-backed code review, full repository reviews, architecture reviews of software and character-card systems, refactor decisions, authorized minimal…

    150 GitHub stars~3.3k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Eval Code Quality

    Ibrahim-3d/orchestrator-supaconductor

    Specialized code quality evaluator for the Evaluate-Loop. An agent skill from Ibrahim-3d/orchestrator-supaconductor.

    380 GitHub stars~1.5k tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Code Auditor

    mhattingpete/claude-skills-marketplace

    Performs comprehensive codebase analysis covering architecture, code quality, security, performance, testing, and maintainability.

    680 GitHub starsUsed in 1 repo~896 tokens
    DevelopmentAuto-check passed

More from archibate/dotfiles-opencode

All 34 skills in this repo
  • Pueue

    archibate/dotfiles-opencode

    This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage.

    108 GitHub starsUsed in 1 repo~637 tokens
    Auto-check passed
  • Show Image

    archibate/dotfiles-opencode

    Show images in terminal using the Kitty image protocol. An agent skill from archibate/dotfiles-opencode.

    108 GitHub starsUsed in 1 repo~596 tokens
    Auto-check passed
  • Glm Vision

    archibate/dotfiles-opencode

    This skill should be used when the user sends an image and asks to "analyze this image", "describe this picture", "what's in this image", or any request requiring visual understanding of images.

    108 GitHub stars~795 tokensUpdated 5 mo ago
    Auto-check passed
  • Show Image

    archibate/dotfiles-opencode

    Show images in terminal using the Kitty image protocol. An agent skill from archibate/dotfiles-opencode.

    108 GitHub starsUsed in 1 repo~622 tokens
    Auto-check passed
  • Tmux

    archibate/dotfiles-opencode

    Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output.

    108 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Bilibili API

    archibate/dotfiles-opencode

    This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to…

    108 GitHub stars~2.1k tokensUpdated 5 mo ago
    Auto-check: warnings

Categories

Questions about Code Quality Metrics

What does Code Quality Metrics do?

This skill should be used when the user asks about "code complexity", "cyclomatic complexity", "cognitive complexity", "code metrics", "maintainability index", "code coverage", or when measuring…. Code Quality Metrics is an agent skill from archibate/dotfiles-opencode. This skill should be used when the user asks about "code complexity", "cyclomatic complexity", "cognitive complexity", "code metrics", "maintainability index", "code coverage", or when measuring code quality quantitatively.

When should I use Code Quality Metrics?

Code Quality Metrics fits situations like: asks about code complexity; cyclomatic complexity; cognitive complexity; maintainability index.

How do I install Code Quality Metrics in Claude Code?

Run `npx skills add archibate/dotfiles-opencode --skill code-quality-metrics -a claude-code`. Or copy the skill folder (skills/code-quality-metrics in archibate/dotfiles-opencode) into .claude/skills/code-quality-metrics in your project. Claude Code loads it when a task matches its description.

How do I install Code Quality Metrics in Codex?

Run `npx skills add archibate/dotfiles-opencode --skill code-quality-metrics -a codex`. Or copy the skill folder (skills/code-quality-metrics in archibate/dotfiles-opencode) into .agents/skills/code-quality-metrics in your project. Codex loads it when a task matches its description.

Can I use Code Quality Metrics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add archibate/dotfiles-opencode --skill code-quality-metrics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-quality-metrics, .gemini/skills/code-quality-metrics, .github/skills/code-quality-metrics and .opencode/skills/code-quality-metrics in your project.

What does Code Quality Metrics need to run?

Going by SKILL.md and its folder, Code Quality Metrics needs the command-line tools its instructions call (npx). Our summary lists: Python 3; Node.js.

Does Code Quality Metrics access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Quality Metrics safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Quality Metrics use?

No licence was found for Code Quality Metrics or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Code Quality Metrics use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Code Quality Metrics?

Skills that share tags, products or a category with Code Quality Metrics: Constraint-Driven Development (addyosmani/agent-skills, 103k stars), Code Reviewer (Yikai-Liao/symusic, 189 stars), Code Quality Review (StudentWeis/ropy, 194 stars) and Code Quality Workflow (LiarMTTT/TavernWeave, 150 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Quality Metrics?

archibate (a GitHub user) maintains it in archibate/dotfiles-opencode, which has 108 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on April 29, 2026.

Source: archibate/dotfiles-opencode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.