بنقرة واحدة
linting-workflow-skill
Generic linting workflow for multiple languages with auto-fix and error resolution
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generic linting workflow for multiple languages with auto-fix and error resolution
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Deploy and troubleshoot Next.js 16+ applications on AWS Amplify Hosting — build spec (amplify.yml), SSR Lambda env-var injection, CloudFront OAC, Route53 DNS, GitHub Actions deploy triggers, post-deploy verification, and rollback strategy
Design and document APIs — REST conventions, OpenAPI/Swagger spec generation, GraphQL schema patterns, API versioning, pagination, rate limiting, error response formats, and HATEOAS
Implement authentication and authorization patterns — OAuth2/OIDC flows, JWT best practices, session management, RBAC/ABAC, NextAuth/Auth.js, Passport.js, password hashing, and CSRF protection
Apply clean architecture principles with vertical slicing, dependency rule, clear layer boundaries, and feature-first organization - language-agnostic
Write clean, human-readable code with proper naming, small functions, self-documenting patterns, and object calisthenics - language-agnostic
Detect and fix code smells including long methods, large classes, feature envy, primitive obsession, and more with refactoring guidance - language-agnostic
| name | linting-workflow-skill |
| description | Generic linting workflow for multiple languages with auto-fix and error resolution |
| license | Apache-2.0 |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"code-quality","protocol":"autoresearch-opt-in"} |
I provide a generic linting workflow for multiple languages:
Use when:
This is a framework skill - provides linting logic that other skills extend.
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.config.ts/js/mjs, .eslintrc.json/js/yamlpyproject.toml, .ruff.toml, ruff.toml| 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 |
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
Auto-fix commands:
npm run lint -- --fixnpx prettier --write .ruff check . --fixblack .Auto-fix capabilities:
Error categories:
Resolution workflow:
Re-run linting:
# Re-check after manual fixes
npm run lint # or
ruff check .
Commit fixes:
git add .
git commit -m "fix(lint): resolve linting errors"
Install linter:
npm install --save-dev eslint # ESLint
pip install ruff # Ruff
Create default config:
.eslintrc.json with {"extends": "eslint:recommended"}pyproject.toml with [tool.ruff] line-length = 88DO NOT execute any of the following unless AUTORESEARCH_PROTOCOL=1 is set in your environment. When unset, this skill behaves exactly as documented in all sections above; the Iteration Protocol block is descriptive only.
When AUTORESEARCH_PROTOCOL=1:
autoresearch-core-skill/SKILL.md.{"pass":bool,"score":N} JSON from a mechanical evaluator. Pass determines keep/revert; score logged to linting-results.tsv. See autoresearch-core-skill/references/evaluator-contract.md.autoresearch-core-skill/references/stuck-detection.md.linting-results.tsv (8-column: iteration, commit, metric, delta, status, description, timestamp, evaluator_output). See autoresearch-core-skill/references/audit-trail.md.autoresearch-core-skill/references/crash-recovery.md.git reset --hard HEAD~1) on pass:false.Iterations: 25); safety blocks .env, node_modules/, rm -rf, git push --force. See autoresearch-core-skill/references/iteration-safety.md.Stuck detection + crash recovery. 3 consecutive iterations without reducing lint-error-count → pivot to a different rule category (e.g., from E to W, or from style to type). Crash recovery: syntax errors introduced by auto-fix → revert immediately (don't count as iteration); rule conflicts → skip rule, log to linting-results.tsv.
Iterations: unlimited overrides)