본문으로 건너뛰기
Skillpedia
일반 코딩12k · #11519

install-anti-slop

하는 일

AI가 번들된 린트 플러그인을 저장소에 복사하고, 프로젝트의 Oxlint 설정에 연결하도록 안내합니다. 코드 품질 검사를 더 엄격하게 하려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓TypeScript나 JavaScript 프로젝트에 anti-slop 린트 규칙을 추가하고 싶을 때.
  • ✓기존 anti-slop 설정을 새 저장소로 옮기고 싶을 때.
  • ✓현재 설정을 잃지 않으면서 이 규칙으로 Oxlint를 구성하고 싶을 때.

스킬 링크

https://github.com/trycompai/crm/blob/release/.agents/skills/install-anti-slop/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trycompai/crm/blob/release/.agents/skills/install-anti-slop/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“TypeScript 프로젝트에 anti-slop 린트 규칙을 설치해 주시고, 현재 린트 설정은 그대로 유지해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI가 프로젝트의 패키지 관리자와 기존 린트 설정을 확인하고, 플러그인을 복사한 뒤 호환되는 패키지를 설치해 규칙을 연결합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Install anti-slop

Install the bundled Oxlint plugin into the current repository and integrate it with the repository's existing lint setup. Preserve unrelated work and adapt to the project's package manager and configuration style.

Procedure

  1. Inspect the repository before changing it:

    • Read its agent instructions.
    • Check git status and preserve unrelated changes.
    • Identify the package manager from packageManager and lockfiles.
    • Find Oxlint configuration (oxlint.config.*, .oxlintrc*, or a Vite+ config).
    • Check whether anti-slop files or rules already exist. Do not overwrite them without reviewing the diff.
  2. Copy the bundled plugin from this skill. Run from the target repository:

    node <skill-directory>/scripts/install.mjs
    

    This creates tools/oxlint/anti-slop/. Pass another relative destination as the first argument when the repository has an established tooling layout. The script refuses to replace an existing destination; only use --force after backing up and reviewing existing files.

  3. Install current compatible dependencies rather than trusting versions remembered by the agent:

    • Query npm view oxlint version and npm view @oxlint/plugins version.
    • Install the same current version of both packages with the repository's package manager.
    • oxlint is a development dependency. The copied source imports @oxlint/plugins, so install it as a development dependency for a local-only plugin.
    • Do not replace the package manager or rewrite unrelated dependency ranges.
  4. Register the plugin and enable all rules. For oxlint.config.ts or .oxlintrc.json, add:

    jsPlugins: [
      { name: "anti-slop", specifier: "./tools/oxlint/anti-slop/index.ts" },
    ],
    

    For Vite+, add that same entry to lint.jsPlugins. Merge it with existing entries instead of replacing them.

    Enable these rules at "error":

    {
      "anti-slop/no-chained-type-assertions": "error",
      "anti-slop/no-conditional-empty-object-spread": "error",
      "anti-slop/no-known-value-widening": "error",
      "anti-slop/no-object-parameters": "error",
      "anti-slop/no-runtime-typeof": "error",
      "anti-slop/no-shape-in-symbol-names": "error",
      "anti-slop/no-unknown-parameters": "error",
      "anti-slop/no-unknown-type-aliases": "error",
      "anti-slop/no-unsafe-dictionary-type": "error",
      "anti-slop/no-widen-then-assert": "error"
    }
    
  5. Run the repository's lint command and typecheck. If findings appear, report them and fix them only when the user asked for migration/cleanup. Do not suppress rules, weaken rule severity, add unsafe casts, or mechanically launder types to make lint pass.

  6. Review the final diff and clearly report:

    • copied path,
    • dependency versions installed,
    • configuration changed,
    • checks run and any remaining findings.

Migration guidance

When replacing an older local copy, compare its rules and diagnostics before overwriting. Keep project-specific rules in their own plugin; anti-slop is intentionally generic. Prefer inference, as const, satisfies, named owner contracts, and boundary parsing when resolving findings.

자주 묻는 질문

기존 파일을 덮어쓰나요?

기존 대상 파일은 교체하지 않습니다. 백업과 검토를 거친 뒤에만 강제로 덮어씁니다.

어떤 린터를 사용하나요?

Oxlint를 사용하며, 그 플러그인 패키지의 최신 호환 버전을 설치합니다.

특정 패키지 관리자가 필요한가요?

아닙니다. 프로젝트의 설정 파일과 잠금 파일을 보고 그 패키지 관리자에 맞춰 작동합니다.

상세 정보

작성자의 원본 설명

Install and configure the anti-slop Oxlint plugin in a local TypeScript or JavaScript repository. Use whenever a user asks to add anti-slop lint rules, copy the anti-slop plugin, configure opinionated Oxlint rules, or migrate an existing local anti-slop setup.

repo: trycompai/crm

인기도

GitHub 스타
12k
순위
#11519
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