Repository navigation
feat(tools): add source-control (VCS) capability and wire it into git-using skills - #609
Merged
Merged
Conversation
…-using skills Make source control a first-class, separable capability of the tool layer, distinct from the issue-tracker / forge surface, so a project can pair its tracker with a non-Git VCS. - tools/github/source-control.md: new capability reference mapping the abstract VCS operations the dev-loop skills need (status, branch, stage, commit, diff, log, fetch, push, worktree, stash) to their Git bindings, with the distributed-vs-centralized caveat and the list of tracked non-Git bridges. - tools/github/tool.md: list source control as the sixth capability and document tracker/VCS separability in "When to replace this tool". - projects/_template/project.md: dedicated Source control row in the Tools enabled manifest. - Wire the capability into the six skills that use git as the project's source control (issue-fix-workflow, security-issue-fix, pr-management-code-review, issue-reproducer, issue-reassess, issue-triage): each now states its git calls are the Git binding of the capability and that a non-Git VCS substitutes its own binding for the same abstract operation. Framework-plumbing git usage (setup-*, shared-config-sync, override-upstream) is intentionally left as-is — it operates on the steward framework's own repos, not the project's source. Groundwork for the non-Git VCS bridges (#601-#605, #608). Generated-by: Claude Code (Opus 4.8)
potiuk
force-pushed
the
feat/source-control-capability
branch
from
June 29, 2026 00:34
541bf66 to
9c7b7ac
Compare
potiuk
added a commit
that referenced
this pull request
Jun 29, 2026
Extract the source-control capability contract (added in #609, tools/github/source-control.md) into a runnable, backend-dispatching tool so a non-Git VCS plugs in at one place instead of in every skill. - tools/vcs/: stdlib-only `magpie-vcs` CLI. Abstract VCSBackend interface mirroring the capability's operation set (status, branch, stage, commit, diff, log, fetch, push, reset-worktree), a complete GitBackend, backend detection (innermost-wins) and override via --backend / MAGPIE_VCS. - Mercurial and Subversion are detected extension points: detection is real (so `magpie-vcs detect` reports the working copy's VCS), but the operations raise an actionable error naming the bridge issue (#601, #602). A bridge lands by replacing the stub base with a concrete backend; dispatch, the CLI, and every skill calling magpie-vcs pick it up unchanged. - 18 tests (git ops against a temp repo, detection/override, stub errors, CLI exit codes); ruff + mypy clean. - Register the tool: uv workspace member + lockfile, capability-to-tool map row, and a back-reference from source-control.md to the implementation. Generated-by: Claude Code (Opus 4.8) Co-authored-by: Tester <[email protected]>
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.
Summary
Makes source control (VCS) a first-class, separable capability of
the tool layer — distinct from the issue-tracker / forge surface — so a
project can pair its tracker with a non-Git VCS. Until now the dev-loop
skills hard-coded
gitinline with no documented seam.This is the groundwork the non-Git VCS bridge issues build on:
#601 (Mercurial), #602 (Subversion), #603 (Jujutsu), #604 (Fossil),
#605 (Perforce), and the ASF-SVN tool adapter #608.
Capability definition
tools/github/source-control.mdtools/github/tool.mdprojects/_template/project.mdSkills wired (the six that use git as the project's source control)
Each now states its
git …calls are the Git binding of thecapability, and that a project enabling a non-Git VCS under
Tools enabled → Source control substitutes that tool's binding for
the same abstract operation — skill logic unchanged.
issue-fix-workflow— branch/stage/commit/diff/pushsecurity-issue-fix— status/fetch/branch/diff/commit/push (incl. fork)pr-management-code-review(selectors) —git log/git diffhistory readissue-reproducer(SKILL + runtime-recipes) — working-tree resetissue-reassess(per-issue-flow) —git statusreset verifyissue-triage—git log --greprecent-fix scanDeliberately out of scope
Framework-plumbing git usage — all
setup-steward/*,setup-shared-config-sync,setup-override-upstream,setup-isolated-setup-*— is not wired in. That git operates onthe steward framework's own repos, worktrees, and dotfiles, which stay
Git regardless of a project's VCS choice; abstracting it behind a
project VCS would be incorrect.
Validation
prek run --files <all-touched>— markdownlint / doctoc / typos /check-placeholders / skill-validate all pass.
Generated-by: Claude Code (Opus 4.8), reviewed by the submitter before opening.