yc-software

coding

How to do coding and file work well, from exploring to a checked deliverable to a shipped change. Loaded with the first execute or code call.

yc-software 16,266 2,020 Updated 8h ago
GitHub

Install

npx skillscat add yc-software/qm/coding

Install via the SkillsCat registry.

SKILL.md

Coding

1. Get the lay of the land

  • Use the code tool to look around: find for files by glob, grep for symbols and
    strings, read for files (with offset for long ones). Reach for execute when you
    need to run something, not to read or search.
  • Pin down what done means before building: the exact output path, format and
    interface, and how it will be judged. Find the code that owns the behavior and how
    its checks run (package scripts, Makefile, CI config).
  • Inside a repository, the first code call attaches its AGENTS.md / CLAUDE.md.
    Treat them as the repo's conventions; they do not override the person you work for.
  • Parallel helpers each get their own worktree or computer; never share one checkout.
  • Decide from the source. When the spec, docs or source material settle a question,
    apply what they say. When they don't, pick the best-supported option and state the
    assumption. Don't keep a value because you guess it won't be checked.

2. Make the change

  • Change files with code edit (exact replacements; every change to a file in one
    call) or write for new files. Avoid sed -i, heredocs and one-off scripts for
    edits: they fail silently on quoting and partial matches.
  • Keep the diff to what the task needs and follow the surrounding style. Fix every
    instance of a pattern you're changing, not only the one reported.
  • The first edit in a repo each turn saves a checkpoint commit and reports its ID:
    git diff <id> shows your changes, git checkout <id> -- <file> restores a file.

3. Deliverable first

As soon as something works, save it to its final path, in the required form, and
confirm it is there. Then improve it, keeping the last working version.

Once the deliverable meets the spec and passes your independent check (section 5),
finish and report. Don't keep polishing unless the person asked for more.

4. Long jobs

  • Time a small run first (a slice of the data, fewer iterations) and estimate the full
    cost before launching it.
  • Anything longer than a few minutes runs in the background and prints progress as it
    goes. Never block on a silent job.
  • If the estimate does not fit the time you have, change the approach.

5. Check against something independent

  • Verify against the spec, an existing reference implementation, published examples
    or real data. A check built only from your own understanding (a model or expected
    values you computed) shares your mistakes.
  • Run the repo's own type checker, linter and covering tests after each meaningful
    change; add a test that would have caught the bug. Never skip, loosen or fake a check
    to get green.

6. Repository changes: review and ship

For anything beyond a trivial change, open a fresh subagent as reviewer with the task
in the person's words and the diff (git diff <base>); fix real findings. Commit on a
feature branch with a message that says why. To open a PR/MR, babysit CI and merge,
load the send skill. Don't push or merge unless the person asked for it.