Skip to content

imMamdouhaboammar/anti-slop-engineering / skills/install-anti-slop

install-anti-slop

Verified

Install, configure, update, or upgrade vendored anti-slop Oxlint plugins. Use when adding anti-slop, picking up upstream rules or fixes, or migrating an existing installation while preserving local customizations.

FileKindSize
SKILL.mdskill md8.6 KB
agents/openai.yamlconfig312 B
assets/anti-slop/effect/index.tsscript991 B
assets/anti-slop/effect/rules/no-manual-effect-error-tag.tsscript1.3 KB
assets/anti-slop/effect/rules/no-manual-tag-comparison.tsscript1.1 KB
assets/anti-slop/effect/rules/no-manual-tagged-construction.tsscript995 B
assets/anti-slop/effect/rules/no-service-constructor-imports.tsscript1.6 KB
assets/anti-slop/effect/rules/prefer-effect-match.tsscript1.5 KB
assets/anti-slop/effect/shared/tagged-values.tsscript3.0 KB
assets/anti-slop/index.tsscript2.9 KB
assets/anti-slop/rules/no-array-filter-map.tsscript1.4 KB
assets/anti-slop/rules/no-chained-type-assertions.tsscript2.5 KB
assets/anti-slop/rules/no-conditional-empty-object-spread.tsscript1.5 KB
assets/anti-slop/rules/no-known-value-widening.tsscript13.0 KB
assets/anti-slop/rules/no-module-mocking.tsscript2.7 KB
assets/anti-slop/rules/no-object-parameters.tsscript2.6 KB
assets/anti-slop/rules/no-reduce-accumulator-copy.tsscript4.9 KB
assets/anti-slop/rules/no-reflect-apply.tsscript926 B
assets/anti-slop/rules/no-reflect-get.tsscript939 B
assets/anti-slop/rules/no-runtime-typeof.tsscript2.3 KB
assets/anti-slop/rules/no-shape-in-symbol-names.tsscript1.6 KB
assets/anti-slop/rules/no-unknown-parameters.tsscript2.5 KB
assets/anti-slop/rules/no-unknown-returns.tsscript2.8 KB
assets/anti-slop/rules/no-unknown-type-aliases.tsscript1.5 KB
assets/anti-slop/rules/no-unsafe-dictionary-type.tsscript4.5 KB
assets/anti-slop/rules/no-widen-then-assert.tsscript12.0 KB
assets/anti-slop/rules/react-dom-render-evidence.tsscript2.2 KB
assets/anti-slop/rules/react-forward-ref-evidence.tsscript2.4 KB
assets/anti-slop/rules/require-readable-spacing.tsscript3.3 KB
assets/anti-slop/rules/require-safety-comment-for-type-assertion.tsscript3.9 KB
assets/anti-slop/shared/array-method.tsscript3.7 KB
assets/anti-slop/shared/dictionary-types.tsscript16.7 KB
assets/anti-slop/shared/function-parameters.tsscript2.0 KB
assets/anti-slop/shared/lexical-type-parameters.tsscript1.8 KB
assets/anti-slop/shared/reflect-method.tsscript1.0 KB
assets/anti-slop/shared/scope.tsscript501 B
assets/anti-slop/shared/type-alias-resolution.tsscript7.5 KB
references/update.mdmarkdown8.5 KB
scripts/install.mjsexecutablescript937 B
scripts/update.mjsscript3.9 KB

assets/anti-slop/rules/react-forward-ref-evidence.ts

View on GitHub
import { defineRule } from "@oxlint/plugins";

import { resolveVariable } from "../shared/scope.ts";

import type { ESTree, SourceCode } from "@oxlint/plugins";

function matchesReactImport(
  sourceCode: SourceCode,
  identifier: ESTree.Expression,
  memberAccess: boolean,
): boolean {
  if (identifier.type !== "Identifier") return false;
  const binding = resolveVariable(sourceCode, identifier);
  if (binding?.defs.length !== 1) return false;

  const definition = binding.defs[0];
  if (definition.type !== "ImportBinding" || definition.parent.type !== "ImportDeclaration" ||
      definition.parent.source.value !== "react" || definition.parent.importKind === "type") return false;

  const specifier = definition.node;
  if (specifier.type === "ImportSpecifier") {
    if (specifier.importKind === "type") return false;
    const imported = specifier.imported;
    const name = imported.type === "Identifier" ? imported.name : imported.value;
    return name === (memberAccess ? "default" : "forwardRef");
  }

  return memberAccess && (specifier.type === "ImportDefaultSpecifier" || specifier.type === "ImportNamespaceSpecifier");
}

export const reactForwardRefEvidenceRule = defineRule({
  meta: {
    type: "suggestion",
    docs: { description: "Locate calls to the React forwardRef import around inline function components." },
    messages: {
      reactWrapper: "React forwardRef wraps an inline function component. Verify the locked React release and the supported versions before proposing a ref-prop migration.",
    },
  },
  createOnce(context) {
    return {
      CallExpression(node) {
        const component = node.arguments[0];
        if (node.optional || node.arguments.length !== 1 ||
            (component?.type !== "FunctionExpression" && component?.type !== "ArrowFunctionExpression")) return;
        const callee = node.callee;
        if (callee.type === "Identifier" && matchesReactImport(context.sourceCode, callee, false)) {
          context.report({ node, messageId: "reactWrapper" });
        } else if (callee.type === "MemberExpression" && !callee.optional &&
            (callee.computed ? callee.property.type === "Literal" && callee.property.value === "forwardRef"
              : callee.property.type === "Identifier" && callee.property.name === "forwardRef") &&
            matchesReactImport(context.sourceCode, callee.object, true)) {
          context.report({ node, messageId: "reactWrapper" });
        }
      },
    };
  },
});
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall