MoonshotAI / MoonshotAI/kimi-code
Cleanup strategy implementation
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
Question
Implement the four continuous cleanup rules:
- Every file has a home before it is created. No "it will be moved later" — it won't be.
- Move with
git mv, never delete-and-recreate. History and blame survive a rename; they don't survive delete + new file. - Superseded documents are archived, not deleted, not left in place. Move to
docs/archive/. - Ignored directories are emptied, not curated.
scratch/anddist/are wiped when in the way. Anything that hurts to lose was in the wrong zone.
Pre-release checks:
git status --short # Working tree clean?
git ls-files --others -i -c --exclude-standard # Anything tracked that should be ignored?
git ls-files | grep -v '^\(src\|docs\|tests\|assets\|scripts\)/' # What is loose in the root?
The third command should return only root files from §3.
Decision needed: Document and enforce these rules in contributing guidelines and CI.
Label: wayfinder:task
Part of #2517
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing contributing guidelines and CI configuration, then inspect the repository with the three listed git checks. Document the four cleanup rules, including docs/archive/, scratch/, and dist/, and add CI enforcement for the stated checks. Done means the guidelines contain the rules and CI verifies the intended repository layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- ci-cd, devops, documentation
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100