Files
oc/skills
xiaoshuai 13d353e96d skills: require every skills/ and plugins/ change to be pushed
Editing the skill, or a plugin under plugins/, is a change to the
~/.config/opencode repository. That had no rule attached to it, so work
landed locally and the remote silently drifted.

Add "Push every change" near the top of SKILL.md, where it is read before
the reference material rather than buried at the end, plus a fifth item in
"Verifying before you answer" so the push is part of the final check rather
than a separate task that gets skipped.

The section records the three constraints that are not guessable:

- Push over SSH. origin is git@git.xsinfo.vip:xiaoshuai/oc.git; an HTTPS push
  prompts for a password and there is no TTY, so it fails outright.
- Never git init inside skills/ or plugins/. OpenCode discovers every immediate
  subdirectory of plugins/ as a plugin package, so a .git there is loaded as
  plugins/.git/index and fails on each startup. The repository belongs at the
  config root, one level above both scan roots.
- Do not git add -f past .gitignore. opencode.jsonc, cli.json, service.json,
  package.json and node_modules/ are machine-local by design.
2026-10-08 13:17:48 +08:00
..