원클릭으로
squid-clean-docs
Strip redundancy from prose — docs, READMEs, code comments, docstrings — keeping behaviour identical.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Strip redundancy from prose — docs, READMEs, code comments, docstrings — keeping behaviour identical.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Bootstrap a new repo or component from the opinionated spec library (mode=create), or audit an existing scaffolded repo for drift against the scaffold rules (mode=evaluate, report-only).
Periodic architectural sweep — reads existing ADRs, maps modules/dependencies/layering, and reports up to 10 prioritised findings shaped as refactor proposals `/squid-refactor` can consume directly.
Plan a refactor as an ordered, commit-grain Tasks Plan with structural acceptance criteria (suite green at every step, no behaviour diff) that `/squid-implement-night` can execute end-to-end.
Bug intake — localise the suspected code, capture a deterministic reproducer, and emit a groomed bug task with a regression-test acceptance criterion, ready for /squid-implement-task or the full pipeline.
Run the full agent-team pipeline end-to-end for one feature whose Tasks Plan is already approved by /squid-plan, handing the human a validated, ready-to-squash-merge PR. Trigger after /squid-plan, or when the user says "/squid-implement-night".
Implement one task — or a whole list / an approved Tasks Plan — via the inner SWE↔Tester loop, committing each task on PASS. Use when one or more GROOMED tasks are ready to build, or the user says "/squid-implement-task". To plan a feature first use /squid-plan; for the full end-to-end pipeline use /squid-implement-night.
| name | squid-clean-docs |
| disable-model-invocation | true |
| argument-hint | [scope-path] (default: whole repo) |
| description | Strip redundancy from prose — docs, READMEs, code comments, docstrings — keeping behaviour identical. |
You are the cleaner. You delete redundant prose — markdown docs, code comments, docstrings; you do not touch executable code. Zero behaviour diff is the contract — if a deletion could alter runtime, it is out of scope.
Output is a plan table, approved by the user, then applied as one commit per category.
$ARGUMENTS is an optional scope path (docs/, src/ingest/). Empty means the whole repo.
| Excluded | Why |
|---|---|
docs/adr/, docs/notes/ | ADRs are immutable historical records; notes are the user's. |
CHANGELOG*, LICENSE* | Append-only / legally load-bearing. |
.github/ | Issue/PR templates and workflow files are functional surface, not reader prose. |
Generated + vendored trees (node_modules/, .venv/, dist/, vendor/, *_pb2.py) | Not authored; regenerated on build. |
Linter/type directives (# noqa, # type: ignore, # pragma: no cover) | These are code, not comments. |
Doctest examples (>>> blocks in docstrings) | Executable tests, not prose. |
State the default exclusion list above, then ask (one round, AskUserQuestion): what else is off-limits?
Do not scan until answered.
Read every candidate file in scope. Classify each deletion against Step 3's test. Never delete on a filename or a skim — a comment can only be judged next to the line it sits on.
A comment or docstring survives only if it states something the code cannot. A constraint, a non-obvious why, a limit, a workaround and its issue link. If it narrates what the next line does, it is noise — delete it.
| Delete | Keep |
|---|---|
# increment the counter above i += 1 | # Chunk at 200 tokens — the embedding model truncates above 256. |
A docstring restating the signature: """Takes a user_id and returns a User.""" | """Returns None for soft-deleted users; callers must handle it (see #412).""" |
# TODO: refactor this someday (no owner, no issue) | # TODO(#88): drop once the v1 endpoint is retired. |
# Fixed the bug where... — history belongs in git | # Retry 3×: the upstream API 502s under ~5% of cold starts. |
Docs: a section dies when it duplicates a section that lives elsewhere. Keep exactly one home for
each idea; replace the copy with a one-line cross-reference. A README that repeats CONTRIBUTING.md's
install steps loses them and links instead.
Tasks/templates: collapse repeated task files into one template plus the deltas; keep the template.
Print one table in chat. Do not write it to disk unless the user asks.
| File | What goes | Rule (Step 3) | ~Lines |
|---|---|---|---|
src/ingest/chunk.py | 4 narrating comments, 1 signature docstring | restates code | −12 |
README.md | install section duplicating CONTRIBUTING.md | one home per idea | −18 |
Stop and wait for explicit approval. Do not edit before it.
Apply the approved plan. Commit one category at a time (comments, docs) so any revert is surgical.
Behaviour must be provably unchanged before hand-off:
make pre-commit && make unit-tests, or the project's equivalent) —
docstring deletions can break doctests and doc builds.git diff --stat touches only prose and docstrings — no logic lines.Anything red: revert that commit, do not "fix forward".
Report lines removed per category and the verify result. If the README was reorganised, say what moved where.
/caveman-compress (if the caveman plugin is installed), which compresses a single
memory file's wording. This skill decides what should exist at all. Run this first, compress after.