agentleFS
phuongduyphanphuongduyphan/cc-tmux-agents/skills/copilot/SKILL.md

copilot

Skill8 starsChanged 5 months agoMITView on GitHub

Delegate a coding task to a GitHub Copilot CLI session managed via tmux. Invoked as /copilot. User drives all progress checks and interventions — no auto-polling.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. OutSystems/outsystems-mcp★ 42same name
    2. zakame/brooks-agent-team★ 4same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All operations go through a single dispatcher:

    line 12
  2. Very specific:

    Default session name: cc-copilot.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/copilot — delegate to GitHub Copilot CLI

Spawns Copilot CLI in a detached tmux session so Claude can offload work to it. The user stays in the loop: they ask Claude when to check progress, what guidance to send, and when to stop.

Primitive

All operations go through a single dispatcher:

~/.claude/skills/copilot/bin/copilot-agent [--session <name>] <verb> [args]

Verbs:

  • start [task...] — create session (default cc-copilot), launch copilot --allow-all, type the task and press Enter. Returns immediately (non-blocking).
  • send <message> — type message + Enter. For follow-up guidance. Does not interrupt current generation; Copilot queues the input.
  • keys <name> — send a raw tmux key (Escape, C-c, Enter, etc.). Used for interrupts.
  • capture [lines] — print last N ANSI-stripped rendered lines (default 500). Read-only, non-destructive.
  • wait [stable] [timeout] — block until copilot goes idle, then exit. Run via a backgrounded Bash so the harness notifies Claude on completion (see "Auto-notify" below). stable = secs the working indicator must stay gone before declaring idle (default 6); timeout = overall cap in secs (default 1800).
  • stop — kill-session. Destroys the tmux session.
  • list — list active cc-copilot* sessions.

How to respond to the user

User saysDo
/copilot <task>start <task>, then arm Auto-notify (below); reply "Started. I'll ping you when copilot finishes."
"check copilot" / "progress" / "what's copilot doing" / "ask copilot for progress"capture. Show the relevant tail, add a one-line diagnosis (running / idle / error / prompt). Do not send ESC.
"interrupt copilot" / "esc copilot"keys Escape → capture.
"tell copilot: X" / "send copilot: X"send X.
"kill copilot" / "stop copilot"stop.

Rules:

  • Never auto-poll by burning Claude turns on a ScheduleWakeup/timer. For new tasks, arm the wait watcher by default (see Auto-notify), which polls inside a cheap background shell instead. Only capture when the user asks.
  • Never send Escape unless the user explicitly asks to interrupt.
  • capture is the default observation verb. Prefer it over intervention.

Conventions

  • Default session name: cc-copilot. For concurrent tasks, pass --session <name> before the verb.
  • Tasks and messages are single-line: newlines are interpreted as submit by the TUI. For long prompts, write the prompt to a file and tell Copilot to read it.

Safety

--allow-all is shorthand for --allow-all-tools --allow-all-paths --allow-all-urls — full autonomy: any tool, any path (including outside the cwd), any URL, no approval prompts. For untrusted tasks, launch inside a git worktree or downgrade to --allow-all-tools alone (paths outside cwd will then prompt interactively).

Auto-notify (get pinged when copilot finishes, no timer)

After start — and after any send that should produce another completion ping — arm a backgrounded watcher. This is the default for /copilot <task>; the user does not need to say "tell me when it's done". The trick is entirely Claude-side: copilot sends no signal. A background shell scrapes the pane and exits when copilot goes idle, and the harness re-invokes Claude on that exit. The polling moves into a cheap shell loop; Claude is woken exactly once.

To arm it, call the wait verb through a backgrounded Bash:

Bash(
  command: "~/.claude/skills/copilot/bin/copilot-agent wait",
  run_in_background: true,
  description: "wait for copilot to go idle"
)

On exit the harness notifies Claude. Read the final stdout line for the state, then capture and report to the user:

Watcher's last lineMeansClaude does on wake
idle … task-appears-completespinner gone and stablecapture, summarize the result
prompt … permission-promptidle but a y/n prompt is upcapture, tell the user / send y if they authorized it
timeout … still-busyhit the cap while still workingcapture, report it's still going; re-arm wait if desired
gone / idle … no-activitysession killed, or copilot never started workingcapture to confirm

Notes:

  • Arm wait immediately after start/send — don't capture first. A fast model can finish during the gap, and the watcher will then report no-activity (it never saw the spinner) instead of catching the idle transition. Capture only after the watcher wakes you.
  • This is the only sanctioned auto-detection path. Don't substitute a ScheduleWakeup timer (that's autopilot's job, with its own skill).
  • The watcher debounces: the working indicator briefly drops between steps, so wait requires it gone for stable secs (default 6) before declaring idle. Bump it for tasks with long gaps between steps.
  • Re-arm after each send if you want a ping for that follow-up too — one wait covers one idle transition.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.