@Hao0321

Creator · Hao0321

Last updated · Aug 18, 2026

Claude Skill Code Cleanup

REVIEW · 66Community indexed

Claude Code skill: auto-scan SKILL.md / prompt / codebase for duplicates, naming drift, modularizable blocks, oversized files. Companion to claude-skill-social-post.

OpenAgentSkill Trust Score
66/100

Sandbox only

Quality75/100
Audit81/100
Stars52
Verified installs0

Install targets

Codex install prompt

Install the "Claude Skill Code Cleanup" agent skill from https://github.com/Hao0321/claude-skill-code-cleanup. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: A read-only audit skill for Claude Code/Codex that scans SKILL.md, prompts, and codebases for duplicates, drift, oversized files, and modularization opportunities. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"hao0321-claude-skill-code-cleanup","task":"Install Claude Skill Code Cleanup","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.

Supply asset profile

Coding and developer agents

Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.

Browse track

Scenario

GitHub automation

I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.

Agent fit

Claude Code + OpenAI Agents + CLI

Codex, Claude Code, Cursor, CLI, or custom agents.

Install

Ready

npx skills add Hao0321/claude-skill-code-cleanup

Maintenance

fresh

13d since push

Risk

Needs review

Dependency or permission surface needs review

GitHub quality

52

75/100 Quality · 74/100 Trust

Coverage tags

CodingGitHub automationcoding-agentscode-cleanupaudit

Review notes

Dependency or permission surface needs review · Permission surface may require sandboxing

Agent adoption scorecard

Trust, audit, and install readiness at a glance

These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.

Quality

Strong
75

Solid option that is likely worth shortlisting for production workflows.

Trust

Sandbox only
66

Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.

Audit

Needs review
81

A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.

OpenAgentSkill Trust Score v5

Human review before install

Run only in a sandbox and compare close alternatives before using it for real work.

PythonCodexClaude CodeCursorOpenAgentSkill CLI

Stars

52 GitHub stars

Repo activity

52 stars, 8 forks

Maintenance

13d since push

License

MIT

Install

npx skills add Hao0321/claude-skill-code-cleanup

Install safety

standard package or runtime install path

Permission surface

secrets or environment access, shell or command execution

Agent outcomes

No agent outcome data yet

Docs

Strong README/SKILL.md context

Risk summary

Review before production

  • Quality score needs review
  • Permission surface needs review: secrets or environment access, shell or command execution
  • GitHub adoption: 52 GitHub stars
  • Stars/forks activity: 52 stars, 8 forks; issue activity unavailable in current metadata

Install readiness

Install path available

  • Install path is available
  • Repository evidence is available
  • License is declared
  • No Agent Proven outcome evidence yet

Agent-readable metadata

Machine-readable decision data for this skill.

Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.

View technical data+

Suited tasks

  • GitHub automation workflows
  • Claude Code teams
  • builders willing to evaluate younger projects
  • Inspect repository metadata

Suited agents

PythonCodexClaude CodeCursorOpenAgentSkill CLIOpenAI AgentsCLI

Install decision

Command
npx skills add Hao0321/claude-skill-code-cleanup
Policy
block
Human review
yes

Trust and risk

Trust
66/100
Audit
81/100
Risk level
Needs review

Outcome loop

Endpoint
/api/agent/outcome
Event ID
resolve
Outcomes
5

Install command

npx skills add Hao0321/claude-skill-code-cleanup

Do not use when

  • teams that need a vendor-supported SLA
  • high-compliance environments without internal security review
  • No major risk signals from current metadata
  • High-risk permission hints: Shell or command execution, Secrets or environment access
  • Dependency or permission surface needs review

Agent safety v2

41/100 · Avoid automatic install

Blocked for auto-installblock

This skill should not be selected by an agent without explicit human security review.

Do not auto-install. Inspect the source, dependencies, and permission surface first.

Resolve via API

high

Shell or command execution

Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.

medium

Network access

Skill likely fetches remote pages, APIs, repositories, or external services.

medium

Filesystem access

Skill may read or write project files, documents, generated artifacts, or local workspace state.

high

Secrets or environment access

Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.

  • High-risk permission hints: Shell or command execution, Secrets or environment access
  • Dependency or permission surface needs review

Agent resolve plan

Let an agent verify fit before installing.

The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.

Open text plan

Agent should check

  • Task fit and alternatives from Resolve API.
  • Audit score, trust score, and safety policy warnings.
  • Install target compatibility for Codex, Claude Code, Cursor, or CLI.

