bump
Bump version across all 5 files, land it via PR, then tag and push
End-to-end GitHub issue resolver — fetch, classify, fix, audit, PR
$ npx -y skills add xiaolai/vmark --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/fix-issueContext preview
What this command does when you run it.
End-to-end GitHub issue resolver — fetch, classify, fix, audit, PR
description: End-to-end GitHub issue resolver — fetch, classify, fix, audit, PR argument-hint: "#123 [#456 ...]"
Resolve one or more GitHub issues end-to-end: fetch, classify, branch, fix with TDD, Codex audit loop, gate, and PR.
$ARGUMENTS
1. **Parse arguments** — extract issue numbers (e.g. `#123`, `123`, `#123 #456`).
2. **Working tree must be clean** — run `git status --porcelain`. If dirty, error and STOP. 3. **Confirm on main/up-to-date** — run `git branch --show-current` and `git fetch origin`.
When exactly one issue number is provided, run phases 1-6 sequentially.
gh issue view {N} --json number,title,body,labels,state,assignees| Classification | Trigger | Path | |---------------|---------|------| | Bug | label contains `bug`, or body mentions error/crash/broken | Bug path (Phase 3a) | | Feature | label contains `feature`/`enhancement` | Feature path (Phase 3b) | | Question | label contains `question` | Question path (Phase 3c) | | Ambiguous | no matching labels | Ask user to classify |
Follow the philosophy from `/fix` — no half measures.
1. **Reproduce** — Read relevant code, trace call chain from symptom to root cause. 2. **Diagnose** — Find root cause, check for similar patterns elsewhere. 3. **RED** — Write a failing test capturing the bug (see `.claude/rules/10-tdd.md`). 4. **GREEN** — Fix the root cause with minimal, focused changes. 5. **REFACTOR** — Clean up without changing behavior.
1. **Research** — Search for best practices, prior art, established patterns (AGENTS.md mandate). 2. **Plan** — Design the implementation. If it would touch 10+ files or need 4+ work items, redirect to `/feature-workflow` and STOP this pipeline. 3. **TDD implement** — RED/GREEN/REFACTOR per work item. 4. **Edge cases** — Brainstorm and test: empty input, null, Unicode/CJK, rapid actions, concurrent access.
1. **Research** — Read code and docs to compose a thorough answer. 2. **Detect language** — Check the issue author's language from the issue title and body. Reply in the **same language** the author used (e.g. Chinese issue gets a Chinese reply, Japanese gets Japanese). 3. **Respond** — Post the answer as a comment in the author's language:
gh issue comment {N} --body "{answer in author's language}"4. **STOP** — No branch, no PR needed. Clean up the branch if created.
**Goal**: Targeted audit of changed files, not a generic sweep.
git diff main --name-only git diff main
Use `ToolSearch` with query `+codex` to discover Codex tools.
**Model & reasoning**: Do NOT specify a `model` parameter — inherit from global `config.toml` so upgrades propagate automatically. Always set reasoning effort explicitly.
**Availability test** — before the real audit, send a short ping:
mcp__codex__codex with:
prompt: "Respond with 'ok' if you can read this."
config: { "model_reasoning_effort": "high" }If Codex does not respond or errors out, skip to **4f. Fallback** immediately. Do not retry.
If Codex responds:
**Audit prompt:**
mcp__codex__codex with:
config: { "model_reasoning_effort": "high" }
sandbox: read-only
prompt: |
Audit these files changed for GitHub issue #{N}: {title}
Files: {changed file list}
Diff summary: {git diff main --stat}
Focus:
1. Correctness & logic — does the fix actually solve the root cause? No patching around symptoms.
2. Edge cases — boundary conditions, null/empty, Unicode/CJK, concurrent access
3. Security — no vulnerabilities introduced (injection, XSS, path traversal)
4. Duplicate code — copy-paste patterns, repeated logic that should be unified
5. Dead code — unused imports, unreachable branches, orphaned functions left behind
6. Shortcuts & patches — workarounds, TODO markers, band-aids, flags to bypass broken logic
7. VMark compliance — Zustand selectors (no destructuring), CSS tokens (no hardcoded colors), file size <300 lines
8. Cross-platform paths — if changes touch path parsing, file operations, or Command::new(), flag any hardcoded `/` separators, missing Windows `\` handling, or platform-specific assumptions. Paths must work on macOS, Windows, and Linux. See AGENTS.md cross-platform policy.
Report as: file:line | severity (Critical/High/Medium/Low) | issue | fixFix **every** finding — Critical, High, Medium, and Low. No exceptions, no "note in PR" deferrals. The audit is not clean until the finding count is zero.
Use `mcp__codex__codex-reply` on the same thread (reasoning effort carries from initial call):
I fixed these issues: {list of fixes with file:line}
Verify ALL fixes are correct. Check for new issues introduced by the fixes.
The audit passes ONLY when zero findings remain — any severity.
Updated diff: {git diff main --stat}If Codex MCP is unavailable, perform a manual 6-dimen
The Plain-Text Workspace Where Humans and AI Collaborate Free. Local-first. Format-aware. VMark is the plain-text workspace where humans and AI collaborate.
Repo: xiaolai/vmark
Bump version across all 5 files, land it via PR, then tag and push
Run the gated, agent-driven workflow end-to-end.
Fix issues properly - no patches, no shortcuts, no regressions
Review and merge open PRs — sequential, safe, with rebase handling
Remove failed/canceled GitHub Actions runs and stale remote branches
Open the comprehensive testing guide and help the user test VMark features.