custom-cleanup-process

Custom Cleanup Process

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "custom-cleanup-process" with this command: npx skills add edanstarfire/claudecode_webui/edanstarfire-claudecode-webui-custom-cleanup-process

Custom Cleanup Process

Purpose

This is a project-specific custom skill called by the approve_issue workflow to clean up project-specific resources. It handles stopping test servers and cleaning artifacts specific to this project (claudecode_webui).

Generic workflow skills invoke this skill if it exists; if absent, the cleanup step is skipped (only generic cleanup like worktree removal runs).

Input

  • issue_number (from $1 argument): The issue number being cleaned up

Cleanup Steps

  1. Calculate Ports
  • Backend Port = 8000 + (issue_number % 1000)

  • Vite Port = 5000 + (issue_number % 1000)

  1. Stop Test Servers

Use the process-manager skill pattern - find and kill by PID:

Find and kill backend server

lsof -ti :${BACKEND_PORT} | xargs -r kill 2>/dev/null

Find and kill vite server

lsof -ti :${VITE_PORT} | xargs -r kill 2>/dev/null

  1. Verify Servers Stopped

lsof -i :${BACKEND_PORT} 2>/dev/null lsof -i :${VITE_PORT} 2>/dev/null

Both should return no output.

  1. Error Handling
  • If servers are not found on expected ports, warn but continue (servers may have already been stopped)

  • If kill fails, try kill -9 as fallback

  • Do NOT fail the overall cleanup if server stop fails

Usage by Generic Skills

The approve_issue workflow calls this skill like:

Invoke custom-cleanup-process skill with issue_number=$1

The skill derives port numbers from the issue number and handles all project-specific cleanup. It may use the process-manager skill internally for process management. If this skill does not exist, the generic workflow proceeds with only generic cleanup (worktree removal, branch cleanup, etc.).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

custom-environment-setup

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

custom-test-process

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

custom-build-process

No summary provided by upstream source.

Repository SourceNeeds Review