remove-repository
Remove a repo or local folder from repos/, updating repos.yaml, repos.md, and .gitignore
- License 许可
- MIT
- 最近更新
- 2026-09-25
- Stars
- ★ 18
- Forks
- 1
01 前言 Front Matter
- name
- remove-repository
- origin
- template
- description
- Remove a repo or local folder from repos/, updating repos.yaml, repos.md, and .gitignore
- user-invocable
- true
03 SKILL.md 正文
Remove Repository
Remove a single repository or local source folder from the workspace. This is the inverse of /add-repository.
The user will provide a repo name. For example:
/remove-repository frontend— remove thefrontendentry/remove-repository backend-api— remove thebackend-apientry
Behavior
-
Validate the entry exists in
repos/repos.yamlby name- If not found, report the error and list available entries so the user can pick the right one
- If found, proceed
-
Show what will happen — before taking any action, display:
- The entry being removed (name, type, URL if git)
- Whether the directory exists on disk
- Ask the user: delete the directory from disk too, or just remove the config entry?
-
Remove from
repos/repos.yaml— delete the entry from therepos:list- If this was the last entry, leave
repos: []
- If this was the last entry, leave
-
Remove from
repos/repos.md— delete the## <name>section and all its content up to the next##heading or end of file- If no entries remain, restore the placeholder:
<!-- No repositories found. Clone repos into repos/ and run /pull-all-repos to populate this file. -->
- If no entries remain, restore the placeholder:
-
Update
.gitignore— ifrepos/<name>/appears in.gitignore(whether git repo or gitignored local folder), remove the line. No need to ask — if the entry is being removed, its gitignore line should go too. -
Optionally delete from disk — only if the user confirmed deletion in step 2:
- Run
rm -rf repos/<name>/ - If the user said no, leave the directory in place (it becomes an orphan that
/pull-all-reposwould re-register)
- Run
-
Report what was done:
Removed
<name>from repos.yaml, repos.md, and .gitignore. Directory on disk: deleted / kept.
Notes
- Always ask before deleting from disk — never auto-delete
- If the directory has uncommitted changes (for git repos), warn the user before they confirm deletion
- This skill does NOT push or modify anything in the sub-repo's own git history
04 同仓库更多 Skills
update-all-md-docs
Review and update all markdown docs in the repo-of-repos (excluding cloned repos)
sync-template
Pull latest repo-of-repos template updates into this workspace
remove-repository
Remove a repo or local folder from repos/, updating repos.yaml, repos.md, and .gitignore
pull-all-repos
Clone/pull git repos, verify local folders, auto-register orphans, and regenerate repos.md
pr-all-repos
Create PRs in all sub-repos with uncommitted branches, then link them as siblings
implement-plan
Execute a plan from _plans/, implementing steps, checking off tasks, running tests, and documenting fixes