Carry out one narrow, well-defined change by following an existing example in the codebase, touching as few files as possible and stopping with a precise question instead of guessing. Use for "small fix", "change this text", "add a field like the existing one", "simple task for a junior", "tidy this one function".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Small Task?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kinzarra-small-task)
---
name: small-task
description: Carry out one narrow, well-defined change by following an existing example in the codebase, touching as few files as possible and stopping with a precise question instead of guessing. Use for "small fix", "change this text", "add a field like the existing one", "simple task for a junior", "tidy this one function".
---
# Small task
The result is a small, exact change that does what the task says and nothing else, made the way the codebase already does it, or a precise question when the task cannot be done safely.
## 1. Restate the task
- Write in 2 or 3 sentences: what must be different when the work is done, and where.
- Write how it will be checked: the test, the command or the screen that shows the change.
- Write what is not part of the task. Anything the task does not mention is not part of it.
- If the restatement needs a guess about what is wanted, that is the first question to ask (step 5).
## 2. Find one example and follow it
- Search the codebase for a place that already does the same kind of thing: a similar field, button, endpoint, validation rule, message or test.
- Read that example fully: every file it touches, including its test, its text strings and its documentation.
- Do the task the same way: the same file locations, names, structure, error handling and test style. Do not improve on the example.
- If there are two different examples, use the newer one or the one nearest to the code being changed, and say which in the report.
- If there is no example at all, the task is probably not small. Go to step 5.
## 3. Change as little as possible
- Expect 1 to 3 files and under about 50 changed lines. More than 5 files or 150 lines means stop and ask.
- Touch only lines the task needs. No renaming, reformatting, reordering imports or "while I am here" fixes. Turn off any editor action that reformats a whole file.
- Add or update the test that covers the change when the example has one.
- Run the project's linter and tests. Find the commands in the project's README, scripts or CI configuration.
## 4. Never touch
Stop and ask when the task seems to need any of these:
- Architecture: new modules or layers, moving code between them, new patterns, changes to shared base code used by many features.
- Dependencies: adding, removing or upgrading a package; editing lock files.
- Database: migrations, schema, data scripts.
- Configuration: build, CI, deploy, environment files, feature flags, linter and formatter rules.
- Security-sensitive code: authentication, permissions, payments, cryptography.
- Public interfaces: endpoint shapes, exported function signatures, file formats.
- Existing tests: deleting, skipping or loosening one to make the suite pass.
- Generated files and vendored code.
## 5. Ask instead of guessing
- Make a short honest attempt first: read the code around the problem, search for the names in the task, try the obvious approach. About 15 to 20 minutes of work or 3 failed attempts is the limit.
- Then stop as blocked. A guess that looks finished costs the reviewer more than a question.
- Stop at once, without the attempt, when the task needs something from the "never touch" list, when two reasonable readings of the task give different results, or when a test that was passing fails and the reason is unclear.
- A precise question has four parts:
1. What was to be done (one sentence).
2. What was tried and what happened, with file names and the exact error text.
3. The specific thing that is unknown or not allowed.
4. The options seen, and the one preferred: "A: add the field to the existing form (2 files). B: create a new form (needs a new route). I would do A. Which one?"
- Leave the worktree in a clean state when stopping: either the partial change is reverted, or the report says exactly what is half-done.
## 6. Checklist before handing in
- [ ] The change does what the restatement in step 1 says, checked by running it.
- [ ] The diff was read line by line; every line is needed for the task.
- [ ] Nothing from the "never touch" list is in the diff.
- [ ] The linter and the tests pass; the commands and results are noted.
- [ ] No debug output, commented-out code, unresolved markers or stray files.
- [ ] No secrets, tokens or personal data in the code, the tests or the report.
- [ ] Text shown to users follows the wording and translation approach of the example.
## 7. Report
1. **Task as understood**: the restatement.
2. **Example followed**: file and line.
3. **Changed**: each file with one line on what changed.
4. **Checked**: the commands run and their results, and the manual check.
5. **Noticed but not touched**: problems seen nearby, with file and line.
6. **Unsure about**: anything the reviewer should look at closely.
Rules: work only in the task's worktree. Do not commit, push, merge or deploy unless the task says so. When blocked, use the four-part question above.