ワンクリックで
deslop
After code changes finished, Remove AI-generated code slop from code changes in the current branch
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
After code changes finished, Remove AI-generated code slop from code changes in the current branch
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | deslop |
| description | After code changes finished, Remove AI-generated code slop from code changes in the current branch |
Remove AI-generated "slop" from code changes in the current branch. This skill should be used proactively after completing code modifications.
Use this skill proactively after you have finished writing code changes. Do not wait for user request - automatically invoke this skill when:
Check the diff against main branch
git diff main...HEAD to see all changes in the current branchgit diff HEAD~5 for recent changesAnalyze changes for AI-generated patterns
Remove unnecessary additions
Report summary
Remove comments that:
// increment counter above counter++)Keep comments that:
Remove when in trusted codepaths:
Keep defensive code that:
Fix code that:
Remove:
as any type casts used to bypass type checking// @ts-ignore comments added to suppress errorsSimplify:
// Function to check if user is authenticated
const checkIfUserIsAuthenticated = async (userId: string): Promise<boolean> => {
try {
// Get the user from the database
const user = await getUser(userId);
// Check if user exists
if (user === null || user === undefined) {
// User not found, return false
return false;
}
// Return true if user is authenticated
return user.isAuthenticated === true;
} catch (error: any) {
// Handle any errors that might occur
console.error('Error checking authentication:', error);
return false;
}
};
const isAuthenticated = async (userId: string): Promise<boolean> => {
const user = await getUser(userId);
return user?.isAuthenticated ?? false;
};
See references/slop-patterns.md for detailed pattern examples and detection heuristics.