think-first
Skill404 starsChanged 49 days agoApache-2.0View on GitHub
Reflection first problem solving for Convex projects: root cause before code, two candidate fixes, a 98 percent confidence bar, and changes limited to the files the request needs. Use before implementing any fix or feature, when a bug report comes in, when a previous fix did not work, or when the request is vague.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- waynesutton/builder-skillsword for word, first seen Nov 15, 2026
- ejoliet/claude-skillstheir own version, first seen Oct 11, 2026
- aplaceforallmystuff/claude-think-firsttheir own version, first seen Jan 4, 2026
- SZoloth/claude-skillstheir own version, first seen Dec 3, 2025
Other versions4 projects use a version of this.
Word for word · 1
- waynesutton/builder-skills★ 404100% same
Edited · 0
None found.
Wrote their own version · 3
- aplaceforallmystuff/claude-think-first★ 1same name
- ejoliet/claude-skills★ 0same name
- SZoloth/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- avoid-feature-creepSkill
- convex-agentsSkill
- convex-best-practicesSkill
- convex-component-authoringSkill
- convex-cron-jobsSkill
- convex-file-storageSkill
- convex-functionsSkill
- convex-http-actionsSkill
- convex-migrationsSkill
- convex-realtimeSkill
- convex-schema-validatorSkill
- convex-security-auditSkill
- convex-security-checkSkill
- create-prdSkill
- devSkill
- git-safetySkill
- sec-checkSkill
- state-machinesSkill
- update-project-docsSkill
- what-i-need-from-youSkill
- workflowSkill
- writeSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Never assume. If anything is unclear, ask one focused question and stop.
- Distinctive: line 22
Do not write code below 98 percent confidence in what needs to change.
- Distinctive: line 26
Check https://docs.convex.dev/llms.txt for the current API before relying on memory.
- Distinctive: line 28
Call mutations with plain objects.
- Very specific: line 30
Check ownership on the server.
- Very specific: line 33
Use Promise.all for independent reads.
- Distinctive: line 58
Only the files the request needs.
- Distinctive: line 70
Use the site's design system for every popup, alert, modal, warning, toast, and confirmation.
- Distinctive: line 71
Follow the Vercel Web Interface Guidelines: https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/refs/heads/main/AGENTS.md
- Very specific: line 75
Do not create README, CONTRIBUTING, SUMMARY, or USAGE_GUIDELINES files unless asked.
- Distinctive: line 83
Before the first edit:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Think first
Slow down for thirty seconds before the first edit. It saves an hour later.
1. Reflect before acting
- Reflect. Why does the current code not do what the user wants? Read it. Do not guess.
- Identify. What is missing, wrong, or incomplete relative to the request?
- Theorize. List two or three possible sources of the problem or areas that need to change.
- Distill. Narrow to the one or two most likely causes and say why.
- Proceed. Move forward only once that is clear.
Never assume. If anything is unclear, ask one focused question and stop. A wrong assumption costs more than a question.
2. Confidence bar
Do not write code below 98 percent confidence in what needs to change. Below that: read more, ask, or propose a plan instead of a diff. Edit the number if this project wants a different bar.
3. Convex rules
Check https://docs.convex.dev/llms.txt for the current API before relying on memory.
- Call mutations with plain objects. Write a dedicated mutation that maps form fields to document fields, and keep the names the same where you can.
- Patch directly when you do not need the current document.
- Check ownership on the server. Load the document and compare its owner to the caller from
ctx.auth, or read through an index on the owner field. Never trust an owner id passed in args. - Make mutations idempotent with early returns when the document is already in the target state.
- Order new items by a timestamp field or
_creationTime. - Use
Promise.allfor independent reads. It does not prevent write conflicts. To avoid OCC conflicts, keep each mutation's reads and writes narrow and avoid many writers on one hot document.
Docs to check:
- Functions: https://docs.convex.dev/functions
- Mutations: https://docs.convex.dev/functions/mutation-functions
- Queries: https://docs.convex.dev/functions/query-functions
- Validation: https://docs.convex.dev/functions/validation
- Schemas: https://docs.convex.dev/database/schemas
- Zen of Convex: https://docs.convex.dev/understanding/zen
- Best practices: https://docs.convex.dev/understanding/best-practices/
- TypeScript: https://docs.convex.dev/understanding/best-practices/typescript
Authentication:
- Convex Auth: https://docs.convex.dev/auth/convex-auth (beta; the setup guide is at https://labs.convex.dev/auth)
- Auth in functions: https://docs.convex.dev/auth/functions-auth
- Other providers: https://docs.convex.dev/auth
For Convex work beyond these rules, use the official Convex skills. https://www.convex.dev/agent-setup.md installs them.
4. Scope
Change:
- Only the files the request needs.
- The schema, if the request needs it.
changelog.md,files.md, andtask.mdafter the change lands. Rungit log --date=shortso dates match the real history. No placeholders, no future months.
Do not change:
- UI, layout, design, colors, or copy the request did not mention.
- Admin dashboard sections, frontend components, or features the request did not mention. Nothing gets removed without being asked.
- [Add project specific protected areas here.]
5. UI
- Use the site's design system for every popup, alert, modal, warning, toast, and confirmation. Never the browser default.
- Follow the Vercel Web Interface Guidelines: https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/refs/heads/main/AGENTS.md
6. Docs policy
Do not create README, CONTRIBUTING, SUMMARY, or USAGE_GUIDELINES files unless asked. A short summary in the reply is enough. No emojis in docs or the app unless asked.
7. Git
Load git-safety before any git command that could discard work. Short version: git status first, git diff before discarding, undo by editing files, and never run reset --hard, checkout -- ., clean -fd, or stash drop without the user approving that exact command.
Checklist
Before the first edit:
- I can name the root cause
- I considered at least two fixes and picked one for a reason
- I am at or above the confidence bar
- I know which files change and which do not
- I am keeping UI and features the request did not mention
- I checked the relevant docs
- Anything unclear has been asked
Before saying done:
- The fix was verified, not just written
- Nothing outside the request changed
- Docs synced if the change was non trivial
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.

