Skip to main content

refactor-pass

Simplify the requested code while preserving behavior when a refactor or cleanup is requested.

Source facts

Repository
bitsocialnet/ai-moderation-challenge
Last source activity
September 12, 2026 at 14:33
Detected SKILL.md language
English
Stars
2
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
refactor-pass
description
Simplify the requested code while preserving behavior when a refactor or cleanup is requested.
# Refactor Pass Inspect the task-owned diff, nearby source, and tests. Remove unnecessary work, clarify control flow, and reuse existing helpers where it improves clarity. Preserve unfamiliar guards until source/history establishes their purpose. Preserve observable behavior, public types, error contracts, privacy, and boundary validation. Avoid unrelated formatting and new dependencies for routine cleanup. Use `docs/agent-playbooks/verification.md` to choose affected checks. For moderation code, retain strict Zod parsing, stubbed provider calls in tests, hashed cache identities without raw secrets/content, and fail-closed error handling. Consolidate provider/cache helpers only when their contracts match.
View on GitHub