local-ci-developer
Skill1 starsChanged 51 days agoMITView on GitHub
Router skill orchestrating design/planning, issue filing, TDD, local CI, PR creation, automated review, and outcome reporting.
In this repository14 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- issue-design-reviewSkill
- local-ci-developerSkill
- orchestune-dispatchSkill
- orchestune-provisionSkill
- orchestuneSkill
- issue-design-reviewSkill
- orchestune-dispatchSkill
- orchestune-provisionSkill
- orchestune-readinessSkill
- orchestuneSkill
- workflow-templateSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Before implementation in interactive mode, read the JSON from orchestune context export --issue <issue_number>.
- Very specific: line 38
When waiting for user approval, reviewer selection, or an authorized exception, retain the active claim and worktree.
- Very specific: line 40
Use terminal blocked only when escalating work that cannot continue.
- Distinctive: line 41
After a human resolves a completed blocked task, use the explicit local restart procedure in worktree.md, preserving its old Outcome and …
- Very specific: line 44
Before an Issue/worktree exists, create a repository-local, Git-ignored planning directory via ./scripts/create-session-dir.sh planning …
- Very specific: line 53
Never use a fixed file in the repository root or the OS-global /tmp, and never delete and recreate a tracked fixed-name plan.
- Very specific: line 58
Tooling Availability: Check uv --version, uv lock --check, and gitleaks version.
- Very specific: line 81
Use orchestune complete for every outcome.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Local CI & TDD Developer Skill
This skill routes the standard development workflow. stages.toml owns stage metadata: entry conditions, actions, exit conditions and on-failure recovery, with mode/change/backend branches. Its schema contract defines the fields; references below own action procedures. Stage data is guidance, never approval or executable state.
[!NOTE] User-Facing Response Language: While this skill instruction is written in English, all user-facing explanations, plans, questions, and responses must use the user's preferred language (e.g., Japanese if the user interacts in Japanese or matches the user's environment). The language of this instruction document must not determine the output language.
[!IMPORTANT] No Direct GitHub Label Operations: Never add, remove, or modify GitHub Issue or PR labels directly (e.g., never run
gh issue edit --add-label/gh issue edit --remove-label). Label lifecycles and transitions are managed exclusively byorchestune claimand the Orchestune engine (Dispatcher and Integrator). Report every task outcome throughorchestune complete, which posts the canonical Outcome Record to the task Issue.
Execution Modes
| Item | Interactive Mode | Non-Interactive Mode (Auto-Dispatch / Existing Issue) | ||||
| Plan Approval (Step 1) | Present plan to user and wait for approval; right after the start request (plan approval, or the user's instruction to start an existing Issue) and before claim, resolve reviewer bot by running `orchestune reviewer resolve --target <target> [--override <claude | codex | skip>](prompt explicitclaude/codex/skipoverrides config via--override; the command reads checkout root orchestune.tomlthenpyproject.toml [tool.orchestune], including reviewer-botand[reviewer_by_target]; session targets: Claude Code → claude-cli, Codex CLI → codex-cli, Antigravity → agy-cli, Grok → grok-cli; do not pass autoor guess a target; do not reimplement the mapping; a non-zero exit does not guessclaudeorcodex; unresolved uses --bot-name skip` without asking user) and record it in the plan | When invoked with an existing Issue or Auto-Dispatch, bypass user approval after writing <session-dir>/implementation-plan.md and proceed directly to implementation; resolve reviewer bot with `orchestune reviewer resolve --target <dispatch-target> [--override <claude | codex | skip>]and record the printed value; do not reimplement the mapping, and a non-zero exit does not guessclaudeorcodex` |
| Issue Creation (Step 2) | Create via selected backend (gh CLI or GitHub MCP/Web UI) if needed | Use issue number provided in prompt (skip creation) | ||||
| Worktree (Step 2.5) | Check the initial footprint, then run orchestune claim <issue_number> --apply to prepare and enter task worktree (proceed directly if already inside task worktree) | Check the initial footprint, then run orchestune claim <issue_number> --apply to prepare and enter task worktree (proceed directly if already inside task worktree) | ||||
| Review Execution (Step 11) | Use the reviewer recorded in Step 1 without re-asking and without running resolve again; later rounds inherit the existing trigger and do not switch because config changed (--switch-reviewer requires explicit user instruction); if unresolved, explicitly use --bot-name skip and stop for human review at the integration gate | Use the reviewer recorded in Step 1 without running resolve again; later rounds inherit the existing trigger and do not switch because config changed (--switch-reviewer requires explicit user instruction); if unresolved, explicitly use --bot-name skip and stop for human review at the integration gate | ||||
| Escalation | Prompt user for decision | Run orchestune complete --apply --issue <N> --result blocked --reason <REASON> and terminate safely |
Interactive context read
Before implementation in interactive mode, read the JSON from orchestune context export --issue <issue_number>. That path is separate from the context.json dispatch writes and does not replace orchestune claim, completed dependencies, or the stale-read gate.
Fast-Path for Minor Changes (Typo / Docs)
For documentation updates or typo fixes that do not alter code logic, Steps 3–8 (TDD) may be skipped. However, to prevent secret leaks (gitleaks) and ensure quality, Step 9 Local CI (./scripts/local-ci.sh / .\\scripts\\local-ci.ps1) must always be executed before proceeding to Step 10 (PR creation).
Session Scratch Directory
Temporary human-input waits
When waiting for user approval, reviewer selection, or an authorized exception, retain the active claim and worktree. Do not publish complete --result blocked
for that temporary wait: completion freezes the Outcome for its claim generation.
Use terminal blocked only when escalating work that cannot continue.
After a human resolves a completed blocked task, use the explicit local restart
procedure in worktree.md, preserving its old Outcome and starting a new claim generation.
Before an Issue/worktree exists, create a repository-local, Git-ignored planning
directory via ./scripts/create-session-dir.sh planning <task> (Windows: .\scripts\create-session-dir.ps1 planning <task>).
This generates .orchestune/tmp/planning-<task>-<UTC timestamp>-<random>/ without inline Python.
<planning-session-dir> means this pre-claim directory. After Step 2.5 enters the task
worktree, create .orchestune/tmp/task-<issue>-<UTC timestamp>-<random>/ via
./scripts/create-session-dir.sh task <issue> (Windows: .\scripts\create-session-dir.ps1 task <issue>),
migrate the approved implementation-plan.md into it, and use that explicit
<session-dir> for all remaining plan updates, PR bodies, review replies, and
scratch artifacts. Never resolve the pre-claim relative path after changing checkouts.
Never use a fixed file in the repository root or the OS-global /tmp, and never
delete and recreate a tracked fixed-name plan.
Preflight & GitHub Backend Selection (Step 0)
At session start, inspect and record the execution environment:
- Tooling Availability: Check
uv --version,uv lock --check, andgitleaks version. - GitHub Backend Selection: Check
gh auth statusand GitHub MCP capabilities. Select eitherghCLI or GitHub MCP as the fixed backend for all downstream GitHub operations throughout the session (Step 2 Issue Creation, Step 10 PR Creation, Step 12 Outcome Declaration), and record the choice in<planning-session-dir>/implementation-plan.md; migrate it to<session-dir>/implementation-plan.mdafter Step 2.5. IfghCLI is unauthenticated or unavailable, use GitHub MCP (or Web UI) without stalling.
Initial Footprint (Before Issue Creation or Claim)
To check a design draft against existing code and tests before Issue creation or claim, follow issue-design-review. In Step 1, record design, preflight, selected backend/reviewer and expected changed files in the implementation plan; in Step 2, declare files as Footprint YAML in the Issue body. For existing Issues, check/correct the declaration before claim. Follow the detailed procedure and YAML example, including the explicit repository-reservation exception for unknown scope. Step 2.6 refines this initial declaration after claim.
Development Steps
During the #822 observation period, read measurement.md
before Step 2.6 and maintain its record through Steps 10–12, including zero-finding PRs.
Check orchestune workflow --help and use workflow next and workflow check when listed. If help fails or next is absent on an older CLI, follow these prose steps. When available, run orchestune workflow next --issue <N> --session-dir <session-dir> --json; pass --pr and applicable evidence paths when a PR exists. Status and actions are guidance; these commands never execute actions.
| Step | Item | Contract / stage | Procedure (source of truth) |
| 0–2 | Preparation / Issue | prepare: mode, backend, plan, reviewer and footprint; if already satisfied before claim, use not-needed from this checkout without creating a worktree. | Preflight, Execution Modes, Initial Footprint above |
| 2.5 | Worktree Preparation | claim: matching claim, footprint and worktree-local session. | worktree.md |
| 2.6 | Impact Scope Determination | scope: preserved initial table and reservation reconciliation. | impact-scope.md |
| 3–9 | TDD & Local CI | implement: code or docs path, current CI. | tdd.md (entrypoints: local-ci.sh / local-ci.ps1) |
| 10 | Pull Request Creation | pr: required template, base and tested head. | pr.md |
| 11 | Automated LLM PR Review | review: per-finding procedure and verified review_target_sha; when any finding was judged, review-reply.md must reach a PR comment. | review-loop.md |
| 12 | Outcome Declaration | complete: --reviewer and --review-reply required for done; any judged finding's reply must already be posted as a PR comment. | Completion commands below |
Completion commands
Use orchestune complete for every outcome. It creates or reuses the canonical
Outcome Record in Issue comments; do not compose JSON or post the Outcome Record to PR comments (the review-reply.md PR comment of Step 11 is separate and still required).
For a claimed task under a parent using the stale-read gate, start from the claim's recorded input_base_sha, record declared and observed reads as work proceeds, and keep the evidence artifact with the task session. Submit it with --read-evidence <session-dir>/read-evidence.json on the done command below. It is bound to the reviewed HEAD and immutable completion request; if a fix advances HEAD, collect applicable reads for the new work and rerun CI and review before completing. An old completion replay cannot acquire or attach new evidence.
Replace placeholders with the task Issue number, PR number, or concrete reason:
# Requirement already satisfied before claim: run from the current checkout.
orchestune complete --apply --issue <N> --result not-needed
# Claude/Codex require the current-round judgment table; skip requires its PR marker (skipped, not pass).
orchestune complete --apply --issue <N> --pr <PR> --result done --reviewer <claude|codex|skip> --review-reply <session-dir>/review-reply.md
# Claimed task: run from its worktree when work cannot continue.
orchestune complete --apply --issue <N> --result blocked --reason <REASON>For a claimed task whose requirement becomes unnecessary, run the not-needed command from its worktree. done and blocked require an existing claim.
complete preserves the worktree. Success means the matching result label and durable handoff/replay receipt are confirmed, not PR merge, independent review approval, or physical collection.
Resume the same request with --completion-id <ID> and the matching claim marker (or the explicit completion ID for an unclaimed Issue); replay does not restore labels after requeue. Without a Dispatcher, rerun GC to advance policies; cloud/unclaimed not-needed needs independent approval.
See worktree.md for locks, review recovery and legacy holds.
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
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.

