rename-wth-hack
Skill1.9k starsChanged 13 days agoMITView on GitHub
Rename a What The Hack folder, assign a hack number before publishing, update repository references, and synchronize its devcontainer configurations. Use when asked to rename this hack to a new name, assign this hack a number, change a hack folder prefix, or update a hack number.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about microsoft/WhatTheHack
- A Hacker News story“A collection of challenge based hack-a-thons”Hacker News · Feb 8, 2020 · 4 points
- facelessuser/pyspelling“pyspelling markdown filter is not processing <details> & <summary> tag blocks in GitHub markdown files.”GitHub · May 13, 2024
- frasermolyneux-archive/what-the-hack-prep“Challenge 3”GitHub · Jun 8, 2023
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repositoryOne other file it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 32
Check both the hack destination and .devcontainer/<new-folder> destination.
- Distinctive: line 33
Never overwrite or merge an existing destination.
- Distinctive: line 35
If a different hack already uses the requested number, ask the author to resolve the collision before making changes.
- Distinctive: line 39
If neither exists, report that devcontainer synchronization is not applicable.
- Distinctive: line 40
If only one exists, ask whether to create the missing counterpart.
- Very specific: line 44
Search for the exact old folder name across repository files, including hidden directories such as .devcontainer and .github.
- Very specific: line 51
Do not globally replace the bare old number, technology name, or xxx.
- Distinctive: line 52
Do not rewrite historical records, external URLs, or ambiguous references without the author's approval.
- Distinctive: line 54
Use surgical edits. For notebooks, preserve cell IDs, metadata, execution counts, outputs, and all unrelated source.
- Very specific: line 60
Update the top-level devcontainer's name and any workspace paths containing the old folder name.
- Distinctive: line 80
Verify that destination folders exist and old folders no longer exist, except when no move was needed.
- Distinctive: line 92
Check affected scripts, links, or configured tests when the rename changes their paths.
- Distinctive: line 96
Do not stage, commit, push, or publish unless the author explicitly requests it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rename a What The Hack Hack
Complete the rename in the current repository, including references and both devcontainer configurations. Do not merely suggest changes.
Example requests
/rename-wth-hack xxx-ElasticSearchWithFoundry to 077-ElasticsearchWithFoundry- "Rename this hack to 077-ElasticsearchWithFoundry."
- "Assign xxx-MyNewHack hack number 078."
1. Resolve the request and inspect
- Identify the repository root and current top-level hack folder from the request or active context. Ask the author if more than one folder could be intended.
- For a number-only request, format an integer from 0 through 999 as three digits
and replace the existing
xxx-or three-digit prefix. Preserve the remaining suffix exactly, including capitalization. Ask if the current naming format or requested number is ambiguous or invalid. - For a full folder-name request, require
NNN-<nonempty suffix>and preserve the author's spelling and capitalization. Reject paths outside the repository, path separators, and traversal components. Ask for clarification rather than guessing a technology name or correcting its case. - Inspect the worktree status and relevant files before editing. Preserve all unrelated changes, including untracked files inside the folders being moved.
- Check both the hack destination and
.devcontainer/<new-folder>destination. Never overwrite or merge an existing destination. A source already using the requested name needs no move; still check references and configuration parity. - If a different hack already uses the requested number, ask the author to resolve the collision before making changes.
- Locate the hack's
Student/Resources/.devcontainer/devcontainer.jsonand the repository's.devcontainer/<current-folder>/devcontainer.json. Read both. If neither exists, report that devcontainer synchronization is not applicable. If only one exists, ask whether to create the missing counterpart.
2. Find and update references
- Search for the exact old folder name across repository files, including hidden
directories such as
.devcontainerand.github. Exclude.gitinternals, dependency directories, caches, and build outputs. Do not bypass access restrictions. Report any excluded locations that prevent complete verification. - Inspect matches before changing them. Update relevant repository paths, configuration names, scripts, documentation, and notebook source text to the new full folder name. Include references outside the hack itself.
- Do not globally replace the bare old number, technology name, or
xxx. Do not rewrite historical records, external URLs, or ambiguous references without the author's approval. List any references intentionally retained. - Use surgical edits. For notebooks, preserve cell IDs, metadata, execution counts, outputs, and all unrelated source. Never execute a notebook to rename it.
- Rename the hack folder and its top-level
.devcontainer/<current-folder>counterpart using filesystem moves that preserve their contents. If only the letter case changes, use a verified unused intermediate name when required by a case-insensitive filesystem. - Update the top-level devcontainer's
nameand any workspace paths containing the old folder name. Preserve its existing mount layout and other settings. For example,/workspace/<old-folder>/Student/Resourcesbecomes/workspace/<new-folder>/Student/Resources.
3. Synchronize devcontainer configurations
- The top-level
.devcontainer/<new-folder>/devcontainer.jsonis authoritative. - Make
Student/Resources/.devcontainer/devcontainer.jsonmatch its contents, including comments and formatting, except omit the top-levelworkspaceFolderandworkspaceMountproperties entirely. Do not replace them with empty or null values, and do not remove similarly named nested properties. - Preserve every other property from the authoritative configuration. Do not retain student-only extensions, features, startup commands, or open-file lists. Summarize any such settings removed by synchronization in the final report.
- These files may contain JSON with comments (JSONC). Preserve valid syntax, commas, and comments when removing the workspace properties.
4. Verify and report
- Verify that destination folders exist and old folders no longer exist, except when no move was needed. Confirm moved files and unrelated edits were retained.
- Repeat the exact-name search in the same scope. Resolve stale local paths and list approved retained references or blockers; do not claim a clean search when files could not be inspected.
- Validate edited notebooks as JSON and devcontainer files as JSONC, using existing tooling when available. Do not launch containers or run provisioning commands solely to validate a rename.
- Compare both devcontainer contents: the student version must exactly match the top-level version with only its two workspace properties omitted. Confirm those properties are absent and that any repository-backed workspace path points to the renamed student-resource directory under the configured mount.
- Check affected scripts, links, or configured tests when the rename changes their paths. Run a whitespace/error check for the changes.
- Report the final folder name, updated references, configuration synchronization, validation results, removed student-only settings, and any remaining issues.
- Do not stage, commit, push, or publish unless the author explicitly requests it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

