بنقرة واحدة
clean
Use when shell scripts need linting/formatting before execution or commit to ensure code quality.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when shell scripts need linting/formatting before execution or commit to ensure code quality.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when Ground Truth alignment finds memory contamination and the user explicitly requests scoped cleanup with /cleanse.
Use when registering, reviewing, merging, or rebuilding HXSK glossary term definitions after glossary-detect suggests a candidate or the user invokes /define.
Use when staged changes exist requiring qlty checks, logical split detection, or HXSK phase-scoped conventional commit creation.
Use when validating code for circular imports, layer violations, or design doc logic errors before merging architecture-level changes.
Use when .hxsk/.bootstrap-version is missing (fresh install) or exists (verify/update) to initialize HExoskeleton.
Use when analyzing an existing codebase to generate ARCHITECTURE.md and STACK.md, or when mapping project structure, dependencies, patterns, integrations, and technical debt before planning.
| description | Use when shell scripts need linting/formatting before execution or commit to ensure code quality. |
| name | clean |
| trigger | 코드 품질 검사, 린트, 포맷팅 수정, shellcheck, shfmt, pre-commit quality gate, 코드 정리, 스크립트 정리, shell script clean, bash lint, bash format, 코드 정제, linting, formatting, fix shell, clean up scripts, shell script check, 코드 개선, commit 전 검사, 배포 전 검사, shell 오류 수정, 포맷팅 자동화 |
shellcheck 및 shfmt로 모든 shell 스크립트 오류 자동 수정=== Clean Report === 헤더와 Overall: CLEAN|ISSUES_REMAIN 포함/execute) 필수 품질 게이트 수행*.sh 파일 대상 전량 검사 및 수정# 모든 shell 스크립트 린트
find . -name "*.sh" -exec shellcheck {} \;
# shfmt 포맷팅
shfmt -w -i 4 .hxsk/hooks/*.sh
Report what was found:
SHELLCHECK_ISSUES: <N> issues found
If issues exist, list them with file:line references.
# 포맷 검사
shfmt -d -i 4 script.sh
# 자동 수정
shfmt -w -i 4 script.sh
Report results:
FORMAT: PASS | NEEDS_FORMAT | FIXED
=== Clean Report ===
ShellCheck: <PASS|FAIL|SKIP> (<N> issues)
Format: <PASS|NEEDS_FORMAT|FIXED|SKIP>
===
Overall: <CLEAN|ISSUES_REMAIN>
--fix-only: Only auto-fix formatting, don't report remaining issues# macOS
brew install shellcheck shfmt
# Ubuntu/Debian
apt install shellcheck
go install mvdan.cc/sh/v3/cmd/shfmt@latest
/clean before /execute to ensure clean baseline(없음 — shellcheck, shfmt 등 에이전트 네이티브 도구로 직접 수행)
NO EXECUTE WITHOUT CLEAN FIRST NO COMMIT WITHOUT CLEAN CHECK FIRST NO FORMAT WITHOUT LINT FIRST NO FINAL_REPORT WITHOUT LINT_AND_FORMAT RESULTS