-
Notifications
You must be signed in to change notification settings - Fork 0
Add cleanup script and replace chmod patterns with bash invocation #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: swarm-protocol <169869917+swarm-protocol@users.noreply.github.com>
Co-authored-by: swarm-protocol <169869917+swarm-protocol@users.noreply.github.com>
Co-authored-by: swarm-protocol <169869917+swarm-protocol@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds an on-demand, inert-by-default cleanup mechanism to remove scaffolding leftovers that diverge from the canonical template repo structure, plus a documented protocol for invoking it intentionally.
Changes:
- Introduces
cleanup.shas a fully commented-out cleanup script intended for manual/LLM-prompted use only. - Documents an explicit “Protocol: Cleanup Leftover Files” workflow in
AGENTS.md, including steps, checklist, and agent invocation examples.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| cleanup.sh | Adds an inert cleanup script that can diff current files vs an expected list and delete leftovers after confirmation. |
| AGENTS.md | Adds a protocol section describing how/when to run the cleanup script and how to safely execute the workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: swarm-protocol <169869917+swarm-protocol@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot apply changes based on the comments in this thread |
…ty-array guard, git-aware file discovery, safe rm Co-authored-by: swarm-protocol <169869917+swarm-protocol@users.noreply.github.com>
Applied all 8 review comments in commit
|
cleanup.sh- fully commented-out bash script for deleting leftover fileschmod +x/./script.shpatterns withbash script.shacross all filesgit restore cleanup.shfor re-commenting (review comment)./cleanup.sh→bash cleanup.shin script USAGE header (review comment)-path './.git' -prunefor empty dir cleanup (review comment)git rev-parsefor repo-root detection instead of[ ! -d ".git" ](review comment)git ls-filesinstead of barefindfor file discovery (review comment)rm --instead ofrmto handle paths starting with-(review comment)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.