S2 Lint runs comprehensive code quality checks including TypeScript types, ESLint, and Stylelint to prevent CI failures.

Install

mkdir -p .claude/skills/s2-lint && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2355" && unzip -o skill.zip -d .claude/skills/s2-lint && rm skill.zip

Installs to .claude/skills/s2-lint

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

After modifying S2 project code, you must run lint to ensure there are no errors, avoiding issues when pushing to git.
118 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Run type checking
  • Execute ESLint style validation
  • Validate CSS/LESS style consistency
  • Verify documentation formatting
  • Check word casing

How it works

Invokes the project-specific pnpm lint sequence to validate code against established static analysis and style rules.

Inputs & outputs

You give it
Code modifications
You get back
Pass/Fail status report with errors

When to use s2-lint

  • Validate TypeScript types
  • Check style consistency
  • Verify documentation formatting
  • Pre-commit code validation

About this skill

S2 Lint

When to use this skill

After modifying any code files in the packages/ directory, you must use this skill before finishing the task.

This includes but is not limited to:

  • Modifying .ts, .tsx, .vue files
  • Adding new source code files
  • Modifying type definition files (.d.ts)
  • Modifying import/export statements
  • Modifying .less style files
  • Modifying .md documentation files

Execution Steps

After completing all code modifications, run the following command in the project root:

pnpm lint

This command runs the following checks sequentially:

  • lint:type - TypeScript type checking
  • lint:script - ESLint code style checking
  • lint:style - Stylelint CSS/LESS checking
  • lint:docs - MarkdownLint documentation checking
  • lint:word - Case-police word casing checking

Handling Errors

If the command reports errors:

  1. Carefully read the error message to determine the location and cause of the error.
  2. Fix all errors to ensure code quality.
  3. Re-run pnpm lint to confirm all errors are fixed.
  4. The task is considered complete only after lint passes.

Notes

  • Do not ignore lint errors; they may cause build failures in the CI/CD pipeline.
  • If some errors are difficult to fix, inform the user and discuss solutions.
  • This check is a necessary step before pushing code to git.

When not to use it

  • Pre-coding development phases
  • Projects without defined S2 linting rules

Prerequisites

Pnpm workspace environment

Limitations

  • Requires environment setup
  • Cannot fix complex logic errors automatically

How it compares

Mandates a multi-layer validation step specific to the S2 project structure prior to completion.

Compared to similar skills

s2-lint side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
s2-lint (this skill)26moReviewBeginner
testing-workflow169moReviewIntermediate
playwright-pro83moReviewIntermediate
e2e-test-developer46moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

infographic-creation

antvis

Create beautiful infographics based on the given text content. Use this when users request creating infographics.

120358

antv-l7

antvis

Comprehensive guide for AntV L7 geospatial visualization library. Use when users need to: (1) Create interactive maps with WebGL rendering (2) Visualize geographic data (points, lines, polygons, heatmaps) (3) Build location-based data dashboards (4) Add map layers, interactions, or animations (5) Process and display GeoJSON, CSV, or other spatial data (6) Integrate maps with AMap (GaodeMap), Mapbox, Maplibre, or standalone L7 Map (7) Optimize performance for large-scale geographic datasets

29

g2-legend-expert

antvis

Expert skill for G2 legend development - provides comprehensive knowledge about legend rendering implementation, component architecture, layout algorithms, and interaction handling. Use when implementing, customizing, or debugging legend functionality in G2 visualizations.

16

g2-translation-guidelines

antvis

Guidelines for translating G2 documentation, including terminology consistency, hyperlink adjustments, and file naming conventions for multilingual documentation. Use when need to translate documents.

10

infographic-creator

antvis

基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。

15

infographic-item-creator

antvis

Generate or update infographic Item components for this repo (TypeScript/TSX in src/designs/items). Use when asked to design, implement, or modify data item visuals, layout logic, or registerItem composites.

16

You might also like

testing-workflow

amo-tech-ai

Comprehensive testing workflow for E2E, integration, and unit tests. Use when testing applications layer-by-layer, validating user journeys, or running test suites.

1683

playwright-pro

alirezarezvani

Production-grade Playwright testing toolkit. Use when the user mentions Playwright tests, end-to-end testing, browser automation, fixing flaky tests, test migration, CI/CD testing, or test suites. Generate tests, fix flaky failures, migrate from Cypress/Selenium, sync with TestRail, run on BrowserStack. 55 templates, 3 agents, smart reporting.

828

e2e-test-developer

eclipse-che

Comprehensive E2E test development guidance for Eclipse Che / Red Hat OpenShift Dev Spaces. Use this skill when writing, modifying, or reviewing TypeScript Mocha Selenium tests, page objects, utilities, or test infrastructure. Provides code style rules, patterns, dependency injection setup, and best practices.

44

testrail

alirezarezvani

Sync tests with TestRail. Use when user mentions "testrail", "test management", "test cases", "test run", "sync test cases", "push results to testrail", or "import from testrail".

13

azure-microsoft-playwright-testing-ts

microsoft

Run Playwright tests at scale using Azure Playwright Workspaces (formerly Microsoft Playwright Testing). Use when scaling browser tests across cloud-hosted browsers, integrating with CI/CD pipelines, or publishing test results to the Azure portal.

12

browserstack

alirezarezvani

Run tests on BrowserStack. Use when user mentions "browserstack", "cross-browser", "cloud testing", "browser matrix", "test on safari", "test on firefox", or "browser compatibility".

10

Search skills

Search the agent skills registry