DD

ddev-cleanup

Automates end-of-day project cleanup and status reporting.

Install

mkdir -p .claude/skills/ddev-cleanup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15849" && unzip -o skill.zip -d .claude/skills/ddev-cleanup && rm skill.zip

Installs to .claude/skills/ddev-cleanup

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

End-of-day cleanup for Grok Build + ddev projects. Repo status check, drift gate, ddev stop, cache/TODO update, commit and push on a feature branch, then reposition off master/develop for tomorrow. Use on shutdown, end of day, clean stop, daily cleanup.
253 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Perform a repository status check
  • Enforce no project drift
  • Stop ddev environment containers
  • Update Grok Build artifacts and caches
  • Commit and push changes on a feature branch
  • Reposition off master/develop for the next day

How it works

This skill performs an end-of-day cleanup for Grok Build + ddev projects by checking repo status, enforcing no project drift, stopping ddev, updating caches, and committing/pushing on a feature branch. It ensures the workspace is repositioned for the next day.

Inputs & outputs

You give it
An optional summary for a commit message, e.g., 'filament panel work done'
You get back
A complete, clean shutdown of the current Grok Build + ddev project session with changes committed and pushed

When to use ddev-cleanup

  • Cleanup project end of day
  • Shutdown ddev session
  • Push daily progress

About this skill

ddev-cleanup

Role

Perform a complete, clean shutdown of the current Grok Build + ddev project session. Enforce no project drift, verify GitHub/repo health, deliver via feature branches (never leave the workspace on master or develop), and ensure seamless resumption the next day.

Activation

Use when the user says "end of day", "shutdown for today", "clean stop", "daily cleanup", "stop work", "push and shutdown".

Branch policy (orchestrator template)

BranchEOD rule
feature/*Commit/push here; may stay if work continues tomorrow
developNever commit EOD changes directly — create feature/<slug>-YYYY-MM-DD from develop first
masterNever commit or remain here — reposition to new feature/* from develop after cleanup

Promotion flow: feature/* → PR → develop → PR → master (branch-promotion-prs.yml).

Procedure (run in order)

1. Repository status check (mandatory — /github-expert lite)

Activate /github-expert or run these checks from project root:

git fetch origin --prune
git branch --show-current
git status -sb
git rev-list --left-right --count origin/develop...develop 2>/dev/null || true
git rev-list --left-right --count origin/master...master 2>/dev/null || true
gh pr list --limit 10
gh pr list --state merged --limit 5

Report an EOD repo status table:

CheckExpectedAction if fail
Working treeClean before branch switchCommit or stash on correct branch first
Current branchNot master for new commitsReposition (step 6)
develop vs origin/developIn syncgit pull origin develop before new feature branch
Open PRsNone stale/blockingNote in summary; user resolves tomorrow
Merged feature branchesDelete local stalegit branch -d <name> when merged

Cache findings in session summary; update docs/github/repo-health.md when drift or recurring issues appear.

2. Enforce no project drift

  • Activate .github/skills/project-drift-guardian/SKILL.md and /branch-context-agent.
  • Align with active TODO and branch scope.
  • Resolve drift before commit/push.

3. Branch gate before commit

If current branch is master or develop:

git checkout develop
git pull origin develop
git checkout -b feature/<slug>-$(date +%Y-%m-%d)
  • <slug>: short kebab from TODO objective or user hint (e.g. loop-hardening, work).
  • Move any uncommitted work onto this branch before staging.

If already on feature/* with aligned scope, stay.

4. Stop ddev environment

  • Run ddev stop (or ddev poweroff if no other projects active) when .ddev/ exists.
  • Confirm with ddev list or ddev describe.
  • Template repos without .ddev/: skip and note N/A.

5. Update Grok Build artifacts

  • Refresh project cache if applicable.
  • Run python3 scripts/sync_grok_to_github_claude.py when .grok/ skills or prompts changed.
  • Update active TODO (today closed, tomorrow opened via /todo-specialist-agent when chained).
  • Run bash scripts.github/skills/chain/SKILL.md-audit.sh when chains/registry.yaml changed.

6. Git cleanup and push

git status
git add <relevant files>
git commit -m "End of day cleanup: <summary>. No project drift confirmed."
git push -u origin "$(git branch --show-current)"
  • Open PR to develop when branch protection blocks direct push.
  • Never push EOD commits to master or develop.

7. Reposition for tomorrow (mandatory if on master or develop)

After push (or when working tree is clean on a promotion branch):

git checkout develop
git pull origin develop
git checkout -b feature/<slug>-$(date -d tomorrow +%Y-%m-%d 2>/dev/null || date -v+1d +%Y-%m-%d)
  • Use tomorrow's date in the branch name when creating the next-day branch.
  • Leave the workspace on this feature branch — not on master.
  • Empty branch: no push required until first commit tomorrow.

8. Final verification

  • Confirm last push succeeded (if any).
  • Confirm current branch is feature/*.
  • Suggest tomorrow: ddev start (if applicable), .github/skills/chain/SKILL.md session-start (offers resume to latest remote branch worked on), active TODO/YYYY-MM-DD_TODO.md.

Idempotency

  • Check before destructive actions (git branch -D, force push).
  • If already on a suitable feature/* with clean tree, skip step 7.
  • Safe to re-run; repo status step always runs.

Chained use

Part of eod-shutdown chain (todo-specialistreadme-specialistddev-cleanup). Repo status + branch reposition are owned by this skill's steps 1, 3, and 7.

Run commands via bash tool. Always work in project root. Log each step.

When not to use it

  • The task does not involve a Grok Build + ddev project
  • The task is about database schema evolution without API surface impact

Limitations

  • Never commit EOD changes directly to `develop`
  • Never commit or remain on `master`
  • If current branch is `master` or `develop`, it will switch to a new feature branch

How it compares

This workflow automates a structured end-of-day process, including specific git operations and ddev commands, to ensure project hygiene and readiness for the next day, which is more disciplined than a manual shutdown.

Compared to similar skills

ddev-cleanup side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ddev-cleanup (this skill)02moReviewIntermediate
docker-expert116moReviewIntermediate
gitlab-ci-patterns104moNo flagsIntermediate
deployment-engineer44moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

docker-expert

davila7

Docker containerization expert with deep knowledge of multi-stage builds, image optimization, container security, Docker Compose orchestration, and production deployment patterns. Use PROACTIVELY for Dockerfile optimization, container issues, image size problems, security hardening, networking, and orchestration challenges.

1135

gitlab-ci-patterns

wshobson

Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation. Use when implementing GitLab CI/CD, optimizing pipeline performance, or setting up automated testing and deployment.

1030

deployment-engineer

sickn33

Expert deployment engineer specializing in modern CI/CD pipelines, GitOps workflows, and advanced deployment automation. Masters GitHub Actions, ArgoCD/Flux, progressive delivery, container security, and platform engineering. Handles zero-downtime deployments, security scanning, and developer experience optimization. Use PROACTIVELY for CI/CD design, GitOps implementation, or deployment automation.

418

devops

mrgoonie

Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.

216

ecs

itsmostafa

AWS ECS container orchestration for running Docker containers. Use when deploying containerized applications, configuring task definitions, setting up services, managing clusters, or troubleshooting container issues.

215

create-worktree-skill

disler

Use when the user explicitly asks for a SKILL to create a worktree. If the user does not mention "skill" or explicitly request skill invocation, do NOT trigger this. Only use when user says things like "use a skill to create a worktree" or "invoke the worktree skill". Creates isolated git worktrees with parallel-running configuration.

213

Search skills

Search the agent skills registry