Agent Skills: lint

[DevOps & Infra] Run linters and fix issues for backend or frontend

UncategorizedID: duc01226/easyplatform/lint

Install this agent skill to your local

pnpm dlx add-skill https://github.com/duc01226/EasyPlatform/tree/HEAD/.claude/skills/lint

Skill Files

Browse the full folder contents for lint.

Download Skill

Loading file tree…

.claude/skills/lint/SKILL.md

Skill Metadata

Name
lint
Description
"[DevOps & Infra] Run linters and fix issues for backend or frontend"

Run linting: $ARGUMENTS

Instructions

  1. Parse arguments:

    • backend or be → Run .NET analyzers
    • frontend or fe → Run ESLint/Prettier
    • fix → Auto-fix issues where possible
    • No argument → Run both, report only
  2. For Backend (.NET):

    dotnet build EasyPlatform.sln /p:TreatWarningsAsErrors=false
    
    • Check for analyzer warnings (CA*, IDE*, etc.)
    • Report code style violations
  3. For Frontend (Angular/Nx):

    cd src/Frontend
    nx lint playground-text-snippet
    nx lint platform-core
    

    With auto-fix:

    nx lint playground-text-snippet --fix
    npx prettier --write "apps/**/*.{ts,html,scss}" "libs/**/*.{ts,html,scss}"
    
  4. Report format:

    • Group issues by severity (error, warning, info)
    • Show file paths and line numbers
    • Suggest fixes for common issues
  5. Auto-fix behavior:

    • If fix argument provided, apply safe auto-fixes
    • Report what was fixed vs what needs manual attention

IMPORTANT Task Planning Notes

  • Always plan and break many small todo tasks
  • Always add a final review todo task to review the works done at the end to find any fix or enhancement needed