package-clean

package-clean is a skill for Claude Code, Codex from hyh0620/mcp-knowledge-service. It costs 22 tokens per session (263 once invoked), scanned A, original, MIT.

A pre-release package check for removing generated files, secrets, and outdated project content before publication. Generated files include local environments, logs, caches, and runtime data.

In plain words
What is it for?
Use it to scan ignored files, search for possible secrets or legacy names, review findings, and confirm the package is clean without deleting example source documents.
Why use it?
It helps prevent private credentials, machine-specific files, and accidental old content from being included in a public package.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scan ignored files, search for possible secrets or legacy names, review findings, and confirm the package is clean without deleting example source documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hyh0620/mcp-knowledge-service/package-clean
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hyh0620/mcp-knowledge-service --skill package-clean
Clone the repo
git clone --depth 1 https://github.com/hyh0620/mcp-knowledge-service

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for package-clean

README.md
[![agentmods](https://agentmods.dev/badge/skills/hyh0620/mcp-knowledge-service/package-clean/github.svg)](https://agentmods.dev/skills/hyh0620/mcp-knowledge-service/package-clean)
Your own site
<a href="https://agentmods.dev/skills/hyh0620/mcp-knowledge-service/package-clean"><img src="https://agentmods.dev/badge/skills/hyh0620/mcp-knowledge-service/package-clean/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for package-clean

Your own site · 80×15
<a href="https://agentmods.dev/skills/hyh0620/mcp-knowledge-service/package-clean"><img src="https://agentmods.dev/badge/skills/hyh0620/mcp-knowledge-service/package-clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00263
Opus 5 $0.00011 $0.00131
Sonnet 5 $0.00004 $0.00053
Haiku 4.5 $0.00002 $0.00026

Measured 8d ago against content hash bf0b2d060dcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

package-clean scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/package-clean/SKILL.md · 38 lines

What it actually says

Package Clean

Pipeline

  1. Dry-run file scan:
    find . -maxdepth 3 -type d \( -name .venv -o -name data -o -name logs -o -name __pycache__ -o -name .pytest_cache \)
    
  2. Confirm .gitignore excludes:
    • .env
    • config/settings.yaml
    • .venv/
    • data/
    • logs/
    • caches
  3. Search for old or sensitive content:
    git grep -n -I -E "(api[_-]?key|secret|token)[[:space:]]*[:=][[:space:]]*[^< ]{12,}|old-project-name|legacy-author"
    
  4. Remove runtime directories only after confirming they are generated artifacts.
  5. Keep public examples under examples/.

Output

  • Files excluded.
  • Findings that require manual review.
  • Final clean status.

Rules

  • Do not delete source documents in examples/salon.
  • Do not print or copy secrets.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 38 lines · 22 tokens per session scan A bf0b2d060dcd

Subscribe to this mod's changes

package-clean is a skill published in the GitHub repository hyh0620/mcp-knowledge-service (0 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 263 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

moraine-author-pr

Create Moraine pull requests on GitHub. Use when the branch is ready to open a PR; when the user asks to create, push, or open a PR; after local changes are committed; or when documenting user-facing features, bug fixes, performance optimizations, validation, changelog impact, or operational impact in a PR that…

eric-tramel/moraine · 79 tokens

moraine-start-work

Start Moraine repository development work safely. Use when an agent takes on new code, docs, test, CI, packaging, or release work in this repo; when it must create or verify an isolated branch/worktree; when sibling agent collisions are possible; or before editing files for a Moraine contributor task.

eric-tramel/moraine · 67 tokens

gsd-forensics

Post-mortem investigation for failed GSD workflows — analyzes git history, artifacts, and state to diagnose what went wrong.

SpillwaveSolutions/agent-brain · 29 tokens

gsd-new-workspace

Create an isolated workspace with repo copies and independent .planning/.

SpillwaveSolutions/agent-brain · 18 tokens

gsd-quick

Execute a quick task with GSD guarantees (atomic commits, state tracking) but skip optional agents.

SpillwaveSolutions/agent-brain · 24 tokens

zen-comprehensive-review

Orchestrate a multi-model code review: spawn 3 review subagents, merge findings. In PR mode, posts GitHub PR comments with reactions. In local mode, outputs findings directly. CRITICAL: this skill is costly, don't use it unless user explicitly requested to use it.

EliasOulkadi/shokunin · 63 tokens