ilude/claude-code-config/least-astonishment
Claude Code and agent skill by ilude/claude-code-config
- community
Checking that the SKILL.md file is still in the repository.
Principle of Least Astonishment (POLA) - ensure code changes behave as users and developers expect. Activate when making code changes, refactoring, modifying APIs, renaming functions/variables, changing file structure, or reviewing proposed implementations. Guides predictable, convention-following changes.
Install
npx vskill@latest install ilude/claude-code-config/least-astonishmentSKILL.md
The same SKILL.md was published earlier as ilude/claude-code-config/least-astonishment.
Principle of Least Astonishment (POLA)
Auto-activate when: Making code changes, refactoring, modifying existing functions, changing APIs, renaming things, moving files, or reviewing implementations. Should activate alongside development-philosophy for any non-trivial changes.
Core Principle
Every change should be predictable to someone familiar with the codebase.
If a change would surprise a developer who knows the project, either:
- Don't make it
- Make a smaller, less surprising change
- Explain clearly before proceeding
Before Making Changes
The Surprise Check
Ask yourself:
- Would this surprise someone reading a diff?
- Unexpected file modifications
- Unrelated changes bundled together
- Renamed things without clear reason
- Does this follow existing patterns?
- Check neighboring files first
- Match naming conventions already in use
- Use established abstractions, don't invent new ones
- Is the scope what was requested?
- No unrequested refactors
- No "improvements" beyond the ask
- No adding features "while I'm here"
- Would the function/API do what its name suggests?
- No hidden side effects
- No surprising return values
- No unexpected mutations
Common POLA Violations
❌ Scope Creep
Why surprising: Reviewer expects a small fix, gets a large diff.
❌ Hidden Side Effects
Why surprising: "get" implies read-only; this writes.
❌ Inconsistent Naming
Why surprising: Breaks established vocabulary.
❌ Unexpected File Changes
Why surprising: Unrelated files modified.
❌ Silent Behavior Changes
Why surprising: Callers expecting old behavior will break.
POLA-Compliant Patterns
✅ Minimal Diffs
Change only what's necessary. If you notice something else that needs fixing, mention it separately.
✅ Match Existing Vocabulary
✅ Explicit Over Implicit
✅ Backward-Compatible Changes
✅ Predictable Return Types
When Larger Changes Are Needed
Sometimes breaking POLA is necessary. When it is:
- Announce it - "This will change behavior for X"
- Explain why - "Current approach causes Y problems"
- Offer alternatives - "We could also do Z, which is less disruptive"
- Get explicit approval - Don't assume silence means consent
Quick Reference
| Situation | POLA-Compliant Approach | |
|---|---|---|
| Fixing a bug | Fix only that bug | |
| Adding a feature | Add only that feature | |
| Refactoring | Only when explicitly requested | |
| Renaming | Match existing conventions | |
| Changing return types | Add new function, deprecate old | |
| Modifying APIs | Backward-compatible by default |
Integration with Other Principles
- KISS - Simple solutions are usually less surprising
- DRY - But don't create abstractions that surprise (premature DRY violates POLA)
- Consistency - Following patterns is core to POLA
TL;DR
Do what the code reader expects. Match existing patterns. Keep changes focused. No surprises.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/least-astonishment/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ilude/claude-code-config/least-astonishment)