debug-live-issue
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data…
Push the current working tree directly to a GitHub PR whose head lives on a **fork**, without creating a new branch and without pushing to `origin` (which is usually the upstream). Invoke when the user says things like "push straight to PR #N", "push to the forked PR", "update
$ npx -y skills add hoangsonww/Claude-Code-Agent-Monitor --skill push-to-forked-pr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/push-to-forked-prContext preview
The summary Claude sees to decide when to auto-load this skill.
Push the current working tree directly to a GitHub PR whose head lives on a **fork**, without creating a new branch and without pushing to `origin` (which is usually the upstream). Invoke when the user says things like "push straight to PR #N", "push to the forked PR", "update
name: push-to-forked-pr description: Push the current working tree directly to a GitHub PR whose head lives on a **fork**, without creating a new branch and without pushing to `origin` (which is usually the upstream). Invoke when the user says things like "push straight to PR #N", "push to the forked PR", "update PR from fork", "push these changes to #N directly", "commit and push to the PR" — *especially* when they emphasise not creating a new branch or not pushing into the upstream repo. Use this **instead of** plain `git push origin` whenever the PR head repo differs from the local `origin` repo.
The whole point of this skill: **`origin` is usually the upstream, but the PR's head is on someone else's fork.** Pushing to `origin` updates the upstream's branch, not the PR. You have to push to the fork.
GitHub allows this in two situations:
1. You are the **fork owner** — straightforward, you own that branch. 2. You are an **upstream maintainer** and the PR has `maintainerCanModify: true` (the "Allow edits from maintainers" checkbox the PR author leaves on by default). GitHub then lets the upstream's auth push to the fork branch.
If neither holds, abort and tell the user only the fork owner can push.
---
PR_NUMBER=<N> gh pr view "$PR_NUMBER" --json state,headRefName,headRefOid,headRepository,headRepositoryOwner,maintainerCanModify,url
Capture:
If `headRepository.nameWithOwner` matches the upstream's `nameWithOwner`, this PR is **internal**:
HEAD_BRANCH=$(gh pr view "$PR_NUMBER" --json headRefName --jq .headRefName)
HEAD_REF_OID=$(gh pr view "$PR_NUMBER" --json headRefOid --jq .headRefOid)
git merge-base --is-ancestor "$HEAD_REF_OID" HEAD && echo ok || echo NOT-DESCENDANT # abort if NOT-DESCENDANT
git push origin "HEAD:${HEAD_BRANCH}"Exit the skill once this push lands — do not continue to the fork-push steps below.
gh auth status # who am I? git remote get-url origin # fetch URL — confirm origin is the UPSTREAM, not the fork git remote get-url --push origin # push URL — can differ from the fetch URL if `pushurl` is configured
For the internal-PR path above, compare the **push** URL (not just the fetch URL) against the expected upstream `nameWithOwner` before relying on `git push origin` — a configured `pushurl` can silently redirect the push to a different destination than the fetch URL suggests.
You may push to the fork branch iff the active gh user is:
Otherwise stop. Tell the user the PR doesn't allow maintainer edits.
git branch --show-current git rev-parse HEAD git merge-base --is-ancestor <headRefOid> HEAD && echo ok || echo NOT-DESCENDANT
git config user.email
If it is empty, hostname-shaped (`user@host.local`, `*@*.tail*.ts.net`, etc.), or otherwise not a real email tied to a GitHub account, the commit will appear "unverified" on GitHub and won't link to a profile. Override per-commit:
git -c user.name="<Name>" -c user.email="<email>" commit -F /tmp/commit-msg.txt
To correct an already-made commit before push:
git -c user.name="..." -c user.email="..." commit --amend --reset-author -C HEAD --no-edit
Prefer the user's documented identity (e.g. from `CLAUDE.md` or earlier in the session) over the local git config when the local config is clearly machine-generated.
The user almost always asks for this explicitly. In this repo (see `CLAUDE.md` for the authoritative list):
npm run format:check # tracked files only; local .worktrees/ noise is not yours to fix npm run test:server # backend touched npm run test:client # frontend, wiki i18n, screen snapshots npm run mcp:typecheck && npm run mcp:build # mcp/ touched npm --prefix mcp test # mcp unit suite npm run build # production client build bash .claude/skills/file-headers/scripts/check-headers.sh
Per-package extras when those areas are touched:
npm --prefix desktop run build && npm --prefix desktop test node scripts/validate-agent-extensions.js
Stop on the first red. Report which check failed and **do not push**.
Exclude session-local noise (`.claude/settings.local.json` is harness state, not work) and never stage blindly:
git status # review exactly what changed git add <path1> <path2> ... # stage only the files for this PR's change — never `git add -A` git status # confirm the staged diff matches intent (and excludes .claude/settings.local.json) before committing
Commit with a real body (use `-F` for multi-paragraph messages), ending with the `Co-Authored-By` trailer your harness requires — copy it verbatim from the harness instructions
🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.
Repo: hoangsonww/Claude-Code-Agent-Monitor
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data…
MANDATORY for every coding agent (Claude Code, Codex, or any other) on every change-set — every applicable source file the agent creates or updates MUST start…
MANDATORY for every coding agent and contributor touching localized content — keep all five localization surfaces (dashboard UI keys, wiki page, mirrored…
Operate and maintain the local MCP server for this project. Use when creating MCP host config, troubleshooting tool connectivity, modifying tool domains, or…
Onboard quickly to this repository. Use when asked to understand architecture, locate ownership, choose the right module, or identify the correct commands and…
Implement a feature safely end-to-end in this repository. Use when adding or changing functionality across backend, frontend, or MCP with required verification…