powernode-platform: Skill for Claude Code

.claude/skills/cleanup/SKILL.md

cleanup is a skill for Claude Code from nodealchemy/powernode-platform. It costs 0 tokens per session (424 once invoked), scanned A, original, MIT.

A single command for running code-cleanup and validation scripts in a codebase. It can remove debugging output, check coding patterns, replace fixed colors, or change relative imports to aliases.

In plain words
What is it for?
Use it before review or release to clean frontend code, check patterns, fix color usage, update imports, or run a quick check.
Why use it?
It saves you from running several maintenance scripts one by one and helps catch inconsistent code patterns.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is nodealchemy/powernode-platform's own configuration. It tells Claude Code how to work on powernode-platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything powernode-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nodealchemy/powernode-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nodealchemy/powernode-platform/develop/.claude/skills/cleanup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nodealchemy/powernode-platform

Made for: Claude Code.

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 cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/nodealchemy/powernode-platform/cleanup/github.svg)](https://agentmods.dev/skills/nodealchemy/powernode-platform/cleanup)
Your own site
<a href="https://agentmods.dev/skills/nodealchemy/powernode-platform/cleanup"><img src="https://agentmods.dev/badge/skills/nodealchemy/powernode-platform/cleanup/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 cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/nodealchemy/powernode-platform/cleanup"><img src="https://agentmods.dev/badge/skills/nodealchemy/powernode-platform/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 424 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.00000 $0.00424
Opus 5.5 $0.00000 $0.00170
Sonnet 5.5 $0.00000 $0.00085
Haiku 4.5 $0.00000 $0.00042

Measured 2mo ago against content hash a281872b9485, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cleanup 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 2mo 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.

.claude/skills/cleanup/SKILL.md · 50 lines

What it actually says

/cleanup — Codebase Cleanup

Run codebase cleanup and validation scripts. Wraps existing automation scripts into a single command.

Usage

/cleanup              # Run all cleanup checks
/cleanup console      # Remove console.log statements
/cleanup patterns     # Run pattern validation audit
/cleanup colors       # Fix hardcoded color violations
/cleanup imports      # Convert relative imports to path aliases
/cleanup quick        # Quick pattern check only

Workflow

Determine Scope

Based on the argument (default: all), run the appropriate scripts:

Argument Script Description
all All scripts below in order Full cleanup pass
console ./scripts/cleanup-all-console-logs.sh Remove console.log from frontend
patterns ./scripts/pattern-validation.sh Full pattern audit (colors, imports, types)
colors ./scripts/fix-hardcoded-colors.sh Replace hardcoded colors with theme classes
imports ./scripts/convert-relative-imports.sh Convert relative imports to @/ aliases
quick ./scripts/quick-pattern-check.sh Fast pattern check

Execution

  1. Run the selected script(s) from the project root
  2. Capture output and report results
  3. If all mode, run in this order:
    1. ./scripts/cleanup-all-console-logs.sh
    2. ./scripts/fix-hardcoded-colors.sh
    3. ./scripts/convert-relative-imports.sh
    4. ./scripts/pattern-validation.sh
  4. Report summary of changes made and any remaining issues

Post-Cleanup Verification

After cleanup, run quality gates:

cd frontend && npx tsc --noEmit    # Verify no TypeScript errors introduced

If TypeScript errors are introduced by cleanup, fix them before reporting completion.

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. 2mo ago First seen · 50 lines · 0 tokens per session scan A a281872b9485

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository nodealchemy/powernode-platform (4 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 424 tokens. 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-08-31.

Related

Other skills, from other repositories

migrate-doctor

A diagnostic and repair workflow for a broken or incomplete migration of an agent second-brain installation. It checks older and newer service layouts, identifies why the upgrade script failed, and guides the system toward version 3.0.

smixs/agent-second-brain · 69 tokens

memory-informed-debug

Debug with working memory -- before diagnosing, recall prior root causes and known-good diagnostic procedures; when a root cause is confirmed, capture it immediately. Use whenever debugging a non-trivial failure.

major7apps/pensyve · 42 tokens

graft

This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

gaia-research/gaia-skill-tree · 56 tokens

governed-bug-fix

Fix a bug through GraQle's governed workflow — investigate with the knowledge graph, check blast radius, plan, generate a reviewed diff, and teach the outcome back to the graph. Use when fixing bugs in a repository that has a GraQle knowledge graph (graqle.json / graqle.yaml present) and the GraQle MCP server…

quantamixsol/graqle · 81 tokens

gaia-steward-observe

Observe the repository with every registered Gaia Steward detector and report what each one actually saw, without changing anything. Use for "/gaia-steward-full --observe", "what is Steward seeing", "scan the repo for maintenance debt", or as the first phase of a full Steward run. Distinguishes actively observed…

gaia-research/gaia-skill-tree · 92 tokens

graphlens-navigation

Navigate the code graph using graphlens MCP tools instead of reading files or grepping. Use when asked: "what calls X", "what breaks if I change X", "who uses this function", "what does this function depend on", "impact analysis", "find callers", "find references", "what implements/extends X", "what's in this file"…

Neko1313/graphlens-mcp · 147 tokens