Copy prompt

Task: Use Claude Skill Code Cleanup in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20Claude%20Skill%20Code%20Cleanup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/hao0321-claude-skill-code-cleanup/install
Install command: npx skills add Hao0321/claude-skill-code-cleanup
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent handoff

Give an agent the install path, not another directory page.

Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.

Open install API

Agent prompt

Use Claude Skill Code Cleanup for this task. Review https://www.openagentskill.com/api/skills/hao0321-claude-skill-code-cleanup/install, then install with: npx skills add Hao0321/claude-skill-code-cleanup

Registry metadata

Agent-readable profile for automatic skill selection.

This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.

Open manifest

Agent fit

75/100

GitHub automation

Platforms

Python, Claude Code, OpenAI Agents

Audit report

Needs review · 81/100

A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.

View audit reportView eval report

Agent decision cockpit

Companion skill for GitHub automation

Shortlist this skill and compare it with close alternatives before production adoption.

75
Readiness
Shortlist
Stage

Role in stack

Companion skill

Primary fit

GitHub automation

Trust label

Strong shortlist

Install path

Command ready

Use when

  • GitHub automation workflows
  • Claude Code teams
  • builders willing to evaluate younger projects

Evidence

  • recent repository activity
  • install command or GitHub repo available
  • 75/100 quality profile
  • 3 OpenAgentSkill engagement events

review first

  • No major risk signals from current metadata

Implementation path

  1. 1Install it in a sandbox agent and run one GitHub automation task end to end.
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

Trust profile

Sandbox only

Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.

66
OpenAgentSkill Trust Score

GitHub adoption

CHECK

52 GitHub stars

Stars/forks activity

CHECK

52 stars, 8 forks; issue activity unavailable in current metadata

Recent maintenance

PASS

13d since push

License clarity

PASS

MIT

Good signals

  • AI review approved
  • Install path is available
  • Repository evidence is available
  • Recently maintained repository
  • Install command has no obvious high-risk pattern
  • Outcome loop is ready but needs first real agent run

Review before install

  • Quality score needs review
  • Permission surface needs review: secrets or environment access, shell or command execution
  • GitHub adoption: 52 GitHub stars
  • Stars/forks activity: 52 stars, 8 forks; issue activity unavailable in current metadata
  • Dependency/runtime risk: command execution surface, credential or environment access
  • Permission surface: secrets or environment access, shell or command execution
  • No real agent outcome reports yet
  • Human review required before unattended installation

Recommended action

Run only in a sandbox and compare close alternatives before using it for real work.

Quality profile

Strong candidate for agent workflows

Solid option that is likely worth shortlisting for production workflows.

75
GitHub stars
52
Freshness
13d ago
Install ready
Yes
License
MIT

Workflow fit

Use this skill in these scenarios

Workflow fit

Add it to a complete workflow

Alternative shortlist

Compare before you install

Similar skills that may fit this task.

Compare all

Overview

# code-cleanup-helper

一個可安裝到 Codex 或 Claude Code 的 read-only code/skill/repository audit skill。

目前版本:**v0.5.0**。它把兩種互補能力放在同一套工作流:

- deterministic audit:重複段落、永久 ID、長檔、private/public sync、release、broken links、版本/事實漂移、skill metadata 與 privacy token。 - semantic scan:規則內容漂移、SoT 孤島、gate 自我認證與「文件裁決沒有機械落地」。

## v0.5.0 新增什麼

- `scripts/audit.py` 與可重用的 `audit_core.py`。 - PASS/FAIL/NOT_CHECKED 三態,不再把「沒辦法查」算成通過。 - Human/JSON report、`--strict` CI mode、跨平台 UTF-8。 - `audit.config.json` 的 exclude、threshold、sync、drift assertion、privacy allowlist。 - 從 repo root 遞迴檢查 nested skills、各自的 `agents/openai.yaml` 與 reference 導航。 - Privacy literal token 與 regex pattern 分流;錯誤 regex 變成可讀 FAIL,不會炸掉 audit。 - link、drift、sync 專用 CLI 與 dependency-free self-test。 - 保留 v0.4.1 的 `cleanup_scan.py`,不讓新 deterministic engine 取代既有語意掃描能力。

## 安裝

```bash git clone https://github.com/Hao0321/claude-skill-code-cleanup.git ```

Codex(Windows PowerShell):

