Get the FREE Ultimate OpenClaw Setup Guide →

ln-740-quality-setup

Scanned
npx machina-cli add skill levnikolaevich/claude-code-skills/ln-740-quality-setup --openclaw
Files (1)
SKILL.md
5.5 KB

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

ln-740-quality-setup

Type: L2 Domain Coordinator Category: 7XX Project Bootstrap Parent: ln-700-project-bootstrap

Coordinates code quality tooling configuration for the project.


Purpose & Scope

Does:

  • Detects project technology stack (TypeScript/React, .NET, Python)
  • Checks for existing quality configurations
  • Delegates to specialized workers for each quality aspect
  • Verifies final configuration works correctly

Does NOT:

  • Generate configuration files directly (workers do this)
  • Modify source code
  • Run in isolation (requires ln-720 structure first)

When to Use

TriggerAction
After ln-720-structure-migrator completesAutomatic delegation from ln-700
Manual quality setup neededInvoke directly with project path
Existing project needs quality toolsRun with existing config detection

Workflow Overview

PhaseActionOutput
1Stack DetectionIdentified technologies
2Existing Config CheckSkip/merge/replace decisions
3Parallel DelegationWorker invocations
4VerificationWorking quality pipeline

Phase 1: Stack Detection

Detect project technologies to determine which quality tools to configure.

Detection Rules:

File PatternTechnologyLinter Stack
package.json + tsconfig.jsonTypeScript/ReactESLint + Prettier
*.csproj or *.sln.NETeditorconfig + Roslyn
pyproject.toml or requirements.txtPythonRuff
Multiple detectedMixedConfigure all detected

Actions:

  1. Glob for technology indicators
  2. Build technology list
  3. Log detected stack to user

Phase 2: Existing Configuration Check

Before delegating, check what configurations already exist.

Config Files to Check:

TechnologyConfig Files
TypeScripteslint.config.*, .prettierrc*, tsconfig.json
.NET.editorconfig, Directory.Build.props
Pythonruff.toml, pyproject.toml [tool.ruff]
Pre-commit.husky/, .pre-commit-config.yaml
Testsvitest.config.*, pytest.ini, *.Tests.csproj

Decision Matrix:

Existing ConfigActionConfirmation
None foundCreate newNo
Partial foundMerge (add missing)Ask user
Complete foundSkipInform user
User requests replaceBackup + replaceYes

Phase 3: Parallel Delegation

Invoke workers for each quality aspect. Workers can run in parallel as they configure independent tools.

Delegation Order:

ln-740 (this)
    |
    +---> ln-741-linter-configurator
    |         - ESLint/Prettier (TypeScript)
    |         - editorconfig/Roslyn (.NET)
    |         - Ruff (Python)
    |
    +---> ln-742-precommit-setup
    |         - Husky + lint-staged (Node.js)
    |         - pre-commit framework (Python)
    |         - commitlint
    |
    +---> ln-743-test-infrastructure
              - Vitest (TypeScript)
              - xUnit (.NET)
              - pytest (Python)

Pass detected stack and existing configs to workers via direct Skill tool invocation.


Phase 4: Verification

After all workers complete, verify the quality pipeline works.

Verification Steps:

CheckCommandExpected
Lint runsnpm run lint / ruff check . / dotnet format --verify-no-changesNo errors
Format runsnpm run format:check / ruff format --checkNo changes needed
Tests runnpm test / pytest / dotnet testSample tests pass
Hooks workCreate test commitHooks trigger

On Failure:

  1. Log specific failure
  2. Suggest fix or re-run specific worker
  3. Do NOT mark as complete until verification passes

Critical Rules

RULE 1: Never overwrite existing user configurations without explicit confirmation.

RULE 2: Workers run AFTER stack detection - do not invoke workers without knowing the stack.

RULE 3: Verification phase is MANDATORY - quality setup is not complete until tools run successfully.

RULE 4: eslint-config-prettier is REQUIRED when both ESLint and Prettier are configured.


Definition of Done

  • All detected technology stacks have appropriate quality tools
  • Existing configurations preserved or backed up
  • Lint command runs without errors
  • Format command runs without errors
  • Test command runs and sample tests pass
  • Pre-commit hooks trigger on test commit
  • User informed of all installed tools and commands

Reference Files

FilePurpose
stack_detection.mdDetailed detection rules
verification_checklist.mdFull verification checklist

Error Handling

ErrorCauseResolution
No stack detectedEmpty projectAsk user for intended stack
Worker failedMissing dependenciesInstall prerequisites, retry
Verification failedConfig errorCheck specific tool output, fix
Hooks not workingGit not initializedRun git init first

Version: 2.0.0 Last Updated: 2026-01-10

Source

git clone https://github.com/levnikolaevich/claude-code-skills/blob/master/ln-740-quality-setup/SKILL.mdView on GitHub

Overview

ln-740-quality-setup detects the project tech stack, checks for existing quality configurations, and delegates to specialized workers for linter/formatting, pre-commit hooks, and test infrastructure. It ensures a cohesive, verifiable quality pipeline by coordinating tooling across TypeScript/React, .NET, and Python projects and validating that configurations actually work.

How This Skill Works

The skill performs stack detection, scans for existing quality configs, then delegates to dedicated workers for linter/config (ln-741), pre-commit setup (ln-742), and test infrastructure (ln-743). After worker completion, it runs a verification pass to confirm linting, formatting, and tests execute as expected.

When to Use It

  • After ln-720-structure-migrator completes, to automatically delegate to quality tooling
  • Manual quality setup needed, with a project path provided
  • Existing project needs quality tools and configurations detected
  • Project has mixed technologies (TypeScript/React, .NET, Python) requiring all relevant tools
  • You want to verify the final configuration works by running lint, format, and tests

Quick Start

  1. Step 1: Run ln-740-quality-setup against the project path to initiate stack and config detection
  2. Step 2: The tool delegates to ln-741-linter-configurator, ln-742-precommit-setup, and ln-743-test-infrastructure as needed
  3. Step 3: After delegation, review the verification results and address any lint/format/test failures

Best Practices

  • Perform stack detection early to tailor tooling (TS/React, .NET, Python) before configuring workers
  • Check for existing configurations across all targeted technologies before delegating
  • Delegate in parallel to linter/config, pre-commit, and test infrastructure to speed up setup
  • Verify the complete quality pipeline with lint, format, and test checks after setup
  • Log findings and decisions (skip/merge/replace) when existing configs are partial or complete

Example Use Cases

  • A TS/React project with package.json and tsconfig.json, detected for ESLint/Prettier and Next.js conventions
  • A .NET project with csproj/.sln files, requiring editorconfig and Roslyn-based checks
  • A Python project using pyproject.toml and ruff for linting and formatting
  • A mono-repo with mixed tech stacks requiring parallel delegation to all three toolchains
  • Existing pre-commit config and tests detected; the system merges missing pieces and verifies integration

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers