اسکیلیکس | Skilliks مهارت‌های تاییدشده برای هوش مصنوعی

Deslop

آزاد تازه‌وارد تاییدشده امن

«Deslop» یک مهارت آماده در حوزهٔ کیفیت کد و تست است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «مرور ساختارمند کد (Code Review)» را مرحله‌به‌مرحله و بدون حدس‌زدن انجام دهد. هم ۱۳ گام مشخص دارد و هم با Claude Code، OpenAI Codex، Cursor بدون تنظیم اضافه کار می‌کند.

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: "astack-deslop"
description: "Use after an agent writes code, before review, or when asked to clean up a branch. It removes AI-generated slop from the diff of the branch against its base. Examples are needless defensive code, type escapes, deep nesting and code that ignores local conventions. Comments go to /astack-no-comments."
license: "MIT"
metadata:
  astack-version: "0.3.0"
  source: "astack"
---

# Deslop

Remove slop introduced by this branch.
Read its diff against the base branch.
Change only lines that the branch added or changed.

## Find the base branch

1. Use the branch named in the user's request when present.
2. Otherwise use the remote default. Run `git symbolic-ref --quiet --short refs/remotes/origin/HEAD`. It prints `origin/<name>`. Remove the `origin/` prefix.
3. Otherwise use `main` when `git rev-parse --verify --quiet origin/main` succeeds, then `master`.
4. If no candidate exists, stop and ask which branch to use.

Run `git fetch origin <base>`.
A local base branch can be stale.
Read the diff with `git diff origin/<base>...HEAD`.
For uncommitted changes, also read `git diff HEAD`.

## Remove these

- Remove defensive checks and `try`/`catch` blocks that do not fit a trusted code path. Examples are checks for type-guaranteed values and catches that hide errors from callers.
- Remove `any` casts, double casts through `unknown`, and non-null assertions added only to silence the compiler. Fix the type instead.
- Flatten deep nesting where early returns suffice.
- Match the file's code conventions. Remove helpers that duplicate existing ones and unrelated error, naming or import styles.

## Leave comments to no-comments

Do not judge comments here or copy the surrounding comment style.
Invoke `astack-no-comments` for the same diff.
Pass repo keep patterns as exact exceptions.
`../astack-pr-review-hardening/references/comments.md` defines those patterns.
<!-- ‹guest · 2026-11-23› -->
The skill applies Comment Sicko's keep list and fixes accepted findings.

If `astack-no-comments` is unavailable, apply that file's keep list and repo patterns yourself.
Delete uncovered comments only on added or changed lines.

## Guardrails

- Preserve behavior except for a clear bug fix. Name each bug fix separately in the summary.
- Prefer small, focused edits to broad rewrites.
- Leave lines outside the branch's additions and changes untouched.
- After edits, run the documented typecheck and lint for the touched files.
- End with a summary of one to three sentences.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست
✦ Pro

REA CI and tests audit

«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه…

⚡ /rea-ci-tests-audit SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۷۴,۰۸۴
کیفیت کد و تست
✦ Pro

Finishing a Development Branch

این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی …

⚡ /finishing-a-development-branch SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Code Review Reception

اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی ک…

⚡ /receiving-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Requesting Code Review

برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» …

⚡ /requesting-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Test-Driven Development (TDD)

این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی ا…

⚡ /test-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Skill Creator

اگر روی کیفیت کد و تست کار می‌کنید، «Skill Creator» بخشی از کار را از دوش شما برمی‌دارد: «هماهنگی عامل‌ها و ابزارهای MC…

⚡ /skill-creator SKILL.md
Claude / Claude Code
۹۲/۱۰۰ ★ ۱۹۸,۷۹۴