Index of every page on this site: llms.txt
All skills
waynesutton avatar

/think-first

@853b196
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/waynesutton/builder-skills/think-first

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈82 tokens for metadata: the name and description. ≈1.1k when used: this file. ≈23 more on demand in 1 file.

Description uses 4.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈329 characters, or 4.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Think first

Slow down for thirty seconds before the first edit. It saves an hour later.

1. Reflect before acting

  1. Reflect. Why does the current code not do what the user wants? Read it. Do not guess.
  2. Identify. What is missing, wrong, or incomplete relative to the request?
  3. Theorize. List two or three possible sources of the problem or areas that need to change.
  4. Distill. Narrow to the one or two most likely causes and say why.
  5. 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.all for 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:

Authentication:

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, and task.md after the change lands. Run git log --date=short so 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

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

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts11d3 checks · Risk SAFE
  • Gen Agent Trust Hub11d

    The skill provides architectural guidelines and best practices for developing with the Convex platform. All identified external resources are from well-known or trusted services.

  • Socket11d

    No alerts

  • Snyk11d

    Risk: LOW · No issues

Signed by skilld at 853b196. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 2 weeks ago

README badge

README badge for waynesutton/builder-skills/think-first