[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72TTZFRRZ6PNC8BYSMC808P":3,"skill-same:01M72TTZFRRZ6PNC8BYSMC808P":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M72TTZFRRZ6PNC8BYSMC808P","jules",null,"Use when delegating a coding task to Google Jules (async cloud coding agent, via REST API v1alpha or the jules CLI), or when monitoring, rescuing, or merging the pull requests it opens.","iberi22\u002Fskills","iberi22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10615454?v=4","01M72SQ2NXAA3GW0FSH053A5ES","Brahyan Belalcazar","01M72SQ2PYCH0SSA1K61NGEHDV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: jules\ndescription: Use when delegating a coding task to Google Jules (async cloud coding agent, via REST API v1alpha or the jules CLI), or when monitoring, rescuing, or merging the pull requests it opens.\nversion: \"6.0.0\"\nupdated: \"2026-10-08\"\n---\n\n# Jules\n\nJules is an asynchronous coding agent. It clones a repo into a VM, works on one task, and opens a draft PR. A human or a local agent reviews and merges. Jules receives no secrets and does not deploy.\n\nThis file holds the decisions and the order of operations. Long material is in `references\u002F`.\n\n## 1. Route: is Jules the right executor?\n\nUse Jules for bounded tasks with a checkable deliverable: a fix, a feature slice of 2–7 files and about 50–1000 changed lines, unit tests, content, dependency bumps. TS\u002FJS and small, file-scoped Rust changes fit best. Choosing among inline work, subagents, local runs, and Jules across all tools belongs to the `llm-routing` skill.\n\nDo not send Jules:\n\n| Task | Why |\n|---|---|\n| Refactor or decoupling across a large multi-crate workspace | High FAILED rate; the VM cannot build it in time |\n| \"Make the whole suite green\" or any open-ended goal | Sessions stop to ask questions and stall |\n| Standing persona or agent prompts with no concrete deliverable | Low merge rate |\n| Work needing credentials, deploys, or real data | Jules has no secret store (§10) |\n| Native or cross-compile work (BLE, NFC, FFI, Gradle\u002FXcode) | The sandbox cannot run it |\n| Merging or rebasing other branches | Keep that local (§7) |\n| DevOps or infrastructure changes (NixOS, CI pipelines, deploy config) | Often stuck in PLANNING; do locally |\n| Complex multi-widget UI changes in one task | Incomplete PRs or wrong scope; split or do locally |\n| Repos your local runner marks as blocked for Jules | Route local |\n\n## 2. Interfaces\n\n- **REST API v1alpha** (`https:\u002F\u002Fjules.googleapis.com\u002Fv1alpha`): dispatch, bulk status, replies. Header `x-goog-api-key`, one key per account. Details: `references\u002Fapi.md`.\n- **`jules` CLI**: `new`, `remote list --session|--repo`, `remote pull [--apply]`, `teleport`, `login`, `logout`. There is no cancel, close, or delete command. Details: `references\u002Fcli.md`.\n- Dispatch through the wave tooling your environment provides. If you call the API by hand, always send `automationMode: \"AUTO_CREATE_PR\"` with `sourceContext.githubRepoContext.startingBranch` set. Without it, sessions can finish COMPLETED with code and no PR.\n- The GitHub label trigger (`jules` label on an issue) is a legacy path. Do not mix it with API dispatch for the same task: it creates duplicate sessions. If you must use labels: create every issue without the trigger label, add it only to the first issue in merge order, and add the next one after each merge.\n- Jules only sees repos connected to the account. Confirm with `jules remote list --repo` or `GET \u002Fsources` before dispatch.\n\n## 3. Capacity before dispatch\n\n- Each account has a concurrent-session limit and a daily session limit. Values depend on the plan. The vendor usage page, as reported in 2026-07, listed Free 3 concurrent \u002F 15 per day, Pro 15 \u002F 100, Ultra 60 \u002F 300; re-verify before relying on it.\n- A session occupies a slot in every non-terminal state: `QUEUED`, `PLANNING`, `AWAITING_PLAN_APPROVAL`, `AWAITING_USER_FEEDBACK`, `IN_PROGRESS`, `PAUSED`. Counting only `IN_PROGRESS` undercounts badly.\n- Going over the concurrent limit is accepted: extra sessions wait in `QUEUED`. Report how many were queued.\n- Count with paginated `GET \u002Fsessions` (script in `references\u002Fapi.md`). Use at most 4 parallel reads; 8 parallel reads returned 429.\n- Capacity is rarely the bottleneck; brief quality is. Dispatch fewer, better-scoped tasks.\n\n## 4. Wave workflow\n\n1. **Plan islands.** Each task owns a disjoint file set. Include every file a task touches, not only its primary file: two tasks with different primary files still conflict if both edit a shared shell or wiring file. Give each shared wiring file to exactly one task; the others list it under \"do not touch\" and note the integration point. Fix the merge order before dispatch.\n   - Sequence new modules as: scaffolding first, then types, then implementations, then tests, then integration. A shared index or progress file is touched only by the last task.\n2. **Write complete briefs** (one file per task) before any dispatch. Check that each brief has: deliverable, file table, a pattern to copy, decisions made in advance, a verification command, prohibitions, and a closing instruction (§5). Fix incomplete briefs before dispatch, not after.\n3. **Probe.** Dispatch one session first in any new, heavy, or recently changed repo. If it fails during VM setup, fix the environment (§9) before spending the wave.\n4. **Dispatch** 5–8 sessions per repo per wave. The title (first line of the brief) is the idempotency key: never re-dispatch the same title by hand.\n5. **Monitor** (§6). Review PRs before issues.\n6. **Gate and merge** in merge order (§7). Rescue failures (§8).\n7. **Close the wave** (§11).\n\n## 5. Brief template\n\nMeasured levers: name the target branch for the PR, tell Jules to finish with defaults instead of asking, give only light verification, and list prohibitions. Length alone was not the cause of failures in the measured data. If a brief keeps failing, check the environment (§9) first, then trim it to exact paths, signatures, and snippets.\n\n```markdown\n# [\u003Cwave>.\u003CNN>] \u003Ctype>: \u003Cobservable result in one line>\n\n## Deliverable\n\u003C1–3 sentences: what exists or changes; measurable.>\n\n## Files (this task's island)\n| File | Change |\n|---|---|\n| `path\u002Fa.ts` | modify: … |\n| `path\u002Fa.test.ts` | create: … |\nDo not touch files outside this table, except new tests. Do not touch lockfiles unless the task is about dependencies.\n\n## Context you cannot guess\n- Pattern to copy: `path\u002Fexisting.ts` (why).\n- Facts: real paths, names, versions, API contract.\n\n## Decisions already made (do not ask)\n- If \u003Cpredictable ambiguity> → use \u003Cdefault>. Note it in the PR.\n- If something in the spec is missing from the repo → implement the minimum coherent version and explain it in the PR.\n- If a command fails because of the environment (network, toolchain, browser) → document it in the PR and continue.\n\n## Verification (light: runnable in the sandbox)\n`\u003Ctest command for the touched module>`\nDo NOT run the full build, the full E2E suite, or release builds. CI verifies, on the PR.\n\n## Prohibited\n- Disabling rules or tests to pass (`eslint-disable`, `#[allow]`, `.skip`, lowering thresholds).\n- Asking for or using credentials. Deploying.\n\n## Closing\nDo not ask for confirmation at any point. When done: commit and open the PR against `\u003Cbranch>`. PR body: files changed, commands run and their results, open items as `item | cause`.\n```\n\n## 6. Monitoring and state actions\n\n| State | Action |\n|---|---|\n| `QUEUED`, `PLANNING` | Wait. No change for more than 10 min: check connectivity and repo size. |\n| `IN_PROGRESS` | Wait. Do not close the issue as \"stuck\"; there is no cancel. |\n| `AWAITING_PLAN_APPROVAL` | Approve (`:approvePlan`). Keep `requirePlanApproval` false unless plan review saves real work: this state holds a slot. |\n| `AWAITING_USER_FEEDBACK` | §6.1 |\n| `PAUSED` | Archive at wave close. |\n| `COMPLETED` | Check the PR outcome (`references\u002Fmonitoring.md`). No PR and no patch = false positive. |\n| `FAILED` | Rescue (§8). Do not retry blindly. |\n\nWhen the CLI list and the API disagree, trust the API state and the paginated activities.\n\nSessions that look stuck often finish late. Close an issue as failed only when the session is `COMPLETED` or `FAILED` and there is no PR.\n\n### 6.1 AWAITING_USER_FEEDBACK\n\nTriage in this order:\n1. Read the session state from the API.\n2. Paginate its activities to the end. They are oldest-first; the newest page is last.\n3. The last `agentMessaged` is the pending question. If the last activity is `planApproved`, `artifacts`, or `progressUpdated` with no question, there is nothing to answer.\n\nIf there is a real question, answer once, with a decision and a closing instruction:\n`Use \u003Cdefault>. Do not wait for more confirmation: commit and open the PR against \u003Cbranch> now; put open items in the PR body.`\n\nIf the session already produced artifacts but sits in AWAITING with no question:\n`The change is approved. Finish, run the lint and tests, and open the PR. If you already did, confirm the status.`\n\nRules:\n- Before approving any proposed fix, check main and closed PRs for an existing fix. Agents re-discover merged fixes.\n- A \"?\" inside a progress report is not always a question. Read the whole last message; if it is a technical doubt, verify the claim before answering.\n- Two or more agents stuck in AWAITING at the same time with no PRs usually means a shared gate, not individual abandonment. Escalate to a person in one batch (`monitoring.md`).\n- Technical questions about the environment (missing module, error that does not reproduce on main): verify on the real repo first. If the error is sandbox-only, say so and tell the agent to validate only its own file. Do not let it stub dependencies that resolve on main.\n- At most one reply per session. If there is still no PR after it, `patch` the session, integrate by hand, and archive it.\n- Replies use `:sendMessage` with exactly `{\"prompt\": \"\u003Ctext>\"}`. Other field names return 400. The state changes to `IN_PROGRESS` within about 10–20 s; do not resend.\n\n## 7. Gate PRs before merge\n\n```bash\ngh pr view \u003Curl> --json state,files,additions,deletions\ngh pr checks \u003Curl>\n```\n\n1. **Empty-PR gate.** At least one non-lockfile file, all inside the task's island. Lockfile-only or empty: rescue the code (§8) and close the PR with a note.\n2. **Scope gate.** Compare the diff size and file list with the stated scope. Skip or close PRs whose diff has unrelated changes: dependency removals, rewrites of unrelated files, or a diff many times the stated size. Do not merge a scoped fix bundled with risky unrelated changes.\n3. **Parts gate.** If the brief lists Parts A\u002FB\u002FC, confirm every part's files are in the PR. A `Fixes #N` line closes the issue even when only Part A landed.\n4. **Stale-base gate.** Signal: deletions far exceed additions, or files outside the island are deleted. Rebase so only the PR's own commits remain: `git rebase --onto main $(git merge-base main \u003Cpr-branch>) \u003Cpr-branch>`. Confirm the reverted patterns are gone. If the rebase conflicts with real code, do not force-push: close the PR and relaunch on a current base.\n5. **Shared generated files** (lockfiles, plugin lists, progress files): take one side, regenerate, commit. Never take one side blindly for source code.\n6. **Conflicts and red CI**: prefer sending them back to Jules on its own branch (a follow-up message or a fix session with the exact error pasted and the files named). Jules cannot see CI output unless you paste it. Fix locally only generated files, or when Jules cannot.\n7. **Draft PRs**: mark them ready before merging; the merge fails silently on drafts.\n8. **Merge** with a merge commit, not a rebase with force-push. After a push, wait a few seconds for GitHub to recompute mergeability.\n9. **Trust objective guards** (tests, ratchets, CI) over the PR body's claims.\n10. **Post-merge**: run the project's full build and tests on main once, in your own commit. Known breakages: `references\u002Fmerge-and-rescue.md`.\n\n## 8. Rescue FAILED sessions\n\n- Most FAILED sessions still produced code. Read the last patch that contains code (ignore lockfile-only patches): `patch`.\n- Retrying the same prompt rarely works (measured: about 16% produced a PR). Rescue instead:\n  ```bash\n  git switch -c rescue\u002F\u003Cwave>-\u003CNN> origin\u002F\u003Cbase>\n  git apply --3way --exclude='*lock*' \u003Cpatch-file>\n  # run the repo's local gates, then open the PR and explain the rescue in its body\n  ```\n- Read the failure signal. \"Jules was unable to complete the task\" right after the last activity means scope or spec. \"Error when working on the task\" after a long silence means a command ran too long: take the build out of the brief.\n- Retry only if the cause is fixed. Use a new title (`… v2`) and the corrected brief. Never reuse the title.\n\n## 9. Environment (top cause of FAILED)\n\n- An empty setup script makes Jules infer setup from `AGENTS.md`. If that file lists heavy builds, the VM fails during setup or during work.\n- Fix: set a light setup script in the web UI (repo → Environment → Setup script → run and snapshot). Add a \"Remote agents\" section to `AGENTS.md`: do not run full builds, CI verifies. Keep pre-commit hooks light: a heavy hook inside a Jules session kills its commits.\n- The API has no field for setup scripts or environment variables. Set them in the web UI.\n- If the repo's CI is blocked (for example, private repos with Actions billing failures), \"CI verifies\" does not hold. Use local gates instead.\n\n## 10. Secrets\n\n- Never put tokens, keys, or credentials in prompts, messages, or issues. Jules has no secret store.\n- Split credentialed tasks: Jules prepares everything (code, green build, exact commands, rollback in the PR). A person or a local process runs the 2–4 authenticated commands.\n- Exception: owner approval, a minimum-scope token, revoked right after, and recorded in the issue.\n\n## 11. Close the wave\n\n1. Check the status of every session (API).\n2. Gate, then merge or rescue each PR (§7–8).\n3. Archive every non-terminal session left (`AWAITING_*`, `PAUSED`, stuck). Archiving frees slots; an open AWAITING session can open a duplicate PR later.\n4. Record each outcome: merged, closed without merge (find out who closed it and why), no PR, rescued.\n5. Clean up: delete merged Jules branches; delete branches with no PR that revert merged work; close duplicate issues from earlier waves; check that no open Jules issues remain without a PR or a decision. Details: `references\u002Fmerge-and-rescue.md`.\n6. Optional: an independent review of the merged batch by a different agent, with findings turned into new briefs.\n\n## 12. Gotchas\n\n- \"Session #N\" is not necessarily a GitHub issue number. Check the issue, then search PRs by topic, then branches. Report what matches; do not invent status.\n- The TUI shows only the current repo. `remote list --session` shows all repos, including sessions from other automation.\n- Activities are oldest-first. Paginate to the end.\n- Responses can contain control characters: parse with `json.loads(raw, strict=False)`.\n- A POST whose response was lost may still have created the session. Search by title before retrying.\n- Jules branches start with `jules-`. Use `head:jules-` to isolate its PRs from other authors' PRs.\n\n## 13. Reference map\n\n| File | Load when |\n|---|---|\n| `references\u002Fapi.md` | calling the REST API, counting capacity, replying, parsing activities |\n| `references\u002Fcli.md` | using the `jules` CLI, or it fails to start (NixOS) |\n| `references\u002Fmonitoring.md` | mapping sessions to PRs, PR outcomes, fallback when the CLI and API are down |\n| `references\u002Fmerge-and-rescue.md` | merge conflicts, stale bases, post-merge breakage |\n| `references\u002Fstack-notes.md` | per-stack behavior (TS\u002FJS, Rust, Flutter\u002FDart, Solidity) |\n\nRelated skills: `llm-routing` (which executor), `gitcore-jules-issues` (issue template for label dispatch).\n","# Jules\n\nJules is an asynchronous coding agent. It clones a repo into a VM, works on one task, and opens a draft PR. A human or a local agent reviews and merges. Jules receives no secrets and does not deploy.\n\nThis file holds the decisions and the order of operations. Long material is in `references\u002F`.\n\n## 1. Route: is Jules the right executor?\n\nUse Jules for bounded tasks with a checkable deliverable: a fix, a feature slice of 2–7 files and about 50–1000 changed lines, unit tests, content, dependency bumps. TS\u002FJS and small, file-scoped Rust changes fit best. Choosing among inline work, subagents, local runs, and Jules across all tools belongs to the `llm-routing` skill.\n\nDo not send Jules:\n\n| Task | Why |\n|---|---|\n| Refactor or decoupling across a large multi-crate workspace | High FAILED rate; the VM cannot build it in time |\n| \"Make the whole suite green\" or any open-ended goal | Sessions stop to ask questions and stall |\n| Standing persona or agent prompts with no concrete deliverable | Low merge rate |\n| Work needing credentials, deploys, or real data | Jules has no secret store (§10) |\n| Native or cross-compile work (BLE, NFC, FFI, Gradle\u002FXcode) | The sandbox cannot run it |\n| Merging or rebasing other branches | Keep that local (§7) |\n| DevOps or infrastructure changes (NixOS, CI pipelines, deploy config) | Often stuck in PLANNING; do locally |\n| Complex multi-widget UI changes in one task | Incomplete PRs or wrong scope; split or do locally |\n| Repos your local runner marks as blocked for Jules | Route local |\n\n## 2. Interfaces\n\n- **REST API v1alpha** (`https:\u002F\u002Fjules.googleapis.com\u002Fv1alpha`): dispatch, bulk status, replies. Header `x-goog-api-key`, one key per account. Details: `references\u002Fapi.md`.\n- **`jules` CLI**: `new`, `remote list --session|--repo`, `remote pull [--apply]`, `teleport`, `login`, `logout`. There is no cancel, close, or delete command. Details: `references\u002Fcli.md`.\n- Dispatch through the wave tooling your environment provides. If you call the API by hand, always send `automationMode: \"AUTO_CREATE_PR\"` with `sourceContext.githubRepoContext.startingBranch` set. Without it, sessions can finish COMPLETED with code and no PR.\n- The GitHub label trigger (`jules` label on an issue) is a legacy path. Do not mix it with API dispatch for the same task: it creates duplicate sessions. If you must use labels: create every issue without the trigger label, add it only to the first issue in merge order, and add the next one after each merge.\n- Jules only sees repos connected to the account. Confirm with `jules remote list --repo` or `GET \u002Fsources` before dispatch.\n\n## 3. Capacity before dispatch\n\n- Each account has a concurrent-session limit and a daily session limit. Values depend on the plan. The vendor usage page, as reported in 2026-07, listed Free 3 concurrent \u002F 15 per day, Pro 15 \u002F 100, Ultra 60 \u002F 300; re-verify before relying on it.\n- A session occupies a slot in every non-terminal state: `QUEUED`, `PLANNING`, `AWAITING_PLAN_APPROVAL`, `AWAITING_USER_FEEDBACK`, `IN_PROGRESS`, `PAUSED`. Counting only `IN_PROGRESS` undercounts badly.\n- Going over the concurrent limit is accepted: extra sessions wait in `QUEUED`. Report how many were queued.\n- Count with paginated `GET \u002Fsessions` (script in `references\u002Fapi.md`). Use at most 4 parallel reads; 8 parallel reads returned 429.\n- Capacity is rarely the bottleneck; brief quality is. Dispatch fewer, better-scoped tasks.\n\n## 4. Wave workflow\n\n1. **Plan islands.** Each task owns a disjoint file set. Include every file a task touches, not only its primary file: two tasks with different primary files still conflict if both edit a shared shell or wiring file. Give each shared wiring file to exactly one task; the others list it under \"do not touch\" and note the integration point. Fix the merge order before dispatch.\n   - Sequence new modules as: scaffolding first, then types, then implementations, then tests, then integration. A shared index or progress file is touched only by the last task.\n2. **Write complete briefs** (one file per task) before any dispatch. Check that each brief has: deliverable, file table, a pattern to copy, decisions made in advance, a verification command, prohibitions, and a closing instruction (§5). Fix incomplete briefs before dispatch, not after.\n3. **Probe.** Dispatch one session first in any new, heavy, or recently changed repo. If it fails during VM setup, fix the environment (§9) before spending the wave.\n4. **Dispatch** 5–8 sessions per repo per wave. The title (first line of the brief) is the idempotency key: never re-dispatch the same title by hand.\n5. **Monitor** (§6). Review PRs before issues.\n6. **Gate and merge** in merge order (§7). Rescue failures (§8).\n7. **Close the wave** (§11).\n\n## 5. Brief template\n\nMeasured levers: name the target branch for the PR, tell Jules to finish with defaults instead of asking, give only light verification, and list prohibitions. Length alone was not the cause of failures in the measured data. If a brief keeps failing, check the environment (§9) first, then trim it to exact paths, signatures, and snippets.\n\n```markdown\n# [\u003Cwave>.\u003CNN>] \u003Ctype>: \u003Cobservable result in one line>\n\n## Deliverable\n\u003C1–3 sentences: what exists or changes; measurable.>\n\n## Files (this task's island)\n| File | Change |\n|---|---|\n| `path\u002Fa.ts` | modify: … |\n| `path\u002Fa.test.ts` | create: … |\nDo not touch files outside this table, except new tests. Do not touch lockfiles unless the task is about dependencies.\n\n## Context you cannot guess\n- Pattern to copy: `path\u002Fexisting.ts` (why).\n- Facts: real paths, names, versions, API contract.\n\n## Decisions already made (do not ask)\n- If \u003Cpredictable ambiguity> → use \u003Cdefault>. Note it in the PR.\n- If something in the spec is missing from the repo → implement the minimum coherent version and explain it in the PR.\n- If a command fails because of the environment (network, toolchain, browser) → document it in the PR and continue.\n\n## Verification (light: runnable in the sandbox)\n`\u003Ctest command for the touched module>`\nDo NOT run the full build, the full E2E suite, or release builds. CI verifies, on the PR.\n\n## Prohibited\n- Disabling rules or tests to pass (`eslint-disable`, `#[allow]`, `.skip`, lowering thresholds).\n- Asking for or using credentials. Deploying.\n\n## Closing\nDo not ask for confirmation at any point. When done: commit and open the PR against `\u003Cbranch>`. PR body: files changed, commands run and their results, open items as `item | cause`.\n```\n\n## 6. Monitoring and state actions\n\n| State | Action |\n|---|---|\n| `QUEUED`, `PLANNING` | Wait. No change for more than 10 min: check connectivity and repo size. |\n| `IN_PROGRESS` | Wait. Do not close the issue as \"stuck\"; there is no cancel. |\n| `AWAITING_PLAN_APPROVAL` | Approve (`:approvePlan`). Keep `requirePlanApproval` false unless plan review saves real work: this state holds a slot. |\n| `AWAITING_USER_FEEDBACK` | §6.1 |\n| `PAUSED` | Archive at wave close. |\n| `COMPLETED` | Check the PR outcome (`references\u002Fmonitoring.md`). No PR and no patch = false positive. |\n| `FAILED` | Rescue (§8). Do not retry blindly. |\n\nWhen the CLI list and the API disagree, trust the API state and the paginated activities.\n\nSessions that look stuck often finish late. Close an issue as failed only when the session is `COMPLETED` or `FAILED` and there is no PR.\n\n### 6.1 AWAITING_USER_FEEDBACK\n\nTriage in this order:\n1. Read the session state from the API.\n2. Paginate its activities to the end. They are oldest-first; the newest page is last.\n3. The last `agentMessaged` is the pending question. If the last activity is `planApproved`, `artifacts`, or `progressUpdated` with no question, there is nothing to answer.\n\nIf there is a real question, answer once, with a decision and a closing instruction:\n`Use \u003Cdefault>. Do not wait for more confirmation: commit and open the PR against \u003Cbranch> now; put open items in the PR body.`\n\nIf the session already produced artifacts but sits in AWAITING with no question:\n`The change is approved. Finish, run the lint and tests, and open the PR. If you already did, confirm the status.`\n\nRules:\n- Before approving any proposed fix, check main and closed PRs for an existing fix. Agents re-discover merged fixes.\n- A \"?\" inside a progress report is not always a question. Read the whole last message; if it is a technical doubt, verify the claim before answering.\n- Two or more agents stuck in AWAITING at the same time with no PRs usually means a shared gate, not individual abandonment. Escalate to a person in one batch (`monitoring.md`).\n- Technical questions about the environment (missing module, error that does not reproduce on main): verify on the real repo first. If the error is sandbox-only, say so and tell the agent to validate only its own file. Do not let it stub dependencies that resolve on main.\n- At most one reply per session. If there is still no PR after it, `patch` the session, integrate by hand, and archive it.\n- Replies use `:sendMessage` with exactly `{\"prompt\": \"\u003Ctext>\"}`. Other field names return 400. The state changes to `IN_PROGRESS` within about 10–20 s; do not resend.\n\n## 7. Gate PRs before merge\n\n```bash\ngh pr view \u003Curl> --json state,files,additions,deletions\ngh pr checks \u003Curl>\n```\n\n1. **Empty-PR gate.** At least one non-lockfile file, all inside the task's island. Lockfile-only or empty: rescue the code (§8) and close the PR with a note.\n2. **Scope gate.** Compare the diff size and file list with the stated scope. Skip or close PRs whose diff has unrelated changes: dependency removals, rewrites of unrelated files, or a diff many times the stated size. Do not merge a scoped fix bundled with risky unrelated changes.\n3. **Parts gate.** If the brief lists Parts A\u002FB\u002FC, confirm every part's files are in the PR. A `Fixes #N` line closes the issue even when only Part A landed.\n4. **Stale-base gate.** Signal: deletions far exceed additions, or files outside the island are deleted. Rebase so only the PR's own commits remain: `git rebase --onto main $(git merge-base main \u003Cpr-branch>) \u003Cpr-branch>`. Confirm the reverted patterns are gone. If the rebase conflicts with real code, do not force-push: close the PR and relaunch on a current base.\n5. **Shared generated files** (lockfiles, plugin lists, progress files): take one side, regenerate, commit. Never take one side blindly for source code.\n6. **Conflicts and red CI**: prefer sending them back to Jules on its own branch (a follow-up message or a fix session with the exact error pasted and the files named). Jules cannot see CI output unless you paste it. Fix locally only generated files, or when Jules cannot.\n7. **Draft PRs**: mark them ready before merging; the merge fails silently on drafts.\n8. **Merge** with a merge commit, not a rebase with force-push. After a push, wait a few seconds for GitHub to recompute mergeability.\n9. **Trust objective guards** (tests, ratchets, CI) over the PR body's claims.\n10. **Post-merge**: run the project's full build and tests on main once, in your own commit. Known breakages: `references\u002Fmerge-and-rescue.md`.\n\n## 8. Rescue FAILED sessions\n\n- Most FAILED sessions still produced code. Read the last patch that contains code (ignore lockfile-only patches): `patch`.\n- Retrying the same prompt rarely works (measured: about 16% produced a PR). Rescue instead:\n  ```bash\n  git switch -c rescue\u002F\u003Cwave>-\u003CNN> origin\u002F\u003Cbase>\n  git apply --3way --exclude='*lock*' \u003Cpatch-file>\n  # run the repo's local gates, then open the PR and explain the rescue in its body\n  ```\n- Read the failure signal. \"Jules was unable to complete the task\" right after the last activity means scope or spec. \"Error when working on the task\" after a long silence means a command ran too long: take the build out of the brief.\n- Retry only if the cause is fixed. Use a new title (`… v2`) and the corrected brief. Never reuse the title.\n\n## 9. Environment (top cause of FAILED)\n\n- An empty setup script makes Jules infer setup from `AGENTS.md`. If that file lists heavy builds, the VM fails during setup or during work.\n- Fix: set a light setup script in the web UI (repo → Environment → Setup script → run and snapshot). Add a \"Remote agents\" section to `AGENTS.md`: do not run full builds, CI verifies. Keep pre-commit hooks light: a heavy hook inside a Jules session kills its commits.\n- The API has no field for setup scripts or environment variables. Set them in the web UI.\n- If the repo's CI is blocked (for example, private repos with Actions billing failures), \"CI verifies\" does not hold. Use local gates instead.\n\n## 10. Secrets\n\n- Never put tokens, keys, or credentials in prompts, messages, or issues. Jules has no secret store.\n- Split credentialed tasks: Jules prepares everything (code, green build, exact commands, rollback in the PR). A person or a local process runs the 2–4 authenticated commands.\n- Exception: owner approval, a minimum-scope token, revoked right after, and recorded in the issue.\n\n## 11. Close the wave\n\n1. Check the status of every session (API).\n2. Gate, then merge or rescue each PR (§7–8).\n3. Archive every non-terminal session left (`AWAITING_*`, `PAUSED`, stuck). Archiving frees slots; an open AWAITING session can open a duplicate PR later.\n4. Record each outcome: merged, closed without merge (find out who closed it and why), no PR, rescued.\n5. Clean up: delete merged Jules branches; delete branches with no PR that revert merged work; close duplicate issues from earlier waves; check that no open Jules issues remain without a PR or a decision. Details: `references\u002Fmerge-and-rescue.md`.\n6. Optional: an independent review of the merged batch by a different agent, with findings turned into new briefs.\n\n## 12. Gotchas\n\n- \"Session #N\" is not necessarily a GitHub issue number. Check the issue, then search PRs by topic, then branches. Report what matches; do not invent status.\n- The TUI shows only the current repo. `remote list --session` shows all repos, including sessions from other automation.\n- Activities are oldest-first. Paginate to the end.\n- Responses can contain control characters: parse with `json.loads(raw, strict=False)`.\n- A POST whose response was lost may still have created the session. Search by title before retrying.\n- Jules branches start with `jules-`. Use `head:jules-` to isolate its PRs from other authors' PRs.\n\n## 13. Reference map\n\n| File | Load when |\n|---|---|\n| `references\u002Fapi.md` | calling the REST API, counting capacity, replying, parsing activities |\n| `references\u002Fcli.md` | using the `jules` CLI, or it fails to start (NixOS) |\n| `references\u002Fmonitoring.md` | mapping sessions to PRs, PR outcomes, fallback when the CLI and API are down |\n| `references\u002Fmerge-and-rescue.md` | merge conflicts, stale bases, post-merge breakage |\n| `references\u002Fstack-notes.md` | per-stack behavior (TS\u002FJS, Rust, Flutter\u002FDart, Solidity) |\n\nRelated skills: `llm-routing` (which executor), `gitcore-jules-issues` (issue template for label dispatch).\n",{"name":5,"updated":24,"version":25,"description":7},"2026-10-08","6.0.0","main","688810f2886d212632acf81e532b24e483dd8b98","skills\u002Ftools\u002Fjules","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills","https:\u002F\u002Fgithub.com\u002Fiberi22","Senior WEB Full-Stack","2026-10-12 02:46:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add iberi22\u002Fskills --skill jules",{"tool":39,"command":40},"bunx","bunx skills add iberi22\u002Fskills --skill jules",{"tool":42,"command":43},"pnpm","pnpm dlx skills add iberi22\u002Fskills --skill jules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002FSKILL.md",true,[47,53,57,61,65],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fapi.md","REFERENCE","参考文档",5127,"https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002Freferences\u002Fapi.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcli.md",2650,"https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002Freferences\u002Fcli.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fmerge-and-rescue.md",5258,"https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002Freferences\u002Fmerge-and-rescue.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fmonitoring.md",4151,"https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002Freferences\u002Fmonitoring.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fstack-notes.md",2028,"https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fjules\u002Freferences\u002Fstack-notes.md",[70,76,83,89,95,101],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M72TWQEQD46ZC9TRBAABF78P","web-design-guidelines","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M72TWMQFTYD08DGXVAXRPPEB","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall. Recovers the page via archives and provenance-checked fallbacks.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M72TVQMS3HCTX18C8T97WTQQ","studio-coach","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fstudio-coach\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M72TVNA2PR9RZW0ZAXYP1G6J","src-generator","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsrc-generator\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M72TVEJHHB6SAT3R3TY9MJKS","sqlite-pro","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsqlite-pro\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M72TVC2EVBHQHCX96VTTYKB8","rigor-evaluator","Use when you need a quick heuristic rigor score (10 criteria, 0-2 each) for the features in a .gitcore\u002Ffeatures.json file, to decide which features are ready to ship.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Frigor-evaluator\u002FSKILL.md",[],[]]