Skip to content

chore: untrack local AGENTS.md/CLAUDE.md and split Jev config reference from SKILL.md - #14

Merged
kyomarshal merged 1 commit into
mainfrom
chore/untrack-agents-and-slim-skill
Nov 27, 2026
Merged

kyomarshal merged 1 commit into
mainfrom
chore/untrack-agents-and-slim-skill

Conversation

@KyoMio

@KyoMio KyoMio commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Untrack local AI agent guide files (AGENTS.md, CLAUDE.md) while keeping them locally via .git/info/exclude, and move Jev config JSON details out of skills/zcode-executor/SKILL.md into skills/zcode-executor/references/cli-and-jev.md.

@kyomarshal
kyomarshal merged commit 38992bb into main Nov 27, 2026
3 checks passed
kyomarshal added a commit that referenced this pull request Nov 27, 2026
…skill references link, stdin example (#15)

[Medium] README/README.zh-CN: the development entry now points at
docs/RULES.md instead of the untracked-away AGENTS.md, plus an upgrade
note: a fast-forward pull removes tracked AGENTS.md/CLAUDE.md even when
.git/info/exclude lists them — back up before pulling, restore after
(cp /tmp round-trip), they live on untracked.

[Low x3, same PR per the review]
1. package.json files: drop AGENTS.md — npm packs files-listed entries
   even when gitignored, so local dev clones shipped it.
2. dsh-plugin/skills/zcode-executor/references symlink added, so the
   DSH source-checkout install exposes references/cli-and-jev.md next
   to SKILL.md (the npm-install layout already ships it).
3. SKILL.md stdin example restored to its three paste-able lines — the
   single-line version left interactive shells waiting on EOF.

Verification: doc links in both READMEs all resolve (node fs check);
npm pack --dry-run contains zero AGENTS.md entries;
dsh-plugin/skills/zcode-executor/references/cli-and-jev.md reads;
the three stdin lines pasted verbatim into bash close the heredoc and
fail only on the <id> placeholder as expected;
node scripts/sync-doc-version.mjs --check passes.
kyomarshal added a commit that referenced this pull request Nov 27, 2026
…ce, pull-failure guard, paste-able stdin example (#16)

[Medium] The #15 upgrade snippet masked pull failures: uncommitted
edits to the tracked guides make git refuse the fast-forward, yet the
snippet kept restoring and exited 0, leaving the user on the old
version none the wiser; the fixed /tmp backup path could also
resurrect the OTHER guide from an older run on a clone that keeps
only one. The bilingual note now:
- uses a fresh mktemp -d per run, copies only what exists (no error
  swallowing);
- step 0: stash or commit the tracked local edits first
  (git stash push -- AGENTS.md CLAUDE.md);
- restores only what THIS run backed up, and only inside
  if git pull --ff-only — a failed pull restores nothing and says so.

[Low] SKILL.md stdin example: <id> pasted verbatim is a bash
redirect, not a placeholder — replaced with "$SESSION_ID" plus a
note on setting it.

Verification: simulated pre-#14 clone with uncommitted guide edits —
pull refuses, nothing restored, HEAD stays, local edit intact; with
the documented stash the full upgrade completes and both guides come
back untracked; a clone keeping only AGENTS.md never regains a
CLAUDE.md; the stdin example pasted verbatim closes its heredoc and
the CLI actually runs (answers session-not-found for the test id).
sync-doc-version --check passes.
kyomarshal added a commit that referenced this pull request Nov 27, 2026
[Medium] The #16 snippet stashed BEFORE backing up: stash reverts the
worktree to the old committed content, so the backup captured the
pristine version and the user's local edits were never restored — worse,
a later git stash pop then conflicts on the same filenames and exits 1.
The order is now backup-with-edits FIRST, stash second (it only clears
the upstream sync — nothing left to pop, drop it when happy).

[Low] The failure branch exits non-zero via 'false' instead of 'exit 1'
(which would kill the interactive shell the snippet is pasted into);
the per-file restore tests use a guarded if so a clone keeping only
AGENTS.md exits 0 instead of failing on the missing CLAUDE.md test.

Verification (simulated pre-#14 clones): with uncommitted guide edits
the full snippet restores the edits verbatim as untracked files and
advances HEAD, stash holding only the redundant copy; an unreachable
remote exits 1, restores nothing, edits recoverable via stash pop; a
clone keeping only AGENTS.md upgrades with exit 0.
sync-doc-version --check passes.
@kyomio-openbot
kyomio-openbot Bot deleted the chore/untrack-agents-and-slim-skill branch November 29, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants