Repository navigation
chore: untrack local AGENTS.md/CLAUDE.md and split Jev config reference from SKILL.md - #14
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.