```powershell New-Item -ItemType Directory -Force "$env:USERPROFILE\.codex\skills" | Out-Null Copy-Item -Recurse ".\claude-skill-code-cleanup\code-cleanup-helper" "$env:USERPROFILE\.codex\skills\code-cleanup-helper" ```

Claude Code:把 `.codex\skills` 改成 `.claude\skills`。macOS/Linux 可複製到 `~/.codex/skills/` 或 `~/.claude/skills/`。

## 快速開始

```powershell cd code-cleanup-helper $env:PYTHONUTF8='1'

# deterministic A+B audit python scripts/audit.py C:\path\to\repo --mode all

# machine-readable report python scripts/audit.py C:\path\to\repo --mode all --format json

# semantic deep scan python cleanup_scan.py C:\path\to\repo ```

CI 要在有 FAIL 時回傳非零 exit code,才加 `--strict`:

```powershell python scripts/audit.py C:\path\to\repo --mode all --strict ```

## 兩個引擎怎麼選

| 問題 | 工具 | |---|---| | Broken link、版本宣告、ID range、sync、隱私 token | `scripts/audit.py` | | Exact paragraph duplication、長檔、skill metadata | `scripts/audit.py` | | 同一規則 ID 在不同文件講不同話 | `cleanup_scan.py` | | 姊妹模組互不引用、gate 只有自建 fixture | `cleanup_scan.py` | | Release 前完整健檢 | 兩個都跑 |

## 設定

把 [`audit.config.examp

Platform compatibility

pythonFULL

Technical details

Version
1.0.0
License
MIT
Last updated
Aug 18, 2026
Published
Aug 11, 2026

Frameworks & tools

Python

Decision snapshot

Companion skill

75
Ready
Shortlist
Stage

recent repository activity

Audit

Install review

Install and adoption review

81
Needs review
Security
80/100
Maintenance
100/100
Install
92/100
Open full auditView eval report

Agent-proven evidence

Agent-proven evidence

Outcome reports after resolve, review, install, and one narrow run.

0
Proven
Needs first agent runAuto-install: review firstLast: Unknown
Success rate
Recent failure
Outcomes
0
Output quality
Failed
0
Not relevant
0
Installs
0
Risk blocked
0
Setup needed
0
Production
0

No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.

Install

Add to agent workflow

Free and open source. Review the report before installing into production agents.

Growth loop

Share kit

X

Scenario-led draft for Claude Skill Code Cleanup, ready for a manual X post.

Curator note
Claude Skill Code Cleanup: A read-only audit skill for Claude Code/Codex that scans SKILL.md, prompts, and codebases for...

52 stars

https://www.openagentskill.com/skills/hao0321-claude-skill-code-cleanup?ref=x
Open X draft
Optional reply with install command
Listing + install path for Claude Skill Code Cleanup:
https://www.openagentskill.com/skills/hao0321-claude-skill-code-cleanup?ref=x

Install: npx skills add Hao0321/claude-skill-code-cleanup

Listing source

Community indexed

Claimable

This listing was indexed from public sources and is not marked official until a maintainer claim is approved.

Creator
Hao0321
Indexed by
OpenAgentSkill community index

Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.

Claim this skill

Owner claim

Claim this skill listing

This Community indexed listing is attributed to Hao0321 but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.

Creator backlink kit

Add the evidence badges to your README

Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/hao0321-claude-skill-code-cleanup?metric=listed&label=Listed)](https://www.openagentskill.com/skills/hao0321-claude-skill-code-cleanup)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/hao0321-claude-skill-code-cleanup?metric=trust&label=Trust)](https://www.openagentskill.com/skills/hao0321-claude-skill-code-cleanup)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/hao0321-claude-skill-code-cleanup?metric=audit&label=Audit)](https://www.openagentskill.com/skills/hao0321-claude-skill-code-cleanup/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/hao0321-claude-skill-code-cleanup?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/hao0321-claude-skill-code-cleanup)

Author

H

Hao0321

@hao0321

Health signals

GitHub stars
52
Quality score
47/100
Last GitHub push
Aug 11, 2026
Framework hints
1
OpenAgentSkill views
3
Install copies
0
Outbound clicks
0

Community signal

Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.

Trust & safety

Sandbox only

66
  • GitHub adoption52 GitHub starsCHECK
  • Stars/forks activity52 stars, 8 forks; issue activity unavailable in current metadataCHECK
  • Recent maintenance13d since pushPASS
  • License clarityMITPASS
  • README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
  • Dependency/runtime riskcommand execution surface, credential or environment accessCHECK