linting-workflow-skill

linting-workflow-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 21 tokens per session (1,572 once invoked), scanned C, original, Apache-2.0.

A general workflow for finding and fixing lint errors across several programming languages. A linter checks code against style and correctness rules before it is committed or reviewed.

In plain words
What is it for?
It detects the language, linter, package manager, and configuration, then runs checks, applies automatic fixes when available, and verifies the result.
Why use it?
It avoids having to remember different lint commands and fixing methods for each language and project setup.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Good fit It detects the language, linter, package manager, and configuration, then runs checks, applies automatic fixes when available, and verifies the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/linting-workflow-skill
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 darellchua2/opencode-config-template --skill linting-workflow-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: OpenCode.

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 linting-workflow-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/linting-workflow-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/linting-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/linting-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/linting-workflow-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,572 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00021 $0.01572
Opus 5 $0.00010 $0.00786
Sonnet 5 $0.00004 $0.00314
Haiku 4.5 $0.00002 $0.00157

Measured 4d ago against content hash df5567909781, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

linting-workflow-skill scanned grade C with 1 finding 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 4d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

9. **Iteration safety**: bounded-by-default (`Iterations: 25`); safety blocks `.env`, `node_modules/`, `rm -rf`, `git push --force`. See `autoresearch-core-skill/references/iteration-safety.md`.
opencode_app/.opencode/skills/linting-workflow-skill/SKILL.md · 170 lines

How it starts

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

What I do

I provide a generic linting workflow for multiple languages:

  • Detect project language and linter configuration
  • Run linting and apply auto-fix when available
  • Guide resolution of linting errors
  • Verify fixes and commit changes

When to use me

Use when:

  • Linting code before committing or PRs
  • Building workflow skills with code quality checks
  • Need consistent linting across multiple languages

This is a framework skill - provides linting logic that other skills extend.

Steps

Step 1: Detect Language and Linter

Detection:

  • package.json + tsconfig.json → TypeScript (ESLint)
  • package.json → JavaScript (ESLint)
  • pyproject.toml / requirements.txt → Python (Ruff)
  • go.mod → Go (golint/golangci-lint)
  • Gemfile → Ruby (RuboCop)

Configuration files:

  • ESLint: eslint.config.ts/js/mjs, .eslintrc.json/js/yaml
  • Ruff: pyproject.toml, .ruff.toml, ruff.toml

Step 2: Detect Package Manager

Language Manager Lock File Command
JS/TS npm package-lock.json npm run <script>
JS/TS yarn yarn.lock yarn <script>
JS/TS pnpm pnpm-lock.yaml pnpm run <script>
Python Poetry pyproject.toml poetry run <script>
Python pip requirements.txt Direct command

Step 3: Run Linting

Commands:

# JavaScript/TypeScript (ESLint)
npm run lint              # npm
yarn lint                 # yarn
pnpm run lint            # pnpm
npx eslint .             # direct

# Python (Ruff)
ruff check .             # direct
poetry run ruff check .  # poetry

Step 4: Apply Auto-Fix

Auto-fix commands:

  • ESLint: npm run lint -- --fix
  • Prettier: npx prettier --write .
  • Ruff: ruff check . --fix
  • Black: black .

Auto-fix capabilities:

  • Style violations, unused variables, simple syntax issues
  • Formatting, indentation, quotes
  • Unused imports, simple refactorings

Step 5: Fix Remaining Errors

Read the full file on GitHub · 170 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. 4d ago First seen · 170 lines · 21 tokens per session scan C df5567909781

Subscribe to this mod's changes

linting-workflow-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 21 tokens to every session and 1,572 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

cs0618-hunter

Detects and fixes CS0618 obsolete API warnings in .NET builds. The compiler is the authoritative source for what your project actually triggers — it catches transitive obsoletions, overload-resolution surprises, and project-local [Obsolete] attributes that static inspection cannot see. Pair with the repository-pinned…

joslat/maf-doctor · 85 tokens

nuget-diff-analyzer

Post-processes the repository-pinned [email protected] -- diff output into a categorised report (breaking / additive / newly-obsolete) with each finding cross-referenced to the MAF obsolete-API registry.

joslat/maf-doctor · 56 tokens

dotnet-reverse

A guide for analyzing compiled .NET and C# programs, including managed Windows executables and libraries. Reverse engineering means studying compiled software to understand how it works, and decompiling turns it back into readable approximate source code.

zhaoxuya520/reverse-skill · 144 tokens

dart-run-static-analysis

Execute dart analyze to identify warnings and errors, and use dart fix --apply to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.

flutter/agent-plugins · 43 tokens

agents-sdk-dotnet-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…

microsoft/Agents · 136 tokens

golang-error-handling

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log…

samber/cc-skills-golang · 144 tokens