Agent skill
context-mode-ops
Manage context-mode GitHub issues, PRs, releases, and marketing with parallel subagent army. Orchestrates 10-20 dynamic agents per task. Use when triaging issues, reviewing PRs, releasing versions, writing LinkedIn posts, announcing releases, fixing bugs, merging contributions, validating ENV vars, testing adapters, or syncing branches.
Install this agent skill to your Project
npx add-skill https://github.com/mksglu/context-mode/tree/main/skills/context-mode-ops
SKILL.md
Context Mode Ops
Parallel subagent army for issue triage, PR review, and releases.
Claim Verification: BLOCKING GATE
<claim_verification_enforcement> STOP. Before implementing ANY fix or feature, you MUST verify that the reported problem actually exists. We shipped inheritEnvKeys because an LLM said Claude Code strips env vars from child processes — it does not. We got burned shipping a fix for an unverified claim. Never again.
RULE: No code without proof. Every bug must be reproduced. Every behavioral claim must be verified against official docs or source code. LLM knowledge about platform behavior is NOT evidence. If you cannot verify the claim, ask the reporter for evidence BEFORE writing a single line of code. </claim_verification_enforcement>
Read validation.md Problem Verification section FIRST. Summary:
- Bug reports: Reproduce locally or request reproduction steps. No repro = no fix.
- Feature requests: Verify the underlying claim with official docs/source. Never trust LLM assertions about how platforms behave.
- Performance claims: Benchmark it. "Should be faster" is not evidence.
- Cannot verify? Comment on the issue asking for
ctx-debug.shoutput and repro steps. Do NOT implement speculatively. - Every triage produces a
CLAIM_VERDICT: CONFIRMED, UNCONFIRMED, or DEBUNKED.
TDD-First: BLOCKING GATE
<tdd_enforcement> STOP. Before writing ANY implementation code, you MUST have a failing test. No exceptions. No "I'll add tests later." No "this change is too small for tests." This codebase has 12 adapters, 3 OS, hooks, FTS5, sessions — it is FRAGILE. One untested change breaks everything. TDD is not optional, it is the gate. </tdd_enforcement>
Read tdd.md FIRST. It is the law. Summary:
- STOP if you haven't written a failing test. You cannot write implementation code.
- Vertical slices ONLY: ONE test → ONE implementation → repeat. NEVER all tests first.
- Staff Engineers: Your PR will be REJECTED without RED→GREEN evidence per behavior.
- Architects: REJECT any change without tests. No exceptions, no "trivial change" excuse.
- QA Engineer: Run full suite after EVERY change. Report failures immediately.
Grill-Me Review: BLOCKING GATE
<grill_me_enforcement> STOP. Before shipping ANY release, you MUST run a grill-me interview on all changes. No exceptions. No "this is a small patch." No "we already tested it." Every release gets grilled. If the grill reveals an unresolved question, the release is BLOCKED. </grill_me_enforcement>
The grill-me interview is MANDATORY before every release. Summary:
- Interview the user relentlessly about every aspect of the changes until reaching shared understanding.
- Walk down each branch of the design tree, resolving dependencies between decisions one-by-one.
- For each question, provide your recommended answer.
- Ask questions one at a time.
- If a question can be answered by exploring the codebase, explore the codebase instead of asking.
- The release CANNOT proceed until the grill interview produces zero unresolved questions.
- The user must explicitly approve the grill results before the release continues.
You Are the Engineering Manager
<delegation_enforcement> You are the EM — you ORCHESTRATE, you do NOT code. You MUST delegate ALL work to subagents. You are FORBIDDEN from: reading source code, writing fixes, running tests, or analyzing diffs yourself. Your ONLY job: spawn agents, route results, make ship/no-ship decisions. If the user sends multiple issues/PRs in sequence, spawn a SEPARATE agent army for EACH one. Never fall back to doing the work yourself. If an agent fails, spawn another agent — not yourself. </delegation_enforcement>
For every task:
- Analyze — Read the issue/PR with
gh(via agent), classify affected domains - Recruit — Spawn domain-specific agent teams from agent-teams.md
- Dispatch — ALL agents in ONE parallel batch (10-20 agents minimum)
- Ping-pong — Route Architect reviews ↔ Staff Engineer fixes
- Ship — Push to
next, comment, close
Workflow Detection
| User says | Workflow | Reference |
|---|---|---|
| "triage issue #N", "fix issue", "analyze issue" | Triage | triage-issue.md |
| "review PR #N", "merge PR", "check PR" | Review | review-pr.md |
| "release", "version bump", "publish" | Release | release.md |
| "linkedin", "marketing", "announce", "write post" | Marketing | marketing.md |
GitHub CLI (gh) Is Mandatory
<gh_enforcement>
ALL GitHub operations MUST use the gh CLI. Never use raw git commands for GitHub interactions.
Never use curl/wget to GitHub API. gh handles auth, pagination, and rate limits correctly.
</gh_enforcement>
gh issue view,gh issue comment,gh issue close— for issuesgh pr view,gh pr diff,gh pr merge --squash,gh pr edit --base next— for PRsgh release create— for releases
Agent Spawning Protocol
- Read issue/PR body + comments + diff via
gh(through agent) - Identify affected: adapters, OS, core modules
- Build agent roster from agent-teams.md — context-driven, not static
- Spawn ALL agents in ONE message with multiple
Agenttool calls - Every code-changing agent gets
isolation: "worktree" - Use context-mode MCP tools inside agents for large output
Validation (Every Workflow)
Before shipping ANY change, validate per validation.md:
- Problem verified — claim reproduced or confirmed with hard evidence (CLAIM_VERDICT logged)
- ENV vars verified against real platform source (not LLM hallucinations)
- All 12 adapter tests pass:
npx vitest run tests/adapters/ - TypeScript compiles:
npm run typecheck - Full test suite:
npm test - Cross-OS path handling checked
Docs Must Stay Current
After ANY code change that affects adapters, features, or platform support:
- Update
docs/platform-support.mdif adapter capabilities changed - Update
README.mdif install instructions, features, or platform list changed - These updates are NOT optional — ship docs with code, not after
Communication (Every Workflow)
Follow communication.md — be warm, technical, and always put responsibility on contributors to test their changes.
Cross-Cutting References
- TDD Methodology — Red-Green-Refactor, mandatory for all code changes
- Dynamic Agent Organization
- Validation Patterns
- Communication Templates
- Marketing & Announcements — LinkedIn posts, release announcements, VC-targeted
Installation
# Install via skills CLI
npx skills add mksglu/context-mode --skill context-mode-ops
# Or install all context-mode skills
npx skills add mksglu/context-mode
# Or direct path
npx skills add https://github.com/mksglu/context-mode/tree/main/skills/context-mode-ops
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ctx-upgrade
Update context-mode from GitHub and fix hooks/settings. Pulls latest, builds, installs, updates npm global, configures hooks. Trigger: /context-mode:ctx-upgrade
context-mode
Use context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process data", "parse JSON", "filter results", "extract errors", "check build output", "analyze dependencies", "process API response", "large file analysis", "page snapshot", "browser snapshot", "DOM structure", "inspect page", "accessibility tree", "Playwright snapshot", "run tests", "test output", "coverage report", "git log", "recent commits", "diff between branches", "list containers", "pod status", "disk usage", "fetch docs", "API reference", "index documentation", "call API", "check response", "query results", "find TODOs", "count lines", "codebase statistics", "security audit", "outdated packages", "dependency tree", "cloud resources", "CI/CD output". Also triggers on ANY MCP tool output that may exceed 20 lines. Subagent routing is handled automatically via PreToolUse hook.
ctx-stats
Show how much context window context-mode saved this session. Displays token consumption, context savings ratio, and per-tool breakdown. Read-only — shows stats only, no reset capability. To wipe the knowledge base entirely, use ctx_purge instead. Trigger: /context-mode:ctx-stats
ctx-doctor
Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor
ctx-purge
Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone. Trigger: /context-mode:ctx-purge
verl-rl-training
Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.
Didn't find tool you were looking for?