AGENT SKILL

rudder-workspace-hygiene-maintainer

Use to audit or clean Rudder worktrees, generated artifacts, logs, caches, and repo-owned processes without deleting active work, user data, or unrelated machine state. Returns AUDIT, CLEANED, or BLOCKED.

License 许可
Apache-2.0
最近更新
2026-11-08
Stars
★ 296
Forks
31

01 前言 Front Matter

name
rudder-workspace-hygiene-maintainer
description
Use to audit or clean Rudder worktrees, generated artifacts, logs, caches, and repo-owned processes without deleting active work, user data, or unrelated machine state. Returns AUDIT, CLEANED, or BLOCKED.

02 资源文件 2

03 SKILL.md 正文

Rudder Workspace Hygiene Maintainer

Make workspace cost visible and reclaim only space that is both proven safe and explicitly authorized.

Exclusive Outcome

  • AUDIT: read-only inventory and classified cleanup candidates.
  • CLEANED: exact authorized targets removed, with reclaimed space and post-cleanup health reported.
  • BLOCKED: safe classification or required cleanup authority is missing.

An audit is always allowed. Cleanup is allowed only for exact targets covered by the user's request.

Protected By Default

Never delete or rewrite the main checkout; dirty, unmerged, locked, or active worktrees; source or user-created data; ~/.rudder instances and databases; global caches; unrelated project state; or logs still being written before identifying and handling their producer.

Do not use broad unresolved globs, inferred environment variables, or recursive deletion against a workspace root.

Audit

Run the bundled read-only helper first:

.agents/skills/maintainer/rudder-workspace-hygiene-maintainer/scripts/audit-workspace.sh

Add --sizes only when a slower serial disk scan is worthwhile.

Gross directory size is not reclaimable space. For every candidate, classify: registered worktree and branch; main/current/locked state; dirty/unmerged state; active repo-owned process; merge ancestry or other recoverability proof; generated versus user data; and exact expected reclaim.

Process reports must be scoped to registered Rudder worktree roots or an exact Rudder-owned signature. Report only redacted PID, PPID, elapsed time, RSS, executable, and owner; never dump full argv that may contain tokens.

Cleanup

  1. Resolve exact absolute targets.
  2. Confirm each target is within the user's authorized scope.
  3. Stop or fix active producers before rotating/removing their output.
  4. Prefer repository-aware or recoverable operations.
  5. Remove only classified generated artifacts or proven-safe worktrees.
  6. Re-run the audit and a lightweight health check.
  7. Report target, reason, bytes reclaimed, and recoverability.

For worktrees, “old” or “large” is insufficient. Protect any worktree that is dirty, unmerged, active, locked, current, or not proven recoverable from a remote/merged commit.

Report Format

RESULT: AUDIT | CLEANED | BLOCKED
Scope:
Protected:
Candidates:
Actions:
Reclaimed:
Post-check:

04 同仓库更多 Skills

Undertone0809
Undertone0809/rudder

Source Synthesis

Synthesize evidence into a concise conclusion.

★ 296
Undertone0809
Undertone0809/rudder

Evidence Research

Gather and cite evidence before reaching a conclusion.

★ 296
Undertone0809
Undertone0809/rudder

deep-research

Conducts enterprise-grade research with multi-source synthesis, citation tracking, and verification. Produces citation-backed reports through a structured pipeline with source credibility scoring, and grounds abstract findings in concrete examples, cases, counterexamples, or mini-scenarios when helpful. Triggers on "deep research", "comprehensive analysis", "research report", "compare X vs Y", "analyze trends", or "state of the art". Not for simple lookups, debugging, or questions answerable with 1-2 searches.

★ 296
Undertone0809
Undertone0809/rudder

visualize

Create safe inline visual explanations in Rudder Chat. Use when asked for a chart, plot, diagram, timeline, comparison, static map, simulator, scenario view, or compact visual that materially improves understanding. Prefer Mermaid for static node-and-edge structures; use Rudder's runtime-neutral HTML/SVG/CSS message envelope for custom geometry. Rudder visuals are declarative and scriptless: convert simulator requests to static scenarios or disclosure-based comparisons and never rely on JavaScript, network access, or external assets.

★ 296
Undertone0809
Undertone0809/rudder

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

★ 296
Undertone0809
Undertone0809/rudder

rudder-docs

Use when the user asks how Rudder works; needs current Rudder docs, exact behavior, commands, contracts, APIs, or source evidence; asks to create, hire, or configure Rudder agents; or asks to scaffold, develop, or verify Rudder plugins. For explicit creation requests, verify the current interface before acting within existing authorization. Do not use for greetings, ordinary work merely running inside Rudder, routine actions already clear from the active context and typed tools, non-Rudder plugin work, or general coding and research tasks that do not ask about Rudder.

★ 296