Update skill, agent, and prompt text to call os-git instead of raw git #1605
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1605
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Skills, agent definitions, and prompt files tell agents to run
gitcommands directly: 34 rows in section B of the checklist. They repeat the commit rules per file (explicit paths, noadd -A, no attribution) and name old tools (git-context:commit,git-context commit-apply,worktree start).Design:
docs/os-git/use-cases-and-domain.md(design) anddocs/os-git/call-site-checklist.md(call sites). Settled decisions are in design section 1 (docs/os-git/use-cases-and-domain.md): the gem lives inplugins/os-gitwith apath:source;git-contextandos:worktreemerge intoos-git; old wrappers go only after all references are updated; design order is use-cases, objects, interfaces;os-contextandos-vaultbecome Ruby; ticket tracking stays out ofos-git.Reproduce
n/a: prose change.
Approach
Replace a raw git instruction with the
os-gitcommand or skill that does the job, once that command exists. Keep a rule that forbids something (for example, "neveradd -A", "never stash") where it protects agents that still run git; delete a rule only when the object makes the mistake impossible. Rows in scope:os: G-087 to G-089. The worktree skill itself moves in the worktree ticket (#1589); this ticket updates thewrapskill (git-context:commitbecomes theos-gitcommit command).os-sdlc: G-090 to G-108. Rows G-095 and G-106 are marked "unresolved" in the checklist: read the full lines first. Rows G-091 to G-093 hardcodemain: use the base branch from the project setting (design Q6).os-doc-hygiene: G-109 to G-116. Row G-115 callsgit-context commit-apply: switch it to theos-gitcommand after the git-context ticket (#1591). Row G-111 usesadd -Afor the WIP checkpoint: use the explicit path list fromChangeSet#paths(design Q1). Row G-114 (reset --hard) belongs to #1609; leave it.cc-plugins: G-119 and G-120. G-117 and G-118 belong to the git-context ticket (#1591). Row G-120 (migrate-project.md) usesadd -A: use explicit paths.Prose follows ASD-STE100. Run
bin/refresh-pluginsafter changes to anySKILL.md.Required work: none beyond the acceptance criteria.
Acceptance criteria
os-gitcommand or skill, or keeps a prohibition with a stated reason.add -A, then no instruction to stage everything remains except in the scratch-directory harness text marked out of scope.git-context:commitandgit-context commit-apply, then no reference remains once the git-context ticket has shipped.- [x]withReplaced byfilled in, or marked out of scope with a reason, indocs/os-git/call-site-checklist.md.bin/refresh-pluginshas run, when a new session starts, then the changed skills load.Blocking edges
Blocked by the worktree ticket (#1589) and the git-context ticket (#1591), so that the commands the text names exist.
Origin
Work started on branch ticket-1605.
Resolution
Done: Skill, agent, and prompt rows G-087 to G-113, G-115, G-116, G-119, G-120 now call os-git, or stay as raw read-only steps or prohibitions with a stated reason. os-doc-hygiene clean commits by --path, with no add -A. wrap uses os-git. G-091 to G-093 read base_branch.
Evidence: main
31f29707, cc-plugins 2125188. os suite 242 runs 0 failures; os-sdlc suite 3508 runs 0 failures; refresh ran in worktree finish; orchestrator checked the clean rollback and SHA pattern against the new flow.Follow-ups: none: the docs/implementation-status/os.md line and openspec archive files that name git-context are history; G-114 stays with #1609